/* Terras24 · Designsystem „Regen und Anthrazit“
   Grund Nacht und Kalk, Profil-Anthrazit, eine Signalfarbe: Salbei aus dem Logo (= trocken, geschützt).
   Schrift: Hubot Sans (OFL), schmal und schwer für Überschriften, normal für Text. */
@font-face { font-family: "Hubot"; src: url("../schrift/hubot.woff2") format("woff2"); font-weight: 400 900; font-stretch: 75% 112%; font-display: swap; }

:root {
  --nacht: #12171a;
  --nacht-2: #1a2125;
  --anthrazit: #262d32;
  --anthrazit-2: #353d43;
  --kalk: #f1f0eb;
  --kalk-2: #e6e4dd;
  --kalk-3: #d8d5cc;
  --tinte: #161b1e;
  --tinte-2: #4a545b;
  --regen: #a9b7be;
  --regen-2: #7f8f97;
  --salbei: #78a175;
  --salbei-hell: #a6c9a2;
  --salbei-tief: #3e6a42;
  --schiefer: #4c6270;
  --stein: #919193;
  --klinker: #6b3a2a;
  --linie: rgba(255, 255, 255, .14);
  --linie-2: rgba(255, 255, 255, .26);
  --linie-hell: rgba(18, 23, 26, .14);
  --linie-hell-2: rgba(18, 23, 26, .28);

  --display: "Hubot", "Arial Narrow", system-ui, sans-serif;
  --text: "Hubot", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r1: 8px; --r2: 16px; --r3: 24px; --r4: 40px; --r5: 64px;
  --rand: clamp(20px, 5vw, 64px);
  --breite: 1240px;
  --kopf: 60px;
  --ecke: 3px;
  --schatten: 0 18px 50px rgba(0, 0, 0, .28);
  --kurve: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf) + 12px); }
body { margin: 0; background: var(--nacht); color: #fff; font: 420 17px/1.55 var(--text); font-stretch: 100%; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--salbei); color: var(--nacht); }
:focus-visible { outline: 3px solid var(--salbei); outline-offset: 3px; border-radius: 2px; }
.hell :focus-visible { outline-color: var(--salbei-tief); }
.nur-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprung { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--salbei); color: var(--nacht); padding: 12px 16px; font-weight: 700; text-decoration: none; }
.sprung:focus { top: 12px; }

/* ---------- Schrift ---------- */
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 860; font-stretch: 75%; line-height: .9; letter-spacing: -.012em; word-spacing: .07em; text-wrap: balance; }
.riesig { font-size: clamp(64px, 17vw, 228px); line-height: .84; font-weight: 900; letter-spacing: -.02em; }
.gross { font-size: clamp(48px, 12.5vw, 156px); line-height: .88; }
.mittel { font-size: clamp(34px, 8vw, 84px); line-height: .92; }
.h3 { font-size: clamp(24px, 5.6vw, 36px); line-height: 1; font-weight: 780; font-stretch: 85%; letter-spacing: 0; }
.akzent { color: var(--salbei); }
.hell .akzent { color: var(--salbei-tief); }
.augenbraue { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 var(--r2); font: 680 13px/1.2 var(--display); font-stretch: 112%; letter-spacing: .14em; text-transform: uppercase; color: var(--salbei); }
.hell .augenbraue { color: var(--salbei-tief); }
.augenbraue::before { content: ""; width: 22px; height: 10px; flex: none; background:
  linear-gradient(var(--salbei), var(--salbei)) 0 0 / 10px 10px no-repeat,
  linear-gradient(var(--schiefer), var(--schiefer)) 12px 0 / 10px 10px no-repeat; }
.lead { font-size: clamp(18px, 4.6vw, 22px); line-height: 1.45; max-width: 36ch; color: var(--regen); }
.hell .lead { color: var(--tinte-2); }
.klein { font-size: 14px; line-height: 1.45; color: var(--regen); }
.hell .klein { color: var(--tinte-2); }
.zahl { font-family: var(--display); font-stretch: 75%; font-weight: 860; letter-spacing: -.01em; }
.quelle { font-size: 12.5px; line-height: 1.4; color: var(--regen-2); }
.hell .quelle { color: #5d676d; }
.quelle a { color: inherit; }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 0; border-radius: var(--ecke);
  background: var(--salbei); color: var(--nacht); font: 760 16px/1 var(--display); font-stretch: 100%; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--kurve), background .2s; -webkit-tap-highlight-color: transparent; }
