/* Grundlagen und Bausteine – Kopie aus der vollständigen Website (src/styles/basis.css),
   gekürzt um Formularfelder und Chips. Pfade relativ, damit der Ordner überall läuft. */

/* Schriften: selbst gehostet (variabel, WOFF2-Subset Latin + Latin-Ext), Lizenz: fonts/OFL.txt */
@font-face {
  font-family: "Hubot Sans";
  src: url("../fonts/HubotSans-VF.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/MonaSans-VF.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

/* ---------- Flächen: setzen die semantischen Variablen je Abschnitt ---------- */
html, .f-tiefsee, .f-tiefsee2, .f-beere, .f-tuerkis, .f-asphalt {
  --bg: var(--tiefsee);
  --bg2: var(--tiefsee-2);
  --fg: var(--kalk);
  --fg2: var(--nebel);
  --akz: var(--gischt);
  --on-akz: var(--tiefsee);
  --linie: var(--linie-dunkel);
  --linie-form: var(--nebel-35);
  --linie-regler: var(--nebel-40);
  --feld: var(--tiefsee-2);
  --rand: var(--rand-dunkel);
  --err: var(--gluehen);
  --ende: var(--gluehen);
  --hand: var(--magenta);
  --hand-h: var(--magenta-hover);
  --hand-fg: var(--weiss);
  --sek-h: var(--gischt-12);
  --dis-bg: var(--dis-dunkel-bg);
  --dis-fg: var(--dis-dunkel-fg);
  --fokus: var(--gischt);
  --zeiger: var(--gluehen);
  --zeige-dunkel: block;
  --zeige-hell: none;
  color-scheme: dark;
}
.f-tiefsee2 { --bg: var(--tiefsee-2); --bg2: var(--tiefsee); --feld: var(--tiefsee); }
.f-beere {
  --bg: var(--beere);
  --bg2: var(--tiefsee);
  --fg2: var(--beere-text-2);
  --akz: var(--kalk);
  --linie: var(--kalk-35);
  --linie-regler: var(--kalk-40);
  --sek-h: var(--kalk-12);
  --dis-bg: var(--dis-beere-bg);
  --dis-fg: var(--dis-beere-fg);
  --fokus: var(--kalk);
}
.f-tuerkis {
  --bg: var(--tuerkis);
  --bg2: var(--tuerkis-feld);
  --fg: var(--weiss);
  --fg2: var(--tuerkis-text-2);
  --akz: var(--kalk);
  --on-akz: var(--tuerkis);
  --linie: var(--kalk-35);
  --feld: var(--tuerkis-feld);
  --rand: var(--kalk-80);
  --err: var(--weiss);
  --ende: var(--kalk);
  --sek-h: var(--kalk-14);
  --dis-bg: var(--dis-tuerkis-bg);
  --dis-fg: var(--dis-tuerkis-fg);
  --fokus: var(--kalk);
  --zeiger: var(--kalk);
}
.f-asphalt { --bg: var(--asphalt); --linie: var(--nebel-25); }

/* Hellmodus-Flächen: Kalk-Abschnitte immer, Tiefsee-Abschnitte im Hell-Thema */
.f-kalk, .f-kalk2,
[data-modus="hell"], [data-modus="hell"] .f-tiefsee, [data-modus="hell"] .f-tiefsee2, [data-modus="hell"] .f-kalk {
  --bg: var(--kalk);
  --bg2: var(--hell-flaeche-2);
  --fg: var(--asphalt);
  --fg2: var(--hell-text-2);
  --akz: var(--hell-akzent);
  --on-akz: var(--weiss);
  --linie: var(--linie-hell);
  --linie-form: var(--asphalt-20);
  --linie-regler: var(--asphalt-25);
  --feld: var(--weiss);
  --rand: var(--rand-hell);
  --err: var(--hell-magenta);
  --ende: var(--hell-magenta);
  --hand: var(--hell-magenta);
  --hand-h: var(--hell-magenta-hover);
  --sek-h: var(--hell-akzent-08);
  --dis-bg: var(--dis-hell-bg);
  --dis-fg: var(--dis-hell-fg);
  --fokus: var(--hell-akzent);
  --zeiger: var(--hell-magenta);
  --zeige-dunkel: none;
  --zeige-hell: block;
  color-scheme: light;
}
.f-kalk2, [data-modus="hell"] .f-tiefsee2, [data-modus="hell"] .f-kalk { --bg: var(--hell-flaeche-2); --bg2: var(--kalk); }

.f-tiefsee, .f-tiefsee2, .f-beere, .f-tuerkis, .f-kalk, .f-kalk2, .f-asphalt { background: var(--bg); color: var(--fg); }
.nur-dunkel { display: var(--zeige-dunkel) !important; }
.nur-hell { display: var(--zeige-hell) !important; }

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  color: var(--fg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--schrift-text);
  font-size: var(--gr-body);
  line-height: 1.6;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; hyphens: auto; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 20;
  display: inline-flex; align-items: center; min-height: var(--ziel-min); padding: 0 var(--abstand-3);
  border-radius: var(--radius-pill); background: var(--kalk); color: var(--asphalt);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus-visible { top: 16px; }

/* Raster */
.wrap { max-width: var(--raster-max); margin: 0 auto; }
.abschnitt { position: relative; padding: var(--abschnitt-y) var(--seitenrand); }
.abschnitt.saison { padding: var(--abschnitt-y-saison) var(--seitenrand); }
.anker { position: absolute; left: 0; width: 0; height: 0; }

/* Typografie */
.t-display {
  font-family: var(--schrift-titel); font-weight: 800; font-stretch: var(--breite-versal);
  font-size: var(--gr-display); line-height: 0.98; letter-spacing: -0.015em; text-transform: uppercase;
}
.t-h1 { font-family: var(--schrift-titel); font-weight: 700; font-size: var(--gr-h1); line-height: 1.05; }
.t-h2 { font-family: var(--schrift-titel); font-weight: 700; font-size: var(--gr-h2); line-height: 1.1; }
.t-h3 { font-family: var(--schrift-titel); font-weight: 700; font-size: var(--gr-h3); line-height: 1.2; }
.t-lead { font-size: var(--gr-lead); line-height: 1.5; }
.t-small { font-size: var(--gr-small); }
.t-2 { color: var(--fg2); }
.t-zahl { font-family: var(--schrift-titel); font-weight: 700; font-stretch: var(--breite-zahl); font-variant-numeric: tabular-nums; }
.tab { font-variant-numeric: tabular-nums; }
.absaetze { display: flex; flex-direction: column; gap: var(--abstand-2); }

/* Punkte (Scheinwerfer-Motiv) */
.punkt { width: 8px; height: 8px; border-radius: var(--radius-rund); flex: none; background: var(--akz); }
.punkt-ring { width: 8px; height: 8px; border-radius: var(--radius-rund); flex: none; border: 1.5px solid var(--akz); }
.punkt-hinweis { width: 8px; height: 8px; border-radius: var(--radius-rund); flex: none; background: var(--nebellicht); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; margin: 0; border: none; border-radius: var(--radius-pill);
  font-family: var(--schrift-text); font-weight: 600; font-size: 16px; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer; background: transparent;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.btn-voll { display: flex; width: 100%; }
.btn-primaer { padding: 0 26px 0 20px; background: var(--hand); color: var(--hand-fg); }
.btn-primaer .lampe {
  width: 9px; height: 9px; border-radius: var(--radius-pill); flex: none;
  border: 1.5px solid var(--nebellicht); background: transparent;
}
.btn-sekundaer { padding: 0 var(--abstand-3); color: var(--akz); box-shadow: inset 0 0 0 1.5px var(--akz); }
@media (hover: hover) {
  .btn-primaer:not(:disabled):not([aria-disabled="true"]):hover { background: var(--hand-h); }
  .btn-primaer:not(:disabled):not([aria-disabled="true"]):hover .lampe { background: var(--nebellicht); animation: lampe 340ms linear both; }
  .btn-sekundaer:not(:disabled):not([aria-disabled="true"]):hover { background: var(--sek-h); }
}
.btn-primaer:disabled, .btn-primaer[aria-disabled="true"] { background: var(--dis-bg); color: var(--dis-fg); cursor: not-allowed; }
.btn-primaer:disabled .lampe, .btn-primaer[aria-disabled="true"] .lampe { border-color: var(--dis-fg); }
.btn-sekundaer:disabled, .btn-sekundaer[aria-disabled="true"] { color: var(--dis-fg); box-shadow: inset 0 0 0 1.5px var(--dis-fg); cursor: not-allowed; }
@keyframes lampe { 0% { opacity: 0 } 16% { opacity: .8 } 24% { opacity: .2 } 38% { opacity: 1 } 50% { opacity: .5 } 62% { opacity: 1 } 100% { opacity: 1 } }

/* Text-Link: Ruhe-Unterstrich 40 %, Hover zieht 2-px-Linie, danach Punkt in Glühen */
.tlink {
  display: inline-flex; align-items: center; min-height: var(--ziel-min); padding: 0; margin: 0; border: none; background: none;
  border-radius: 4px; font-family: var(--schrift-text); font-weight: 500; font-size: 17px; line-height: 1.2;
  color: var(--fg); text-decoration: none; cursor: pointer; text-align: left;
}
.tlink-label { position: relative; display: inline-block; padding-bottom: 5px; }
.tlink-label::before { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; opacity: .4; }
.tlink-label::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: currentColor; transition: width 250ms var(--ease); }
.tlink-punkt {
  position: absolute; bottom: -2px; left: calc(100% + 8px); width: 6px; height: 6px; border-radius: var(--radius-pill);
  background: var(--ende); opacity: 0; transition: opacity 120ms var(--ease) 0ms;
}
@media (hover: hover) {
  .tlink:hover .tlink-label::after { width: calc(100% + 4px); }
  .tlink:hover .tlink-punkt { opacity: 1; transition-delay: 200ms; }
}

/* ---------- Formularelemente (nur Pickerl-Rechner) ---------- */
.label { font-weight: 500; font-size: 15px; color: var(--fg); }
.label .opt { font-weight: 400; color: var(--fg2); }
.auswahl { position: relative; flex: 1 1 180px; min-width: 0; }
.auswahl select {
  width: 100%; height: 52px; appearance: none; -webkit-appearance: none; border-radius: var(--radius-feld);
  background: var(--feld); color: var(--fg); border: 1px solid var(--rand); padding: 0 44px 0 var(--abstand-2);
  font-family: var(--schrift-text); font-size: 17px; font-variant-numeric: tabular-nums; cursor: pointer;
}
.auswahl svg { position: absolute; right: 16px; top: 19px; color: var(--fg2); pointer-events: none; }
.hinweis { display: flex; gap: 10px; align-items: baseline; font-size: 15px; line-height: 1.55; color: var(--fg2); max-width: 62ch; }
.hinweis .punkt-hinweis { transform: translateY(-1px); }

/* Fotos */
.foto { position: relative; overflow: hidden; border-radius: var(--radius-bild); background: var(--bg2); }
.foto img, .foto picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.foto-platzhalter {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: var(--abstand-3);
  box-shadow: inset 0 0 0 1px var(--linie); border-radius: inherit;
  color: var(--fg2); font-size: 14px; line-height: 1.5; text-align: center;
}
.foto-platzhalter span { max-width: 36ch; }

/* Icons */
.icon { display: inline-flex; width: 24px; height: 24px; flex: none; color: var(--akz); }
.icon svg { width: 100%; height: 100%; }

/* Bewegung: alles aus bei reduzierter Bewegung, Endzustände sofort */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
