/* Champ OS – Oberfläche. Ruhig, hell, viel Luft; das Hochkant-Video ist die Hauptfigur.
   Eine Akzentfarbe (Grün) steht immer für "los / freigeben / auswählen". */
:root {
  --paper: #fbfbfd;
  --mist: #f2f2f5;
  --ink: #1d1d1f;
  --graphite: #6e6e73;
  --line: #d9d9de;
  --go: #0a7d43;
  --go-soft: #e6f4ec;
  --stop: #c9302c;
  --stop-soft: #fbe9e8;
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Inter", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--go) 55%, white); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }

/* ---------- Kopfzeile ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav-in { max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 56px; display: flex; align-items: center; gap: 28px; }
.brand { font-weight: 650; letter-spacing: -0.02em; text-decoration: none; font-size: 19px; white-space: nowrap; }
.tabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { text-decoration: none; padding: 7px 14px; border-radius: 999px; font-size: 15px; color: var(--graphite); white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav .quiet { font-size: 14px; color: var(--graphite); background: none; border: 0; cursor: pointer; padding: 6px 4px; white-space: nowrap; }
.nav .quiet:hover { color: var(--ink); }

/* ---------- Seite ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 56px 24px 120px; }
.statement { font-size: clamp(38px, 6.2vw, 68px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 650; margin: 0; max-width: 16ch; text-wrap: balance; }
.sub { font-size: 21px; line-height: 1.4; color: var(--graphite); margin: 18px 0 0; max-width: 46ch; }
h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 620; margin: 72px 0 20px; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }
.muted { color: var(--graphite); }
.small { font-size: 14px; line-height: 1.45; }
.rowline { border-top: 1px solid var(--line); }

/* ---------- Bedienelemente ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 22px; font-size: 16px; font-weight: 520; cursor: pointer; background: var(--mist); color: var(--ink); text-decoration: none; transition: transform .08s ease, background .15s ease; }
.btn:hover { background: #e8e8ed; }
.btn:active { transform: scale(.98); }
.btn.go { background: var(--go); color: #fff; }
.btn.go:hover { background: #096c3a; }
.btn.ink { background: var(--ink); color: #fff; }
.btn.ink:hover { background: #000; }
.btn.plain { background: none; padding-left: 6px; padding-right: 6px; color: var(--graphite); }
.btn.plain:hover { color: var(--ink); background: none; }
.btn.danger { color: var(--stop); }
.btn[disabled] { opacity: .45; cursor: default; }
.seg { display: inline-flex; background: var(--mist); border-radius: 999px; padding: 3px; margin-top: 36px; max-width: 100%; overflow-x: auto; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 7px 16px; font-size: 15px; cursor: pointer; color: var(--graphite); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
input[type="text"], input[type="password"], textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
label { display: block; font-size: 14px; color: var(--graphite); margin: 0 0 6px; }
.field { margin-bottom: 16px; }
.count { font-size: 13px; color: var(--graphite); font-variant-numeric: tabular-nums; }
.count.over { color: var(--stop); }
.badge { display: inline-block; font-size: 13px; line-height: 1; padding: 6px 10px; border-radius: 999px; background: var(--mist); color: var(--graphite); white-space: nowrap; }
.badge.you { background: var(--ink); color: #fff; }
.badge.done { background: var(--go-soft); color: var(--go); }
.badge.err { background: var(--stop-soft); color: var(--stop); }
.note { background: var(--mist); border-radius: 14px; padding: 14px 16px; }
.note.err { background: var(--stop-soft); color: #7d1d1a; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 15px; z-index: 50; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); max-width: calc(100vw - 32px); }

/* ---------- Hochkant-Kacheln ---------- */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 28px 22px; }
.tile { text-decoration: none; display: block; }
.frame { position: relative; aspect-ratio: 9 / 16; background: #000; border-radius: var(--radius); overflow: hidden; }
.frame video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.frame .hook { position: absolute; left: 8%; right: 8%; top: 19%; text-align: center; color: #fff; font-weight: 700; font-size: clamp(13px, 1.5vw, 16px); line-height: 1.25; letter-spacing: -0.01em; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.frame .hook span { display: block; }
.frame .band { position: absolute; left: 0; right: 0; top: 34.4%; height: 31.2%; background: linear-gradient(135deg, #2a2a2e, #17171a); display: grid; place-items: center; color: #8e8e93; font-size: 13px; text-align: center; padding: 0 10px; }
.tile:hover .frame { box-shadow: 0 14px 40px rgba(0, 0, 0, .18); }
.frame { transition: box-shadow .2s ease; }
.tile .cap { margin-top: 12px; }
.tile .cap h3 { font-size: 16px; }
.tile .cap .badge { margin-top: 8px; }

/* ---------- Listen ---------- */
.list { border-bottom: 1px solid var(--line); }
.item { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); text-decoration: none; }
.item:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.item .meta { color: var(--graphite); font-size: 15px; margin-top: 2px; }
.empty { padding: 40px 0; color: var(--graphite); font-size: 19px; max-width: 44ch; }

/* ---------- Clip-Seite ---------- */
.clip { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: 56px; align-items: start; }
.clip .frame { position: sticky; top: 84px; }
.clip h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 650; margin: 10px 0 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.choice { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); }
.choice .lines { font-size: 22px; line-height: 1.22; font-weight: 640; letter-spacing: -0.02em; }
.choice .lines span { display: block; }
.choice .why { color: var(--graphite); font-size: 15px; margin-top: 8px; max-width: 52ch; }
.choice .rec { color: var(--go); font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.checks { margin: 0; padding: 0; list-style: none; }
.checks li { padding: 10px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; font-size: 15px; }
.checks .ok { color: var(--go); }
.checks .bad { color: var(--stop); }
details { border-top: 1px solid var(--line); padding: 14px 0; margin-top: 28px; }
summary { cursor: pointer; font-weight: 560; }
.back { display: inline-block; color: var(--graphite); text-decoration: none; font-size: 15px; margin-bottom: 18px; }
.back:hover { color: var(--ink); }

/* ---------- Ablauf (Simon Service) ---------- */
.flow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 40px; }
.flow > div { padding: 22px 12px 20px 14px; border-right: 1px solid var(--line); }
.flow > div:first-child { padding-left: 0; }
.flow > div:last-child { border-right: 0; }
.flow .n { font-size: 40px; line-height: 1; font-weight: 640; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.flow .n.zero { color: #c7c7cc; }
.flow .l { font-size: 14px; color: var(--graphite); margin-top: 8px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { background: var(--mist); border-radius: 999px; padding: 7px 14px; font-size: 15px; }
.chip button { border: 0; background: none; cursor: pointer; color: var(--graphite); padding: 0 0 0 6px; }
.editor { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.editor textarea { min-height: 420px; font-size: 17px; }
.doc { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 14px 0; cursor: pointer; }
.doc[aria-current="true"] h3 { color: var(--go); }
.doc .meta { font-size: 14px; color: var(--graphite); margin-top: 2px; }

/* ---------- Anmeldung ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login form { width: min(380px, 100%); }
.login h1 { font-size: 44px; letter-spacing: -0.035em; line-height: 1.05; font-weight: 650; margin: 0 0 8px; }
.login .sub { font-size: 19px; margin: 0 0 32px; }
.login .btn { width: 100%; margin-top: 4px; padding: 14px; }
.login .err { color: var(--stop); font-size: 15px; min-height: 24px; margin-top: 14px; }

@media (max-width: 820px) {
  main { padding: 36px 20px 100px; }
  .nav-in { padding: 8px 16px 0; gap: 0 14px; height: auto; flex-wrap: wrap; justify-content: space-between; }
  .tabs { order: 3; flex: 0 0 100%; padding: 6px 0 10px; margin: 0 -4px; }
  .tabs a { font-size: 14px; padding: 6px 11px; }
  .clip { grid-template-columns: 1fr; gap: 28px; }
  .clip .frame { position: relative; top: auto; max-width: 300px; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow > div, .flow > div:first-child { border-right: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .flow > div:nth-child(-n+2) { border-top: 0; }
  .cols, .editor { grid-template-columns: 1fr; gap: 28px; }
  .choice { grid-template-columns: 1fr; }
  h2 { margin-top: 52px; }
  .shelf { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
