/* SEGLER 249 (Beispiel) · ein einfarbiger Grund, die Täuschung entsteht nur durch Bewegung */
@font-face { font-family: "Exo"; src: url("../fonts/exo-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Exo"; src: url("../fonts/exo-800.woff2") format("woff2"); font-weight: 800 900; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/atkinson-hyperlegible-next-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --grund: #F2EEE6;      /* die eine Farbe, sie ändert sich im Flug nie */
  --ton: #E6DFD3;        /* Ton in Ton für Riesenzahlen */
  --karte: #FBF9F5;
  --tinte: #15171A;
  --text-2: #4A4D52;
  --akzent: #E8481C;
  --knopf: #CC3A0F;      /* Knopfgrund eine Spur dunkler: weiße Schrift erreicht 4,5 : 1 */
  --rand: clamp(16px, 5vw, 72px);
  --inhalt: 1240px;
  --kopf: 64px;
  --abstand: clamp(72px, 11vw, 150px);
}
* { box-sizing: border-box; }
html { background: var(--grund); scroll-padding-top: calc(var(--kopf) + 12px); }
body { margin: 0; overflow-x: clip; background: var(--grund); color: var(--tinte); font-family: "Atkinson Hyperlegible Next", sans-serif; font-size: clamp(1rem, .95rem + .25vw, 1.15rem); line-height: 1.55; }
h1, h2, h3 { font-family: "Exo", sans-serif; font-weight: 800; line-height: .98; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 1.4rem + 5vw, 6rem); }
h2 { font-size: clamp(2rem, 1.1rem + 3.4vw, 4.4rem); }
h3 { font-size: 1.4rem; line-height: 1.1; letter-spacing: -.01em; }
p { margin: 14px 0 0; max-width: 32rem; }
img { max-width: 100%; }
a { color: inherit; }
.innen { width: min(100% - 2 * var(--rand), var(--inhalt)); margin-inline: auto; }

.sprung { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--tinte); color: var(--grund); padding: 10px 14px; border-radius: 8px; }
.sprung:focus { top: 12px; }

/* Kopfzeile: auf gleicher Kante wie der Inhalt */
.kopfzeile { position: fixed; z-index: 20; inset: 0 0 auto 0; height: var(--kopf); display: flex; align-items: center; gap: 28px; padding: 0 var(--rand); background: var(--grund); }
.marke { margin-right: auto; font-family: "Exo", sans-serif; font-weight: 800; letter-spacing: .06em; color: var(--tinte); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.marke-bei { font-family: "Atkinson Hyperlegible Next", sans-serif; font-weight: 400; letter-spacing: 0; font-size: .8rem; margin-left: 6px; color: var(--text-2); }
.menue { display: flex; gap: 24px; }
.menue a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .menue a:hover { text-decoration: underline; text-decoration-color: var(--akzent); text-decoration-thickness: 2px; text-underline-offset: 5px; } }
@media (max-width: 760px) { .menue, .marke-bei { display: none; } }

.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--knopf); color: #FFFDFA; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s cubic-bezier(.2, .7, .2, 1); }
.knopf--klein { min-height: 44px; padding: 0 20px; font-size: .95rem; }
@media (hover: hover) and (pointer: fine) { .knopf:hover { transform: translateY(-2px); } }
.knopf:active { transform: translateY(1px); }
.knopf:disabled { opacity: .6; cursor: progress; }
:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; }

.vertrauen { font-weight: 700; }
.beruhigung, .rueckgabe { font-size: .95rem; color: var(--text-2); margin-top: 10px; }
.aktion { margin-top: 22px; }
.hinweis, .weiter { display: none; }
.lage { margin: 0 0 12px; font-weight: 700; color: var(--akzent); }
.staerken { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; max-width: 26rem; }
.staerken li { position: relative; padding-left: 22px; }
.staerken li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--akzent); }
.preis-zahl { font-family: "Exo", sans-serif; font-weight: 800; font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); }

/* ---------- Ohne JavaScript oder mit ruhiger Einstellung: eine einfache, vollständige Seite ---------- */
.station { display: grid; gap: 28px; align-items: center; padding: calc(var(--kopf) + 6vh) var(--rand) 6vh; }
.bild { display: block; width: min(86vw, 620px); height: auto; }
.zahl, .punkte, .weg, .blick, .brand, .aufloesung { display: none; }
html.js .aufloesung { display: grid; }

