/* FLOW Webdesign · Scroll-Reise (Fassung „episch“, 30.10.2026)
   Zwei grelle Akzente aus einem Farbton (--h, --h2 = 60° daneben), Hell als Voreinstellung,
   Dunkel als Nachtbühne. Farbton und Thema setzt js/stil.js. */
:root {
  --h: 18;
  --h2: 318;
  --akzent: hsl(var(--h) 100% 55%);
  --akzent2: hsl(var(--h2) 100% 60%);
  --verlauf: linear-gradient(100deg, var(--akzent), var(--akzent2));
  --grund: #eceef2;
  --tinte: #121318;
  --leise: #6b6f7a;
  --flaeche: rgba(255, 255, 255, .72);
  --linie: rgba(18, 19, 24, .12);
  --schleier: rgba(236, 238, 242, .75);
  --schatten: 0 6px 30px rgba(236, 238, 242, .9);
  --kopf: 'Bricolage Grotesque Variable', 'Arial Narrow', sans-serif;
  --text: 'Schibsted Grotesk', system-ui, sans-serif;
  --mono: 'Martian Mono', ui-monospace, monospace;
  color-scheme: light;
}
[data-theme="dark"] {
  --akzent: hsl(var(--h) 100% 58%);
  --akzent2: hsl(var(--h2) 100% 64%);
  --grund: #0b0c10;
  --tinte: #f3f1ea;
  --leise: #8a8d96;
  --flaeche: rgba(20, 21, 27, .72);
  --linie: rgba(243, 241, 234, .14);
  --schleier: rgba(5, 6, 9, .7);
  --schatten: 0 6px 40px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--grund); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  color: var(--tinte);
  background: var(--grund);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s, color .4s;
}
a { color: inherit; }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.buehne { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; }
.schleier {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, var(--schleier) 100%);
}

/* ---------- Kopf ---------- */
.kopf {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px clamp(16px, 4vw, 40px);
}
.marke { display: flex; align-items: center; gap: 10px; font-family: var(--kopf); font-weight: 500; font-size: 18px; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.marke__bild { flex: none; }
.marke b {
  font-weight: 800;
  background: var(--verlauf); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kopf__werkzeug { display: flex; align-items: center; gap: 8px; }
.kopf__rund {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--linie); background: var(--flaeche); color: var(--tinte);
  backdrop-filter: blur(8px);
}
.kopf__rund svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kopf__rund[hidden] { display: none; }
#theme .sonne { display: none; }
[data-theme="dark"] #theme .sonne { display: block; }
[data-theme="dark"] #theme .mond { display: none; }
.kopf__knopf {
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap;
  text-decoration: none; padding: 11px 16px; border-radius: 999px;
  background: var(--verlauf); color: #fff; font-weight: 600;
  box-shadow: 0 6px 24px hsl(var(--h) 100% 55% / .35);
}

/* Farbregler: die Spur zeigt den ganzen Farbkreis, der Knopf die gewählte Farbe */
.farbe {
  display: flex; align-items: center; height: 38px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--linie); background: var(--flaeche); backdrop-filter: blur(8px);
}
.farbe input { -webkit-appearance: none; appearance: none; width: 110px; height: 8px; border-radius: 8px; margin: 0; cursor: pointer;
  background: linear-gradient(90deg, hsl(0 100% 55%), hsl(60 100% 50%), hsl(120 100% 45%), hsl(180 100% 45%), hsl(240 100% 60%), hsl(300 100% 55%), hsl(360 100% 55%)); }
.farbe input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--akzent); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.farbe input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--akzent); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.farbe input:focus-visible { outline: 2px solid var(--akzent); outline-offset: 6px; }

/* ---------- Akte: je eine Bildschirmhöhe Scrollweg, das Wort steht fest ---------- */
.reise { position: relative; z-index: 2; }
.akt {
  height: 130vh;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding: 0 clamp(16px, 6vw, 80px) 14vh;
}
.wort, .zeichen {
  position: sticky; bottom: 14vh; margin: 0;
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.wort {
  font-family: var(--kopf); font-weight: 700;
  font-size: clamp(44px, 9vw, 132px); line-height: .95; letter-spacing: -.035em;
  text-shadow: var(--schatten);
}
.wort--leise { color: var(--leise); font-weight: 500; }
.wort--akzent, .ziel__titel span {
  background: var(--verlauf); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
  padding-bottom: .08em;
}
.zeichen {
  bottom: calc(14vh - 34px);
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  color: var(--akzent);
}
.akt.ist-aktiv .wort, .akt.ist-aktiv .zeichen { opacity: 1; transform: none; }

/* Beispiele: die Liste ist nur für Tastatur und Vorleser sichtbar, in 3D klickt man die Bildschirme */
.beispiel-liste { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; padding: 0; }
.beispiel-liste:focus-within {
  position: sticky; bottom: calc(14vh - 80px); width: auto; height: auto; clip: auto; overflow: visible;
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none;
}
.beispiel-liste a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--flaeche); border: 1px solid var(--linie); font-size: 14px; text-decoration: none; }
.no-webgl .beispiel-liste { position: static; width: auto; height: auto; clip: auto; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 16px; }
html.ist-zeigen, html.ist-zeigen body { cursor: pointer; }

