/* ═══════════════════════════════════════════════════════════════
   VHTA Website – Gestaltung
   Farben, Schrift und Abstände zentral in :root anpassbar.
   Leitidee: die geschwungenen Linien aus dem VHTA-Logo als
   «Leitungen», in denen etwas fliesst – blau (kalt), türkis,
   orange (warm), wie Vor- und Rücklauf in der Haustechnik.
   ═══════════════════════════════════════════════════════════════ */

/* Schrift: Archivo (SIL Open Font License), direkt auf dem eigenen
   Server – keine Verbindung zu Google oder anderen Anbietern. */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2-variations"),
       url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Markenfarben (aus dem Logo) */
  --blau: #00599c;
  --blau-mitte: #2a8fd0;
  --tuerkis: #16a096;
  --orange: #e8772e;

  /* Flächen und Text */
  --bg: #ffffff;
  --bg-getoent: #eef4f9;
  --flaeche: #ffffff;
  --text: #12202e;
  --text-leise: #4b5b6b;
  --linie: #dae3ec;
  --linie-stark: #b7c7d6;
  --akzent: var(--blau);
  --akzent-hover: #00467c;
  --akzent-text: #ffffff;
  --tuerkis-text: #0b7166;
  --orange-text: #b4500d;
  --knopf-auf-farbe: #ffffff;
  --fehler: #c0262d;
  --erfolg: #17794a;
  --fokus: #e8772e;

  /* Dunkle Bänder (Kontakt, Fusszeile) */
  --dunkel: #072b4b;
  --dunkel-text: #e6eff7;
  --dunkel-leise: #a6bed4;
  --dunkel-akzent: #8cc8f2;
  --fuss-bg: #051e35;

  --verlauf: linear-gradient(90deg, var(--blau), var(--blau-mitte) 42%, var(--tuerkis) 70%, var(--orange));
  --schatten-karte: 0 1px 0 rgb(7 43 75 / .04), 0 22px 44px -28px rgb(7 43 75 / .38);
  --schatten-hoch: 0 1px 0 rgb(7 43 75 / .04), 0 34px 60px -30px rgb(7 43 75 / .5);

  --schrift: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --breit: 118%;          /* Laufweite der Titel */
  --breite: 1200px;
  --rand: clamp(1rem, 4vw, 2.5rem);
  --kopfhoehe: 78px;
  --r-gross: 20px;
  --r: 12px;
  --weich: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08182a; --bg-getoent: #0c2136; --flaeche: #10283f; --text: #e6eef6;
    --text-leise: #a0b4c7; --linie: #1e3a56; --linie-stark: #2e5072; --akzent: #6ab4ef;
    --akzent-hover: #8fc7f4; --akzent-text: #04121f; --tuerkis-text: #45c8b8; --orange-text: #f39b5d;
    --knopf-auf-farbe: #04121f; --fehler: #ff8a8a; --erfolg: #6fd6a0;
    --dunkel: #0b2a47; --fuss-bg: #040f1b;
    --schatten-karte: 0 22px 44px -28px rgb(0 0 0 / .7);
    --schatten-hoch: 0 34px 60px -30px rgb(0 0 0 / .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08182a; --bg-getoent: #0c2136; --flaeche: #10283f; --text: #e6eef6;
  --text-leise: #a0b4c7; --linie: #1e3a56; --linie-stark: #2e5072; --akzent: #6ab4ef;
  --akzent-hover: #8fc7f4; --akzent-text: #04121f; --tuerkis-text: #45c8b8; --orange-text: #f39b5d;
  --knopf-auf-farbe: #04121f; --fehler: #ff8a8a; --erfolg: #6fd6a0;
  --dunkel: #0b2a47; --fuss-bg: #040f1b;
  --schatten-karte: 0 22px 44px -28px rgb(0 0 0 / .7);
  --schatten-hoch: 0 34px 60px -30px rgb(0 0 0 / .8);
  color-scheme: dark;
}

