/* Dein Immo-Team — Mitarbeiter-PWA · Marke: Anthrazit #1a1a1a + Orange #e67e22 */
:root {
  --bg: #1a1a1a; --card: #242424; --card2: #2e2e2e;
  --accent: #e67e22; --accent-d: #cf6f16;
  --text: #f2f2f2; --muted: #9a9a9a; --line: #3a3a3a;
  --ok: #2ecc71;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.4;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  min-height: 100vh;
}

.screen { display: none; padding: 18px 18px 40px; max-width: 480px; margin: 0 auto; }
.screen.active { display: block; }

h1 { font-size: 26px; margin: 8px 0; }
h2 { font-size: 22px; margin: 0 0 14px; }
.small { font-size: 16px; font-weight: 500; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sub { color: var(--muted); margin: 0; }
.hint { color: var(--muted); margin: 0 0 20px; }

/* Topbar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.brand { font-weight: 700; color: var(--accent); flex: 1; text-align: center; }
.back { background: none; border: none; color: var(--text); font-size: 30px; line-height: 1; cursor: pointer; width: 40px; }

/* Hero */
.hero { text-align: center; margin: 24px 0 30px; }
.logo { font-size: 56px; }

/* Buttons */
.btn { display: block; width: 100%; padding: 16px; border-radius: 14px; border: none;
  font-size: 18px; font-weight: 600; margin-top: 14px; cursor: pointer; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:active { background: var(--accent-d); }
.btn.big { padding: 22px; font-size: 20px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.text { background: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.btn:disabled { opacity: .6; }
.btn-sm { padding: 8px 14px; border-radius: 10px; border: none; background: var(--accent); color: #fff; font-weight: 600; cursor: pointer; }
.btn-sm.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }

/* Card + inputs */
.card { background: var(--card); border-radius: 16px; padding: 18px; margin-bottom: 8px; }
label { display: block; font-size: 14px; color: var(--muted); margin: 12px 0 6px; }
.input { width: 100%; padding: 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card2); color: var(--text); font-size: 17px; font-family: inherit; }
.input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
textarea.input { resize: vertical; }
.row { display: flex; gap: 12px; }
.col { flex: 1; }

/* Sprachauswahl */
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lang-btn { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 17px; cursor: pointer; }
.lang-btn.sel { border-color: var(--accent); background: rgba(230,126,34,.15); }
.lang-btn .flag { font-size: 22px; }
.lang-mini { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 150px; }
.lang-mini .lang-btn { padding: 6px 8px; font-size: 0; gap: 0; border-radius: 8px; }
.lang-mini .lang-btn .flag { font-size: 20px; }

.home-head { margin-bottom: 16px; }

/* Aufnahme */
.rec-wrap { text-align: center; margin-top: 40px; }
.rec-btn { width: 140px; height: 140px; border-radius: 50%; border: none; background: var(--accent);
  color: #fff; font-size: 54px; cursor: pointer; box-shadow: 0 8px 30px rgba(230,126,34,.4); }
.rec-btn.recording { animation: pulse 1.2s infinite; background: #e74c3c; }
@keyframes pulse { 0%{transform:scale(1);} 50%{transform:scale(1.08);} 100%{transform:scale(1);} }
.rec-status { margin-top: 20px; font-size: 18px; min-height: 24px; }

/* Fotos */
.photo-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--card2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%;
  border: none; background: rgba(0,0,0,.6); color: #fff; font-size: 18px; cursor: pointer; }

/* Done */
.done-wrap { text-align: center; margin-top: 60px; }
.check { width: 90px; height: 90px; border-radius: 50%; background: var(--ok); color: #fff;
  font-size: 50px; line-height: 90px; margin: 0 auto 20px; }

/* Banner / Pending */
.install-banner { position: sticky; top: 0; z-index: 10; display: flex; align-items: center;
  justify-content: space-between; gap: 10px; background: var(--card2); padding: 10px 14px;
  border-bottom: 1px solid var(--line); font-size: 14px; }
.install-actions { display: flex; gap: 6px; flex-shrink: 0; }
.pending-bar { background: var(--accent-d); color: #fff; text-align: center; padding: 8px; font-size: 14px; }
