/* seite.css · KÖLBEL (Beispiel). Warmes Dunkel der Werkstatt, Glut als Licht, Kobaltblau als einziger Akzent.
 * Schriften lokal: Gloock (Überschriften), Onest (Text), Geist Mono (Zahlen). Eckenradien: Knöpfe rund (999px), Felder 10px. */
@font-face { font-family: 'Gloock'; src: url('../fonts/gloock-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Onest'; src: url('../fonts/onest-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --grund: #0a0706;
  --text: #f4ece3;
  --text-2: #c9bcae;
  --text-3: #988a7e;
  --akzent: #2a4fdc;          /* Kobaltblau: Knopf, Fokus, „Farbe.“ */
  --akzent-hell: #6d8bff;     /* Kobalt für Text auf Dunkel (Kontrast) */
  --linie: #2b2420;
  --rund-knopf: 999px;
  --rund-feld: 10px;
  --schrift: 'Onest', system-ui, 'Segoe UI', sans-serif;
  --anzeige: 'Gloock', Georgia, serif;
  --mono: 'Onest', system-ui, sans-serif;
}
body { font-feature-settings: 'ss01' 0; caret-color: var(--akzent-hell); scrollbar-color: #3a302a var(--grund); }
::selection { background: rgba(42, 79, 220, 0.55); color: #fff; }
:focus-visible { outline-color: var(--akzent-hell); }

/* Kopf: Wortmarke auf der Inhaltskante */
.marke { font-family: var(--anzeige); font-weight: 400; font-size: 1.55rem; letter-spacing: 0.04em; }
.menue a { font-size: 0.95rem; }
.knopf { background: var(--akzent); color: #fff; font-weight: 600; letter-spacing: 0.005em; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.75); transition: background-color 0.2s var(--aus), transform 0.2s var(--aus); }
@media (hover: hover) and (pointer: fine) { .knopf:hover { background: #3a5ff0; box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.8); } }
.knopf--klein { box-shadow: none; }
.ton { background: rgba(10, 7, 6, 0.55); border-color: rgba(244, 236, 227, 0.18); white-space: nowrap; }
.knopf { white-space: nowrap; }

/* Länge der Fahrt: je Station so viel Scrollweg, wie die Kamera braucht */
.fahrt .station { position: relative; min-height: 165lvh; }
.fahrt .station--start { min-height: 140lvh; }
.fahrt .station--wende { min-height: 210lvh; }
.fahrt .station--drop { min-height: 120lvh; }

/* Erster Bildschirm (D32) */
.held { position: sticky; top: 0; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  padding: 96px var(--rand) clamp(26px, 7vh, 80px); max-width: 56rem; }
.titel { margin: 0; font-family: var(--anzeige); font-weight: 400; font-size: clamp(2.6rem, 5.1vw, 4.9rem); line-height: 1.0; letter-spacing: -0.012em; max-width: 12.5em; text-wrap: balance; }
.unterzeile, .beleg, .beruhigung, .tipp { margin: 0; }
.unterzeile { color: var(--text-2); font-size: clamp(1.02rem, 1.25vw, 1.15rem); max-width: 34rem; }
.beleg { color: var(--text-2); font-size: 0.93rem; }
.zahl { font-variant-numeric: tabular-nums; font-weight: 560; color: var(--text); }
.trenner { margin: 0 0.35em; color: var(--text-3); }
.handlung { display: grid; justify-items: start; gap: 9px; margin-top: 10px; }
.beruhigung { color: var(--text-3); font-size: 0.9rem; }
/* Hinweis zur Maus sitzt beim Glas, nicht im Textstapel */
.station--start { position: relative; }
.tipp { position: absolute; left: 61%; top: 79svh; width: 16rem; color: var(--text-2); font-size: 0.86rem; display: none; text-align: center; }
@media (hover: hover) and (pointer: fine) { .mit-js .tipp--maus { display: block; } }
@media (hover: none), (pointer: coarse) { .mit-js .tipp--finger { display: block; } }
[data-buehne="ruhig"] .tipp, [data-buehne="bildmodus"] .tipp { display: none !important; }

/* Stationen: Text links auf der Inhaltskante, das Glas rechts */
.station-text { position: sticky; top: 26vh; max-width: 31rem; padding: 24px var(--rand); }
#station-2 .station-text { top: 25vh; }
#station-3 .station-text { top: 46vh; }
.station-text h2 { margin: 0 0 14px; font-family: var(--anzeige); font-weight: 400; font-size: clamp(2rem, 3.7vw, 3.4rem); line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance; }
.station-text p { margin: 0 0 12px; color: var(--text-2); max-width: 30rem; }
.station-text .detail { font-size: 0.88rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.station-text h2 + p { margin-top: 0; }
.station-text { padding-top: 40px; }
.station-text, .held { text-shadow: 0 1px 18px rgba(0, 0, 0, 0.55); }

/* Wendepunkt: die eine große Zeile der Seite (D26, ein Regelbruch: Schrift über der ganzen Breite, über dem Glas) */
.station--wende .station-text { max-width: none; top: 18vh; }
.wende-titel { font-size: clamp(3.2rem, 10.5vw, 10.5rem) !important; line-height: 0.92 !important; max-width: 9.5em; }
.wende-titel .farbe { color: var(--akzent-hell); }
.station--wende .station-text p { max-width: 27rem; }

/* Steckbrief des Beispielstücks */
.steckbrief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(244, 236, 227, 0.14); max-width: 26rem; }
.steckbrief div { display: grid; gap: 2px; }
.steckbrief dt { font-size: 0.8rem; color: var(--text-3); }
.steckbrief dd { margin: 0; font-size: 1.05rem; font-weight: 560; font-variant-numeric: tabular-nums; color: var(--text); }

/* Drop und Formular (B9) */
.drop-text { top: 12vh; max-width: 46rem; }
.drop-text h2 { max-width: 14em; font-size: clamp(2rem, 3.4vw, 3.1rem); }
.anfragen-satz { color: var(--text-2); }
.formular { margin-top: 22px; max-width: 26rem; gap: 14px; }
.feld input { background: rgba(255, 255, 255, 0.07); border-color: rgba(244, 236, 227, 0.46); }
.feld label { color: var(--text); font-weight: 500; }
.feld input:focus { border-color: var(--akzent-hell); outline: none; box-shadow: 0 0 0 3px rgba(109, 139, 255, 0.25); }
.formular .knopf { justify-self: start; }
.formular .beruhigung { margin-top: -4px; }
.schluss { margin-top: 30px !important; font-family: var(--anzeige); font-size: 1.5rem; color: var(--text) !important; }

/* Temperatur des Glases, läuft mit der Fahrt (szene.js schreibt den Wert) */
.temperatur { display: none; }
.mit-js .temperatur { position: fixed; right: var(--rand); bottom: clamp(18px, 4vh, 40px); z-index: 5; display: flex; align-items: baseline; gap: 10px; flex-direction: row-reverse;
  font-size: 0.86rem; color: var(--text-3); font-variant-numeric: tabular-nums; pointer-events: none; transition: opacity 0.4s ease; }
.temperatur .grad { font-size: 1.35rem; font-weight: 500; color: var(--text); letter-spacing: -0.01em; min-width: 5.6ch; text-align: right; }
.temperatur .punkt { width: 9px; height: 9px; border-radius: 50%; background: var(--glut, #ff9b3d); align-self: center; }
.temperatur.ist-kalt .punkt { background: var(--akzent-hell); }
.kopf-fest .temperatur { opacity: 1; }
.mit-js .temperatur.temperatur--weg { opacity: 0; }

/* Fuß */
.fuss { background: #070505; }
.fuss a { color: var(--text-2); }

/* Handy: Glas oben, Text unten */
@media (max-width: 720px) {
  .held { padding-bottom: 28px; gap: 12px; }
  .titel { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .fahrt .station:not(.station--start) { min-height: 150lvh; display: flex; flex-direction: column; justify-content: flex-end; }
  .station-text { position: relative; top: auto; padding-top: 0; padding-bottom: 12vh; }
  .station-text h2 { font-size: clamp(1.9rem, 8.6vw, 2.5rem); }
  .wende-titel { font-size: clamp(3rem, 15vw, 4.6rem) !important; }
  .mit-js .temperatur { top: 78px; bottom: auto; }
  .temperatur .grad { font-size: 1.1rem; }
  .kopfzeile .knopf--klein { padding: 0 14px; }
  .unterzeile { font-size: 1rem; }
  .tipp { font-size: 0.82rem; left: var(--rand); right: var(--rand); width: auto; top: 47svh; }
}

@media (max-width: 420px) { .kopfzeile .knopf--klein { display: none; } }

/* Rechtliches */
.recht { max-width: 46rem; margin: 0 auto; padding: 120px var(--rand) 80px; position: relative; z-index: 1; }
.recht h1, .recht h2 { font-family: var(--anzeige); font-weight: 400; }
.recht p { color: var(--text-2); }
.recht-hinweis { padding: 14px 18px; border: 1px solid var(--linie); border-radius: var(--rund-feld); color: var(--text) !important; }
.recht dl { display: grid; gap: 10px; margin: 0; }
.recht dl div { display: grid; grid-template-columns: minmax(0, 14rem) 1fr; gap: 16px; }
.recht dt { color: var(--text-3); }
.recht dd { margin: 0; }
@media (max-width: 600px) { .recht dl div { grid-template-columns: 1fr; gap: 2px; } }

/* Werkzeug ?ohnetext / Startbilder: Anzeige nicht ins Bild backen */
.ohne-text .temperatur, .standbild .temperatur { visibility: hidden !important; }

/* Kopfzeile ohne Hintergrund-Weichzeichner: über der lebenden Szene kostet er auf Intel bei 150 % jedes Bild neu (gemessen) */
.kopf-fest .kopfzeile { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(9, 7, 6, 0.9); }

/* Ladeanzeige (js/baukasten/ladeanzeige.js): Balken 3 px; nie über Knopf oder Text der ersten Station.
   Hochformat (Handy, Tablet hoch): unter der Temperaturanzeige über dem Bild, unten steht dort der Knopf.
   Kleines Querformat: etwas nach rechts, weg von der Zeile unter dem Knopf. */
html .ladeanzeige-balken { height: 3px; }
@media (max-aspect-ratio: 4/5) {
  html .ladeanzeige { --lade-unten: calc(100% - 170px); }
}
@media (min-aspect-ratio: 4/5) and (max-width: 1279px) {
  html .ladeanzeige { left: calc(50% + 24px); }
}