/* ── Grundlagen ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kopfhoehe) + 16px); -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.6 var(--schrift);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--akzent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--tuerkis) 32%, transparent); }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; font-weight: 720; font-stretch: var(--breit); letter-spacing: -.018em; text-wrap: balance; }
p { text-wrap: pretty; }
address { font-style: normal; }

.wrap { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.wrap--schmal { --breite: 840px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--akzent); color: var(--akzent-text); padding: .75rem 1.1rem; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 1rem; }

.sym { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.extern { font-size: .78em; margin-left: .3em; opacity: .7; text-decoration: none; display: inline-block; }

/* ── Kopfzeile ───────────────────────────────────────────────── */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.kopf.ist-gescrollt { border-bottom-color: var(--linie); box-shadow: 0 10px 30px -24px rgb(7 43 75 / .55); }
.kopf__innen { height: var(--kopfhoehe); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.kopf__logo { display: block; flex: none; }
.kopf__logo img { height: 52px; width: auto; }
.kopf__nav ul { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.kopf__nav a {
  position: relative; display: inline-flex; align-items: center;
  padding: .6rem .95rem; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 560; font-size: .98rem;
  transition: background-color .2s, color .2s;
}
.kopf__nav a:hover { background: var(--bg-getoent); }
.kopf__nav a[aria-current]::after {
  content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .3rem; height: 2px; border-radius: 2px;
  background: var(--verlauf);
}
.kopf__nav .nav-cta { background: var(--akzent); color: var(--akzent-text); padding-inline: 1.3rem; margin-left: .6rem; font-weight: 640; }
.kopf__nav .nav-cta:hover { background: var(--akzent-hover); }
.kopf__nav .nav-cta[aria-current]::after { display: none; }
.kopf__fortschritt {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--verlauf); transform: scaleX(0); transform-origin: 0 50%;
}

.kopf__menuknopf { display: none; width: 48px; height: 48px; margin-right: -8px; border: 0; border-radius: 12px; background: transparent; color: var(--text); cursor: pointer; place-items: center; }
.burger, .burger::before, .burger::after { display: block; width: 24px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--weich), background-color .2s; }
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; }
.burger::after { top: 7px; }
.kopf__menuknopf[aria-expanded="true"] .burger { background: transparent; }
.kopf__menuknopf[aria-expanded="true"] .burger::before { transform: translateY(7px) rotate(45deg); }
.kopf__menuknopf[aria-expanded="true"] .burger::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 899px) {
  :root { --kopfhoehe: 68px; }
  .kopf__logo img { height: 44px; }
  .kopf__menuknopf { display: grid; }
  .kopf__nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--linie);
    padding: .5rem var(--rand) 1.75rem;
    box-shadow: 0 30px 40px -30px rgb(7 43 75 / .4);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s, transform .3s var(--weich), visibility 0s .3s;
  }
  .menu-offen .kopf__nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--weich); }
  .kopf__nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .kopf__nav a { width: 100%; padding: .95rem 0; border-radius: 0; border-bottom: 1px solid var(--linie); font-size: 1.4rem; font-weight: 700; font-stretch: var(--breit); }
  .kopf__nav a:hover { background: transparent; color: var(--akzent); }
  .kopf__nav a[aria-current]::after { left: 0; right: auto; width: 2.5rem; bottom: -1px; }
  .kopf__nav .nav-cta { justify-content: center; margin: 1.25rem 0 0; padding: 1rem; border-radius: 999px; border: 0; }
}

/* ── Knöpfe ──────────────────────────────────────────────────── */
.knopf {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 54px; padding: 0 1.65rem; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 650; font-size: 1.02rem; font-stretch: 108%; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s, transform .2s;
}
.knopf:active { transform: translateY(1px); }
.knopf .sym { width: 20px; height: 20px; stroke-width: 1.9; }
.knopf--primaer { background: var(--akzent); color: var(--akzent-text); }
.knopf--primaer:hover { background: var(--akzent-hover); }
/* Lichtreflex, der beim Darüberfahren durch den Knopf «fliesst» */
.knopf--primaer::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .3) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--weich);
}
.knopf--primaer:hover::before { transform: translateX(120%); }
.knopf--sekundaer { background: var(--flaeche); color: var(--text); border-color: var(--linie-stark); }
.knopf--sekundaer:hover { border-color: var(--akzent); color: var(--akzent); }
.knopf.ist-laden { pointer-events: none; opacity: .85; }
.knopf.ist-laden::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: drehen .7s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }

/* ── Abschnitte allgemein ────────────────────────────────────── */
.abschnitt { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem); }
.abschnitt--getoent { background: var(--bg-getoent); }
.abschnitt__kopf { max-width: 50rem; margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem); }
.oberzeile {
  display: flex; align-items: center; gap: .8rem;
  margin: 0 0 1.1rem; color: var(--akzent); font-weight: 620; font-size: 1rem; letter-spacing: .005em;
}
.oberzeile::before { content: ""; width: 40px; height: 3px; border-radius: 3px; background: var(--verlauf); flex: none; }
.titel { margin: 0; font-size: clamp(2.05rem, 1.3rem + 2.6vw, 3.35rem); font-weight: 760; letter-spacing: -.028em; line-height: 1.04; }
.einleitung { margin: 1.35rem 0 0; max-width: 42rem; color: var(--text-leise); font-size: clamp(1.1rem, 1rem + .3vw, 1.22rem); line-height: 1.55; }

.text p, .text ul, .text ol { margin: 0 0 1em; }
.text > :last-child { margin-bottom: 0; }
.text h3 { font-size: 1.2rem; margin: 1.6em 0 .55em; }
.text ul, .text ol { padding-left: 1.25em; }
.text li + li { margin-top: .35em; }
.text strong { font-weight: 680; color: var(--text); }
.text--gross { font-size: clamp(1.125rem, 1rem + .45vw, 1.3rem); line-height: 1.55; }

.spalten { display: grid; gap: clamp(2.25rem, 5vw, 5.5rem); }
.spalten--teilung .abschnitt__kopf { margin-bottom: 0; }
@media (min-width: 900px) {
  .spalten--teilung { grid-template-columns: 5fr 7fr; align-items: start; }
  .spalten--aufgaben { grid-template-columns: 6fr 5fr; align-items: start; }
  .spalten--aufgaben .abschnitt__kopf { margin-bottom: 2rem; }
  .spalten--kontakt { grid-template-columns: 5fr 6fr; align-items: start; }
}

/* ── Startbereich ────────────────────────────────────────────── */
.abschnitt--start { padding-block: clamp(2.75rem, 6.5vw, 5.5rem) clamp(4.5rem, 8vw, 7rem); overflow: clip; }
.leitungen { position: absolute; pointer-events: none; z-index: 0; }
.leitungen path { fill: none; stroke-linecap: round; }
.abschnitt--start .leitungen { top: -4%; right: 0; width: min(64vw, 980px); height: 108%; will-change: transform; }
.start { position: relative; z-index: 1; }
.start .abschnitt__kopf { max-width: 62rem; margin-bottom: 1.6rem; }
.titel--gross {
  font-size: clamp(2.7rem, .6rem + 4.6vw, 4.6rem); font-weight: 800; font-stretch: 122%;
  letter-spacing: -.038em; line-height: .97;
}
/* Jeder Satz auf eigener Zeile; ist ein Satz zu lang, bricht er normal um */
.titel--gross .satz { display: block; }
.start__text { max-width: 44rem; color: var(--text-leise); }
.start__bild {
  margin: clamp(2rem, 4vw, 2.75rem) 0 clamp(1.75rem, 3vw, 2.25rem); max-width: 900px;
  border-radius: var(--r-gross); overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgb(7 43 75 / .07), 0 34px 60px -34px rgb(7 43 75 / .55);
}
.start__bild img { width: 100%; aspect-ratio: 6 / 1; object-fit: cover; }
.knoepfe { display: flex; flex-wrap: wrap; gap: .8rem 1rem; }

/* Lade-Inszenierung: Leitungen zeichnen sich, Titel steigt Wort für Wort auf,
   Bild wird von links aufgedeckt. Ausgangszustand = sichtbar (für «Bewegung reduzieren»). */
.abschnitt--start .leitungen__linien path { animation: zeichnen 2s cubic-bezier(.3, .55, .15, 1) backwards; animation-delay: calc(var(--i) * 32ms + .05s); }
@keyframes zeichnen { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }

.leitungen__fluss path {
  stroke-dasharray: .035 .965; stroke-linecap: round; opacity: 0;
  animation: fliessen var(--dauer) linear var(--verzug) infinite, auftauchen .8s ease var(--verzug) forwards;
}
.leitungen__fluss .ruecklauf { animation-name: zurueckfliessen, auftauchen; }
@keyframes fliessen { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes zurueckfliessen { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 1; } }
@keyframes auftauchen { to { opacity: 1; } }
.ist-pausiert .leitungen__fluss path { animation-play-state: paused; }