/* ======================= Der Flug ======================= */
html.js { scrollbar-width: none; }                 /* keine Scrollleiste, die verraten würde, dass es nur nach unten geht */
html.js::-webkit-scrollbar { display: none; }
html.js .welt { position: relative; --W: 100vw; --H: 100svh; }
html.js .fenster { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
html.js .flaeche { position: absolute; left: 0; top: 0; width: 1px; height: 1px; transform-origin: 0 0; will-change: transform; }
html.js .station { position: absolute; left: 0; top: 0; width: var(--W); height: var(--H); padding: var(--kopf) var(--rand) 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4vw; }
html.js .station .kipp { justify-self: center; width: 100%; display: flex; justify-content: center; will-change: transform; }
html.js .station .bild { width: 100%; max-height: 66vh; object-fit: contain; }
/* bis flug.js die Stationen auf ihren Platz am Weg gelegt hat, ist nur der Kopf zu sehen (sonst stehen alle kurz links oben) */
html.js .welt:not(.bereit) .station:not(.start), html.js .welt:not(.bereit) .zahl, html.js .welt:not(.bereit) .weg { visibility: hidden; }
html.js .station.rechts .kipp, html.js .start .kipp { order: 2; }
html.js .aufloesung { grid-template-columns: minmax(0, 1fr); }
html.js .aufloesung .text { max-width: 44rem; }
html.js .aufloesung h2 { font-size: clamp(2.4rem, 1.2rem + 4.4vw, 5.6rem); }
html.js .hinweis { display: block; position: absolute; right: var(--rand); bottom: 4vh; font-size: .9rem; color: var(--text-2); max-width: none; }
html.js .weiter { display: block; margin-top: 26px; font-weight: 700; color: var(--akzent); }

/* Riesenzahlen Ton in Ton: die hinterste Ebene, sie laufen langsamer (Parallaxe) */
html.js .zahl { display: block; position: absolute; left: 0; top: 0; font-family: "Exo", sans-serif; font-weight: 900; font-size: calc(var(--H) * .58); line-height: 1; color: var(--ton); white-space: nowrap; pointer-events: none; user-select: none; will-change: transform; }

/* feines Punktemuster in der gleichen Farbe: der Boden, über den man gleitet */
html.js .punkte { display: block; position: absolute; inset: -44px; background-image: radial-gradient(circle, rgba(21, 23, 26, .1) 1.3px, transparent 1.8px); background-size: 44px 44px; will-change: transform, opacity; }

/* Der ganze Weg, erscheint beim Herauszoomen */
html.js .weg { display: block; position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.weg-linie { fill: none; stroke: var(--akzent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
html.js .blick { display: block; position: absolute; z-index: 4; left: 0; right: 0; bottom: clamp(20px, 6vh, 56px); margin: 0 auto; max-width: none; padding: 0 var(--rand); text-align: center; font-family: "Exo", sans-serif; font-weight: 800; font-size: clamp(1.3rem, .9rem + 1.6vw, 2.2rem); opacity: 0; }

@media (max-width: 760px) {
  html.js .station { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 18px; padding-top: calc(var(--kopf) + 8px); }
  html.js .station .kipp, html.js .station.rechts .kipp, html.js .start .kipp { order: 0; }
  html.js .station .bild { max-height: 34svh; width: auto; max-width: 86vw; }
  html.js .zahl { font-size: calc(var(--W) * .5); }
  html.js .hinweis { display: none; }
  .staerken { gap: 6px; margin-top: 14px; font-size: .95rem; }
}

/* ======================= Im Karton: gestapelte Karten ======================= */
.karton { padding-block: var(--abstand) calc(var(--abstand) * .6); }
.karton-satz { color: var(--text-2); }
.stapel { list-style: none; margin: clamp(32px, 5vw, 64px) auto 0; padding: 0; width: min(100% - 2 * var(--rand), 980px); display: grid; gap: 22px; }
.karte { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 28px; min-height: min(56vh, 420px); padding: clamp(24px, 4vw, 48px); border-radius: 28px; background: var(--karte); border: 1px solid #E2DACC; box-shadow: 0 24px 50px -30px rgba(21, 23, 26, .35); transform-origin: 50% 0; }
.karte-nr { margin: 0 0 10px; font-weight: 700; color: var(--akzent); }
.karte h3 { font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); }
.karte-bild { justify-self: center; width: min(100%, 380px); height: auto; }
.karte-gross { justify-self: center; margin: 0; font-family: "Exo", sans-serif; font-weight: 900; font-size: clamp(3rem, 1.6rem + 6vw, 7rem); line-height: 1; color: var(--akzent); white-space: nowrap; }
html.js .karte { position: sticky; top: calc(var(--kopf) + 24px + var(--i, 0) * 14px); will-change: transform; }
.karte-1 { --i: 0; } .karte-2 { --i: 1; } .karte-3 { --i: 2; } .karte-4 { --i: 3; }
@media (max-width: 760px) {
  .karte { grid-template-columns: minmax(0, 1fr); gap: 16px; min-height: 0; }
  .karte-bild { width: min(70%, 260px); }
}

/* ======================= Fragen ======================= */
.fragen { padding-block: calc(var(--abstand) * .6) var(--abstand); }
.fragen h2 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.6rem); max-width: 20ch; }
.fragen-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); margin-top: clamp(28px, 4vw, 56px); }
.fragen-liste > div { border-top: 3px solid var(--tinte); padding-top: 16px; }
.fragen-liste p { margin-top: 10px; color: var(--text-2); }
@media (max-width: 900px) { .fragen-liste { grid-template-columns: 1fr; gap: 24px; } }

