/* KLANG TV – Interview-Seite (mobil zuerst). Farben wie die Hauptseite. */
:root {
  --black: #0a0a0b;
  --black-soft: #0f0f11;
  --anthracite: #17171a;
  --anthracite-light: #202024;
  --border: #2a2a2e;
  --white: #ffffff;
  --gray: #b4b4ba;
  --gray-dim: #86868c;
  --violet: #9b1fe0;
  --violet-bright: #b445ff;
  --magenta: #c724b1;
  --red: #ff3b4e;
  --green: #34d17a;
  --font: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--black); color: var(--white); font-family: var(--font);
  font-size: 17px; line-height: 1.45; min-height: 100vh; min-height: 100dvh;
  background-image: radial-gradient(900px 500px at 50% -120px, rgba(155, 31, 224, 0.28), transparent 70%);
  background-repeat: no-repeat;
}
.app {
  max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  padding: max(16px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
}
.brand { text-align: center; padding: 6px 0 14px; }
.brand img { height: 46px; width: auto; max-width: 70%; object-fit: contain; }
.screen { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.screen[hidden] { display: none; }
h1 { font-size: 1.55rem; line-height: 1.2; margin: 0; letter-spacing: 0.01em; }
.lead { font-size: 1.05rem; color: var(--gray); margin: 0; }
.muted { color: var(--gray-dim); font-size: 0.95rem; margin: 0; text-align: center; }
.error {
  margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 0.95rem;
  background: rgba(255, 59, 78, 0.12); border: 1px solid rgba(255, 59, 78, 0.45); color: #ff9aa4;
}
.notice {
  padding: 12px 14px; border-radius: 12px; background: rgba(155, 31, 224, 0.14);
  border: 1px solid rgba(180, 69, 255, 0.45); color: #e3c4ff; font-size: 0.95rem;
}
.tips { margin: 0; padding: 0 0 0 1.1rem; color: var(--gray); display: grid; gap: 8px; }
.tips strong { color: var(--white); }

/* Formular */
.field { display: grid; gap: 6px; }
.field span { font-weight: 600; font-size: 0.95rem; }
.field small { font-weight: 400; color: var(--gray-dim); }
.field input[type="text"], .field input[type="email"] {
  width: 100%; padding: 15px 14px; font: inherit; color: var(--white);
  background: var(--anthracite); border: 1px solid var(--border); border-radius: 12px; outline: none;
}
.field input:focus { border-color: var(--violet-bright); box-shadow: 0 0 0 3px rgba(180, 69, 255, 0.25); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.88rem; color: var(--gray); line-height: 1.4; }
.check input { width: 24px; height: 24px; flex: 0 0 24px; margin: 2px 0 0; accent-color: var(--violet-bright); }

/* Schaltflächen */
.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; letter-spacing: 0.02em;
  width: 100%; min-height: 58px; padding: 14px 18px; border-radius: 999px; color: var(--white);
  transition: transform 0.12s ease, opacity 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.45; cursor: default; }
.btn[hidden] { display: none; }
.btn-primary { background: linear-gradient(90deg, var(--violet), var(--magenta)); box-shadow: 0 6px 22px rgba(155, 31, 224, 0.45); }
.btn-secondary { background: var(--anthracite-light); border: 1px solid var(--border); }
.btn-record { background: var(--red); box-shadow: 0 6px 22px rgba(255, 59, 78, 0.4); font-size: 1.1rem; }
.btn-row { display: grid; gap: 10px; margin-top: auto; padding-top: 6px; }

/* Bühne (Kamera) */
.stage {
  position: relative; width: 100%; max-height: 58vh; max-height: 58dvh; aspect-ratio: 9 / 16;
  margin: 0 auto; background: #000; border-radius: 18px; overflow: hidden; border: 1px solid var(--border);
}
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.stage #v-test, .stage #v-live { transform: scaleX(-1); }   /* Spiegelbild nur in der Vorschau */
.stage-q { max-height: 52vh; max-height: 52dvh; }
.stage-q.has-bg { background-size: cover; background-position: center; }
.meter { height: 10px; border-radius: 6px; background: var(--anthracite-light); overflow: hidden; }
.meter-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--violet-bright)); transition: width 0.08s linear; }