.knopf:hover { background: var(--salbei-hell); }
.knopf:active { transform: scale(.97); }
.knopf svg { width: 20px; height: 20px; flex: none; }
.knopf.leise { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px var(--linie-2); }
.knopf.leise:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.hell .knopf { background: var(--tinte); color: #fff; }
.hell .knopf:hover { background: var(--anthrazit-2); }
.hell .knopf.signal { background: var(--salbei-tief); color: #fff; }
.hell .knopf.leise { background: transparent; color: var(--tinte); box-shadow: inset 0 0 0 1.5px var(--linie-hell-2); }
.knopf.klein-k { min-height: 44px; padding: 0 16px; font-size: 15px; }
.knopf[aria-pressed="true"] { background: var(--salbei); color: var(--nacht); }
.hell .knopf[aria-pressed="true"] { background: var(--salbei-tief); color: #fff; }
.symbol-knopf { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--ecke); background: transparent; color: inherit; cursor: pointer; }
.symbol-knopf svg { width: 24px; height: 24px; }

/* Wahl-Leiste (Umschalter), gemeinsam für Module */
.wahl { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.wahl button { min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--ecke); background: var(--anthrazit); color: #fff; font: 680 15px/1 var(--display); font-stretch: 100%; cursor: pointer; }
.wahl button[aria-pressed="true"] { background: var(--salbei); color: var(--nacht); }
.hell .wahl button { background: var(--kalk-2); color: var(--tinte); }
.hell .wahl button[aria-pressed="true"] { background: var(--tinte); color: #fff; }

/* ---------- Gerüst ---------- */
.innen { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.abschnitt { position: relative; padding-block: clamp(80px, 15vw, 168px); }
.abschnitt.hell { background: var(--kalk); color: var(--tinte); }
.abschnitt.dunkel { background: var(--nacht); color: #fff; }
.abschnitt-kopf { max-width: 980px; margin-bottom: clamp(32px, 6vw, 64px); }
.abschnitt-kopf .lead { margin-top: var(--r3); }

/* Musterhinweis oben */
.muster { position: relative; z-index: 60; margin: 0; padding: 7px var(--rand); background: #0b0f11; color: var(--regen); font: 600 12px/1.3 var(--text); letter-spacing: .02em; text-align: center; }

/* ---------- Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 50; height: var(--kopf); background: var(--nacht); border-bottom: 1px solid transparent; transition: border-color .3s; }
.kopf.gescrollt { border-bottom-color: var(--linie); }
.kopf .innen { height: 100%; display: flex; align-items: center; gap: 12px; }
.kopf .logo { display: block; height: 30px; margin-right: auto; }
.kopf .logo svg, .kopf .logo img { height: 30px; width: auto; }
.kopf-nav { display: none; gap: 26px; margin-right: 20px; }
.kopf-nav a { font: 640 15px/1 var(--display); font-stretch: 100%; text-decoration: none; color: var(--regen); }
.kopf-nav a:hover { color: #fff; }
.kopf .knopf { min-height: 42px; padding: 0 16px; font-size: 15px; }
@media (min-width: 1080px) { .kopf-nav { display: flex; } .menue-knopf { display: none; } }

/* Schnellleiste unten am Handy */
.leiste { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; display: flex; gap: 8px; transform: translateY(140%); transition: transform .4s var(--kurve); }
.leiste.da { transform: none; }
.leiste .knopf { flex: 1; box-shadow: var(--schatten); }
.leiste .knopf.leise { flex: 0 0 52px; padding: 0; background: var(--nacht); }
@media (min-width: 900px) { .leiste { display: none; } }

/* Live-Chip */
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 12px; border-radius: 999px; background: rgba(10, 14, 16, .62); color: #fff; font: 600 13.5px/1.25 var(--text); }
.chip .punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--regen); flex: none; }
.chip .punkt.an { background: var(--salbei); box-shadow: 0 0 0 4px rgba(120, 161, 117, .25); }

/* ---------- Blätter (Dialoge) ---------- */
.blatt-grund { position: fixed; inset: 0; z-index: 90; background: rgba(6, 9, 10, .6); opacity: 0; pointer-events: none; transition: opacity .35s; }
.blatt-grund.offen { opacity: 1; pointer-events: auto; }
.blatt { position: fixed; z-index: 100; left: 0; right: 0; bottom: 0; max-height: 92svh; overflow: auto; overscroll-behavior: contain; background: var(--kalk); color: var(--tinte);
  border-radius: 14px 14px 0 0; padding: 8px var(--rand) calc(28px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .45s var(--kurve); }
.blatt.offen { transform: none; }
.blatt-griff { width: 44px; height: 5px; border-radius: 3px; background: var(--kalk-3); margin: 6px auto 10px; }
.blatt-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: var(--r2); }
.blatt-zu { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: var(--kalk-2); border-radius: var(--ecke); cursor: pointer; color: var(--tinte); }
.blatt-zu svg { width: 22px; height: 22px; }
@media (min-width: 900px) { .blatt { left: 50%; right: auto; bottom: auto; top: 50%; width: min(640px, 92vw); border-radius: 6px; transform: translate(-50%, -46%); opacity: 0; transition: transform .4s var(--kurve), opacity .3s; padding-bottom: 32px; }
  .blatt.offen { transform: translate(-50%, -50%); opacity: 1; } .blatt-griff { display: none; } }
.menue-liste { list-style: none; margin: 0 0 var(--r3); padding: 0; }
.menue-liste a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--linie-hell); font: 800 26px/1 var(--display); font-stretch: 75%; text-decoration: none; }
.menue-liste svg { width: 22px; height: 22px; }

/* ---------- Einblenden ---------- */
.zeigen { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--kurve), transform .8s var(--kurve); }
.zeigen.da { opacity: 1; transform: none; }

/* ---------- Fuß ---------- */
.fuss { background: #0b0f11; color: var(--regen); padding: var(--r5) 0 calc(var(--r5) + 70px); font-size: 15px; }
.fuss a { color: #fff; }
.fuss-raster { display: grid; gap: var(--r4); }
@media (min-width: 900px) { .fuss-raster { grid-template-columns: 1.4fr 1fr 1fr; } .fuss { padding-bottom: var(--r5); } }
.fuss .logo svg { height: 40px; width: auto; }
.fuss h2 { font-size: 15px; font-stretch: 112%; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 12px; font-weight: 700; line-height: 1.2; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fuss ul a { display: inline-block; padding: 6px 0; }
.fuss-unten { margin-top: var(--r4); padding-top: var(--r3); border-top: 1px solid var(--linie); display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .zeigen { opacity: 1; transform: none; }
}