.titel--gross .wort { display: inline-block; overflow: clip; overflow-clip-margin: .2em; padding-bottom: .06em; margin-bottom: -.06em; vertical-align: top; }
.titel--gross .wort > span { display: inline-block; animation: aufsteigen 1s var(--weich) backwards; animation-delay: calc(.2s + var(--i) * 75ms); }
@keyframes aufsteigen { from { transform: translateY(108%); } }
.start .oberzeile { animation: einblenden .7s ease backwards .1s; }
.start__text { animation: einblenden .8s ease backwards .7s; }
.start__bild { animation: aufdecken 1.2s cubic-bezier(.65, 0, .2, 1) backwards .85s; }
.knoepfe { animation: einblenden .7s ease backwards 1.25s; }
@keyframes einblenden { from { opacity: 0; transform: translateY(14px); } }
@keyframes aufdecken { from { clip-path: inset(0 100% 0 0 round var(--r-gross)); } to { clip-path: inset(0 0 0 0 round var(--r-gross)); } }

@media (min-width: 900px) and (max-width: 1279px) {
  /* mittlere Breiten: Linien weiter nach rechts, damit sie nicht unter den Text laufen */
  .abschnitt--start .leitungen { right: -18vw; opacity: .75; }
}
@media (max-width: 899px) {
  .abschnitt--start .leitungen { width: 125vw; height: 62%; top: -6%; right: -42vw; opacity: .5; }
}
@media (max-width: 640px) {
  .start__bild img { aspect-ratio: 3 / 1; object-position: 0 40%; }
  .knoepfe .knopf { width: 100%; }
}

/* ── Willkommen + Branchen («Verteiler») ─────────────────────── */
.branchen { margin-top: clamp(3.25rem, 6vw, 5rem); }
.branchen__titel { margin: 0 0 1.5rem; color: var(--text-leise); font-weight: 600; }
.branchen__liste { position: relative; display: grid; grid-template-columns: repeat(var(--anzahl, 5), 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.branchen__liste::before {
  content: ""; position: absolute; top: 38px; height: 4px; border-radius: 4px; translate: 0 -50%;
  left: calc(50% / var(--anzahl, 5)); right: calc(50% / var(--anzahl, 5));
  background: var(--verlauf); transform-origin: 0 50%;
}
.branche { position: relative; display: flex; flex-direction: column; align-items: center; gap: .9rem; text-align: center; }
.branche__knoten {
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--linie-stark); color: var(--akzent);
  transition: background-color .3s, border-color .3s, color .3s, transform .35s var(--weich);
}
.branche__knoten .sym { width: 34px; height: 34px; stroke-width: 1.5; }
.branche__name { font-weight: 660; font-stretch: 110%; font-size: 1.06rem; }
.branche:hover .branche__knoten { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); transform: translateY(-4px); }

.branchen.einlaufen .branchen__liste::before { transform: scaleX(0); }
.branchen.einlaufen .branche { opacity: 0; }
.branchen.einlaufen.ist-sichtbar .branchen__liste::before { transform: scaleX(1); transition: transform 1.4s cubic-bezier(.5, 0, .2, 1); }
.branchen.einlaufen.ist-sichtbar .branche { opacity: 1; animation: knoten-ein .7s var(--weich) backwards; animation-delay: calc(.15s + var(--i) * 230ms); }
@keyframes knoten-ein { from { opacity: 0; transform: scale(.6); } }

@media (max-width: 640px) {
  .branchen__liste { grid-template-columns: repeat(3, 1fr); row-gap: 1.75rem; }
  .branchen__liste::before { display: none; }
  .branche__knoten { width: 64px; height: 64px; }
  .branche__knoten .sym { width: 30px; height: 30px; }
  .branche__name { font-size: .98rem; }
}