/* Aufnahme */
.rec-badge {
  position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); font-weight: 700; font-variant-numeric: tabular-nums;
}
.rec-badge[hidden] { display: none; }
.rec-badge i { width: 12px; height: 12px; border-radius: 50%; background: var(--red); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.count-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.45); font-size: 7rem; font-weight: 800; color: var(--white);
}
.count-overlay[hidden] { display: none; }
.q-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.q-count { font-weight: 700; color: var(--violet-bright); }
.dots { display: flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.dots i.done { background: var(--violet-bright); }
.dots i.now { background: var(--white); }
.q-text { font-size: 1.2rem; font-weight: 700; line-height: 1.3; margin: 0; text-align: center; min-height: 3.4em; }
.progress { height: 8px; border-radius: 6px; background: var(--anthracite-light); overflow: hidden; }
.progress[hidden] { display: none; }
.progress div { height: 100%; width: 0; background: var(--red); transition: width 0.25s linear; }

/* Ergebnisliste */
.results { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.results li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px;
  background: var(--anthracite); border: 1px solid var(--border); border-radius: 12px; font-size: 0.92rem;
}
.results button { font: inherit; color: var(--white); background: var(--anthracite-light); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; cursor: pointer; }

.spinner { width: 46px; height: 46px; margin: 40px auto 6px; border-radius: 50%; border: 4px solid var(--border); border-top-color: var(--violet-bright); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.noscript { padding: 16px; text-align: center; color: var(--gray); }

@media (min-width: 700px) { .app { padding-top: 32px; } .stage { max-height: 62vh; } }
@media (prefers-reduced-motion: reduce) { .rec-badge i, .spinner { animation: none; } }

.small { font-size: 0.85rem; min-height: 1.2em; }
.muted-inline { color: var(--gray); font-size: 0.9rem; white-space: nowrap; }
.notice-ok { background: rgba(52, 209, 122, 0.12); border-color: rgba(52, 209, 122, 0.5); color: #9bf0c0; }
.notice-err { background: rgba(255, 59, 78, 0.12); border-color: rgba(255, 59, 78, 0.45); color: #ff9aa4; }

/* Fragen-Seite: alles auf einen Bildschirm, Knöpfe fest unten (kein Scrollen mit dem Handy in der Hand) */
body.in-q .brand { display: none; }
body.in-q .app { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.screen-q { gap: 8px; min-height: 0; }
.screen-q .stage-q { flex: 1 1 0; min-height: 120px; max-height: none; width: 100%; aspect-ratio: auto; }
.screen-q #v-review { object-fit: contain; }
.screen-q .q-text { font-size: 1.05rem; min-height: 0; line-height: 1.25; }
.screen-q .muted { font-size: 0.85rem; line-height: 1.25; }
.screen-q .btn { min-height: 54px; padding: 10px 14px; }
.screen-q .btn-row { margin-top: 0; padding-top: 0; grid-template-columns: 1fr 1fr; }
.screen-q .btn-row .btn { grid-column: span 2; }
.screen-q #btn-keep, .screen-q #btn-retake { grid-column: span 1; }
.screen-q #btn-keep { order: 2; }
.screen-q #btn-retake { order: 1; }
.btn-stack { display: grid; gap: 10px; }
@media (max-height: 640px) { .screen-q .q-text { font-size: 0.98rem; } .screen-q .btn { min-height: 48px; } }

.consent-title { margin: 6px 0 -6px; font-weight: 700; font-size: 0.95rem; }
.consent-box { padding: 12px; background: var(--anthracite); border: 1px solid var(--border); border-radius: 12px; }
