/* ==========================================================================
   COURSE PAGES (preview 7) — the exits of the hub's metro lines.
   One file for all nine pages (business / alltag / github x de / en / he).
   Same tokens and fonts as hub/7/index.html; no 3D here on purpose: these are
   calm learning-zone pages (peer feedback 2026-10-19: structure, not a show).
   The one signature element is the STATION STRIP: the course's stops on one
   line that light up stop by stop as you read (kurse.js, section 2).
   Sections, named like the data-sid of the HTML they style:
   tokens · top · sign · lede · cta · strip · stops · facts · episodes · anmelden · foot
   ========================================================================== */

/* ======== TOKENS — copied from hub/7 so the exit and the hub read as one system ======== */
:root{
  --ground:#F3ECDD;
  --ink:#1B1F2A;
  --muted:#565B68;
  --business:#1F8A70;
  --alltag:#C98A12;
  --github:#0A5FD6;
  --pin:#E8590C;          /* "you are here": only ever the way back into a course */
  --lit:#FFD27A;          /* the hub's warm station glow (LIT in hub/7/app.js) */
  --card:#FFFFFF;
  --sans:"Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --serif:"Metro Serif", Georgia, serif;
  --c:var(--business);    /* the page's line colour; each <body> sets its own */
  --c-on:#fff;            /* text on the line colour (dark on amber, see body.alltag) */
}
body.alltag{ --c:var(--alltag); --c-on:var(--ink); }
body.github{ --c:var(--github); }

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{ margin:0; background:var(--ground); color:var(--ink); font:17px/1.6 var(--sans); }
a{ color:inherit; }
:focus-visible{ outline:3px solid var(--ink); outline-offset:3px; border-radius:6px; }
.skip-link{ position:absolute; inset-inline-start:1rem; top:-4rem; z-index:20; background:var(--ink); color:#fff; padding:.5rem .8rem; border-radius:6px; }
.skip-link:focus{ top:1rem; }
.sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.wrap{ width:min(62rem, 100% - 2.5rem); margin-inline:auto; }
.col{ max-width:40rem; }
h2{ font:700 clamp(1.45rem,2.4vw,1.85rem)/1.2 var(--serif); margin:0 0 .8rem; }

/* ======== TOP — back to the hub on one side, the language switch on the other ======== */
.top{ display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1.1rem 0 .9rem; font-size:.9375rem; }
/* the hub's station ring: this link leads back onto the map */
.back{ display:inline-flex; align-items:center; gap:.5rem; min-height:44px; text-decoration:none; font-weight:600; }
.back::before{ content:""; width:14px; height:14px; border-radius:50%; background:#fff; border:4px solid var(--ink); flex:none; }
.back:hover{ text-decoration:underline; text-underline-offset:3px; }
.lang{ display:flex; align-items:center; gap:.15rem; color:var(--muted); }
.lang a, .lang b{ display:inline-block; padding:.55rem .35rem; }
.lang b{ color:var(--ink); font-weight:600; }

/* ======== SIGN — the exit sign you just walked under (same panel as the 3D sign) ======== */
/* hub/7/app.js exitTexture(): ink panel, line-colour bar on the reading-start edge,
   letter disc + "Ausgang ->" small on top, the course name as the big text. */
.sign{ position:relative; background:var(--ink); color:#fff; border-radius:14px; overflow:hidden;
  padding:1rem 1.4rem 1.15rem 2.2rem; padding-inline:2.2rem 1.4rem; }
.sign::before{ content:""; position:absolute; inset-block:0; inset-inline-start:0; width:12px; background:var(--c); }
.sign-top{ display:flex; align-items:center; gap:.7rem; font:600 .9375rem/1 var(--sans); color:rgba(255,255,255,.82); }
.disc{ display:grid; place-items:center; width:34px; height:34px; border-radius:50%; background:var(--c); color:var(--c-on); font:700 1.25rem/1 var(--sans); flex:none; }
.arrow{ width:22px; height:14px; flex:none; }
[dir="rtl"] .arrow{ transform:scaleX(-1); }   /* the arrow points the way the text reads */
.sign-top .brandline{ margin-inline-start:auto; font-weight:400; color:rgba(255,255,255,.7); }
.sign h1{ margin:.55rem 0 .7rem; font:700 clamp(2rem,5.4vw,3.4rem)/1.05 var(--sans); letter-spacing:-.01em; }
.meta{ display:flex; flex-wrap:wrap; gap:.4rem; margin:0; padding:0; list-style:none; font-size:.875rem; }
.meta li{ padding:.18rem .6rem; border:1.5px solid rgba(255,255,255,.45); border-radius:999px; }
.meta li.free{ background:var(--c); color:var(--c-on); border-color:var(--c); font-weight:600; }

/* ======== LEDE — the promise, in the hub's serif ======== */
.lede{ margin:1.6rem 0 .6rem; font:600 clamp(1.3rem,2.6vw,1.75rem)/1.3 var(--serif); text-wrap:balance; }
.intro{ margin:0 0 1rem; color:var(--ink); }

/* ======== CTA — one action: sign up (new) or continue (returning) ======== */
.cta{ margin:1.1rem 0 0; }
.pay{ margin:0 0 1rem; padding-inline-start:.9rem; border-inline-start:4px solid var(--c); font-weight:600; }
.hint{ margin:0 0 .5rem; color:var(--muted); min-height:1.6em; }
.btn{ display:inline-flex; align-items:center; gap:.65rem; min-height:48px; padding:.7rem 1.2rem .7rem 1rem; padding-inline:1rem 1.2rem;
  background:var(--ink); color:#fff; border:0; border-radius:12px; font:600 1rem/1.2 var(--sans); text-decoration:none; cursor:pointer;
  transition:transform .18s ease, background-color .18s ease; }
.btn:hover{ background:#2b3142; transform:translateY(-1px); }
.btn:active{ transform:translateY(2px); transition-duration:.06s; }
.btn::before{ content:""; flex:none; width:12px; height:12px; border-radius:50%; border:3px solid var(--c); background:#fff; }
/* returning: the ring turns into the hub's orange "you are here" pin */
.is-back .btn::before{ border-color:var(--pin); }
.note{ margin:.6rem 0 0; min-height:1.5em; font-size:.95rem; color:var(--muted); }

/* ======== STRIP — the signature: this course's stops on one line ======== */
/* Sticky while you read the stops below it, so the line shows where you are.
   Decorative (aria-hidden): the ordered list under it carries the same content. */
.strip-wrap{ position:sticky; top:0; z-index:5; margin:2.2rem 0 0; padding:.9rem 0 .6rem;
  background:linear-gradient(var(--ground) 82%, rgba(243,236,221,0)); }
.strip{ --n:7; --k:1; position:relative; display:grid; grid-template-columns:repeat(var(--n), 1fr); margin:0; padding:0; list-style:none; }
/* the track: pale over the whole length, the line colour up to the lit stop */
.strip::before, .strip::after{ content:""; position:absolute; top:11px; height:6px; border-radius:3px;
  inset-inline-start:calc(50% / var(--n)); }
.strip::before{ inset-inline-end:calc(50% / var(--n)); background:color-mix(in srgb, var(--c) 22%, transparent); }
.strip::after{ width:calc((100% - 100% / var(--n)) * (var(--k) - 1) / (var(--n) - 1)); background:var(--c);
  transition:width .45s cubic-bezier(.3,.8,.3,1); }
.stop{ position:relative; z-index:1; display:grid; justify-items:center; gap:.35rem; cursor:default; }
.stop .dot{ width:28px; height:28px; border-radius:50%; background:#fff; border:4px solid var(--ink);
  transition:background-color .25s ease, box-shadow .3s ease, transform .25s ease; }
.stop .lb{ font-size:.8125rem; font-weight:600; color:var(--muted); white-space:nowrap; transition:color .25s ease; }
.stop.on .dot{ background:var(--c); }
.stop.on .lb{ color:var(--ink); }
/* the stop being read (or pointed at) glows like a lit station in the hub */
.stop.now .dot{ box-shadow:0 0 0 5px var(--lit); transform:scale(1.08); }
/* the wave on arrival: each station flashes once, 70 ms apart (same rhythm as the hub) */
.stop.flash .dot{ box-shadow:0 0 0 6px var(--lit); background:var(--lit); }
/* returning learner: the orange marker sits on their day */
.stop.here .dot{ border-color:var(--pin); }
.stop.here .lb{ color:var(--pin); }

/* ======== STOPS — the days (or episodes) as readable text ======== */
.stops{ list-style:none; margin:.8rem 0 0; padding:0; display:grid; gap:.7rem; }
.item{ display:grid; grid-template-columns:4.6rem 1fr; gap:.2rem 1rem; padding:1rem 1.15rem; background:var(--card); border:2px solid transparent;
  border-radius:12px; transition:border-color .25s ease; }
.item .no{ font:700 .9375rem/1.5 var(--sans); color:var(--muted); }
.item p{ margin:0; }
.item.now{ border-color:var(--c); }
.item.now .no{ color:var(--ink); }
.days-note{ margin:1rem 0 0; color:var(--muted); }

/* ======== FACTS — what you get, what this is not, what you need ======== */
.block{ margin:3rem 0 0; }
.facts{ margin:0; padding:0; list-style:none; display:grid; gap:.6rem; }
.facts li{ padding-inline-start:1.4rem; position:relative; }
.facts li::before{ content:""; position:absolute; inset-inline-start:0; top:.55em; width:10px; height:10px; border-radius:50%; border:3px solid var(--c); background:#fff; }

/* ======== EPISODES (GitHub page) — seven cards, each with a click-to-load player ======== */
.eps{ list-style:none; margin:.8rem 0 0; padding:0; display:grid; gap:1rem; grid-template-columns:repeat(auto-fill, minmax(17rem, 1fr)); }
.ep{ background:var(--card); border:2px solid transparent; border-radius:12px; overflow:hidden; transition:border-color .25s ease; }
.ep.now{ border-color:var(--c); }
.ep h3{ margin:0; padding:.75rem 1rem .85rem; font:600 1rem/1.35 var(--sans); }
.ep h3 .no{ display:block; font-size:.8125rem; color:var(--muted); font-weight:600; }
/* the facade: no YouTube request at all until the click (privacy + no autoplay, so a view is a real view) */
.yt{ position:relative; display:grid; place-items:center; width:100%; aspect-ratio:16/9; margin:0; padding:0; border:0;
  background:var(--ink); color:#fff; font:600 .9375rem/1.3 var(--sans); cursor:pointer; }
.yt::before{ content:""; position:absolute; inset-block:0; inset-inline-start:0; width:8px; background:var(--c); }
.yt .play{ display:grid; place-items:center; width:58px; height:58px; border-radius:50%; background:var(--c); }
.yt .play svg{ width:22px; height:22px; margin-inline-start:4px; }
.yt .cap{ position:absolute; bottom:.7rem; inset-inline:1rem; text-align:center; color:rgba(255,255,255,.85); }
.yt:disabled{ cursor:default; }
.yt:disabled .play{ background:rgba(255,255,255,.14); }
.yt:not(:disabled):hover .play{ transform:scale(1.06); }
.ep iframe{ display:block; width:100%; aspect-ratio:16/9; border:0; }
.yt-note{ margin:.9rem 0 0; font-size:.9375rem; color:var(--muted); }

/* ======== ANMELDEN — the ONE shared registration (name + email = all courses) ======== */
.reg{ margin:3.2rem 0 0; padding:1.4rem 1.4rem 1.5rem; background:var(--card); border:2px solid var(--ink); border-top:10px solid var(--c); border-radius:14px; max-width:40rem; scroll-margin-top:7rem; }
.reg p{ margin:0 0 .8rem; }
.field{ display:grid; gap:.3rem; margin:0 0 .9rem; }
.field label{ font-weight:600; font-size:.95rem; }
.field input{ min-height:48px; padding:.55rem .75rem; border:2px solid var(--ink); border-radius:10px; font:inherit; background:#fff; }
.err{ display:none; margin:0; font-size:.9rem; color:#A2290B; }
.bad .err{ display:block; }
.bad input{ border-color:#A2290B; }
.consent{ display:grid; grid-template-columns:auto 1fr; gap:.7rem; align-items:start; margin:0 0 1.1rem; font-size:.9rem; color:var(--muted); }
.consent input{ width:24px; height:24px; margin:.1rem 0 0; accent-color:var(--ink); }
.consent.bad label{ color:#A2290B; }
.form-msg{ margin:.8rem 0 0; min-height:1.5em; font-weight:600; }
.form-msg.is-error{ color:#A2290B; }
.tiny{ margin:.8rem 0 0; font-size:.875rem; color:var(--muted); }

/* ======== FOOT — Impressum, contact, the seal ======== */
.foot{ margin:4rem 0 0; padding:1.4rem 0 2rem; border-top:1.5px solid rgba(27,31,42,.15); font-size:.875rem; color:var(--muted);
  display:flex; flex-wrap:wrap; align-items:center; gap:.4rem 1.2rem; }
.foot a{ display:inline-block; padding:.5rem 0; }
.foot .wdm-seal{ margin-inline-start:auto; }

/* ======== PHONE ======== */
@media (max-width:700px){
  body{ font-size:16px; }
  .wrap{ width:calc(100% - 2rem); }
  .sign{ padding-inline:1.6rem 1rem; }
  .sign-top .brandline{ display:none; }
  .lede{ margin-top:1.2rem; }
  .strip-wrap{ margin-top:1.6rem; }
  .stop .dot{ width:24px; height:24px; }
  .strip::before, .strip::after{ top:9px; }
  .stop .lb .w{ display:none; }   /* "Tag 3" -> "3": seven labels have to fit 320 px */
  .item{ grid-template-columns:1fr; padding:.85rem 1rem; }
  .reg{ padding:1.1rem 1rem 1.2rem; }
}
@media (prefers-reduced-motion:reduce){ *{ transition:none !important; } html{ scroll-behavior:auto; } }