/* ── Software-Karten ─────────────────────────────────────────── */
.karten { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); }
.karte {
  --farbe: var(--blau); --farbe-text: var(--akzent);
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: clamp(1.75rem, 3.2vw, 2.75rem); border-radius: var(--r-gross);
  background: var(--flaeche); border: 1px solid var(--linie); box-shadow: var(--schatten-karte);
  transition: transform .4s var(--weich), box-shadow .4s var(--weich);
}
.karte--tuerkis { --farbe: var(--tuerkis); --farbe-text: var(--tuerkis-text); }
.karte--orange { --farbe: var(--orange); --farbe-text: var(--orange-text); }
.karte:hover { transform: translateY(-5px); box-shadow: var(--schatten-hoch); }
.karte__leitung { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--farbe); overflow: hidden; }
.karte__leitung::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 28%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .8), transparent);
  transform: translateX(-110%);
}
.karte:hover .karte__leitung::after { animation: puls 1.2s ease-in-out; }
@keyframes puls { to { transform: translateX(380%); } }
.karte__logo { align-self: flex-start; margin: .25rem 0 1.6rem; padding: .35rem .55rem; border-radius: var(--r); background: #fff; }
.karte__logo img { height: 66px; width: auto; }
.karte__titel { margin: 0 0 .35rem; font-size: clamp(1.55rem, 1.25rem + 1vw, 2rem); letter-spacing: -.025em; }
.karte__unter { margin: 0 0 1.1rem; color: var(--farbe-text); font-weight: 650; }
.karte__text { color: var(--text-leise); margin-bottom: 2rem; }
.karte__text ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; color: var(--text); }
.karte__text li { position: relative; padding-left: 2.2rem; margin: 0; line-height: 1.45; }
.karte__text li::before {
  content: ""; position: absolute; left: 0; top: .05em; width: 1.45rem; height: 1.45rem; border-radius: 50%;
  background: color-mix(in srgb, var(--farbe) 16%, transparent);
}
.karte__text li::after {
  content: ""; position: absolute; left: .32rem; top: calc(.05em + .32rem); width: .81rem; height: .81rem;
  background: var(--farbe-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 4.8 4.8L19.5 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 4.8 4.8L19.5 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.knopf--karte { margin-top: auto; align-self: flex-start; min-height: 50px; background: transparent; color: var(--farbe-text); border-color: var(--farbe); }
.knopf--karte:hover { background: var(--farbe-text); border-color: var(--farbe-text); color: var(--knopf-auf-farbe); }

.karten.einlaufen .karte { opacity: 0; }
.karten.einlaufen.ist-sichtbar .karte { opacity: 1; animation: karte-ein .9s var(--weich) backwards; animation-delay: calc(var(--i) * 140ms); }
@keyframes karte-ein { from { opacity: 0; transform: translateY(36px); } }

/* ── Verein: Aufgaben an einer Steigleitung ──────────────────── */
.downloads { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.download {
  display: inline-flex; align-items: center; gap: 1rem; padding: .85rem 1.5rem .85rem .85rem;
  border-radius: var(--r); border: 1.5px solid var(--linie); background: var(--flaeche);
  color: var(--text); text-decoration: none; transition: border-color .25s, transform .25s var(--weich);
}
.download__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: var(--bg-getoent); color: var(--akzent); transition: background-color .25s, color .25s; }
.download strong { display: block; font-weight: 660; }
.download small { color: var(--text-leise); font-size: .88rem; }
.download:hover { border-color: var(--akzent); transform: translateY(-2px); }
.download:hover .download__icon { background: var(--akzent); color: var(--akzent-text); }

.aufgaben { padding: clamp(1.6rem, 3vw, 2.5rem); border-radius: var(--r-gross); background: var(--bg-getoent); }
.aufgaben__titel { margin: 0 0 1.75rem; font-size: 1.15rem; line-height: 1.35; font-stretch: 106%; font-weight: 700; letter-spacing: -.01em; }
.aufgaben__liste { --knoten: 52px; position: relative; display: grid; gap: 1.3rem; margin: 0; padding: 0; list-style: none; }
.aufgaben__liste::before, .aufgaben__liste::after {
  content: ""; position: absolute; width: 4px; border-radius: 4px;
  left: calc(var(--knoten) / 2 - 2px); top: calc(var(--knoten) / 2); bottom: calc(var(--knoten) / 2);
  background: var(--linie-stark);
}
.aufgaben__liste::after {
  background: linear-gradient(180deg, var(--blau), var(--blau-mitte) 40%, var(--tuerkis) 70%, var(--orange));
  transform-origin: 50% 0; transform: scaleY(var(--fuellung, 1));
}
.aufgabe { position: relative; z-index: 1; display: grid; grid-template-columns: var(--knoten) 1fr; align-items: center; gap: 1.1rem; }
.aufgabe__knoten {
  display: grid; place-items: center; width: var(--knoten); height: var(--knoten); border-radius: 50%;
  background: var(--flaeche); border: 2px solid var(--linie-stark); color: var(--text-leise);
  transition: background-color .45s, border-color .45s, color .45s, transform .45s var(--weich);
}
.aufgabe__text { font-weight: 560; line-height: 1.4; }
.aufgabe.ist-aktiv .aufgabe__knoten { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); transform: scale(1.06); }

/* ── Partner ─────────────────────────────────────────────────── */
.logos { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin: 0; padding: 0; list-style: none; }
.logos__eintrag { display: flex; flex-direction: column; gap: .9rem; color: var(--text-leise); font-weight: 580; text-decoration: none; }
.logos__platte {
  display: grid; place-items: center; height: 156px; padding: 1.5rem; border-radius: var(--r-gross);
  background: #fff; border: 1px solid var(--linie);
  transition: border-color .3s, transform .35s var(--weich), box-shadow .35s;
}
.logos__platte img { max-height: 96px; width: auto; }
@media (max-width: 640px) { .logos__platte { height: 120px; } .logos__platte img { max-height: 76px; } }
a.logos__eintrag:hover { color: var(--akzent); }
a.logos__eintrag:hover .logos__platte { border-color: var(--akzent); transform: translateY(-4px); box-shadow: var(--schatten-karte); }

/* ── Kontakt (dunkles Band) ──────────────────────────────────── */
.abschnitt--kontakt { background: var(--dunkel); color: var(--dunkel-text); overflow: clip; }
.abschnitt--kontakt .leitungen { left: -18%; bottom: -38%; width: min(80vw, 1000px); height: 130%; opacity: .16; transform: scaleX(-1); }
.abschnitt--kontakt .wrap { position: relative; z-index: 1; }
.abschnitt--kontakt .oberzeile { color: var(--dunkel-akzent); }
.abschnitt--kontakt .titel { color: #fff; }
.abschnitt--kontakt .einleitung { color: var(--dunkel-leise); }
.kontakt__info .abschnitt__kopf { margin-bottom: 2.25rem; }
.telefon-gross {
  display: inline-flex; align-items: center; gap: 1.1rem; color: #fff; text-decoration: none;
  font-size: clamp(2rem, 1.35rem + 2.5vw, 3.2rem); font-weight: 800; font-stretch: 118%; letter-spacing: -.025em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.telefon-gross small { display: block; margin-bottom: .5rem; color: var(--dunkel-leise); font-size: .95rem; font-weight: 560; font-stretch: 100%; letter-spacing: 0; }
.telefon-gross__icon { display: grid; place-items: center; flex: none; width: 66px; height: 66px; border-radius: 50%; background: var(--orange); color: #fff; box-shadow: 0 0 0 0 rgb(232 119 46 / .5); }
.telefon-gross__icon .sym { width: 28px; height: 28px; stroke-width: 1.9; }
.telefon-gross:hover .telefon-gross__icon { animation: klingeln .7s ease, ring 1.2s ease-out; }
@keyframes klingeln { 20% { transform: rotate(-14deg); } 40% { transform: rotate(11deg); } 60% { transform: rotate(-7deg); } 80% { transform: rotate(4deg); } }
@keyframes ring { to { box-shadow: 0 0 0 18px rgb(232 119 46 / 0); } }
.kontaktwege { display: grid; gap: 1.1rem; margin: 2.5rem 0 0; padding: 2rem 0 0; list-style: none; border-top: 1px solid rgb(255 255 255 / .14); }
.kontaktwege a, .kontaktwege address { display: inline-flex; align-items: flex-start; gap: .9rem; color: var(--dunkel-text); text-decoration: none; line-height: 1.45; }
.kontaktwege .sym { color: var(--dunkel-akzent); width: 22px; height: 22px; margin-top: 1px; }
.kontaktwege a:hover { color: #fff; text-decoration: underline; }

.formular {
  position: relative; padding: clamp(1.5rem, 3.2vw, 2.6rem); border-radius: var(--r-gross);
  background: var(--flaeche); color: var(--text); border: 1px solid var(--linie);
  box-shadow: 0 50px 90px -50px rgb(0 0 0 / .65);
}
.formular__titel { margin: 0 0 1.5rem; font-size: 1.45rem; }
.formular__felder { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
.feld--breit { grid-column: 1 / -1; }
.feld label { display: block; margin-bottom: .4rem; font-size: .9rem; font-weight: 620; }
.pflicht { color: var(--orange-text); }
.feld input, .feld select, .feld textarea {
  width: 100%; min-height: 50px; padding: .8rem .95rem;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--linie-stark); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.feld textarea { resize: vertical; min-height: 140px; }
.feld select {
  appearance: none; padding-right: 2.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8da0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 18px;
}
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--akzent) 20%, transparent); }
.geprueft .feld :invalid { border-color: var(--fehler); }
.einwilligung { display: flex; align-items: flex-start; gap: .75rem; margin-top: 1.4rem; color: var(--text-leise); font-size: .93rem; line-height: 1.45; cursor: pointer; }
.einwilligung input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--akzent); cursor: pointer; }
.geprueft .einwilligung input:invalid + span { color: var(--fehler); }
.formular__fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.6rem; }
.formular__status { margin: 0; font-weight: 580; font-size: .96rem; }
.formular__status.ist-fehler { color: var(--fehler); }
.formular__status.ist-erfolg { color: var(--erfolg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) {
  .formular__felder { grid-template-columns: 1fr; }
  .formular__fuss .knopf { width: 100%; }
  .telefon-gross__icon { width: 54px; height: 54px; }
}

/* ── Impressum, Datenschutz ──────────────────────────────────── */
.abschnitt--rechtliches { padding-block: 0; }
.abschnitt--kontakt + .abschnitt--rechtliches { padding-top: clamp(3rem, 6vw, 4.5rem); }
.abschnitt--rechtliches:last-child { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.rechtliches { border-bottom: 1px solid var(--linie); }
.rechtliches summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.35rem 0; cursor: pointer; list-style: none; }
.rechtliches summary::-webkit-details-marker { display: none; }
.rechtliches summary h2 { margin: 0; font-size: 1.35rem; }
.rechtliches__zeichen { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--linie-stark); transition: border-color .2s, background-color .2s; }
.rechtliches__zeichen::before, .rechtliches__zeichen::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: currentColor; transition: transform .3s var(--weich); }
.rechtliches__zeichen::after { transform: rotate(90deg); }
.rechtliches[open] .rechtliches__zeichen::after { transform: rotate(0deg); }
.rechtliches summary:hover .rechtliches__zeichen { border-color: var(--akzent); color: var(--akzent); }
.rechtliches .text { padding-bottom: 2rem; color: var(--text-leise); }
.rechtliches .text h3 { color: var(--text); font-stretch: 105%; }

