/* Mission Drehtag · Kunden-Frontend
   Schriften lokal eingebunden (keine Verbindung zu Google), Lizenz: SIL Open Font License 1.1 */
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }

/* Layout: eine schmale Spalte wie ein Drehbuch – oben die Timeline (Fortschritt), darunter die Szenen als Liste, unten eine feste Aktionsleiste.
   Bewusst wenige Kästen: Abschnitte trennen Linien und Weißraum, echte Fotos tragen die Stimmung. */
:root {
  --paper: #F0F1EE;
  --surface: #FFFFFF;
  --ink: #16181D;
  --muted: #5B6069;
  --line: #D8DAD5;
  --tape: #EBB724;       /* Gaffa-Tape: Belohnung */
  --tape-ink: #16181D;
  --ok: #2B7F50;
  --shadow: 0 1px 0 rgba(22,24,29,.06), 0 8px 24px -12px rgba(22,24,29,.25);
  --f-display: "Bebas Neue", "Bebas Neue Pro", Impact, "Arial Narrow", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; /* nur noch im Kamera-Sucher der Beispiel-Clips */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111316; --surface: #1A1D21; --ink: #ECEDEA; --muted: #9DA2AA; --line: #2D3137;
    --tape: #F2C443; --tape-ink: #16181D; --ok: #4CC07D;
    --shadow: 0 1px 0 rgba(0,0,0,.4), 0 10px 26px -14px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #111316; --surface: #1A1D21; --ink: #ECEDEA; --muted: #9DA2AA; --line: #2D3137;
  --tape: #F2C443; --tape-ink: #16181D; --ok: #4CC07D;
  --shadow: 0 1px 0 rgba(0,0,0,.4), 0 10px 26px -14px rgba(0,0,0,.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { background: var(--paper); margin: 0; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
img, video { max-width: 100%; }
body { color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.col { max-width: 560px; margin: 0 auto; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }

/* Timeline (Fortschritt) */
.timeline { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); padding-block: 10px 12px; }
.timeline { padding-block: 8px 10px; }
.timeline .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pct { font-family: var(--f-display); font-size: 30px; line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.pct small { font-family: var(--f-body); font-size: 13px; color: var(--muted); margin-left: 6px; }
.tc { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; }
.strip { display: flex; gap: 4px; margin-top: 6px; }
.strip span { height: 8px; flex: 1; background: var(--line); border-radius: 999px; transition: background .4s; }
.strip span.start { flex: .45; }
.strip span.on { background: var(--ok); }

main { padding-block: 22px calc(var(--foot-h, 0px) + 48px); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.kicker, .mhead-meta { font-size: 14px; color: var(--muted); }
.hero { display: flex; flex-direction: column; }
.hero .kicker { margin-bottom: 10px; }
.hero-photo { margin: 0 0 0 18%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; display: block; }
.hero h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(52px, 15vw, 80px); line-height: .98; letter-spacing: .01em; max-width: 8ch; transform: rotate(-1.2deg); transform-origin: left bottom; }
.hero h1 span { background: var(--tape); color: var(--tape-ink); padding: .02em .14em 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero.has-photo h1 { margin-top: -.62em; position: relative; }
.hero .meta { margin-top: 14px; font-weight: 600; font-size: 16px; }
.hero p.lead { margin-top: 6px; max-width: 46ch; }

/* Begrüßung */
.hello { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.hello h2 { font-size: 24px; font-weight: 700; line-height: 1.25; }
.hello > p { font-size: 17px; line-height: 1.55; max-width: 44ch; }
.reward-line { display: flex; align-items: baseline; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--muted); max-width: 46ch; }
.reward-line b { font-family: var(--f-display); font-weight: 400; font-size: 22px; line-height: 1; letter-spacing: .03em; flex: none; }
.reward-line b span { background: var(--tape); color: var(--tape-ink); padding: .06em .18em 0; display: inline-block; transform: rotate(-2deg); }
.btn.start { padding: 16px 20px; font-size: 17px; border-radius: 999px; margin-top: 6px; }

/* Belohnung: Liste statt Kacheln, die reservierte Stufe als Stück Gaffa-Tape */
.reward { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.reward-title { font-family: var(--f-display); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: .02em; }
.reward-lead { max-width: 52ch; }
.reward-lead strong { font-weight: 700; }
.tiers { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.tier { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding-block: 10px; border-top: 1px solid var(--line); }
.tier:last-child { border-bottom: 1px solid var(--line); }
.tier b { font-family: var(--f-display); font-weight: 400; font-size: 26px; line-height: 1; letter-spacing: .03em; }
.tier b span { padding: .06em .18em 0; margin-left: -.18em; display: inline-block; }
.tier > span { font-size: 14px; line-height: 1.4; }
.tier em { font-style: normal; font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tier.reserved b span, .tier.unlocked b span { background: var(--tape); color: var(--tape-ink); transform: rotate(-2deg); }
.tier.reserved > span, .tier.unlocked > span { font-weight: 600; }
.tier.passed { color: var(--muted); }
.tier.passed b span { text-decoration: line-through; text-decoration-thickness: 2px; }

/* Szenen: nummerierte Liste wie ein Drehbuch */
.scenes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.scenes li { border-bottom: 1px solid var(--line); }
.scene { width: 100%; text-align: left; background: none; border: 0; padding: 16px 2px; display: grid; grid-template-columns: 40px minmax(0, 1fr) 28px; gap: 12px; align-items: start; }
.scene-n { font-family: var(--f-display); font-size: 44px; line-height: .85; color: var(--muted); font-variant-numeric: tabular-nums; }
.scene-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.scene-title { font-family: var(--f-display); font-size: 30px; line-height: 1; letter-spacing: .02em; }
.scene-desc { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.scene-meta { font-size: 13px; color: var(--muted); }
.scene-go { font-size: 20px; line-height: 1.3; color: var(--muted); justify-self: end; transition: transform .15s; }
.scene:hover .scene-go { transform: translateX(3px); }
.scene.started .scene-n { color: var(--ink); }
.scene.has-todo .scene-n { color: var(--ink); }
.scene.has-todo .scene-meta { color: var(--ink); font-weight: 600; }
.scene.has-todo .scene-meta::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--tape); margin-right: 6px; vertical-align: 1px; }
.scene.has-todo .scene-go { width: 28px; height: 28px; border-radius: 50%; background: var(--tape); color: var(--tape-ink); font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.scene.started .scene-meta { color: var(--ink); font-weight: 600; }
.scene.done .scene-n { color: var(--ok); }
.scene.done .scene-meta { color: var(--ok); font-weight: 600; }
.scene.done .scene-go { width: 28px; height: 28px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 15px; display: flex; align-items: center; justify-content: center; }

/* Kontakt am Ende der Übersicht */
.contact { display: flex; align-items: center; gap: 12px; font-size: 14.5px; line-height: 1.5; padding-top: 6px; }
.contact img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.contact a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }

.btn { border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 4px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.go { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.btn.wide { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }

/* Mission-Ansicht */
.back { background: none; border: 0; padding: 0; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); align-self: flex-start; }
.mhead .mhead-meta { margin-top: 18px; }
.mhead h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(48px, 13vw, 64px); line-height: .92; margin-top: 2px; }
.mhead p:last-child { color: var(--muted); margin-top: 6px; max-width: 46ch; }
/* Fragen: keine Kästen, nur eine Linie darüber */
.q { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.mhead + .q { border-top: 2px solid var(--ink); }
.q-title { font-size: 18px; font-weight: 700; line-height: 1.3; max-width: 34ch; }
.sub { font-size: 13.5px; color: var(--muted); }

/* Eine Frage pro Seite: Frage, darunter offen das Warum, dann die Eingabe */
.mhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mhead .back { font-weight: 600; color: var(--ink); text-decoration: none; font-size: 14.5px; }
.steps { display: flex; gap: 5px; flex: none; }
.steps i { width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: width .2s, background .2s; }
.steps i.ok { background: var(--ok); }
.steps i.now { width: 26px; background: var(--ink); }
.q.step, .mhead + .q.step { border-top: 0; padding-top: 4px; gap: 16px; }
.q.step .q-title { font-size: clamp(24px, 6.6vw, 30px); line-height: 1.18; letter-spacing: -.01em; max-width: 24ch; }
.q.step .q-title.is-small { font-size: clamp(21px, 5.6vw, 25px); line-height: 1.25; }
.q-kicker { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: -10px; }
.q-body { display: flex; flex-direction: column; gap: 12px; }

.why-box { background: var(--surface); border-left: 4px solid var(--tape); border-radius: 0 6px 6px 0; padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.why-lbl { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; }
.why-faces { display: flex; flex: none; }
.why-faces img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); }
.why-faces img + img { margin-left: -9px; }
.why-lead { font-size: 16.5px; font-weight: 600; line-height: 1.4; max-width: 40ch; }
.why-box p:not(.why-lbl):not(.why-lead) { font-size: 14.5px; line-height: 1.5; max-width: 58ch; color: var(--muted); }

/* Erledigt oder To-do */
.decide { display: flex; flex-direction: column; gap: 10px; }
/* Runde Antwortfelder, schon vor der Auswahl in ihrer Farbe angedeutet */
.decide button { display: flex; align-items: center; gap: 12px; text-align: left; border-width: 2px; border-style: solid; border-radius: 999px; padding: 13px 20px 13px 14px; font-weight: 700; font-size: 16px; transition: background .2s, color .2s; }
.decide i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid; flex: none; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 13px; font-weight: 800; }
.decide button { border-color: var(--line); background: var(--surface); color: var(--ink); }
.decide-yes i { border-color: var(--ok); color: var(--ok); }
.decide-todo i { border-color: var(--tape); color: var(--tape-ink); }
.decide-na { color: var(--muted); font-weight: 600 !important; }
.decide-na i { border-color: var(--line); }
.decide-yes[aria-pressed="false"] i::after, .decide-todo[aria-pressed="false"] i::after, .decide-na[aria-pressed="false"] i::after { content: ""; }
.decide-yes[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.decide-yes[aria-pressed="true"] i::after { content: "✓"; }
.decide-todo[aria-pressed="true"] i::after { content: "!"; }
.decide-na[aria-pressed="true"] i::after { content: "–"; }
.decide-yes[aria-pressed="true"] i { border-color: #fff; color: #fff; }
.decide-todo[aria-pressed="true"] { background: var(--tape); border-color: var(--tape); color: var(--tape-ink); }
.decide-todo[aria-pressed="true"] i { border-color: var(--tape-ink); }
.decide-na[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.decide-na[aria-pressed="true"] i { border-color: var(--paper); }
/* Nach einer Wahl treten die anderen Antworten zurück */
.decide:has([aria-pressed="true"]) button[aria-pressed="false"] { opacity: .55; }
.conds { display: flex; flex-direction: column; }
.cond { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; border-top: 1px solid var(--line); }
.cond:last-child { border-bottom: 1px solid var(--line); }
.cond p { font-size: 15px; font-weight: 500; line-height: 1.4; }
.seg { display: flex; flex: none; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 8px 12px; font-size: 13.5px; font-weight: 600; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"]:first-child { background: var(--ok); color: #fff; }
.seg button[aria-pressed="true"]:last-child { background: var(--tape); color: var(--tape-ink); }

/* To-do-Liste in Übersicht und Drehplan */
.todo { background: var(--surface); border-left: 4px solid var(--tape); border-radius: 0 6px 6px 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.todo-title { font-family: var(--f-display); font-weight: 400; font-size: 26px; line-height: 1; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; }
.todo-title span { font-family: var(--f-body); font-size: 13px; font-weight: 700; background: var(--tape); color: var(--tape-ink); border-radius: 999px; padding: 2px 8px; letter-spacing: 0; }
.todo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.todo-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.4; font-weight: 500; }
.todo-list button { width: 24px; height: 24px; flex: none; border: 2px solid var(--ink); border-radius: 4px; background: var(--surface); padding: 0; margin-top: 1px; }
.todo-list button:hover { background: var(--ok); border-color: var(--ok); }

.confirm { display: flex; align-items: center; gap: 12px; border: 2px solid var(--ink); border-radius: 6px; padding: 14px 16px; font-weight: 700; font-size: 16px; cursor: pointer; background: var(--surface); }
.confirm input { width: 24px; height: 24px; margin: 0; accent-color: var(--ok); flex: none; }
.confirm:has(input:checked) { border-color: var(--ok); background: var(--ok); color: #fff; }
.confirm:has(input:checked) + .sub { display: none; }

.step-nav { display: flex; gap: 8px; }
.step-nav .btn.ghost { flex: none; }
.step-nav .btn.wide { flex: 1; width: auto; }

/* Coins */
.coins-left { display: flex; align-items: baseline; gap: 8px; }
.coins-left .big { font-family: var(--f-display); font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.coins-left.zero .big { color: var(--ok); }
.coin-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding-block: 10px; border-top: 1px solid var(--line); }
.coin-row .lbl b { display: block; font-weight: 600; }
.coin-row .lbl span { font-size: 13px; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 18px; line-height: 1; }
.stepper output { min-width: 34px; text-align: center; font-family: var(--f-display); font-size: 24px; font-variant-numeric: tabular-nums; }
.pips { grid-column: 1 / -1; display: flex; gap: 4px; }
.pips i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.pips i.on { background: var(--tape); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { text-align: left; border: 1px solid var(--line); background: var(--surface); padding: 8px 12px; border-radius: 999px; font-size: 14px; line-height: 1.2; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.group-lbl { font-size: 13px; font-weight: 600; }

textarea, input[type="text"], input[type="tel"] { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 4px; padding: 10px 12px; font-size: 15px; }
textarea { min-height: 84px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }

.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ok); }
.check span { font-weight: 600; }
.check-block { display: flex; flex-direction: column; gap: 6px; padding-block: 12px; border-top: 1px dashed var(--line); }
.check-block:first-of-type { border-top: 0; padding-top: 0; }

/* Swipe-Deck */
.deck { position: relative; width: min(100%, 300px); aspect-ratio: 3 / 4; margin: 4px auto 0; }
.clip { position: absolute; inset: 0; border-radius: 8px; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; box-shadow: var(--shadow); touch-action: pan-y; user-select: none; transition: transform .3s ease, opacity .3s ease; }
.clip.behind { transform: scale(.95) translateY(10px); opacity: .7; }
.clip.dragging { transition: none; }
.clip .top { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; letter-spacing: .05em; }
.clip .top .r { display: flex; align-items: center; gap: 6px; }
.clip .top .r i { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.clip h3 { font-family: var(--f-display); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: .02em; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.clip .ph { font-family: var(--f-mono); font-size: 10.5px; opacity: .8; margin-top: 8px; }
.clip .stamp { position: absolute; top: 46px; padding: 4px 10px; border: 3px solid currentColor; border-radius: 4px; font-family: var(--f-display); font-size: 26px; letter-spacing: .04em; opacity: 0; transform: rotate(-12deg); background: rgba(0,0,0,.25); }
.clip .stamp.yes { left: 14px; color: #7CF0A8; }
.clip .stamp.no { right: 14px; color: #FF9A8F; transform: rotate(12deg); }
.swipe-btns { display: flex; gap: 10px; justify-content: center; }
.swipe-btns .btn { flex: 1; max-width: 160px; }
.deck-count { text-align: center; font-size: 13px; color: var(--muted); }
.profile { border-left: 4px solid var(--tape); padding: 4px 0 4px 14px; display: flex; flex-direction: column; gap: 6px; }
.profile-lbl { font-size: 14px; color: var(--muted); }
.profile b { font-family: var(--f-display); font-weight: 400; font-size: 34px; line-height: 1; letter-spacing: .02em; }

/* Themenkarten */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tcard { position: relative; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; min-height: 92px; display: flex; flex-direction: column; }
.tcard .pick { flex: 1; text-align: left; border: 0; background: transparent; padding: 12px 12px 30px; color: inherit; font-size: 14px; font-weight: 600; line-height: 1.3; border-radius: 6px; }
.tcard .cat { position: absolute; left: 12px; bottom: 9px; font-size: 12px; color: var(--muted); pointer-events: none; }
.tcard.sel { background: var(--ink); border-color: var(--ink); }
.tcard.sel .pick, .tcard.sel .cat { color: var(--paper); }
/* Top 3 in Reihenfolge antippen */
.ranks { display: flex; flex-direction: column; gap: 8px; }
.rank { display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 12px 14px; font-weight: 600; font-size: 15px; }
.rank-n { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 2px dashed var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 20px; line-height: 1; }
.rank[aria-pressed="true"] { border: 2px solid var(--ink); padding: 11px 13px; }
.rank[aria-pressed="true"] .rank-n { background: var(--tape); border: 0; color: var(--tape-ink); }
.tcard .star { position: absolute; right: 6px; bottom: 6px; width: 34px; height: 30px; border-radius: 4px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: var(--paper); font-size: 16px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.tcard .star[aria-pressed="true"] { background: var(--tape); border-color: var(--tape); color: var(--tape-ink); font-family: var(--f-display); font-size: 20px; }

/* Personen */
.person { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 38px; gap: 6px; }
.person .rm { border: 1px solid var(--line); background: var(--surface); border-radius: 4px; font-size: 18px; }

/* Optionskarten */
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.opt b { font-weight: 600; }
.opt span { font-size: 13px; color: var(--muted); }
.opt[aria-pressed="true"] { border: 2px solid var(--ink); padding: 11px 13px; }

/* Untere Aktionsleiste */
.mfoot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--surface); border-top: 1px solid var(--line); padding-block: 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
.mfoot .col { display: flex; flex-direction: column; gap: 8px; }
.missing { font-size: 13px; color: var(--muted); }
.missing b { color: var(--ink); font-weight: 600; }

/* Ergebnis */
.result h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(48px, 13vw, 68px); line-height: .9; }
.sheet { margin: 0; border-top: 2px solid var(--ink); }
.sheet-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sheet-row dt { font-size: 13.5px; font-weight: 600; color: var(--muted); padding-top: 2px; }
.sheet-row dd { margin: 0; min-width: 0; }
.bars { display: flex; flex-direction: column; gap: 6px; }
.bar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 34px; gap: 8px; align-items: center; font-size: 13px; }
.bar .track { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--tape); }
.bar .v { font-variant-numeric: tabular-nums; text-align: right; font-size: 13px; }
.big-word { font-family: var(--f-display); font-size: 28px; line-height: 1; letter-spacing: .02em; }
.wa { white-space: pre-wrap; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 12px; font-size: 14px; }
.unlock { display: flex; flex-direction: column; gap: 8px; }
.unlock b { font-family: var(--f-display); font-weight: 400; font-size: 34px; line-height: 1.05; }
.unlock b span { background: var(--tape); color: var(--tape-ink); padding: .04em .16em 0; display: inline-block; transform: rotate(-1.5deg); }
.unlock p { font-weight: 500; max-width: 46ch; }

#mdt-toast { position: fixed; left: 50%; bottom: calc(var(--foot-h, 0px) + 16px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 4px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 10; max-width: calc(100% - 32px); }
#mdt-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 420px) {
  .tier { grid-template-columns: 78px minmax(0, 1fr) auto; gap: 10px; }
  .sheet-row { grid-template-columns: 1fr; gap: 4px; }
  .bar { grid-template-columns: 96px minmax(0, 1fr) 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.display-xl { font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 12vw, 64px); line-height: .92; }
.lead { color: var(--muted); max-width: 60ch; }
.timeline { padding-top: calc(10px + env(safe-area-inset-top, 0px)); top: 0; }
.save-state { font-size: 12.5px; color: var(--muted); }
.save-state.err { color: var(--ink); font-weight: 700; }
.staffbar { background: var(--tape); color: var(--tape-ink); font-size: 13px; padding-block: 7px; }
.staffbar .col { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.kickoff { border: 2px dashed var(--tape); border-radius: 6px; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); }
.kickoff-note { font-size: 13px; font-weight: 600; color: var(--muted); }
.kickoff h2 { font-family: var(--f-display); font-weight: 400; font-size: 28px; line-height: 1; }
.kickoff label { font-size: 14px; font-weight: 600; display: flex; flex-direction: column; gap: 6px; }
.kickoff textarea { min-height: 56px; }
.clip video, .clip .poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.clip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.65) 100%); z-index: 0; pointer-events: none; }
.clip > * { position: relative; z-index: 1; }
.clip .stamp { position: absolute; z-index: 2; }
.clip .sound { position: absolute; right: 12px; bottom: 12px; z-index: 3; border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.35); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.privacy { font-size: 12.5px; color: var(--muted); }
.privacy a { color: inherit; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Aushang (A4) */
.poster-wrap { padding-block: 24px 64px; }
.poster { background: #fff; color: #16181D; width: 100%; max-width: 210mm; margin: 0 auto; aspect-ratio: 210 / 297; padding: 7% 8%; display: flex; flex-direction: column; gap: 4.5%; box-shadow: var(--shadow); overflow: hidden; }
.poster .clapbar { height: 14px; flex: none; background: repeating-linear-gradient(-55deg, #16181D 0 14px, #fff 14px 28px); margin: -7.8% -9% 0; }
.poster h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(36px, 9vw, 86px); line-height: .9; }
.poster .why { font-size: clamp(14px, 2.4vw, 20px); font-weight: 500; }
.poster h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 4vw, 34px); line-height: 1; margin-bottom: 8px; }
.poster ol, .poster ul { margin: 0; padding-left: 1.2em; font-size: clamp(13px, 2.2vw, 18px); display: flex; flex-direction: column; gap: 4px; }
.poster .bottom { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.poster .qr svg, .poster .qr img { width: clamp(90px, 22vw, 150px); height: auto; display: block; }
.poster .qr span { display: block; font-size: 12px; margin-top: 6px; }
.poster .sig { font-size: 13px; color: #5B6069; }

@media print {
  @page { size: A4; margin: 12mm; }
  html, body { background: #fff !important; }
  .timeline, .staffbar, #mdt-foot, .noprint, .back, details.why summary { display: none !important; }
  main { padding: 0 !important; }
  .sheet-row, .q, .unlock { break-inside: avoid; box-shadow: none; }
  .poster-wrap { padding: 0; }
  .poster { box-shadow: none; max-width: none; width: 100%; aspect-ratio: auto; height: 270mm; padding: 14mm 14mm; }
  .poster .clapbar { margin: -14mm -14mm 0; height: 10mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Startseite: ein Foto, ein Satz, ein Feld */
body.start { min-height: 100vh; display: flex; flex-direction: column; }
.s-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: calc(14px + env(safe-area-inset-top, 0px)) 14px; }
.s-brand { font-family: var(--f-display); font-size: 24px; letter-spacing: .04em; line-height: 1; }
.s-top-call { color: var(--ink); font-size: 14px; text-underline-offset: 3px; }
.s-main { flex: 1; display: flex; flex-direction: column; padding-bottom: 40px; }
.s-hero { margin: 4px 0 0 18%; aspect-ratio: 4 / 5; max-height: 64vh; overflow: hidden; background: var(--line); }
.s-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-panel { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; max-width: 640px; padding-block: 28px 0; }
.has-hero .s-panel { margin-top: -72px; padding-top: 0; }
.s-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(52px, 15vw, 112px); line-height: .98; letter-spacing: .01em; max-width: 9ch; transform: rotate(-1.2deg); transform-origin: left bottom; }
.s-title span { background: var(--tape); color: var(--tape-ink); padding: .02em .14em .0em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.s-lead { font-size: 17px; line-height: 1.5; max-width: 36ch; color: var(--ink); }
.s-form { display: flex; flex-direction: column; gap: 8px; }
.s-label { font-size: 13px; font-weight: 600; }
.s-field { display: flex; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; background: var(--surface); }
.s-field input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 14px 14px; font-size: 18px; }
.s-field input:focus-visible { outline: none; }
.s-field:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--tape) 60%, transparent); }
.s-field button { border: 0; background: var(--ink); color: var(--paper); font-weight: 700; padding: 0 18px; font-size: 16px; white-space: nowrap; }
.s-field button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 380px) { .s-field { flex-direction: column; } .s-field button { padding: 14px; } }
.s-done { font-size: 20px; line-height: 1.45; font-weight: 500; max-width: 34ch; }
.s-done .linkbtn { margin-top: 6px; }
.find-error { color: var(--ink); font-size: 14px; font-weight: 700; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.s-contact { display: flex; align-items: center; gap: 12px; margin-top: 6px; font-size: 15px; line-height: 1.5; }
.s-contact p { max-width: 44ch; }
.s-contact a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }
.s-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.s-photos { display: flex; align-items: flex-start; gap: 12px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); margin-top: 44px; }
.s-photo { display: block; object-fit: cover; min-width: 0; }
.s-photo-a { width: 58%; aspect-ratio: 3 / 4; }
.s-photo-b { width: 38%; aspect-ratio: 1; margin-top: 56px; }
.s-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); padding-block: 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
.s-foot a { color: inherit; }
@media (min-width: 900px) {
  .s-main { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr; column-gap: 0; align-items: start; }
  .s-hero { grid-column: 1; grid-row: 1 / 3; margin: 0; aspect-ratio: auto; height: min(78vh, 760px); max-height: none; }
  .s-panel, .has-hero .s-panel { grid-column: 2; grid-row: 1; margin-top: 10vh; padding-top: 0; padding-right: max(32px, env(safe-area-inset-right, 0px)); }
  .has-hero .s-title { margin-left: -30%; }
  .s-photos { grid-column: 2; grid-row: 2; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: 32px; margin-top: 40px; }
  body.start:not(.has-hero) .s-main { display: flex; }
  body.start:not(.has-hero) .s-panel { margin-top: 12vh; }
}

/* Kurzfassung: Notiz vom Team, wichtige Angaben wie mit Textmarker im Drehbuch */
.note { display: flex; flex-direction: column; gap: 14px; padding-block: 8px 4px; }
.note-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 9vw, 46px); line-height: .95; letter-spacing: .01em; max-width: 14ch; }
.note-text { display: flex; flex-direction: column; gap: 12px; }
.note-text p { font-size: 17.5px; line-height: 1.62; max-width: 60ch; }
.note mark { color: inherit; background: linear-gradient(transparent 58%, color-mix(in srgb, var(--tape) 70%, transparent) 58%, color-mix(in srgb, var(--tape) 70%, transparent) 92%, transparent 92%); padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.note-sign { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.note-faces { display: flex; flex: none; }
.note-sign img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); }
.note-faces img + img { margin-left: -12px; }
.note-sign span { font-family: var(--f-display); font-size: 24px; letter-spacing: .03em; line-height: 1; }
.plan-sub { font-size: 15px; font-weight: 700; margin-top: 18px; }

/* Rangfolge: oben das Wichtigste, nach unten kleiner */
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rk { position: relative; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 2px solid var(--ink); border-radius: 999px; padding-inline: 16px 8px; touch-action: none; user-select: none; cursor: grab; transition: transform .18s ease, box-shadow .18s; min-width: 0; max-width: 100%; }
.rk:first-child { background: var(--ink); color: var(--paper); }
.rk.dragging { transition: none; z-index: 2; cursor: grabbing; box-shadow: 0 12px 28px -10px rgba(0,0,0,.45); }
.rk-n { font-family: var(--f-display); font-size: 1.4em; line-height: 1; width: 1.1em; text-align: center; flex: none; }
.rk-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rk-body b { font-weight: 700; line-height: 1.2; }
.rk-body small { font-size: .72em; opacity: .75; line-height: 1.3; margin-top: 2px; }
.rk-tools { display: flex; gap: 2px; flex: none; }
.rk-btn { width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: inherit; font-size: 15px; opacity: .65; }
.rk-btn:hover { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); }
.rk-btn[disabled] { opacity: .15; cursor: default; }
.rank-confirm { align-self: flex-start; border-radius: 999px; }
.rank-ok { color: var(--ok); font-weight: 600; font-size: 14px; }

/* Stichworte und Reel-Ideen */
.terms { display: flex; flex-wrap: wrap; gap: 8px; }
.term { display: inline-flex; align-items: center; gap: 4px; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 6px 6px 6px 14px; font-weight: 600; font-size: 15px; }
.term button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: transparent; color: inherit; font-size: 16px; line-height: 1; opacity: .7; }
.term-add { display: flex; gap: 8px; }
.term-add input { flex: 1; min-width: 0; border-radius: 999px; padding-inline: 16px; }
.term-add .btn { border-radius: 999px; flex: none; }
.ideas { display: flex; flex-direction: column; gap: 8px; }
.idea { display: flex; gap: 12px; align-items: flex-start; text-align: left; border: 2px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px 14px; }
.idea i { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--ok); flex: none; margin-top: 1px; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 800; color: #fff; }
.idea b { display: block; font-size: 15.5px; line-height: 1.3; }
.idea span span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.idea[aria-pressed="true"] { border-color: var(--ok); }
.idea[aria-pressed="true"] i { background: var(--ok); }
.idea[aria-pressed="true"] i::after { content: "✓"; }
.thinking { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: mdt-dot 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes mdt-dot { 0%, 100% { opacity: .2; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

/* Upload: Aufwand und Empfehlung */
.effort { background: var(--surface); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.effort ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.effort p { font-weight: 700; }
.opt { position: relative; border-radius: 14px; }
.opt-reco { border: 2px solid var(--ok); padding: 13px 13px; }
.opt .badge { position: absolute; top: -10px; right: 12px; font-style: normal; font-size: 12px; font-weight: 700; background: var(--ok); color: #fff; border-radius: 999px; padding: 2px 10px; }
.opt[aria-pressed="true"] { border: 2px solid var(--ink); }
.opt-reco[aria-pressed="true"] { background: color-mix(in srgb, var(--ok) 10%, var(--surface)); border-color: var(--ok); }

/* Vollbild nach jeder Szene */
#mdt-cheer { position: fixed; inset: 0; z-index: 20; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; padding: calc(24px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); opacity: 0; transition: opacity .3s ease; }
#mdt-cheer.show { opacity: 1; }
.cheer-in { max-width: 460px; width: 100%; display: flex; flex-direction: column; gap: 16px; transform: translateY(12px) scale(.98); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
#mdt-cheer.show .cheer-in { transform: none; }
.cheer-meta { font-size: 14px; opacity: .7; font-weight: 600; }
#mdt-cheer h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(54px, 16vw, 92px); line-height: .98; letter-spacing: .01em; }
#mdt-cheer h2 span { background: var(--tape); color: var(--tape-ink); padding: .02em .14em 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; display: inline; line-height: 1.12; transform: rotate(-1.5deg); }
#mdt-cheer p { font-size: 18px; line-height: 1.5; max-width: 34ch; }
.cheer-strip { display: flex; gap: 6px; margin-top: 8px; }
.cheer-strip i { flex: 1; height: 10px; border-radius: 999px; background: rgba(255,255,255,.18); }
.cheer-strip i.on { background: var(--ok); }
.cheer-count { font-size: 14px !important; opacity: .75; }
.cheer-btn { border-radius: 999px; padding: 16px 22px; font-size: 17px; align-self: stretch; margin-top: 8px; }