/* ======================= Vorbestellen ======================= */
.bestellen { position: relative; background: var(--tinte); color: var(--grund); padding-block: var(--abstand); overflow: clip; }
html.js .brand { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.bestellen-gitter { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.magnet { font-size: clamp(3.4rem, 1.4rem + 9vw, 9.5rem); font-weight: 800; line-height: .96; letter-spacing: -.03em; touch-action: manipulation; }
.mag-sicht { position: relative; display: inline-block; }
.wort { display: inline-block; white-space: nowrap; }
.bu { display: inline-block; transform-origin: 50% 70%; will-change: transform; color: color-mix(in srgb, var(--akzent) calc(var(--w, 0) * 100%), var(--grund)); }
.bestellen-preis { display: flex; align-items: baseline; gap: 12px; margin-top: 26px; }
.bestellen-text { opacity: .9; }
.bestellen :focus-visible { outline-color: var(--grund); }
.bestellen .rueckgabe { color: #C9C4BA; text-align: center; }
.formular { display: grid; gap: 16px; }
.feld { display: grid; gap: 6px; }
.feld label { font-weight: 700; }
.feld input { min-height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid #4A4D52; background: #202328; color: var(--grund); font: inherit; }
.feld input:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }
.feld input[aria-invalid="true"] { border-color: #FF8A66; }
.feld-fehler { margin: 0; min-height: 1.2em; font-size: .92rem; color: #FFB199; }
.knopf--voll { width: 100%; }
.formular-meldung { margin: 0; min-height: 1.4em; font-weight: 700; text-align: center; }
@media (max-width: 900px) { .bestellen-gitter { grid-template-columns: 1fr; } }

/* ======================= Fuß und Rechtliches ======================= */
.fuss { background: #0E0F11; color: #E9E5DC; padding: 44px 0 52px; }
.fuss-gitter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.fuss p { font-size: .98rem; line-height: 1.7; margin: 0; }
.fuss-marke { font-family: "Exo", sans-serif; font-weight: 800; letter-spacing: .04em; margin-bottom: 6px !important; }
.fuss-klein { margin-top: 10px !important; font-size: .88rem !important; opacity: .8; }
.fuss a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 760px) { .fuss-gitter { grid-template-columns: 1fr; } }
.unterseite { scrollbar-width: auto; }
.recht { padding: calc(var(--kopf) + 48px) 0 var(--abstand); }
.recht-innen { max-width: 760px; }
.recht h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); }
.recht h2 { font-size: 1.6rem; margin-top: 40px; }
.recht-hinweis { padding: 14px 18px; border-radius: 14px; background: var(--karte); border: 1px solid #E2DACC; }

/* Ruhige Fassung: das Skript schaltet die Fahrt gar nicht erst ein (frueh.js), hier ruhen auch die kleinen Übergänge */
@media (prefers-reduced-motion: reduce) {
  .knopf { transition: none; }
  .knopf:hover, .knopf:active { transform: none; }
}