/* ── Fusszeile ───────────────────────────────────────────────── */
.fuss { background: var(--fuss-bg); color: #aec2d5; padding: clamp(3.5rem, 6vw, 5rem) 0 2rem; font-size: .97rem; }
.fuss__innen { display: grid; gap: 2.25rem 2rem; grid-template-columns: 1.5fr 1fr 1fr; align-items: start; }
.fuss__marke img { height: 54px; width: auto; }
.fuss__marke p { margin: 1.1rem 0 0; max-width: 22rem; }
.fuss address { line-height: 1.75; }
.fuss strong { color: #fff; font-weight: 650; }
.fuss a { color: #e2ecf5; text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss nav { display: flex; flex-direction: column; gap: .55rem; }
.fuss__copy { grid-column: 1 / -1; margin: .5rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .1); color: #7d95ac; font-size: .88rem; }
@media (max-width: 760px) { .fuss__innen { grid-template-columns: 1fr; } }

/* ── Laden und Fehler ────────────────────────────────────────── */
.laden { display: flex; align-items: center; justify-content: center; gap: .75rem; min-height: 60vh; color: var(--text-leise); }
.laden__punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--akzent); animation: pochen 1s ease-in-out infinite alternate; }
@keyframes pochen { from { opacity: .3; transform: scale(.7); } }
.fehlerbox { padding: 1.75rem; border: 2px solid var(--fehler); border-radius: var(--r); background: color-mix(in srgb, var(--fehler) 8%, var(--bg)); }
.fehlerbox h1 { font-size: 1.5rem; }
.fehlerbox pre { margin: 0; white-space: pre-wrap; font: .92rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ── Bewegung reduzieren ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .leitungen__fluss { display: none; }
}

/* ── Druck ───────────────────────────────────────────────────── */
@media print {
  .kopf, .leitungen, .formular, .knoepfe, .skip { display: none !important; }
  .abschnitt { padding-block: 1.5rem; }
  .abschnitt--kontakt, .fuss { background: none; color: #000; }
  .abschnitt--kontakt .titel, .telefon-gross, .kontaktwege a, .kontaktwege address, .fuss a { color: #000; }
  .rechtliches .text { display: block; }
}