/* ---------- Ziel mit Formular ---------- */
/* Ziel: Formular links, der fertige Bau steht rechts daneben (Kamera im Finale entsprechend) */
.akt--ziel { height: auto; min-height: 170vh; justify-content: flex-end; align-items: flex-start; padding-bottom: 8vh; }
.ziel {
  width: min(580px, 100%); text-align: left;
  opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease;
}
.akt--ziel.ist-aktiv .ziel { opacity: 1; transform: none; }
.ziel__titel {
  margin: 0 0 28px;
  font-family: var(--kopf); font-weight: 700;
  font-size: clamp(36px, 4.6vw, 72px); line-height: .98; letter-spacing: -.035em;
  text-shadow: var(--schatten);
}
.formular {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left;
  padding: clamp(16px, 3vw, 28px); border-radius: 18px;
  background: var(--flaeche); border: 1px solid var(--linie);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .18);
}
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld span, .haken span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--leise); }
.feld--breit { grid-column: 1 / -1; }
.feld input, .feld select, .feld textarea {
  font: 16px/1.3 var(--text); color: var(--tinte);
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--linie);
  background: color-mix(in srgb, var(--grund) 70%, transparent);
  transition: border-color .2s, box-shadow .2s;
}
.feld textarea { resize: vertical; min-height: 56px; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px hsl(var(--h) 100% 55% / .25); }
[aria-invalid="true"] { border-color: #e5383b !important; }
.feld--versteckt { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.haken { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.haken span { text-transform: none; letter-spacing: 0; font-family: var(--text); font-size: 14px; color: var(--tinte); }
.haken input { width: 18px; height: 18px; accent-color: hsl(var(--h) 100% 50%); }
.formular__fuss { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.formular__status { margin: 0; font-size: 14px; }
.formular__status[data-art="fehler"] { color: #e5383b; }
.formular__status[data-art="ok"] { color: var(--akzent); font-weight: 600; }
.knopf {
  font: 600 17px var(--text); cursor: pointer; border: 0;
  padding: 15px 30px; border-radius: 10px;
  background: var(--verlauf); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 36px hsl(var(--h) 100% 55% / .45);
  transition: transform .3s, box-shadow .3s;
}
.knopf:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 16px 50px hsl(var(--h2) 100% 60% / .55); }
.knopf:disabled { opacity: .6; cursor: progress; }
.ziel__fuss { margin: 24px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--leise); }
.ziel__fuss a { text-decoration: none; }
.ziel__fuss a:hover { color: var(--tinte); }

/* ---------- WhatsApp: Knopf unten rechts mit Sprechblase „Einfach kurz chatten.“ ---------- */
.wa { position: fixed; right: clamp(16px, 2.4vw, 28px); bottom: clamp(16px, 2.4vw, 28px); z-index: 6;
  display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wa__knopf { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .25); transition: transform .2s; }
.wa__hinweis { position: relative; padding: 9px 14px; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--linie);
  backdrop-filter: blur(10px); font-size: 14px; font-weight: 600; color: var(--tinte); white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12); animation: wa-ein .6s 1.5s both cubic-bezier(.2, .9, .3, 1.3); }
.wa__hinweis::after { content: ''; position: absolute; right: -6px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  background: inherit; border-right: 1px solid var(--linie); border-top: 1px solid var(--linie); transform: rotate(45deg); }
@keyframes wa-ein { from { opacity: 0; transform: translateX(10px) scale(.9); } }
.wa:hover .wa__knopf { transform: translateY(-2px) scale(1.04); }
.wa:focus-visible { outline: none; }
.wa:focus-visible .wa__knopf { outline: 3px solid var(--akzent); outline-offset: 3px; }

/* ---------- Hinweis und Fortschritt ---------- */
.hinweis { position: fixed; left: 50%; bottom: 28px; z-index: 4; width: 1px; height: 56px; overflow: hidden; background: var(--linie); transition: opacity .5s; }
.hinweis span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--akzent); animation: hinweis 1.8s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes hinweis { to { top: 100%; } }
.ist-gescrollt .hinweis { opacity: 0; }
.spur { position: fixed; right: clamp(10px, 2vw, 24px); top: 50%; z-index: 4; width: 3px; height: 30vh; transform: translateY(-50%); background: var(--linie); border-radius: 3px; overflow: hidden; }
.spur span { display: block; width: 100%; height: 100%; background: linear-gradient(180deg, var(--akzent), var(--akzent2)); transform-origin: top; transform: scaleY(0); }

.dateihinweis { display: none; }
.von-datei .dateihinweis { display: block; position: fixed; inset: auto 0 0 0; z-index: 9; margin: 0; padding: 12px; text-align: center; background: var(--akzent); color: #121318; font-weight: 600; }

.no-js .wort, .no-js .zeichen, .no-js .ziel, .no-webgl .wort, .no-webgl .zeichen, .no-webgl .ziel { opacity: 1; transform: none; }
.no-webgl .akt { height: auto; min-height: 60vh; }
.no-webgl .buehne { display: none; }

@media (prefers-reduced-motion: reduce) {
  .wort, .zeichen, .ziel, body { transition: none; }
  .hinweis span { animation: none; top: 0; height: 100%; }
}
@media (max-width: 600px) {
  .akt { padding-bottom: 18vh; }
  .wort { bottom: 18vh; }
  .zeichen { bottom: calc(18vh - 30px); }
  .marke { font-size: 15px; }
  .farbe { padding: 0 10px; }
  .farbe input { width: 64px; }
  .kopf__knopf { display: none; }
  .wa__knopf { width: 50px; height: 50px; }
  .wa__hinweis { font-size: 13px; padding: 8px 12px; }
  .formular { grid-template-columns: 1fr; }
  .akt--ziel { min-height: 150vh; padding-bottom: 4vh; align-items: center; }
  .ziel { text-align: center; }
}
