/* AMRAPP Landingpage (resources/views/landing). Statisch ausgeliefert, kein Build.
   Layout: Hero als Screenshot-Bühne, danach Scroll-Szenen (Storyline: docs/Produkt/Landingpage-Storyline.md), Wortmarke AMRAPP im Abschluss.
   Graphit und Kreideweiß im Wechsel, im Dunkelmodus durchgehend dunkel (.light-Abschnitte übernehmen dunkle Tokens).
   Signal-Orange sparsam, Hantelscheiben-Farben nur für Tarife. Echte Screenshots mit Demo-Daten, App-Ansichten als HTML-Nachbau. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap;
  src: url(fonts/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap;
  src: url(fonts/archivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/jetbrains-mono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/jetbrains-mono-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0; }

/* Ersatzschrift mit Archivo-Maßen (Arial, size-adjust aus der Durchschnittsbreite des Fließtexts): verhindert Layoutsprünge, wenn die Webfont nachlädt */
@font-face { font-family: "Archivo Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 96.5%; ascent-override: 91%; descent-override: 21.8%; line-gap-override: 0%; }

:root {
  --dark: #0f1012; --dark-2: #17191c; --dark-line: #272a2f; --on-dark: #eceeec; --on-dark-muted: #8b9299;
  --light: #f3f4f1; --light-2: #e9ebe7; --light-line: #d6d9d4; --ink: #141619; --ink-muted: #5b6168;
  --signal: #f05a28; --signal-ink: #140700;
  --plate-red: #d22b2b; --plate-blue: #1f5ad1; --plate-yellow: #f2c22b; --plate-green: #23944f; --ok: #23944f;
  --f-body: "Archivo", "Archivo Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --wrap: 1320px; --gut: clamp(16px, 3.4vw, 48px);
  /* App-Nachbau: Farben der Demo-Box (Tenant primary/accent) */
  --box: #cc4821; --box-text: #ff8d68; --box-accent: #ffc914; /* --box: Weiß darauf ≥ 4,5:1; --box-text: Text in Markenfarbe auf dunklem Grund */
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--dark); color: var(--on-dark); font: 400 17px/1.6 var(--f-body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--signal); color: var(--signal-ink); padding: 10px 14px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
h1, h2, h3 { margin: 0; font-family: var(--f-body); font-weight: 800; font-stretch: 72%; text-transform: uppercase; line-height: .92; letter-spacing: -.012em; text-wrap: balance; }
h2 { font-size: clamp(2.5rem, 6.2vw, 5.6rem); }
h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
p { margin: 0; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.label { font: 600 .72rem/1.35 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.dark { background: var(--dark); color: var(--on-dark); }
.light { background: var(--light); color: var(--ink); color-scheme: light; }
/* Dunkelmodus: helle Abschnitte bekommen dunkle Tokens, alles darin (Texte, Linien, Buttons) zieht automatisch mit */
@media (prefers-color-scheme: dark) {
  .light { --light: #141619; --light-2: #1b1e22; --light-line: #2a2e34; --ink: #eceeec; --ink-muted: #9ca3a9; color-scheme: dark; }
  .light .lwm-b { color: inherit; }
  .light .shot-frame { border-color: #2a2e34; box-shadow: 0 30px 60px -40px #000; }
}
.pad { padding-block: clamp(72px, 10vw, 150px); }
.sig { color: var(--signal); }
/* Schriftzug wie im Backend (<x-brand.wordmark>): „AMR“ in Markenorange, „APP“ in Textfarbe (dunkle Flächen) bzw. Navy (helle Flächen) */
.lwm-a { color: var(--brand-accent, #fa7124); }
.lwm-b { color: inherit; }
.light .lwm-b { color: var(--brand-primary, #153548); }
.wordfont { font-family: var(--f-body); font-weight: 900; font-stretch: 125%; letter-spacing: -.045em; text-transform: uppercase; }

/* Buttons: eckig, Pfeil im eigenen Kasten */
.btn { display: inline-flex; align-items: stretch; border: 0; padding: 0; background: none; text-decoration: none; font: 600 .86rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; min-height: 48px; }
.btn span { display: flex; align-items: center; padding: 16px 22px; }
.btn b { display: flex; align-items: center; justify-content: center; width: 50px; font-weight: 400; font-size: 1.1rem; transition: transform .2s; }
.btn-sig span, .btn-sig b { background: var(--signal); color: var(--signal-ink); }
.btn-sig b { margin-left: 2px; }
.btn-sig:hover b { transform: translateX(4px); }
.btn-line { box-shadow: inset 0 0 0 1px currentColor; }
.btn-line:hover { box-shadow: inset 0 0 0 2px currentColor; }
.btn-ink span, .btn-ink b { background: var(--ink); color: var(--light); }
.btn-ink b { margin-left: 2px; }
.btn-light span, .btn-light b { background: var(--on-dark); color: var(--dark); }
.btn-light b { margin-left: 2px; }
.btn-sm { min-height: 42px; }
.btn-sm span { padding: 12px 15px; font-size: .76rem; } .btn-sm b { width: 40px; }
.btn[disabled] { opacity: .35; cursor: not-allowed; }

/* Entwurfshinweis + Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(15, 16, 18, 0); border-bottom: 1px solid transparent; padding-top: env(safe-area-inset-top, 0px); transition: background .35s, border-color .35s, -webkit-backdrop-filter .35s, backdrop-filter .35s; }
.nav.scrolled { background: rgba(15, 16, 18, .82); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: var(--dark-line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; transition: height .35s; }
.nav.scrolled .wrap { height: 58px; }
.nav-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--signal); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); opacity: 0; transition: opacity .35s; }
.nav.scrolled .nav-progress { opacity: 1; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.25rem; line-height: 1; }
.brand img { width: 30px; height: 30px; transition: transform .5s cubic-bezier(.3, 1.5, .4, 1); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { position: relative; font: 500 .92rem/1 var(--f-body); text-decoration: none; color: var(--on-dark-muted); padding: 10px 12px; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.nav-links a:hover, .nav-links a.on { color: var(--on-dark); }
.nav-links a:hover::after, .nav-links a.on::after { transform: scaleX(1); }
.nav-links .nav-login { margin-left: 8px; box-shadow: inset 0 0 0 1px var(--dark-line); }
.nav-links .nav-login::after { display: none; }
.nav-links .nav-login:hover { box-shadow: inset 0 0 0 1px var(--on-dark-muted); }
.nav-links form { display: contents; }
.nav-links button.nav-login { font: 500 .92rem/1 var(--f-body); color: var(--on-dark-muted); background: none; border: 0; padding: 10px 12px; cursor: pointer; transition: color .2s, box-shadow .2s; }
.nav-links button.nav-login:hover { color: var(--on-dark); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; position: relative; }
.nav-toggle i { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--on-dark); transition: transform .25s, top .25s; }
.nav-toggle i:first-child { top: 17px; } .nav-toggle i:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] i:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:last-child { top: 21px; transform: rotate(-45deg); }
@media (max-width: 960px) {
  .nav .wrap { gap: 10px; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gut) 20px; background: var(--dark); border-bottom: 1px solid var(--dark-line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { font-size: 1.15rem; padding: 14px 0; border-bottom: 1px solid var(--dark-line); color: var(--on-dark); }
  .nav-links a::after { display: none; }
  .nav-links .nav-login { margin: 0; box-shadow: none; }
  .nav-links button.nav-login { font-size: 1.15rem; padding: 14px 0; text-align: left; color: var(--on-dark); }
  .nav .wrap, .nav.scrolled .wrap { height: 60px; }
  .nav:has(.nav-links.open) { background: var(--dark); }
}
@media (max-width: 420px) { .brand { font-size: 1.05rem; } .nav-cta span { padding: 10px 10px; font-size: .68rem; letter-spacing: .04em; } .nav-cta b { width: 34px; } }

/* HERO: Bühne aus Screenshots, --p = Scrollfortschritt (0–1), --mx/--my = Mausposition (-1–1), gesetzt in landing.js */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: calc(100svh - 72px); padding-top: clamp(28px, 5vw, 70px); --p: 0; --mx: 0; --my: 0; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg .glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.hero-bg .g1 { width: 46vw; height: 46vw; right: -8vw; top: -10vw; background: radial-gradient(circle, rgba(240, 90, 40, .55), transparent 65%); animation: drift 14s ease-in-out infinite alternate; }
.hero-bg .g2 { width: 34vw; height: 34vw; left: -12vw; bottom: -14vw; background: radial-gradient(circle, rgba(255, 201, 20, .18), transparent 65%); animation: drift 18s ease-in-out infinite alternate-reverse; }
.hero-bg .grid { position: absolute; inset: 0; background-image: linear-gradient(var(--dark-line) 1px, transparent 1px), linear-gradient(90deg, var(--dark-line) 1px, transparent 1px); background-size: 64px 64px; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 40%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 65% 40%, #000 0%, transparent 75%); transform: translateY(calc(var(--p) * 120px)); }
@keyframes drift { to { transform: translate(-6vw, 5vw) scale(1.15); } }
.hero.off .glow { animation-play-state: paused; }
.hero-row { flex: 1; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
@media (max-width: 980px) { .hero-row { grid-template-columns: minmax(0, 1fr); } }
.hero-copy { display: grid; gap: 26px; justify-items: start; transform: translateY(calc(var(--p) * -60px)); opacity: calc(1 - var(--p) * .9); }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; flex: none; }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #3ddc84; animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.hero-title { font-size: clamp(2.6rem, 5.2vw, 5.6rem); line-height: .94; }
/* Clip-Box nach oben erweitert (padding/margin gleichen sich aus), sonst schneidet overflow die Umlaut-Punkte (LÄUFT) ab */
.hero-title .ln { display: block; overflow: hidden; padding-block: .16em .04em; margin-top: -.16em; white-space: nowrap; }
.hero-title .ln > span { display: inline-block; animation: rise 1s cubic-bezier(.2, .8, .2, 1) both; }
.hero-title .ln:nth-child(1) > span { animation-delay: .1s; } .hero-title .ln:nth-child(2) > span { animation-delay: .18s; }
.hero-title .ln:nth-child(3) > span { animation-delay: .26s; } .hero-title .ln:nth-child(4) > span { animation-delay: .34s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
.hero-lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: #b9bfc4; max-width: 46ch; animation: fadeUp .8s .5s both; }
.hero .ctas { animation: fadeUp .8s .6s both; }
.hero .facts-line { animation: fadeUp .8s .7s both; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.facts-line { display: flex; flex-wrap: wrap; gap: 6px 24px; color: var(--on-dark-muted); }
.facts-line span::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--signal); margin-right: 9px; vertical-align: middle; }

.stage { perspective: 1800px; padding: 4% 3% 14% 0; }
.stage-inner { position: relative; transition: transform .25s ease-out;
  transform: rotateX(calc(9deg - var(--p) * 9deg + var(--my) * -3deg)) rotateY(calc(-16deg + var(--p) * 16deg + var(--mx) * 5deg)) rotateZ(calc(2deg - var(--p) * 2deg)); }
.st-desk { width: 88%; margin-left: 12%; box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .04); animation: fadeUp 1s .25s both; }
.stage .phone-shot { position: absolute; }
.stage .phone-shot img { box-shadow: 0 0 0 1px #3a3e44, 0 50px 90px -30px rgba(0, 0, 0, .95); }
.st-ph1 { left: 0; bottom: -16%; width: 31%; transform: translateY(calc(var(--p) * -28%)); animation: fadeUp 1s .45s both; }
.st-ph2 { right: -5%; bottom: -24%; width: 26%; transform: translateY(calc(var(--p) * -52%)) rotate(calc(4deg - var(--p) * 4deg)); animation: fadeUp 1s .6s both; }
.st-toast { position: absolute; top: -5%; right: 2%; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: rgba(32, 34, 38, .82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .8);
  transform: translate(calc(var(--p) * 20%), calc(var(--p) * -200%)); animation: toastIn .7s 1.4s cubic-bezier(.2, 1.4, .4, 1) both; font-size: .86rem; line-height: 1.25; }
.st-toast img { width: 34px; height: 34px; border-radius: 9px; }
.st-toast b { display: block; font-weight: 600; }
.st-toast span { color: var(--on-dark-muted); font-size: .8rem; }
@keyframes toastIn { from { opacity: 0; translate: 0 -30px; scale: .9; } to { opacity: 1; translate: 0 0; scale: 1; } }
@media (max-width: 980px) {
  .stage { padding: 4% 6% 18% 0; max-width: 680px; }
  .stage-inner { transform: rotateX(calc(6deg - var(--p) * 6deg)) rotateY(calc(-8deg + var(--p) * 8deg)); }
  .hero-copy { transform: none; opacity: 1; }
}
@media (max-width: 560px) {
  .ctas .btn { flex: 1 1 100%; }
  .ctas .btn span, .tools .btn span { flex: 1; }
  .hero-copy { gap: 20px; }
  .stage { padding: 8% 2% 22% 0; }
  .st-toast { right: 0; padding: 9px 12px 9px 9px; font-size: .76rem; } .st-toast img { width: 28px; height: 28px; }
}
.hero-foot-wrap { width: 100%; }
.hero-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: clamp(32px, 4vw, 56px); padding-block: 22px; border-top: 1px solid var(--dark-line); color: var(--on-dark-muted); animation: fadeUp .8s .9s both; }
.hero-foot p .lwm-b { color: var(--on-dark); }
.hero-foot p span { color: var(--signal); }
.scroll-cue { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--on-dark-muted); transition: color .2s; }
.scroll-cue:hover { color: var(--on-dark); }
.scroll-cue i { position: relative; width: 22px; height: 34px; border-radius: 11px; box-shadow: inset 0 0 0 1.5px currentColor; flex: none; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--signal); animation: wheel 1.8s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 980px) { .hero { min-height: 0; } }
@media (max-width: 560px) { .hero-foot p { display: none; } .hero-foot { justify-content: center; } }

/* Partnerbox */
.partner { background: var(--dark-2); border-bottom: 1px solid var(--dark-line); padding-block: clamp(64px, 8vw, 120px); position: relative; overflow: hidden; }
.partner::before { content: ""; position: absolute; left: -10%; top: 50%; width: 40vw; height: 40vw; translate: 0 -50%; background: radial-gradient(circle, rgba(61, 220, 132, .08), transparent 65%); pointer-events: none; }
.partner-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 100px); align-items: center; position: relative; }
@media (max-width: 900px) { .partner-row { grid-template-columns: minmax(0, 1fr); } }
.partner-copy { display: grid; gap: 22px; }
.partner-logo { display: inline-block; justify-self: start; opacity: .92; transition: opacity .2s; }
.partner-logo:hover { opacity: 1; }
.partner-logo img { display: block; width: clamp(200px, 26vw, 320px); height: auto; }
.partner-copy .label { display: inline-flex; align-items: center; gap: 12px; color: #3ddc84; }
.partner-copy h2 { font-size: clamp(2.4rem, 5.4vw, 4.8rem); }
.partner-copy p { color: #b3b9be; max-width: 56ch; font-size: 1.06rem; }
.partner-stats { display: flex; flex-wrap: wrap; gap: 14px clamp(28px, 4vw, 56px); margin: 6px 0 0; padding-top: 22px; border-top: 1px solid var(--dark-line); }
.partner-stats div { display: grid; gap: 8px; }
.partner-stats dt { font: 600 .7rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.partner-stats dd { margin: 0; font: 800 clamp(2.2rem, 4vw, 3.4rem)/.9 var(--f-body); font-stretch: 72%; text-transform: uppercase; }
.partner-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--dark-line); counter-reset: s; }
.partner-steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 16px; padding: 22px 0; border-bottom: 1px solid var(--dark-line); position: relative; }
.partner-steps li::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--signal); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s cubic-bezier(.2, .8, .2, 1) var(--d, 0s); }
.partner-steps.in li::after { transform: scaleX(1); }
.partner-steps .mono { grid-row: span 2; color: var(--signal); font-size: .8rem; line-height: 1.9; }
.partner-steps b { font: 800 1.7rem/1 var(--f-body); font-stretch: 72%; text-transform: uppercase; }
.partner-steps em { font-style: normal; color: var(--on-dark-muted); }

/* Scroll-Einblendungen (Klassen setzt landing.js nur für Elemente unterhalb des sichtbaren Bereichs) */
.rv { opacity: 0; translate: 0 36px; transition: opacity .9s cubic-bezier(.2, .8, .2, 1), translate .9s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; translate: 0 0; }
.rv-h { clip-path: inset(0 0 100% 0); translate: 0 30px; transition: clip-path 1s cubic-bezier(.2, .8, .2, 1), translate 1s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.rv-h.in { clip-path: inset(0 0 -10% 0); translate: 0 0; }
.rv-zoom { opacity: 0; scale: .94; translate: 0 50px; transition: opacity 1s, scale 1.2s cubic-bezier(.2, .8, .2, 1), translate 1.2s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.rv-zoom.in { opacity: 1; scale: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .rv, .rv-h, .rv-zoom { opacity: 1; translate: none; scale: none; clip-path: none; } }

/* Screenshot-Rahmen */
.shot-frame { margin: 0; background: #0b0d10; border: 1px solid #2a2e34; border-radius: 10px; overflow: hidden; }
.light .shot-frame { border-color: #c9cdc8; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .45); }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #161a20; border-bottom: 1px solid #262b31; }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a4048; flex: none; }
.shot-bar span { margin-left: 8px; font: 400 11px/1 var(--f-mono); color: #8b929b; background: #0f1215; padding: 5px 10px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.shot-tv { border: 10px solid #1b1e22; border-radius: 12px; box-shadow: 0 40px 80px -40px #000; }
/* Rand und Ecken wachsen mit der Breite (cqw), sonst wird ein kleines iPhone zur Pille. Verhältnisse wie beim iPhone 15/16 Pro:
   schwarzer Rand ≈ 3 %, Displayecke ≈ 13 % der Breite (innerer Radius = äußerer − Rand) */
.phone-shot { margin: 0; container-type: inline-size; }
.phone-shot img { display: block; width: 100%; border: 3cqw solid #08090a; border-radius: 15.2cqw; box-shadow: 0 0 0 1px #3a3e44, 0 30px 70px -30px rgba(0, 0, 0, .85); }

/* Abschnittskopf */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 20px 56px; align-items: end; margin-bottom: clamp(36px, 5vw, 72px); }
.sec-head .label { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; }
.sec-head .label::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.sec-head p { font-size: 1.06rem; }
.dark .sec-head p { color: #b3b9be; }
.light .sec-head p { color: var(--ink-muted); }
.dark .sec-head .label { color: var(--on-dark-muted); }
.light .sec-head .label { color: var(--ink-muted); }
@media (max-width: 860px) { .sec-head { grid-template-columns: minmax(0, 1fr); } }

/* App-Demo (HTML-Nachbau der Flutter-App, Logik in landing.js) */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(30px, 6vw, 110px); align-items: center; }
@media (max-width: 860px) { .demo { grid-template-columns: minmax(0, 1fr); } .demo .demo-device { order: -1; margin-inline: auto; } }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--dark-line); }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--dark-line); transition: opacity .3s; opacity: .62; }
.steps li.now, .steps li.done { opacity: 1; }
.steps li:not(.now):not(.done) p { color: #c3c8cc; } /* abgedunkelter Schritt bleibt lesbar (Kontrast ≥ 4,5:1) */
.steps .no { width: 40px; height: 40px; display: grid; place-items: center; font: 600 .9rem/1 var(--f-mono); box-shadow: inset 0 0 0 1px var(--dark-line); color: var(--on-dark); }
.steps li.now .no { box-shadow: inset 0 0 0 1px var(--signal); color: var(--signal); }
.steps li.done .no { background: var(--ok); box-shadow: none; color: #fff; }
.steps b { font: 800 1.45rem/1 var(--f-body); font-stretch: 72%; text-transform: uppercase; display: block; }
.steps p { color: var(--on-dark-muted); margin-top: 6px; }
.tools { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 860px) {
  .steps li { padding: 12px 0; }
  .steps li:not(.now) p { display: none; }
  .tools .btn { flex: 1 1 auto; }
}
/* iPhone-Rahmen: --dw = Bildschirmbreite. Rand (≈ 3 %) und Displayecke (≈ 13 %) wachsen mit, wie beim echten Gerät;
   feste Pixelradien würden kleine Handys (Szenen auf dem Handy) zur Pille machen. Größe je Ort über --dw an .device setzen. */
.device { --dw: min(330px, 80vw); --bz: calc(var(--dw) * .03); --rad: calc(var(--dw) * .13);
  display: inline-block; padding: var(--bz); background: #08090a; border-radius: calc(var(--rad) + var(--bz)); box-shadow: 0 0 0 1px #3a3e44, 0 40px 80px -30px rgba(0, 0, 0, .8); }
.device-screen { position: relative; width: var(--dw); aspect-ratio: 390 / 844; border-radius: var(--rad); overflow: hidden; background: #000; contain: layout paint; } /* Animationen im Handy (Chat-Blasen) lösen kein Layout der ganzen Seite aus */
.device-sm { --dw: 250px; }

.app { position: absolute; left: 0; top: 0; width: 390px; height: 844px; transform-origin: 0 0; transform: scale(var(--s, .846)); background: #000; color: #fff; overflow: hidden;
  font: 400 15px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Roboto, system-ui, sans-serif; letter-spacing: .1px; -webkit-user-select: none; user-select: none; }
.app button { font-family: inherit; }
.app noscript img { width: 390px; }
.a-status { position: absolute; z-index: 9; left: 0; right: 0; top: 0; height: 54px; display: flex; justify-content: space-between; align-items: center; padding: 6px 34px 0 46px; font-weight: 600; font-size: 17px; pointer-events: none; }
.a-status svg { height: 13px; }
.a-island { position: absolute; z-index: 10; top: 11px; left: 50%; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; }
.a-screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: #000; }
.a-head { position: relative; padding: 64px 14px 14px; background: linear-gradient(180deg, var(--box) 0%, var(--box) 18%, #000 100%); display: flex; align-items: center; justify-content: space-between; flex: none; }
.a-tenant { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px 0 5px; border-radius: 24px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .28); font-size: 17px; font-weight: 600; max-width: 260px; }
.a-tenant .tl { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; border: 2px solid #f5b25a; flex: none; background: #fff; }
.a-tenant .tl img { width: 100%; height: 100%; object-fit: cover; }
.a-tenant .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-tenant svg { width: 14px; flex: none; }
.a-me { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); padding: 2px; flex: none; }
.a-me img { width: 100%; height: 100%; border-radius: 50%; background: #fff; }
.a-week { display: flex; padding: 6px 0 12px; flex: none; }
.a-week button { flex: 1; margin: 0 4px; height: 75px; border: 0; border-radius: 8px; background: transparent; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 15px; }
.a-week button b { font-weight: 600; }
.a-week button.today { box-shadow: inset 0 0 0 2px var(--box); }
.a-week button[aria-pressed="true"] { background: var(--box); box-shadow: none; }
.a-list { flex: 1; overflow-y: auto; padding: 4px 16px 120px; scrollbar-width: none; }
.a-list::-webkit-scrollbar { display: none; }
.a-card { background: #232323; border: 1px solid #3c3c3c; border-radius: 16px; padding: 16px; margin-bottom: 13px; cursor: pointer; transition: border-color .2s; }
.a-card:active { border-color: #5a5a5a; }
.a-r1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; }
.a-time { background: var(--box); color: #fff; font-weight: 700; font-size: 15px; padding: 4px 9px; border-radius: 3px; letter-spacing: .3px; }
.a-info { font-size: 12px; color: rgba(255, 255, 255, .7); }
.a-info.red { color: #f44336; } .a-info.orange { color: #ff9800; }
.a-pill { display: flex; align-items: center; gap: 8px; padding: 3px 3px 3px 11px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .06); font-size: 12px; color: rgba(255, 255, 255, .7); }
.a-avs { display: flex; flex-direction: row-reverse; }
.a-avs i { width: 28px; height: 28px; border-radius: 50%; background: var(--box-accent); padding: 2px; margin-left: -8px; }
.a-avs i img { width: 100%; height: 100%; border-radius: 50%; background: #fff; }
.a-title { font-size: 18px; font-weight: 800; margin-top: 6px; }
.a-trainer { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: rgba(255, 255, 255, .54); font-size: 15px; }
.a-trainer img { width: 28px; height: 28px; border-radius: 50%; background: #fff; }
.a-r3 { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.a-dur { background: #000; border-radius: 6px; padding: 4px 8px; font-size: 15px; }
.a-btn { border: 0; border-radius: 6px; min-width: 112px; padding: 13px 22px; font-size: 14px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; background: var(--box); color: #fff; }
.a-btn.grey { background: #9e9e9e; color: #fff; }
.a-btn.wait { background: var(--box-accent); color: #000; }
.a-btn.outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px var(--box-accent); }
.a-btn.off { background: #333; color: #777; }
.a-empty { color: rgba(255, 255, 255, .54); text-align: center; padding: 60px 20px; }
.a-nav { position: absolute; z-index: 8; left: 16px; right: 16px; bottom: 26px; height: 66px; border-radius: 33px; background: rgba(58, 58, 58, .78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .14); display: flex; align-items: center; padding: 0 4px; }
.a-nav button { flex: 1; height: 58px; border: 0; background: transparent; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; border-radius: 29px; position: relative; }
.a-nav button svg { width: 24px; height: 24px; }
.a-nav button.on { background: rgba(255, 255, 255, .1); color: var(--box); }
.a-nav .badge { position: absolute; top: 4px; left: calc(50% + 2px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #cf3b57; color: #fff; font-size: 11px; line-height: 17px; text-align: center; }
.a-toast { position: absolute; z-index: 12; left: 50%; bottom: 108px; transform: translate(-50%, 10px); background: rgba(40, 40, 40, .95); color: #fff; font-size: 13px; padding: 10px 16px; border-radius: 20px; opacity: 0; transition: opacity .25s, transform .25s; white-space: nowrap; pointer-events: none; }
.a-toast.show { opacity: 1; transform: translate(-50%, 0); }
.a-push { position: absolute; z-index: 11; left: 10px; right: 10px; top: -130px; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 13px 14px; border-radius: 24px; background: rgba(38, 38, 40, .92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: top .5s cubic-bezier(.2, 1.25, .4, 1); }
.a-push.show { top: 56px; }
.a-push img { width: 40px; height: 40px; border-radius: 10px; }
.a-push .t { display: flex; justify-content: space-between; font-size: 14px; }
.a-push .t span { color: rgba(255, 255, 255, .55); font-size: 13px; }
.a-push b { font-size: 15px; display: block; margin-top: 1px; }
.a-push p { font-size: 14px; color: rgba(255, 255, 255, .85); margin-top: 1px; }
/* Kursdetail */
.a-detail { position: absolute; inset: 0; z-index: 7; background: #000; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .32s cubic-bezier(.3, .8, .3, 1); }
.a-detail.open { transform: none; }
.a-d-body { flex: 1; overflow-y: auto; padding: 60px 16px 20px; scrollbar-width: none; }
.a-d-body::-webkit-scrollbar { display: none; }
.a-back { width: 44px; height: 44px; border: 0; background: none; color: #fff; margin: 0 0 22px 4px; padding: 0; }
.a-back svg { width: 26px; }
.a-d-date { color: rgba(255, 255, 255, .7); font-size: 15px; }
.a-d-title { font-size: 26px; font-weight: 700; margin: 6px 0 22px; }
.a-d-room { color: rgba(255, 255, 255, .7); }
.a-d-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 18px; }
.a-d-dur { display: flex; align-items: center; gap: 8px; background: var(--box); padding: 8px 14px; border-radius: 4px; font-size: 15px; }
.a-d-dur svg { width: 16px; }
.a-d-row .a-pill { padding: 5px 10px 5px 14px; border-radius: 16px; font-size: 14px; }
.a-d-coach { display: flex; align-items: center; gap: 12px; margin: 6px 0 28px 6px; color: rgba(255, 255, 255, .7); }
.a-d-coach img { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid #fff; }
.a-d-coach b { color: #fff; text-decoration: underline; text-transform: uppercase; letter-spacing: .3px; }
.a-d-h { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.a-wo { background: #222; border-radius: 18px; padding: 16px 20px 20px; }
.a-wo-h { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid #444; font-size: 18px; font-weight: 700; }
.a-wo-h svg { width: 24px; color: var(--box); }
.a-wo-t { display: flex; align-items: center; gap: 10px; background: #444; border-radius: 8px; padding: 9px 14px; margin: 14px 0; color: rgba(255, 255, 255, .85); font-size: 14px; letter-spacing: .5px; }
.a-wo-t svg { width: 16px; color: var(--box); }
.a-wo-l { font-weight: 700; margin-bottom: 8px; }
.a-wo-d { background: #444; border: 1px solid #5a5a5a; border-radius: 12px; padding: 12px 16px; white-space: pre-line; color: rgba(255, 255, 255, .85); line-height: 1.45; }
.a-d-foot { flex: none; border-top: 2px solid var(--box); padding: 16px 22px 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.a-d-foot small { display: block; font-size: 14px; color: rgba(255, 255, 255, .85); }
.a-d-foot em { font-style: normal; font-size: 14px; color: #f44336; }
.a-d-foot em.ok { color: rgba(255, 255, 255, .6); }
/* Ranking + Studio */
.a-page { padding: 4px 16px 120px; flex: 1; overflow-y: auto; scrollbar-width: none; }
/* Live-Demo, Tab „Leistung“ (Bausteine wie in der Ranking-Szene) */
.a-perf .m-pf-ask { position: static; margin: 12px 0 10px; gap: 5px; }
.a-lb { list-style: none; margin: 0; padding: 0; }
.a-lb li { display: grid; grid-template-columns: 18px 32px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; height: 50px; font-size: 14px; }
.a-lb li > span:first-child { font-weight: 700; color: rgba(255, 255, 255, .6); }
.a-lb li:first-child > span:first-child { color: #ffc107; }
.a-lb img { width: 32px; height: 32px; border-radius: 50%; background: #fff; }
.a-lb b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-lb small { color: rgba(255, 255, 255, .5); font-size: 11.5px; }
.a-studio h4 { text-align: center; font-size: 22px; font-weight: 500; margin: 10px 0 22px; }
.a-studio h4 span { display: inline-block; background: #cf3b57; color: #fff; font-size: 12px; min-width: 20px; height: 20px; line-height: 20px; border-radius: 10px; margin-left: 8px; vertical-align: 4px; }
.a-st { display: flex; align-items: center; gap: 16px; background: #232323; border: 1px solid #333; border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.a-st .ic { width: 48px; height: 48px; border-radius: 12px; background: rgba(228, 87, 46, .16); display: grid; place-items: center; color: var(--box); flex: none; }
.a-st .ic svg { width: 22px; }
.a-st div { flex: 1; min-width: 0; }
.a-st b { display: block; font-size: 16px; }
.a-st small { color: rgba(255, 255, 255, .62); font-size: 13.5px; }
.a-st .bd { background: #cf3b57; color: #fff; font-size: 12px; min-width: 22px; height: 22px; line-height: 22px; border-radius: 11px; text-align: center; }
.a-st svg.ch { width: 10px; color: rgba(255, 255, 255, .5); }

/* Live-Demo: Badge über dem Gerät und Signalrahmen, damit sie sich von Screenshots unterscheidet */
.demo-device { display: grid; justify-items: center; gap: 14px; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--signal); color: var(--signal-ink);
  font: 700 .74rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.live-badge i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .live-badge i { animation: none; } }
.device-live { box-shadow: 0 0 0 1px #3a3e44, 0 0 0 4px var(--signal), 0 40px 80px -30px rgba(0, 0, 0, .8); }
/* PREISE */
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; margin-bottom: clamp(32px, 5vw, 60px); }
@media (max-width: 900px) { .price-grid { grid-template-columns: minmax(0, 1fr); } }
.slider-box { display: grid; gap: 18px; }
.slider-box label { font-size: 1.1rem; font-weight: 600; }
.slider-box .hint { color: var(--on-dark-muted); font-size: .92rem; }
.members-out { font: 800 clamp(4.6rem, 12vw, 9rem)/.8 var(--f-body); font-stretch: 72%; }
.members-out small { font: 600 .74rem/1 var(--f-mono); letter-spacing: .12em; color: var(--on-dark-muted); margin-left: 10px; vertical-align: top; text-transform: uppercase; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; touch-action: pan-y; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(90deg, #8b9298, #cfd4d8 50%, #8b9298); }
input[type=range]::-moz-range-track { height: 6px; background: linear-gradient(90deg, #8b9298, #cfd4d8 50%, #8b9298); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 34px; background: var(--signal); margin-top: -14px; border: 0; }
input[type=range]::-moz-range-thumb { width: 26px; height: 34px; background: var(--signal); border: 0; border-radius: 0; }
.toggle { display: inline-flex; width: fit-content; box-shadow: inset 0 0 0 1px var(--on-dark-muted); }
.toggle button { border: 0; background: none; padding: 13px 16px; font: 600 .72rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); min-height: 44px; }
.toggle button[aria-pressed="true"] { background: var(--on-dark); color: var(--dark); }
.toggle .save { color: var(--plate-green); }
.barbell { width: 100%; height: auto; display: block; overflow: visible; }
.barbell .pl { transition: transform .5s cubic-bezier(.3, 1.4, .4, 1), opacity .3s; }
.barbell .pl.off { opacity: 0; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--dark-line); }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { padding: 28px clamp(16px, 2vw, 28px) 30px; display: grid; gap: 16px; align-content: start; border-right: 1px solid var(--dark-line); position: relative; transition: background .25s; }
.plan:last-child { border-right: 0; }
@media (max-width: 900px) { .plan { border-right: 0; border-bottom: 1px solid var(--dark-line); } .plan:not(.pick) ul { display: none; } }
.plan::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 4px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.plan.pick { background: var(--dark-2); }
.plan.pick::before { transform: none; }
.plan .ph { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.plan h3 { font-size: 2.4rem; }
.plan .kg { font: 600 .72rem/1 var(--f-mono); letter-spacing: .08em; display: flex; align-items: center; gap: 8px; color: var(--on-dark-muted); white-space: nowrap; }
.plan .kg i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.plan .price { font: 800 3.4rem/.9 var(--f-body); font-stretch: 80%; }
.plan .price small { font: 400 .95rem var(--f-body); font-stretch: 100%; color: var(--on-dark-muted); margin-left: 6px; }
.plan .sub { color: var(--on-dark-muted); font-size: .9rem; }
.plan .sub s { color: #6b7178; }
.plan .sub .save { color: var(--plate-green); font-weight: 600; }
.plan .btn { justify-self: start; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan li { padding-left: 22px; position: relative; color: #c3c9cd; }
.plan li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 2px; background: var(--c); }

/* START + VERTRAUEN + FAQ */
.start { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
@media (max-width: 860px) { .start { grid-template-columns: minmax(0, 1fr); } }
.start li { padding: 26px clamp(0px, 2vw, 28px) 10px 0; display: grid; gap: 12px; align-content: start; }
.start .n { font: 600 .78rem/1 var(--f-mono); color: var(--signal); letter-spacing: .12em; text-transform: uppercase; }
.start h3 { font-size: 1.9rem; }
.start p { color: var(--ink-muted); }
.trust { list-style: none; margin: clamp(56px, 8vw, 110px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--light-line); }
@media (max-width: 860px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .trust { grid-template-columns: minmax(0, 1fr); } }
.trust li { padding: 22px 18px 22px 0; display: grid; gap: 6px; }
.trust b { font-weight: 600; }
.trust span { color: var(--ink-muted); font-size: .93rem; }
.faq-head { margin-top: clamp(64px, 9vw, 130px); }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--light-line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 14px; align-items: center; padding: 20px 0; font: 600 clamp(1.05rem, 1.6vw, 1.3rem)/1.3 var(--f-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; justify-self: end; font: 400 1.8rem/1 var(--f-mono); color: var(--signal); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-muted); max-width: 70ch; }

/* FINALE + FOOTER */
.final { padding-block: clamp(84px, 11vw, 160px); overflow: hidden; border-top: 1px solid var(--dark-line); }
.final .rounds { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .25em; font-size: clamp(2.6rem, 8.6vw, 8rem); line-height: .9; }
.final .row2 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-top: clamp(28px, 4vw, 50px); padding-top: 28px; border-top: 1px solid var(--dark-line); }
@media (max-width: 700px) { .final .row2 { grid-template-columns: minmax(0, 1fr); } .final .row2 .btn span { flex: 1; } }
.final p { max-width: 48ch; font-size: 1.1rem; color: #b9bfc4; }
footer { overflow: hidden; padding-top: 40px; border-top: 1px solid var(--dark-line); padding-bottom: env(safe-area-inset-bottom, 0px); }
footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 28px; color: var(--on-dark-muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { text-decoration: none; padding: 6px 0; }
footer a:hover { color: var(--on-dark); }
.wordmark { font-size: clamp(3rem, 14.5vw, 13.6rem); line-height: .74; color: var(--dark-2); margin: 34px 0 -.1em; white-space: nowrap; user-select: none; }
.wordmark::before { content: attr(data-a); color: #2a1a10; }
.wordmark::after { content: attr(data-b); }

/* Handy: feste Handlungsaufforderung */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta { display: block; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(15, 16, 18, .97); border-top: 1px solid var(--dark-line); transform: translateY(110%); transition: transform .3s; }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { width: 100%; }
  .mobile-cta .btn span { flex: 1; }
  body.cta-visible footer { padding-bottom: 80px; }
}

/* RECHTSSEITEN (layouts/legal.blade.php) */
.legal-hero { position: relative; overflow: hidden; padding-block: clamp(32px, 5vw, 64px) clamp(44px, 6vw, 80px); border-bottom: 1px solid var(--dark-line); }
.legal-hero::before { content: ""; position: absolute; right: -10vw; top: -20vw; width: 50vw; height: 50vw; border-radius: 50%; background: radial-gradient(circle, rgba(240, 90, 40, .22), transparent 65%); filter: blur(60px); pointer-events: none; }
.legal-hero .wrap { position: relative; display: grid; gap: 18px; justify-items: start; }
.legal-hero .label { color: var(--on-dark-muted); display: flex; gap: 14px; align-items: center; }
.legal-hero .label::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.legal-hero h1 { font-size: clamp(2.4rem, 6vw, 5.2rem); animation: fadeUp .7s .05s both; }
.legal-lead { color: #b3b9be; max-width: 70ch; font-size: 1.06rem; animation: fadeUp .7s .15s both; }
.legal-lead strong { color: var(--on-dark); font-weight: 600; }
.legal-tabs { display: flex; gap: 6px; margin-bottom: clamp(18px, 3vw, 34px); max-width: 100%; overflow-x: auto; scrollbar-width: none; } /* eine Zeile, auf dem Handy wischbar: Höhe bleibt beim Laden der Schrift gleich */
.legal-tabs a { flex: none; white-space: nowrap; text-decoration: none; font: 600 .72rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); padding: 11px 14px; box-shadow: inset 0 0 0 1px var(--dark-line); transition: color .2s, box-shadow .2s, background .2s; }
.legal-tabs a:hover { color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--on-dark-muted); }
.legal-tabs a[aria-current="page"] { background: var(--on-dark); color: var(--dark); box-shadow: none; }
.legal-main { padding-block: clamp(44px, 6vw, 90px); }
.legal-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .legal-grid { grid-template-columns: minmax(0, 1fr); } }
.legal-toc { position: sticky; top: 90px; display: grid; gap: 12px; max-height: calc(100vh - 120px); overflow: auto; scrollbar-width: thin; }
@media (max-width: 900px) { .legal-toc { display: none; } } /* nach .legal-toc { display: grid }, sonst überdeckt das Verzeichnis den Text */
.legal-toc .label { color: var(--ink-muted); }
.legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--light-line); }
.legal-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; font-size: .88rem; line-height: 1.35; color: var(--ink-muted); transition: color .2s, border-color .2s; }
.legal-toc a:hover { color: var(--ink); }
.legal-toc a.on { color: var(--ink); border-left-color: var(--signal); font-weight: 600; }
.legal-body { max-width: 76ch; color: var(--ink); font-size: 1rem; line-height: 1.7; }
.legal-body :is(h2, h5) { scroll-margin-top: 90px; margin: clamp(36px, 4vw, 52px) 0 14px; padding-top: 22px; border-top: 1px solid var(--light-line); font: 800 clamp(1.35rem, 2vw, 1.7rem)/1.05 var(--f-body); font-stretch: 72%; text-transform: uppercase; letter-spacing: -.005em; color: var(--ink); }
.legal-body .legal-doc > :is(h2, h5):first-child, .legal-body .legal-doc > :first-child + :is(h2, h5) { margin-top: 0; }
.legal-body p, .legal-body ul, .legal-body ol, .legal-body .legal-doc > div { margin: 0 0 14px; }
.legal-body ul, .legal-body ol { padding-left: 1.2em; }
.legal-body li { margin-bottom: 6px; }
.legal-body li::marker { color: var(--signal); }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.legal-body a:hover { color: var(--signal); }
.legal-body code { font: .85em var(--f-mono); background: var(--light-2); padding: 1px 5px; }
.legal-body .text-muted { color: var(--ink-muted); }
.legal-body .small { font-size: .88rem; }
.legal-body .legal-doc > p.text-muted:last-child { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--light-line); font: 500 .78rem/1.6 var(--f-mono); letter-spacing: .04em; }
.legal-page footer .wordmark { margin-top: 34px; }

/* REGISTRIERUNG ABGESCHLOSSEN / FORTSETZEN (resources/views/registration) */
.reg-done { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 120px); min-height: calc(100svh - 72px); display: flex; align-items: center; }
.reg-done::before { content: ""; position: absolute; right: -10vw; top: -16vw; width: 50vw; height: 50vw; border-radius: 50%; background: radial-gradient(circle, rgba(240, 90, 40, .25), transparent 65%); filter: blur(60px); pointer-events: none; }
.reg-grid { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 100px); align-items: center; }
@media (max-width: 900px) { .reg-grid { grid-template-columns: minmax(0, 1fr); } }
.reg-copy, .reg-copy > div { display: grid; gap: 22px; justify-items: start; }
.reg-copy .label { display: inline-flex; align-items: center; gap: 12px; color: var(--on-dark-muted); }
.reg-ok .label { color: #3ddc84; }
.reg-copy h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); animation: fadeUp .7s both; }
.reg-copy p { color: #b3b9be; max-width: 52ch; font-size: 1.08rem; }
.reg-copy p b { color: var(--on-dark); font-weight: 600; }
.reg-copy .err { color: #ff7b6b; }
.reg-note { font-size: .92rem !important; }
.reg-note a { color: var(--on-dark); }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--dark-line); border-top-color: var(--signal); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.reg-card { background: var(--dark-2); border: 1px solid var(--dark-line); padding: clamp(22px, 3vw, 34px); display: grid; gap: 16px; animation: fadeUp .8s .15s both; }
.reg-card .label { color: var(--on-dark-muted); }
.reg-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--dark-line); }
.reg-steps li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 14px; padding: 13px 0; border-bottom: 1px solid var(--dark-line); }
.reg-steps li::before { content: ""; grid-row: span 2; width: 16px; height: 16px; margin-top: 3px; box-shadow: inset 0 0 0 1.5px var(--on-dark-muted); }
.reg-steps li.d::before { background: var(--ok); box-shadow: none; }
.reg-steps b { font-weight: 600; }
.reg-steps span { color: var(--on-dark-muted); font-size: .9rem; }

/* COOKIE-EINWILLIGUNG */
/* Cookie-Einwilligung (landing/partials/consent): Vollbild-Overlay mit Abdunklung, auf Rechtsseiten als Leiste (.cc-inline).
   position: fixed, daher kein Layout-Shift; Karte ist .light und zieht so im Dunkelmodus mit. */
.cc { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(8, 9, 10, .74); overflow-y: auto; overscroll-behavior: contain; animation: ccFade .25s ease both; }
.cc-inline { inset: auto auto 16px 16px; width: min(460px, calc(100vw - 32px)); padding: 0; background: none; overflow: visible; }
.cc-card { width: min(580px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; border: 1px solid var(--light-line); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85); animation: fadeUp .45s cubic-bezier(.2, .8, .2, 1) both; }
.cc-card:focus { outline: none; }
.cc-card > .label { color: var(--signal); }
.cc-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.cc-inline .cc-title { font-size: 1.5rem; }
.cc-card p { font-size: .9rem; line-height: 1.55; color: var(--ink-muted); }
.cc-card p b { color: var(--ink); font-weight: 600; }
.cc-settings { display: grid; gap: 10px; }
.cc-cats { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.cc-cats legend { margin-bottom: 8px; color: var(--ink-muted); }
.cc-cat { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--light-line); background: var(--light-2); font-size: .84rem; line-height: 1.5; color: var(--ink-muted); cursor: pointer; }
.cc-cat b { display: block; color: var(--ink); font-size: .92rem; }
.cc-cat input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--signal); cursor: inherit; }
.cc-cat:has(input:disabled) { cursor: default; }
.cc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc-btns .btn span, .cc-save span { flex: 1; justify-content: center; text-align: center; }
.cc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: .82rem; }
.cc-foot a { color: var(--ink-muted); text-underline-offset: 3px; padding-block: 6px; }
.cc-foot a:hover { color: var(--ink); }
.cc-link { margin-right: auto; border: 0; background: none; padding: 6px 0; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@keyframes ccFade { from { opacity: 0; } }
@media (max-width: 560px) {
  .cc { place-items: end stretch; padding: 0; }
  .cc-card { width: 100%; max-height: 92dvh; border-inline: 0; border-bottom: 0; padding: 20px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .cc-inline { inset: auto 0 0 0; width: auto; }
}
@media (max-width: 359px) { .cc-btns { grid-template-columns: 1fr; } }
body.consent-open .mobile-cta { display: none; }
.linkbtn { border: 0; background: none; padding: 6px 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.linkbtn:hover { color: var(--on-dark); }

/* REGISTRIERUNG */
.modal { position: fixed; inset: 0; z-index: 150; background: rgba(5, 6, 7, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.dlg { width: min(1000px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--light); color: var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) 330px; color-scheme: light; overscroll-behavior: contain; }
@media (max-width: 860px) { .dlg { grid-template-columns: minmax(0, 1fr); } .dlg-aside { display: none !important; } }
@media (max-width: 560px) { .modal { padding: 0; place-items: stretch; } .dlg { max-height: none; height: 100dvh; } }
.dlg-main { padding: clamp(18px, 3vw, 36px); padding-bottom: calc(clamp(18px, 3vw, 36px) + env(safe-area-inset-bottom, 0px)); display: grid; gap: 20px; align-content: start; min-width: 0; }
.dlg-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.dlg-top button { border: 0; background: none; font-size: 1.8rem; line-height: 1; color: var(--ink-muted); width: 44px; height: 44px; margin: -10px -10px 0 0; }
.stepper { display: grid; gap: 8px; flex: 1; }
.stepper .bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.stepper .bar i { height: 3px; background: var(--light-line); }
.stepper .bar i.on { background: var(--ink); }
.stepper .bar i.cur { background: var(--signal); }
.dlg h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .fgrid { grid-template-columns: minmax(0, 1fr); } }
.fgrid .full { grid-column: 1 / -1; }
.f { display: grid; gap: 7px; min-width: 0; }
.f label, .f .lbl { font: 600 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.f input { width: 100%; background: #fff; border: 1px solid var(--light-line); padding: 13px 12px; font: inherit; font-size: 16px; color: var(--ink); border-radius: 0; }
.f input:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 -2px 0 var(--signal); }
.f small { color: var(--ink-muted); font-size: .84rem; }
.f small.err { color: var(--plate-red); font-weight: 600; }
.f input[aria-invalid="true"] { border-color: var(--plate-red); box-shadow: inset 0 -2px 0 var(--plate-red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[aria-busy="true"] b { animation: spin 1s linear infinite; }
.slug { font-family: var(--f-mono); font-size: .84rem; color: var(--ink); word-break: break-all; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 44px; height: 44px; border: 3px solid var(--light); background: var(--c); box-shadow: 0 0 0 1px var(--light-line); }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.chk { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: .97rem; }
.chk input { width: 22px; height: 22px; accent-color: var(--signal); margin: 1px 0 0; }
.mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--ink); }
@media (max-width: 560px) { .mini { grid-template-columns: minmax(0, 1fr); } }
.mini button { text-align: left; border: 0; border-right: 1px solid var(--light-line); background: #fff; padding: 16px; display: grid; gap: 6px; position: relative; }
@media (max-width: 560px) { .mini button { border-right: 0; border-bottom: 1px solid var(--light-line); } }
.mini button:last-child { border-right: 0; border-bottom: 0; }
.mini button::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); opacity: .25; }
.mini button[aria-pressed="true"] { background: var(--ink); color: var(--light); }
.mini button[aria-pressed="true"]::before { opacity: 1; }
.mini b { font: 800 1.5rem/1 var(--f-body); font-stretch: 72%; text-transform: uppercase; }
.mini span { font: 600 1rem/1.2 var(--f-mono); }
.mini small { opacity: .7; }
.btoggle { display: inline-flex; box-shadow: inset 0 0 0 1px var(--ink); width: fit-content; }
.btoggle button { border: 0; background: none; padding: 12px 14px; font: 600 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; min-height: 44px; }
.btoggle button[aria-pressed="true"] { background: var(--ink); color: var(--light); }
.receipt { background: #fff; border: 1px solid var(--light-line); padding: 6px 18px; font-family: var(--f-mono); font-size: .88rem; }
.receipt div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--light-line); }
.receipt div:last-child { border: 0; }
.receipt b { text-align: right; }
.receipt .big { font: 800 1.8rem/1 var(--f-body); font-stretch: 80%; color: var(--signal); }
.pay { border: 1px dashed var(--ink-muted); padding: 18px; display: grid; gap: 8px; color: var(--ink-muted); }
.pay b { color: var(--ink); }
.dlg-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 560px) { .dlg-nav { flex-direction: column-reverse; } .dlg-nav .btn { width: 100%; } .dlg-nav .btn span { flex: 1; } .dlg-nav > span { display: none; } }
.dlg-aside { background: var(--dark); display: grid; justify-items: center; align-content: center; gap: 16px; padding: 30px 10px; }
.dlg-aside p { font: 600 .7rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.checklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.checklist li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--light-line); }
.checklist li::before { content: ""; width: 16px; height: 16px; box-shadow: inset 0 0 0 1.5px var(--ink); flex: none; }
.checklist li.d::before { background: var(--ok); box-shadow: none; }
.err { color: var(--plate-red); font-weight: 600; }
body.modal-open { overflow: hidden; }

/* ---------- Hero-Bühne einspaltig (Tablet + Handy) ---------- */
@media (max-width: 980px) {
  /* Bühne: keine Neigung, kein Scroll-Versatz. Die iPhones sind hier die Hauptsache (groß, nebeneinander vorn),
     die Verwaltung liegt als Kontext dahinter und bleibt oben (Adressleiste, Kursplanung) lesbar. */
  /* Unten Platz für die überstehenden iPhones, relativ zur Bühnenbreite (Prozent-Padding bezieht sich aufs Elternelement) */
  .stage { width: 100%; max-width: 520px; margin-inline: auto; padding: 64px 0 calc(min(100%, 520px) * .56); }
  .stage-inner { transform: none; }
  .st-desk { width: 100%; margin: 0; }
  .st-ph1, .st-ph2 { top: 40%; bottom: auto; width: 47%; }
  .st-ph1 { left: 1%; transform: rotate(-3deg); }
  .st-ph2 { right: 1%; transform: rotate(3deg); }
  .st-toast { left: 0; right: 0; top: -56px; width: max-content; max-width: 94%; margin-inline: auto; transform: none; }
}

/* ---------- Handy: zentriert und vollständig sichtbar (Hero, Abschnittsköpfe, Partner, Rollen) ---------- */
@media (max-width: 760px) {
  .hero-copy { justify-items: center; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero .ctas { width: 100%; }
  .ctas .btn, .ctas .btn span { justify-content: center; text-align: center; }
  .facts-line { justify-content: center; }
  .hero-foot { justify-content: center; text-align: center; }

  .sec-head { text-align: center; justify-items: center; }
  .sec-head .label { justify-content: center; }
  .sec-head .label::after { content: ""; width: 28px; height: 1px; background: currentColor; }
  .sec-head p { margin-inline: auto; }

  .partner-copy { justify-items: center; text-align: center; }
  .partner-logo { justify-self: center; }
  .partner-stats { justify-content: center; }

}

/* =====================================================================
   SZENEN (<x-landing.scene>, Storyline: docs/Produkt/Landingpage-Storyline.md)
   landing.js setzt je Szene data-step, Klassen st-1 … st-n (erreichte Schritte), --q (Fortschritt im Schritt) und --p (gesamt).
   Ohne JS bzw. bei „Bewegung reduzieren“: Endzustand (st-Klassen aus Blade), Bühne nicht sticky, alle Schritte sichtbar.
   ===================================================================== */
:root { --navh: 58px; }
@media (max-width: 960px) { :root { --navh: 60px; } }
.light { --line: var(--light-line); --muted: var(--ink-muted); }
.dark { --line: var(--dark-line); --muted: var(--on-dark-muted); }
.light.alt { background: var(--light-2); }
.dark.alt { background: #09090a; }
.badge { display: inline-block; font: 700 .64rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; font-style: normal; background: var(--signal); color: var(--signal-ink); padding: 5px 8px; border-radius: 999px; }

.scene { position: relative; padding-top: clamp(88px, 12vw, 170px); }
.scene-head { max-width: 1060px; margin-inline: auto; padding-inline: var(--gut); display: grid; gap: 22px; justify-items: center; text-align: center; }
.scene-head h2 { font-size: clamp(2.5rem, 7.2vw, 6.4rem); }
.scene-label { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); }
.scene-lead { font-size: clamp(1.06rem, 1.45vw, 1.26rem); max-width: 60ch; color: var(--muted); }
.dark .scene-lead { color: #b3b9be; }
.scene-track { position: relative; margin-top: clamp(20px, 4vw, 48px); }
.js .scene-track { height: calc(100vh + (var(--n) - 1) * 40vh); }
.scene-sticky { padding-block: 24px 60px; }
.js .scene-sticky { position: sticky; top: var(--navh); height: calc(100vh - var(--navh)); display: flex; align-items: center; padding-block: 12px; overflow: hidden; }
.scene-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); align-items: center; }
.scene-stage { position: relative; height: min(74vh, 760px); container-type: size; display: grid; place-items: center; }
.scene-side { display: grid; gap: 14px; }
/* Fortschritt wie bei Stories: ein Segment je Schritt, das laufende füllt sich (--q) */
.scene-prog { display: none; gap: 6px; }
.js .scene-prog { display: flex; }
/* Balken sind klickbar (Szene ab dort erneut abspielen): 18px Klickfläche, 3px sichtbar */
.scene-prog i { position: relative; flex: 1; height: 18px; cursor: pointer; }
.scene-prog i::before, .scene-prog i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; }
.scene-prog i::before { background: var(--line); transition: height .2s, margin .2s; }
.scene-prog i::after { background: var(--signal); transform: scaleX(0); transform-origin: 0 50%; }
.scene-prog i:hover::before, .scene-prog i:hover::after { height: 5px; margin-top: -2.5px; }
.scene-prog i.done::after { transform: none; }
.scene-prog i.on::after { transform: scaleX(var(--q, 0)); }
.scene-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.js .scene-steps li { cursor: pointer; }
.js .scene-steps li:hover { opacity: .85; }
/* Am Ende einer Szene: Hinweis, dass es weitergeht */
.scene-next { position: absolute; left: 50%; bottom: 18px; z-index: 5; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--light) 85%, transparent); backdrop-filter: blur(8px); color: inherit; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity .4s, transform .4s, visibility 0s .4s; }
.dark .scene-next { background: color-mix(in srgb, var(--dark) 85%, transparent); }
.scene-next i { font-style: normal; color: var(--signal); animation: nudge 1.4s ease-in-out infinite; }
.scene.is-done .scene-next { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: .6s, .6s, 0s; }
@keyframes nudge { 50% { transform: translateY(4px); } }
.scene-steps li { position: relative; padding: 12px 0 12px 22px; font-size: 1.04rem; line-height: 1.45; transition: opacity .4s; }
.scene-steps li::before { content: attr(data-n); display: block; font: 600 .7rem/1 var(--f-mono); letter-spacing: .12em; color: var(--signal); margin-bottom: 7px; }
.scene-steps li::after { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--signal); transform: scaleY(0); transform-origin: 50% 0; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.scene-steps b.mono { color: var(--signal); margin-right: 4px; }
.js .scene-steps li:not(.on) b.mono { color: inherit; } /* nur der aktive Schritt in Signalfarbe: abgedunkelt wäre der Kontrast zu gering */
.js .scene-steps li { opacity: .5; }
.js .scene-steps li.done { opacity: .66; }
.js .scene-steps li.on { opacity: 1; }
.js .scene-steps li.on::after { transform: none; }
.scene-checklist .scene-steps li::before { content: none; }
.js .scene-checklist .scene-steps li.done b::after { content: " ✓"; }
.scene-after { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding-block: 8px clamp(64px, 8vw, 110px); }
.scene:not(:has(.scene-after)) { padding-bottom: clamp(40px, 5vw, 70px); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips li { font: 500 .72rem/1.2 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; padding: 9px 12px; border: 1px solid var(--line); color: var(--muted); }
.chips .sig-chip { border-color: var(--signal); color: var(--signal); font-weight: 700; }
.fine { font-size: .92rem; max-width: 72ch; color: var(--muted); }
.fine .badge { margin-right: 8px; vertical-align: 1px; }
/* nur in genau einem Schritt sichtbar (data-at) */
[data-at] { opacity: 0; transition: opacity .4s, transform .4s; }
[data-at].on, .no-js [data-last] { opacity: 1; }

@media (max-width: 860px) {
  .scene-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .scene-stage { order: -1; height: min(58svh, 560px); }
  .js .scene-sticky { padding-bottom: 56px; }
  .js .scene-track { height: calc(100svh + (var(--n) - 1) * 36svh); }
  .scene-side { gap: 10px; }
  .scene-prog { max-width: 320px; width: 100%; margin-inline: auto; }
  .scene-next { bottom: 10px; padding: 8px 14px; backdrop-filter: none; } /* Unschärfe über der laufenden Bühne kostet auf dem Handy Frames */
  .js .scene-sticky { height: calc(100svh - var(--navh)); }
  .scene-steps { border-left: 0; text-align: center; }
  .scene-steps li { padding: 6px 0; font-size: .98rem; }
  .scene-steps li::after { display: none; }
  .js .scene-steps { min-height: 5.6em; align-content: start; }
}
/* Handy mit Animation: Bühne nimmt die Resthöhe der stehenden Fläche. Mit fester Höhe (58svh) plus Schrittliste und CTA-Leiste war der
   Inhalt in Safari mit eingeblendeten Leisten (~660px) höher als die Fläche und wurde oben und unten abgeschnitten.
   Schritte liegen übereinander (Höhe = längster Schritt), damit die Bühne beim Schrittwechsel nicht springt und kein Layout nötig ist. */
@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  .js .scene-sticky { align-items: stretch; }
  .js .scene-grid { height: 100%; grid-template-rows: minmax(0, 1fr) auto; }
  .js .scene-stage { height: 100%; max-height: 560px; align-self: center; }
  .js .scene-steps li { grid-area: 1 / 1; }
  .js .scene-steps li:not(.on) { opacity: 0; visibility: hidden; }
}
/* Handy: keine Hintergrund-Unschärfe (Navigation über dem Inhalt, Leisten in den Handy-Nachbauten) – auf iOS teuer beim Scrollen */
@media (max-width: 760px) {
  .nav.scrolled { background: rgba(15, 16, 18, .95); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .a-nav, .a-push { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .a-nav { background: rgba(48, 48, 48, .96); }
  .a-push { background: rgba(38, 38, 40, .98); }
}
/* Kein Platz für die CTA-Leiste in der Bühne nötig: Steht eine Bühne, blendet landing.js die Leiste aus (Button bleibt oben in der Navigation) */
@media (prefers-reduced-motion: reduce) {
  .js .scene-track { height: auto; }
  .js .scene-sticky { position: static; height: auto; padding-block: 24px 60px; }
  .js .scene-steps li, .js .scene-steps li:not(.on) { display: block; opacity: 1; }
  .js .scene-steps { min-height: 0; }
  .js .scene-prog, .scene-next { display: none; }
}

/* Telefon in Szenen: Größe aus der Bühnenhöhe */
.scene-stage .device { --dw: min(330px, 43cqh, 78cqw); } /* Gerät ≈ 96 % der Bühnenhöhe */
.mock-phone .app { background: #000; }
.mock-phone .a-list { overflow: hidden; padding-bottom: 20px; }
.a-bat { width: 27px; height: 13px; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 4px; position: relative; }
.a-bat::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: #fff; border-radius: 1.5px; }
.m-week span { flex: 1; margin: 0 4px; height: 75px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 15px; }
.m-week span.on { background: var(--box); }
.m-week b { font-weight: 600; }

/* Szene Buchung: Chat → App */
.m-chat { position: absolute; inset: 0; padding-top: 54px; background: #121417; display: flex; flex-direction: column; transition: opacity .6s, transform .8s cubic-bezier(.2, .8, .2, 1), filter .8s; }
.m-chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #26292d; }
.m-chat-head i { width: 42px; height: 42px; border-radius: 50%; background: #3a3f45; display: grid; place-items: center; font: 700 14px/1 inherit; font-style: normal; }
.m-chat-head b { display: block; font-size: 17px; }
.m-chat-head small { color: rgba(255, 255, 255, .55); font-size: 13px; }
.m-chat-head em { margin-left: auto; font-style: normal; background: #cf3b57; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 10px; }
/* unten verankert wie ein echter Chat: jede neue Blase wächst auf und schiebt die älteren nach oben */
.m-chat-list { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 14px 22px; }
.m-bubble { align-self: flex-start; max-width: 80%; max-height: 160px; margin-top: 10px; overflow: hidden; background: #25292e; border-radius: 18px 18px 18px 6px; padding: 9px 13px; font-size: 16px; line-height: 1.3; color: #e9ecef;
  animation: bubbleIn .5s cubic-bezier(.2, .9, .3, 1.1) both paused; animation-delay: calc(.2s + var(--i) * .5s); }
.m-bubble small { display: block; font-size: 12.5px; font-weight: 700; color: #f0a35e; margin-bottom: 1px; }
.m-bubble.me { align-self: flex-end; background: #3a2a20; border-radius: 18px 18px 6px 18px; }
.seen .m-bubble { animation-play-state: running; }
@keyframes bubbleIn { from { opacity: 0; max-height: 0; margin-top: 0; padding-block: 0; transform: translateY(16px) scale(.94); } }
.st-1 .m-chat { opacity: 0; transform: scale(.82); filter: blur(8px); visibility: hidden; transition: opacity .6s, transform .8s cubic-bezier(.2, .8, .2, 1), filter .8s, visibility 0s .8s; }
.m-app { position: absolute; inset: 0; opacity: 0; transform: scale(1.08); transition: opacity .6s .15s, transform .8s .15s cubic-bezier(.2, .8, .2, 1); }
.st-1 .m-app { opacity: 1; transform: none; }
.m-hl .a-card { transition: transform .5s cubic-bezier(.3, 1.4, .4, 1), border-color .4s, box-shadow .4s; }
.st-2 .m-hl .a-card { transform: scale(1.04); border-color: var(--box); box-shadow: 0 0 0 4px rgba(228, 87, 46, .3), 0 20px 40px -10px #000; }

/* Szene Nachrücken */
.stage-nachruecken { padding-top: 8cqh; }
.stage-nachruecken .device { --dw: min(310px, 41cqh, 78cqw); }
.m-clock-chip { position: absolute; top: 0; left: 50%; translate: -50% 0; display: grid; font: 600 clamp(1.6rem, 6cqh, 3rem)/1 var(--f-mono); letter-spacing: -.02em; z-index: 3; }
.m-clock-chip span { grid-area: 1 / 1; }
.m-clock-chip span:not([data-at="0"]) { color: var(--signal); }
.m-event { position: absolute; z-index: 4; top: 30%; right: calc(50% + 16cqh); width: min(300px, 42cqw); display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px;
  background: var(--light); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); font-size: .92rem; line-height: 1.3;
  opacity: 0; transform: translateX(-24px); transition: opacity .5s, transform .6s cubic-bezier(.2, .8, .2, 1); }
.m-event img { width: 36px; height: 36px; border-radius: 50%; background: #fff; flex: none; }
.m-event b { display: block; font-weight: 700; }
.m-event small { color: var(--muted); }
.st-1 .m-event { opacity: 1; transform: none; }
.st-3 .m-event { opacity: .35; }
.m-push { top: -140px; }
.st-2 .m-push { top: 56px; }
.st-3 .m-push { top: -140px; }
.m-swap { display: grid; }
.m-swap > div { grid-area: 1 / 1; transition: opacity .5s; }
.m-after, .st-3 .m-before { opacity: 0; }
.st-3 .m-after { opacity: 1; }
@container (max-width: 560px) {
  .m-event { top: auto; bottom: 8%; right: auto; left: 50%; width: 86cqw; transform: translate(-50%, 16px); }
  .st-1 .m-event { transform: translate(-50%, 0); }
  .st-2 .m-event, .st-3 .m-event { opacity: 0; }
}

/* Szene Whiteboard: Handy + Fernseher */
.stage-wb { display: block; }
.m-tv { position: absolute; right: 0; top: 46%; translate: 0 -50%; width: min(76cqw, 128cqh); aspect-ratio: 16 / 9; background: #111; border: 10px solid #1b1e22; border-radius: 12px; overflow: hidden;
  box-shadow: 0 60px 120px -40px #000, 0 0 120px -40px rgba(240, 90, 40, .35); container-type: inline-size; }
.tv-week { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s; }
/* Nachbau des Whiteboards (public/whiteboard-assets/whiteboard.css), Maße in cqi ≈ px bei 1600 px Breite / 16 */
.tv-wo, .tv-cv { --a: var(--box); --a-ink: var(--signal-ink); --l: #272a2f; --l2: #383c43; --mu: #8b9299;
  position: absolute; inset: 0; display: flex; flex-direction: column; background: #0f1012; color: #eceeec; opacity: 0; transition: opacity .6s; }
.st-1 .tv-week { opacity: 0; }
.st-1 .tv-wo { opacity: 1; }
.m-tv svg { width: 1.25cqi; height: 1.25cqi; flex: none; }
.m-tv small { font: 600 .95cqi/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mu); }
.tv-bar { display: flex; align-items: center; gap: 1.3cqi; height: 5.2cqi; padding: 0 1.6cqi; border-bottom: 1px solid var(--l); flex: none; }
.tv-btn { display: inline-flex; align-items: center; gap: .6cqi; height: 3cqi; padding: 0 1.1cqi; background: #17191c; box-shadow: inset 0 0 0 1px var(--l2);
  font: 600 1cqi/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.tv-title { display: flex; align-items: baseline; gap: .9cqi; min-width: 0; white-space: nowrap; }
.tv-title b { font-size: 2.1cqi; font-weight: 800; font-stretch: 72%; text-transform: uppercase; line-height: 1; }
.tv-sp { flex: 1; }
.tv-tag { display: inline-flex; align-items: center; gap: .4cqi; padding: .4cqi .7cqi; font: 600 .95cqi/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  box-shadow: inset 0 0 0 1px var(--l2); white-space: nowrap; }
.tv-tag svg { width: 1.05cqi; height: 1.05cqi; color: var(--mu); }
.tv-clock { display: flex; flex-direction: column; align-items: flex-end; padding-left: 1cqi; border-left: 1px solid var(--l); line-height: 1; }
.tv-clock b { font: 600 1.9cqi/1 var(--f-mono); }
.tv-clock small { margin-top: .3cqi; font-size: .8cqi; }
.tv-seg { display: inline-flex; box-shadow: inset 0 0 0 1px var(--l2); }
.tv-seg i { font: 600 1.15cqi/3cqi var(--f-mono); font-style: normal; min-width: 3.2cqi; padding: 0 .7cqi; text-align: center; color: var(--mu); }
.tv-seg i + i { box-shadow: -1px 0 0 var(--l2); }
.tv-seg i.on { background: var(--a); color: var(--a-ink); }
/* Workout mit Timer: Kopfzeile, Timer-Leiste (Start-Countdown · Phase · Runde · Zeit), Fortschritt, Beschreibung */
.tv-timer-bar { display: flex; align-items: center; gap: 1.8cqi; padding: .9cqi 1.6cqi; background: #17191c; border-bottom: 1px solid var(--l); flex: none; }
.tv-cd { display: flex; flex-direction: column; gap: .4cqi; }
.tv-phase { display: grid; min-width: 7.5cqi; font: 600 1.1cqi/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; text-align: center; background: var(--l2); transition: background .3s, color .3s; }
.tv-phase i { grid-area: 1 / 1; padding: .55cqi .7cqi; font-style: normal; transition: opacity .3s; }
.tv-phase i + i, .st-3 .tv-phase i:first-child { opacity: 0; }
.st-3 .tv-phase { background: var(--ok); color: #04130a; }
.st-3 .tv-phase i + i { opacity: 1; }
.tv-round { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.tv-round b { font: 600 2.1cqi/1 var(--f-mono); }
.tv-round small { margin-top: .3cqi; }
.tv-time { font: 600 6.4cqi/.9 var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.tv-play { display: grid; place-items: center; width: 4cqi; height: 3.75cqi; background: var(--ok); color: #04130a; transition: background .3s; }
.tv-play svg { grid-area: 1 / 1; width: 1.6cqi; height: 1.6cqi; }
.tv-play svg + svg, .st-3 .tv-play svg:first-child { opacity: 0; }
.st-3 .tv-play { background: #f2c22b; color: #1a1300; }
.st-3 .tv-play svg + svg { opacity: 1; }
.tv-prog { height: .25cqi; background: var(--l); flex: none; }
.tv-prog i { display: block; height: 100%; width: 0; background: var(--a); }
.st-3 .tv-prog i { width: 18%; transition: width 30s linear; }
.tv-lines { flex: 1; display: grid; align-content: center; gap: .6cqi; padding: 2cqi 10cqi; }
.tv-lines p { margin: 0; font-size: 5cqi; font-weight: 500; line-height: 1.25; opacity: 0; transform: translateY(1.2cqi); transition: opacity .5s, transform .5s; transition-delay: calc(var(--i) * .12s); }
.st-1 .tv-lines p { opacity: 1; transform: none; }
.tv-count { position: absolute; inset: 0; background: rgba(8, 9, 10, .96); display: grid; place-items: center; opacity: 0; pointer-events: none; }
.tv-count small { position: absolute; top: 9%; left: 0; right: 0; text-align: center; font-size: 1.2cqi; }
.tv-count span { grid-area: 1 / 1; font: 600 30cqi/.85 var(--f-mono); letter-spacing: -.04em; opacity: 0; }
.st-2 .tv-count { animation: cdBox 3.2s forwards; }
.st-2 .tv-count span { animation: cd 1s both; }
.st-2 .tv-count span:nth-child(3) { animation-delay: 1s; }
.st-2 .tv-count span:nth-child(4) { animation-delay: 2s; }
@keyframes cd { 0% { opacity: 0; transform: scale(1.12); } 15% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cdBox { 0%, 92% { opacity: 1; } 100% { opacity: 0; } }
/* Benutzerdefinierte Ansicht (course.blade.php): Säulen mit 1-px-Fugen, Nummer „01“ in Akzentfarbe, Timer-Tag */
.tv-cv { z-index: 2; }
.tv-label { white-space: nowrap; }
.tv-cv-cols { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--l); min-height: 0; }
.tv-cv-col { --fs: 2.15cqi; display: flex; flex-direction: column; align-items: flex-start; padding: 1.6cqi; background: #0f1012; opacity: 0; transform: translateY(1.5cqi);
  transition: opacity .5s, transform .5s; transition-delay: calc(.2s + var(--i) * .15s); }
.tv-cv-head { display: flex; align-items: baseline; gap: .9cqi; }
.tv-cv-head i { font: 600 calc(var(--fs) * .8)/1 var(--f-mono); font-style: normal; color: var(--a); }
.tv-cv-head b { font-size: calc(var(--fs) * 1.25); font-weight: 800; font-stretch: 72%; text-transform: uppercase; line-height: .95; }
.tv-cv-col .tv-tag { margin-top: .7cqi; }
.tv-cv-col p { margin: .6em 0 0; font-size: var(--fs); line-height: 1.45; color: #d2d6da; }
.st-4 .tv-cv, .st-4 .tv-cv-col { opacity: 1; transform: none; }
.wb-phone { position: absolute; left: 0; bottom: 2cqh; z-index: 3; box-shadow: 0 0 0 1px #3a3e44, 0 40px 80px -30px #000; }
.wb-phone.device { --dw: min(230px, 36cqh, 25cqw); }
/* „Workout hinzufügen“ (workout_edit_screen.dart): Abschnitte mit fetter Überschrift, Auswahl als Chips, Button unten */
.m-form { position: relative; height: 100%; padding: 50px 16px 20px; }
.m-form label { display: block; font-size: 15px; font-weight: 700; margin: 14px 0 7px; }
.m-in { background: #1c1c1e; border: 1px solid #333; border-radius: 12px; padding: 11px 13px; font-size: 16px; font-weight: 600; }
.m-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.m-chips i { font-style: normal; font-size: 13px; padding: 7px 11px; border-radius: 10px; border: 1px solid #3a3a3a; color: rgba(255, 255, 255, .8); }
.m-chips i.on { background: var(--box); border-color: var(--box); color: #fff; font-weight: 600; }
.m-form-btn { position: absolute; left: 16px; right: 16px; bottom: 34px; text-align: center; padding: 15px; border-radius: 16px; background: var(--box); font-weight: 700; font-size: 16px; transition: opacity .3s; }
.st-1 .m-form-btn { opacity: .5; }
.m-area { display: grid; gap: 3px; min-height: 120px; align-content: start; font-size: 15px; font-weight: 400; }
.m-area span { animation: lineIn .35s both paused; animation-delay: calc(.4s + var(--i) * .55s); }
.seen .m-area span { animation-play-state: running; }
@keyframes lineIn { from { opacity: 0; transform: translateX(-6px); } }
.caret { width: 2px; height: 18px; background: var(--box); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.st-1 .caret { display: none; }
/* Snackbar nach dem Speichern */
.m-saved { position: absolute; left: 16px; right: 16px; bottom: 100px; padding: 13px 16px; border-radius: 10px; background: #323232; color: #fff; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(8px); transition: .4s; }
.st-1 .m-saved { opacity: 1; transform: none; }
.st-2 .m-saved { opacity: 0; }
@container (max-width: 600px) {
  .m-tv { width: 100cqw; top: 2cqh; translate: none; border-width: 6px; }
  .wb-phone { left: 3cqw; bottom: 0; }
  .wb-phone.device { --dw: min(170px, 28cqh, 36cqw); }
}

/* Szene Ranking: Tab „Leistung“ → „Heute“ (performance_screen.dart) – Zeilen sortieren sich je Schritt um (--r0 … --r2),
   in Schritt 3 ersetzt die eigene Karte (Platz, Bestleistung) den Aufruf „Wie lief's?“ */
.m-perf { padding: 2px 14px 20px; }
.m-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 12px; border-radius: 14px; background: #141414; text-align: center; font-size: 15px; }
.m-seg b, .m-seg span { padding: 9px 0; border-radius: 11px; }
.m-seg b { background: var(--box); }
.m-seg span { color: rgba(255, 255, 255, .54); font-weight: 600; }
.m-pf-card { background: #212121; border-radius: 22px; padding: 16px 14px 14px; }
.m-pf-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.m-pf-head b { font-size: 19px; }
.m-pf-tag { padding: 3px 9px; border-radius: 12px; background: rgba(240, 90, 40, .18); color: var(--box-text); font-size: 12px; font-weight: 700; }
.m-pf-courses { display: block; margin-top: 4px; color: rgba(255, 255, 255, .54); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-pf-top { position: relative; height: 106px; margin: 12px 0 10px; }
.m-pf-ask, .m-pf-me { position: absolute; inset: 0; border-radius: 16px; padding: 12px 14px; transition: opacity .5s, transform .5s; }
.m-pf-ask { background: #2a1510; display: flex; flex-direction: column; gap: 3px; }
.m-pf-ask b { font-size: 14.5px; }
.m-pf-ask span { color: rgba(255, 255, 255, .7); font-size: 12px; }
.m-pf-btn { margin-top: auto; align-self: stretch; text-align: center; font-style: normal; font-weight: 700; font-size: 13.5px; padding: 6px; border-radius: 10px; background: var(--box); }
.m-pf-me { background: #2e2e2e; display: flex; justify-content: space-between; align-items: center; opacity: 0; transform: translateY(8px); }
.m-pf-me small { display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .6); font-size: 12px; }
.m-pf-best { font-style: normal; padding: 2px 7px; border-radius: 10px; background: rgba(255, 193, 7, .16); color: #ffc107; font-weight: 700; font-size: 11px; }
.m-pf-me > div > b { display: block; font-size: 30px; font-weight: 800; letter-spacing: .5px; margin: 2px 0; }
.m-pf-me em { font-style: normal; color: #ffc107; font-size: 12.5px; }
.m-pf-place { text-align: right; }
.m-pf-place b { display: block; color: #ffc107; font-size: 21px; font-weight: 800; }
.m-pf-place small { justify-content: flex-end; }
.st-2 .m-pf-ask { opacity: 0; transform: translateY(-8px); }
.st-2 .m-pf-me { opacity: 1; transform: none; }
.m-pf-chips { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.m-pf-chips i, .m-pf-chips span { font-style: normal; padding: 6px 13px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .3); font-size: 13px; font-weight: 600; }
.m-pf-chips i.on { background: var(--box); border-color: var(--box); }
.m-pf-chips span { margin-left: auto; font-weight: 500; }
.m-rank { position: relative; }
.m-rank-nums, .m-rank-rows { list-style: none; margin: 0; padding: 0; }
.m-rank-nums { position: absolute; z-index: 2; left: 12px; top: 0; pointer-events: none; }
.m-rank-nums li { height: 54px; line-height: 50px; font-size: 16px; font-weight: 700; color: rgba(255, 255, 255, .6); transition: opacity .5s; }
.m-rank-nums li:first-child { color: #ffc107; }
.m-rank-rows { position: relative; height: 270px; }
.m-rank-rows li { position: absolute; left: 0; right: 0; height: 50px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 0 8px 0 34px; border-radius: 12px;
  --r: var(--r0); transform: translateY(calc(var(--r) * 54px)); transition: transform .8s cubic-bezier(.3, 1.25, .4, 1), opacity .5s, background-color .5s; }
.st-1 .m-rank-rows li { --r: var(--r1); }
.st-2 .m-rank-rows li { --r: var(--r2); }
.m-rank .from-1, .m-rank .from-2 { opacity: 0; }
.st-1 .m-rank .from-1, .st-2 .m-rank .from-2 { opacity: 1; }
.st-2 .m-rank-rows .best { background: #3a2722; }
.m-rank-rows img { width: 34px; height: 34px; border-radius: 50%; background: #fff; }
.m-rank-rows b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-rank-rows small { color: rgba(255, 255, 255, .5); font-size: 11.5px; }
.m-pf-val { font-weight: 700; font-size: 15px; letter-spacing: .4px; }
.m-pf-part { display: block; margin-top: 4px; padding-top: 10px; border-top: 3px solid #3a3a3a; color: rgba(255, 255, 255, .6); font-size: 12px; }
.js .m-pf-part [data-at]:not(.on), .no-js .m-pf-part [data-at]:not([data-last]) { display: none; }
.lk { display: inline-flex; align-items: center; gap: 4px; min-width: 34px; color: rgba(255, 255, 255, .6); font-size: 13px; }
.lk i { font-style: normal; font-size: 18px; line-height: 1; }
.lk em { font-style: normal; }
.lk .plus { display: none; }
/* Lisa bekommt in Schritt 3 ein Herz dazu (eigene Ergebnisse zeigen in der App nur die Anzahl) */
.st-2 .best .lk em:not(.plus) { display: none; }
.st-2 .best .lk .plus { display: inline; }
.st-2 .best .lk { color: #fff; }
.st-2 .best .lk i { animation: likePop .5s .4s both; }
@keyframes likePop { 50% { transform: scale(1.5); } }

/* Szene KI-Assistent */
.m-win { width: min(100cqw, 1000px); max-height: 100cqh; background: #15171a; color: #e9ecef; border: 1px solid #2a2e34; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 60px 120px -50px #000, 0 0 140px -60px rgba(240, 90, 40, .4); container-type: inline-size; font-size: 15px; line-height: 1.45; }
.m-win-bar { display: flex; gap: 6px; align-items: center; padding: 11px 14px; border-bottom: 1px solid #262a2f; flex: none; }
.m-win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4048; }
.m-win-bar span { margin-left: 10px; font: 500 11px/1 var(--f-mono); color: #8b929b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-win-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: 0; }
.m-ai { padding: 22px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid #262a2f; contain: size; }
/* Chat wie echt: unten verankert, neue Einträge schieben ältere nach oben aus dem Bild (contain: size → Höhe kommt vom Kalender) */
.m-log { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.m-log > .m-msg.ai, .m-tools li { overflow: hidden; max-height: 0; opacity: 0; margin-top: 0; padding-block: 0; border-width: 0;
  transition: max-height .5s cubic-bezier(.2, .8, .2, 1), margin .5s, padding .5s, opacity .4s .15s; }
.m-log > * { flex: none; }
.m-msg { padding: 12px 15px; border-radius: 16px; }
.m-msg.me { background: #2a2d32; justify-self: end; border-radius: 16px 16px 4px 16px; min-height: 3em; }
.m-msg.me.typing span::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--signal); animation: blink 1s steps(1) infinite; }
.m-msg.ai { border: 0 solid #30343a; }
.st-3 .m-log > .m-msg.ai { max-height: 200px; opacity: 1; margin-top: 12px; padding-block: 12px; border-width: 1px; }
.m-tools { list-style: none; margin: 0; padding: 0; flex: none; }
.m-tools li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; align-items: center; padding-inline: 10px; border: 0 solid #2a2e34; border-radius: 10px; background: #1b1e22; font-size: 12px; transition-delay: calc(var(--i) * .35s); }
.m-tools .tl { font: 700 9.5px/1 var(--f-mono); letter-spacing: .08em; color: var(--signal); border: 1px solid rgba(240, 90, 40, .45); border-radius: 4px; padding: 3px 5px; }
.m-tools code { font: 500 12px/1.2 var(--f-mono); color: #e9ecef; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-tools small { grid-column: 2; color: #8fd19e; font-size: 11.5px; }
.m-tools small::before { content: "✓ "; }
.st-1 .m-tools li[data-from="1"], .st-2 .m-tools li[data-from="2"] { max-height: 80px; opacity: 1; margin-top: 6px; padding-block: 8px; border-width: 1px; }
.m-input { flex: none; }
.m-input { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #30343a; border-radius: 14px; color: #8b939b; font-size: 13px; }
.m-conn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; background: #23262b; color: #c9ced4; font-size: 11.5px; white-space: nowrap; }
.m-conn i { width: 6px; height: 6px; border-radius: 50%; background: #3ddc84; }
/* Rechts: Kursplanung der Verwaltung (Filament, dunkel), Kurse in der Farbe der Kursvorlage */
.m-cal { --tpl: #17bebb; padding: 18px; display: grid; gap: 8px; align-content: start; background: #0e1424; }
.m-cal-head { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: end; margin-bottom: 6px; }
.m-cal-head small { grid-column: 1 / -1; font-size: 11px; color: #8b93a7; }
.m-cal-head b { font-size: 19px; }
.m-cal-head span { font-size: 11px; color: #8b93a7; }
.m-cal-row { display: grid; grid-template-columns: 34px 1fr 1fr; gap: 8px; }
.m-cal .wk { font-size: 10.5px; color: #8b93a7; align-self: center; }
.m-cal .cell { background: #151c2e; border: 1px dashed #2a3450; border-radius: 10px; padding: 8px 10px; min-height: 70px; display: grid; gap: 1px; align-content: start; transition: background .4s, border-color .4s; }
.m-cal .cell small { font-size: 10.5px; color: #8b93a7; transition: color .4s; }
.m-cal .cell strong { font-size: 13px; color: #8b93a7; transition: color .4s; }
.m-cal .cell b { display: flex; align-items: baseline; gap: 4px; font-size: 12px; font-weight: 600; }
.m-cal .cell b svg { width: 11px; height: 11px; fill: currentColor; flex: none; align-self: center; }
.m-cal .cell em { font-style: normal; font-weight: 400; opacity: .8; margin-left: auto; white-space: nowrap; }
.m-cal .cell b { opacity: 0; transform: translateY(4px); transition: .35s; }
.m-cal .cell.on { border: 1px solid var(--tpl); background: var(--tpl); color: #fff; }
.m-cal .cell.on small { color: rgba(255, 255, 255, .85); }
.m-cal .cell.on strong { color: #fff; }
.m-cal .cell.on b, .no-js .m-cal .cell b { opacity: 1; transform: none; }
@container (max-width: 640px) {
  .m-win-body { grid-template-columns: minmax(0, 1fr); }
  .m-ai { border-right: 0; border-bottom: 1px solid #262a2f; padding: 14px; gap: 10px; font-size: 13.5px; height: min(190px, 30cqh); }
  /* Handy: Prompt → Werkzeuge (kompakt) → Antwort, immer nur das Nötige */
  .m-input, .m-tools small, .m-cal-head small { display: none; }
  .m-tools li { padding-inline: 8px; }
  .st-1 .m-tools li[data-from="1"], .st-2 .m-tools li[data-from="2"] { padding-block: 5px; margin-top: 4px; }
  .m-tools code { font-size: 11px; }
  .m-cal { padding: 12px; gap: 6px; }
  .m-cal-head { margin-bottom: 2px; }
  .m-cal-head b { font-size: 15px; }
  .m-cal-row { grid-template-columns: 30px 1fr 1fr; gap: 6px; }
  .m-cal .wk { font-size: 9.5px; white-space: nowrap; }
  .m-cal .cell { min-height: 0; padding: 6px 8px; }
  .m-cal .cell strong, .m-cal .cell small span, .m-cal .cell em { display: none; }
  .m-cal .cell b { font-size: 11px; white-space: nowrap; }
  .m-cal .cell small { font-size: 10px; }
}

/* Szene Zahlungen */
.pay-phone { position: absolute; left: 50%; top: 50%; translate: -96% -50%; }
/* „Mein Paket“ wie in der App (paket_screen.dart): dunkle Karten, Preis in Box-Farbe, Kauf-Button in voller Breite */
.m-pk { padding: 50px 14px 20px; display: grid; gap: 12px; align-content: start; }
.m-pk-bar { display: flex; align-items: center; gap: 12px; margin: 0 -14px 2px; padding: 8px 16px 12px; background: #000; }
.m-pk-bar i { font-style: normal; font-size: 30px; line-height: 20px; }
.m-pk-bar b { font-size: 20px; }
.m-pk-none { display: grid; gap: 4px; text-align: center; padding: 16px; background: #212121; border: 1px solid #616161; border-radius: 16px; }
.m-pk-none b { font-size: 16px; }
.m-pk-none small { color: rgba(255, 255, 255, .7); font-size: 12.5px; }
.m-pk-card { background: #212121; border: 1px solid #424242; border-radius: 16px; padding: 14px; display: grid; gap: 8px; transition: border-color .4s, box-shadow .4s; }
.m-pk-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.m-pk-card b { font-size: 16px; }
.m-pk-card small { display: block; color: rgba(255, 255, 255, .54); font-size: 12.5px; }
.m-pk-top > span { color: var(--box-text); font-weight: 700; font-size: 14px; text-align: right; }
.m-pk-card p { margin: 0; color: rgba(255, 255, 255, .7); font-size: 12.5px; }
.m-pk-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: 12px; background: var(--box); color: #fff; font-weight: 600; font-size: 14px; }
.m-pk-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-pk-card.on { border-color: var(--box); box-shadow: 0 0 0 2px rgba(228, 87, 46, .35); }
.scene[data-step="0"] .m-pk-card.on .m-pk-btn { animation: tapHint 1.6s .6s ease-in-out infinite; }
@keyframes tapHint { 50% { transform: scale(.96); filter: brightness(1.15); } }
/* Bezahlseite in der Browser-Sitzung (hell, wie die gehostete Checkout-Seite) */
.m-sheet { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; top: 46px; background: #fff; color: #1a1f36; border-radius: 14px 14px 0 0; display: flex; flex-direction: column; transform: translateY(105%); transition: transform .6s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 -20px 40px rgba(0, 0, 0, .5); }
.m-sheet-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #f6f8fa; border-bottom: 1px solid #e3e8ee; border-radius: 14px 14px 0 0; font-size: 14px; }
.m-sheet-bar span { color: #0a84ff; }
.m-sheet-bar small { color: #697386; font-size: 11.5px; }
.m-co { padding: 20px 18px; display: grid; gap: 6px; align-content: start; }
.m-co-shop { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.m-co-shop img { width: 28px; height: 28px; border-radius: 50%; }
.m-co-shop b { font-size: 14px; }
.m-co > small { color: #697386; font-size: 13px; }
.m-co strong { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 12px; }
.m-co strong small { font-size: 13px; font-weight: 400; color: #697386; letter-spacing: 0; }
.m-co-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.m-co-tabs i { font-style: normal; font-size: 12.5px; font-weight: 600; padding: 10px; border: 1px solid #e3e8ee; border-radius: 8px; color: #697386; }
.m-co-tabs i.on { border: 2px solid #635bff; color: #1a1f36; }
.m-co label { font-size: 12px; color: #3c4257; }
.m-co-in { border: 1px solid #e3e8ee; border-radius: 8px; padding: 10px; font-size: 12px; box-shadow: 0 1px 1px rgba(0, 0, 0, .04); }
.m-co-btn { margin-top: 16px; text-align: center; padding: 13px; border-radius: 8px; background: #1a1f36; color: #fff; font-weight: 600; font-size: 15px; }
.st-1 .m-sheet { transform: none; }
.st-2 .m-sheet { transform: translateY(105%); }
/* „Paket freigeschaltet!“ (package_activated_screen.dart) */
.m-done { position: absolute; z-index: 7; inset: 0; background: #000; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 0 18px; text-align: center; opacity: 0; transition: opacity .5s; }
.m-done > i { width: 92px; height: 92px; border-radius: 50%; background: linear-gradient(135deg, var(--box), var(--box-accent)); box-shadow: 0 0 36px rgba(228, 87, 46, .5); display: grid; place-items: center; font-size: 50px; font-style: normal; margin-bottom: 14px; transform: scale(0); transition: transform .7s .15s cubic-bezier(.3, 1.6, .4, 1); }
.st-2 .m-done > i { transform: none; }
.m-done > b { font-size: 25px; }
.m-done > span { font-size: 14px; color: rgba(255, 255, 255, .7); line-height: 1.4; }
.m-done-card { width: 100%; margin-top: 16px; padding: 14px; border-radius: 20px; text-align: left; background: linear-gradient(135deg, rgba(228, 87, 46, .25), rgba(228, 87, 46, .05)); border: 1px solid rgba(228, 87, 46, .3); display: grid; gap: 12px; }
.m-done-card > b { font-size: 16px; }
.m-done-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-done-facts div { background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 10px; font-size: 13.5px; font-weight: 700; }
.m-done-facts small { display: block; font-size: 11px; font-weight: 400; color: rgba(255, 255, 255, .54); }
.m-done .a-btn { font-style: normal; margin-top: 18px; width: 100%; border-radius: 12px; text-transform: none; letter-spacing: 0; font-size: 15px; }
.st-2 .m-done { opacity: 1; }
.m-paper { position: absolute; z-index: 3; left: 50%; top: 8%; width: min(310px, 44cqw); background: #fff; color: #1b1d20; border-radius: 6px; padding: 22px; display: grid; gap: 10px; font-size: 13px; line-height: 1.35;
  box-shadow: 0 50px 80px -30px rgba(0, 0, 0, .55); opacity: 0; transform: translate(6%, 30px) rotate(5deg); transition: opacity .6s, transform .8s cubic-bezier(.2, .8, .2, 1); }
.st-2 .m-paper { opacity: 1; transform: translate(6%, 0) rotate(2deg); }
.pp-head { display: flex; gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 3px solid #e4572e; }
.pp-head img { width: 40px; height: 40px; border-radius: 50%; }
.pp-head b { display: block; font-size: 15px; }
.pp-head small, .pp-to small { color: #888; }
.pp-to small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; }
.pp-row { display: flex; justify-content: space-between; gap: 10px; }
.pp-row.mut { color: #888; }
.pp-row.sum { font-weight: 800; border-top: 1px solid #ddd; padding-top: 8px; font-size: 15px; }
.pp-paid { justify-self: start; font: 700 10.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #1d7a42; border: 1.5px solid #1d7a42; padding: 6px 8px; border-radius: 4px; transform: rotate(-4deg); margin-top: 4px; }
.m-payout { position: absolute; z-index: 4; left: 50%; bottom: 6%; width: min(290px, 44cqw); background: #0f1012; color: #eceeec; border: 1px solid #2a2e34; border-radius: 16px; padding: 18px 20px; display: grid; gap: 4px;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .7); opacity: 0; transform: translate(22%, 30px); transition: opacity .6s, transform .8s cubic-bezier(.2, .8, .2, 1); }
.st-3 .m-payout { opacity: 1; transform: translate(22%, 0); }
.m-payout small, .m-payout > span { color: var(--on-dark-muted); font-size: 13px; }
.m-payout b { font: 800 2.5rem/1 var(--f-body); font-stretch: 80%; }
.po-row { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid #2a2e34; font-size: 13px; }
.po-row .mono { color: #3ddc84; font-weight: 600; }
@container (max-width: 560px) {
  .pay-phone { translate: -50% -50%; }
  .m-paper { left: auto; right: 0; top: 4%; width: 60cqw; padding: 14px; font-size: 11.5px; gap: 7px; transform: translateY(20px) rotate(3deg); }
  .st-2 .m-paper { transform: rotate(3deg); }
  .m-payout { left: 50%; width: 84cqw; transform: translate(-50%, 30px); }
  .st-3 .m-payout { transform: translate(-50%, 0); }
}

/* Szene Mitglieder: Plakat, Handy, Liste */
.m-poster { position: absolute; z-index: 1; left: 50%; top: 10%; translate: calc(-100% - 19cqh) 0; width: min(230px, 32cqh, 40cqw); background: #fff; color: #141619; padding: 18px; border-radius: 6px; display: grid; justify-items: center; gap: 10px; text-align: center;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .5); transform: rotate(-4deg); }
.m-poster img { width: 48px; height: 48px; border-radius: 50%; }
.m-poster b { font: 800 1.25rem/1 var(--f-body); font-stretch: 72%; text-transform: uppercase; }
.m-poster small { font: 600 .62rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #5b6168; }
.qr { width: 100%; max-width: 160px; fill: currentColor; display: block; }
.m-poster .qr { stroke-width: 1; }
.qr-phone { z-index: 2; }
.m-cam { position: absolute; inset: 0; padding: 50px 14px 0; background: radial-gradient(circle at 50% 45%, #2b2e33, #070808 70%); display: grid; grid-template-rows: auto 1fr auto; justify-items: center; transition: opacity .5s; }
.m-cam .m-pk-bar { justify-self: stretch; background: transparent; }
.m-cam .qr { align-self: center; width: 190px; max-width: none; color: #fff; padding: 18px; border: 3px solid #ffc914; border-radius: 22px; }
.m-cam .scan { position: absolute; left: 25%; right: 25%; height: 2px; top: 38%; background: #ffc914; box-shadow: 0 0 14px #ffc914; animation: scan 1.6s ease-in-out infinite alternate; }
.m-cam span { margin-bottom: 60px; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 14px; text-align: center; }
/* „Box beitreten“ (join_box_screen.dart) */
.m-join { position: absolute; inset: 0; padding: 50px 16px 0; display: grid; gap: 14px; align-content: start; background: #000; opacity: 0; transition: opacity .5s; }
.m-join p { margin: 0; color: rgba(255, 255, 255, .7); font-size: 14px; line-height: 1.4; }
.m-join-card { background: #1a1a1a; border: 1px solid #333; border-radius: 16px; padding: 14px; display: grid; gap: 2px; }
.m-join-card small { color: rgba(255, 255, 255, .6); font-size: 12px; }
.m-join-card .mono { font-size: 18px; letter-spacing: 2px; }
.m-join-box { grid-template-columns: 60px 1fr; gap: 14px; align-items: center; border-color: rgba(228, 87, 46, .7); }
.m-join-box img { width: 60px; height: 60px; border-radius: 50%; background: #fff; }
.m-join-box b { display: block; font-size: 18px; }
.m-join-box em { display: block; font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .38); margin-top: 2px; }
.m-join-btn { text-align: center; padding: 15px; border-radius: 14px; background: var(--box); font-weight: 700; font-size: 16px; margin-top: 6px; }
/* „Zustimmung erforderlich“ (terms_confirm_screen.dart): App-Leiste in Box-Farbe */
.m-terms { position: absolute; inset: 0; background: #000; display: flex; flex-direction: column; opacity: 0; transition: opacity .5s; }
.m-terms-bar { padding: 52px 16px 12px; background: var(--box); display: grid; }
.m-terms-bar b { font-size: 18px; }
.m-terms-bar small { font-size: 13px; color: rgba(255, 255, 255, .7); }
.m-terms-doc { padding: 16px; flex: 1; }
.m-terms-doc b { display: block; font-size: 17px; padding-bottom: 4px; border-bottom: 2px solid var(--box-accent); margin-bottom: 10px; }
.m-terms-doc p { margin: 0; color: rgba(255, 255, 255, .7); font-size: 13.5px; line-height: 1.5; }
.m-check { display: flex; gap: 10px; text-align: left; font-size: 14px; color: rgba(255, 255, 255, .82); margin: 0 16px 14px; }
.m-check i { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--box); display: grid; place-items: center; font-style: normal; font-size: 13px; }
.m-terms-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 40px; }
.m-terms-btns span { text-align: center; padding: 13px; border-radius: 10px; background: #333; font-weight: 600; }
.m-terms-btns .on { background: var(--box); }
.st-1 .m-cam { opacity: 0; }
.st-1 .m-join { opacity: 1; }
.st-2 .m-terms { opacity: 1; }
/* Popup nach dem Beitritt (showAmrappPopup, Typ success) */
.m-welcome { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .5s; }
.m-welcome > div { width: 100%; display: grid; justify-items: center; gap: 14px; padding: 26px 20px 20px; border-radius: 20px; background: #1e1e1e; text-align: center; transform: scale(.9); transition: transform .5s cubic-bezier(.3, 1.4, .4, 1); }
.m-welcome i { width: 60px; height: 60px; border-radius: 50%; background: rgba(76, 175, 80, .18); color: #4caf50; display: grid; place-items: center; font-style: normal; font-size: 30px; }
.m-welcome b { font-size: 19px; }
.m-welcome .a-btn { width: 100%; text-align: center; border-radius: 12px; text-transform: none; letter-spacing: 0; font-size: 15px; }
.st-3 .m-welcome { opacity: 1; }
.st-3 .m-welcome > div { transform: none; }
/* Mitgliederliste wie die Kartenansicht der Verwaltung */
.m-members { position: absolute; z-index: 5; left: 50%; top: 12%; translate: 10cqh 0; width: min(330px, 42cqw); background: #141922; color: #e6e9ee; border: 1px solid #273042; border-radius: 14px; padding: 16px; display: grid; gap: 10px;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .55); opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .8s cubic-bezier(.2, .8, .2, 1); }
.st-3 .m-members { opacity: 1; transform: none; }
.mm-head { display: flex; justify-content: space-between; align-items: center; }
.mm-head b { font-size: 18px; }
.mm-head span { background: #e2711d; color: #fff; font-size: 12px; font-weight: 600; padding: 7px 10px; border-radius: 8px; }
.mm-card { display: flex; gap: 12px; align-items: flex-start; background: #1b2230; border: 1px solid #273042; border-radius: 12px; padding: 12px; }
.mm-card i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; color: #fff; flex: none; }
.mm-card b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.mm-card small { display: inline-block; font-size: 11px; border: 1px solid #3a4558; padding: 1px 6px; border-radius: 5px; margin-right: 4px; }
.mm-card em { display: inline-block; font-style: normal; font-size: 11.5px; font-weight: 600; color: #3ddc84; background: rgba(61, 220, 132, .1); border-radius: 5px; padding: 2px 6px; margin-top: 7px; }
.mm-card em.none { color: #e6e9ee; background: #2a3446; }
.mm-card span { display: block; font-size: 11px; color: #8b93a7; margin-top: 4px; }
.mm-card.new { border-color: #e2711d; box-shadow: 0 0 0 3px rgba(226, 113, 29, .25); }
@container (max-width: 560px) {
  .m-poster { left: 2cqw; top: 2cqh; translate: none; width: 36cqw; padding: 10px; gap: 6px; }
  .m-poster b { font-size: .9rem; } .m-poster small { display: none; }
  .qr-phone { translate: 14cqw 0; }
  .m-members { left: 50%; top: auto; bottom: 2cqh; translate: -50% 0; width: 92cqw; }
}

/* Montag 07:30: echter Dashboard-Screenshot mit Markierungen */
.ov-shot { max-width: 1100px; margin: clamp(32px, 5vw, 64px) auto 0; }
.ov-img { position: relative; }
.hs { position: absolute; left: var(--x); top: var(--y); width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--signal); color: var(--signal-ink); font: 700 .8rem/30px var(--f-mono); text-align: center; font-style: normal;
  animation: hsPulse 2.4s var(--d, 0s) infinite; }
@keyframes hsPulse { 0% { box-shadow: 0 0 0 0 rgba(240, 90, 40, .6); } 70% { box-shadow: 0 0 0 16px rgba(240, 90, 40, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 90, 40, 0); } }
.ov-legend { list-style: none; margin: 30px auto 0; max-width: 1100px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px; }
.ov-legend li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; color: var(--ink-muted); }
.hs-n { width: 30px; height: 30px; border-radius: 50%; background: var(--signal); color: var(--signal-ink); font: 700 .8rem/30px var(--f-mono); text-align: center; }
@media (max-width: 760px) { .ov-legend { grid-template-columns: minmax(0, 1fr); } .hs { width: 22px; height: 22px; margin: -11px 0 0 -11px; line-height: 22px; font-size: .68rem; } }

/* Wechsel: Uhr mit Fortschrittsring */
.m-clock { position: relative; width: min(540px, 80cqh, 90cqw); aspect-ratio: 1; display: grid; place-items: center; }
.m-clock .ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.m-clock circle { fill: none; stroke: #23262b; stroke-width: 1.2; }
.m-clock .fg { stroke: var(--signal); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 1) * 100); }
.m-clock-t { display: grid; }
.m-clock-t span { grid-area: 1 / 1; font-size: clamp(3.2rem, 17cqh, 9rem); font-weight: 600; letter-spacing: -.04em; transform: translateY(14px); }
.m-clock-t span.on, .no-js .m-clock-t span[data-last] { transform: none; }
.m-clock small { position: absolute; top: 30%; font: 600 .74rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }

/* Statement: Wörter leuchten beim Scrollen auf */
.statement { padding-block: clamp(90px, 13vw, 190px); }
.statement .label { display: block; color: var(--muted); margin-bottom: 26px; }
.statement-text { font: 700 clamp(1.9rem, 4.4vw, 4rem)/1.12 var(--f-body); font-stretch: 88%; letter-spacing: -.02em; max-width: 26ch; text-wrap: balance; }
.js .statement-text .w { opacity: .42; transition: opacity .35s; }
.js .statement-text .w.on { opacity: 1; }
.screens { list-style: none; padding: 0; margin: clamp(40px, 6vw, 80px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.screens li { padding: 22px 22px 0 0; display: grid; gap: 6px; align-content: start; }
.screens b { font: 800 clamp(1.6rem, 2.4vw, 2.1rem)/1 var(--f-body); font-stretch: 72%; text-transform: uppercase; }
.screens span { color: var(--muted); }
@media (max-width: 760px) { .screens { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .js .statement-text .w { opacity: 1; } }

/* Alles andere ist auch drin */
.more-grid { list-style: none; padding: 0; margin: clamp(40px, 6vw, 72px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.more-grid li { background: var(--light); padding: 24px 22px 26px; display: grid; gap: 8px; align-content: start; }
.more-grid svg { width: 26px; height: 26px; fill: none; stroke: var(--signal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.more-grid b { font-weight: 700; line-height: 1.25; }
.more-grid span { color: var(--ink-muted); font-size: .94rem; }
@media (max-width: 980px) { .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .more-grid { grid-template-columns: minmax(0, 1fr); } .more-grid li { padding: 18px 16px; } }
.soon { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 34px); align-items: center; padding: clamp(22px, 3.4vw, 40px); background: var(--dark); color: var(--on-dark); border: 1px solid var(--line); }
.soon-ic { width: clamp(56px, 7vw, 84px); height: auto; fill: none; stroke: var(--signal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.soon .label { display: flex; gap: 10px; align-items: center; color: var(--on-dark-muted); }
.soon h3 { margin: 12px 0 8px; }
.soon p { color: #b3b9be; max-width: 62ch; }
@media (max-width: 560px) { .soon { grid-template-columns: minmax(0, 1fr); } }

/* Kontaktformular (/kontakt) */
.contact-wrap { max-width: 760px; }
.contact-form { display: grid; gap: 22px; }
.f select, .f textarea { width: 100%; background: #fff; border: 1px solid var(--light-line); padding: 13px 12px; font: inherit; font-size: 16px; color: var(--ink); border-radius: 0; }
.f textarea { resize: vertical; min-height: 160px; line-height: 1.5; }
.f select:focus, .f textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 -2px 0 var(--signal); }
.f textarea[aria-invalid="true"] { border-color: var(--plate-red); box-shadow: inset 0 -2px 0 var(--plate-red); }
.contact-note { color: var(--ink-muted); font-size: .9rem; max-width: 62ch; }
.contact-done { display: grid; gap: 14px; justify-items: start; }
.contact-done .label { color: var(--ink-muted); }
.contact-done h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
@media (prefers-color-scheme: dark) {
  .contact-form .f input, .f select, .f textarea { background: var(--light-2); color: var(--ink); }
}
