/* LANG Dienstleistungen GmbH · Design-System (BAUAUFTRAG Block 2)
   Archetyp „Technisches Planblatt“ · Graphit · Gleisblau · Warnorange · Schotter
   Signatur: Lichtraum-Kontur (Fotos, Aufzählungszeichen, Hero) + Gleis-Trenner + Kettenwerk-Loop. */

@import url('tokens.css');

/* ── Tokens (Hex-Fallback, OKLCH wo unterstützt) ───────────────────────────── */
:root {
  --graphit: #13171C;
  --graphit-2: #1D232A;
  --graphit-3: #2A323B;
  --gleisblau: #1D5CA6;
  --blau-hell: #8DB8EC;
  --warnorange: #FF6B1F;
  --warn-schatten: #D9531A;
  --schotter: #E6E9ED;
  --weiss: #F6F7F9;
  --stahl: #5B6672;
  --signalweiss: #F2F4F7;
  --gruen-1: #3A6131; --gruen-2: #4C7A3F; --gruen-3: #5F9150;

  /* semantisch (wechselt im Dunkelmodus) */
  --bg: var(--weiss);
  --bg-alt: var(--schotter);
  --flaeche: #FFFFFF;
  --text: var(--graphit);
  --text-2: var(--stahl);
  --link: var(--gleisblau);
  --linie: rgb(91 102 114 / .28);
  --trenner: rgb(91 102 114 / .4);
  --dunkel-1: var(--graphit);
  --dunkel-2: var(--graphit-2);

  --font-head: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text-h1: clamp(2.25rem, 1.4rem + 3.2vw, 4rem);
  --text-h1-sub: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
  --text-h2: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  --text-h3: clamp(1.25rem, 1.05rem + .8vw, 1.6rem);
  --text-lead: 1.25rem;
  --text-body: 1.0625rem;
  --text-label: .875rem;

  --radius-k: 6px;
  --radius-c: 14px;
  --schatten: 0 1px 2px rgb(19 23 28 / .08), 0 12px 32px rgb(19 23 28 / .10);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --lichtraum: polygon(0 100%, 0 34%, 20% 10%, 36% 0, 64% 0, 80% 10%, 100% 34%, 100% 100%);
  --icon-akzent: var(--warnorange);
  --focus: #1D5CA6;
  --sektion-y: clamp(4rem, 3rem + 4.5vw, 7.5rem);
}
/* OKLCH-Entsprechungen (Hue ≈ 254° aus dem Logo-Blau): graphit oklch(20.3% .012 254) · graphit-2 oklch(25.3% .016 252)
   · gleisblau oklch(47.6% .135 255) · blau-hell oklch(77.1% .088 254) · warnorange oklch(70.3% .197 43)
   · schotter oklch(93.3% .006 256) · weiss oklch(97.6% .003 265) · stahl oklch(50.5% .023 251) · signalweiss oklch(96.6% .005 258).
   Ausgeliefert als Hex, weil Messgerät und ältere Browser OKLCH-Rechenwerte nicht auswerten; abgeleitete Töne per color-mix(in oklch). */
/* Dunkelmodus: helle Kapitel werden dunkel, die Graphit-Kapitel rücken eine Stufe tiefer */
.dark {
  color-scheme: dark;
  --bg: #11151A;
  --bg-alt: #181D23;
  --flaeche: #1D232A;
  --text: #E8ECF0;
  --text-2: #A9B4BF;
  --link: var(--blau-hell);
  --linie: rgb(169 180 191 / .2);
  --trenner: rgb(169 180 191 / .32);
  --dunkel-1: #0B0E12;
  --dunkel-2: #161B21;
  --focus: #8DB8EC;
  --schatten: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px rgb(0 0 0 / .35);
}

/* ── Grundlage (Tailwind-Preflight ist aus, darum hier) ─────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.s-dunkel :focus-visible, .s-blau :focus-visible, .site-footer :focus-visible { outline-color: var(--blau-hell); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
::selection { background: var(--warnorange); color: var(--graphit); }

h1, h2, h3, h4, .label, .knopf {
  font-family: var(--font-head);
}
h1, h2 {
  font-stretch: 118%;
  font-weight: 760;
  line-height: 1.06;
  letter-spacing: -.012em;
  text-wrap: balance;
  hyphens: manual;
  overflow-wrap: break-word;
}
@media (max-width: 520px) { h1, h2, h3 { hyphens: auto; } }
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); line-height: 1.1; }
h3 {
  font-size: var(--text-h3);
  font-stretch: 100%;
  font-weight: 620;
  line-height: 1.2;
  text-wrap: balance;
}
h4 { font-size: 1.125rem; font-weight: 620; line-height: 1.3; }
p, li { text-wrap: pretty; }
.lead { font-size: var(--text-lead); line-height: 1.55; color: var(--text-2); max-width: 40rem; }
.label {
  font-size: var(--text-label);
  font-stretch: 100%;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--text-2);
}
.zahl { font-variant-numeric: tabular-nums; }
.fliesstext > * + * { margin-top: 1em; }
.fliesstext { max-width: 44rem; }
.fliesstext h2 { margin-top: 1.6em; }
.fliesstext h3 { margin-top: 1.4em; }
.fliesstext ul:not([class]), .fliesstext ol:not([class]) { padding-left: 1.25rem; }
.fliesstext li + li { margin-top: .35em; }
.fliesstext strong { font-weight: 700; }

/* Textlink: Unterstrich zeichnet sich (160 ms) */
.textlink, .fliesstext a, .faq-antwort a, .artikel a:not(.knopf) {
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  text-decoration-color: color-mix(in oklch, currentColor 40%, transparent);
  transition: text-decoration-color .16s var(--ease-out), color .16s;
}
.fliesstext a:hover, .faq-antwort a:hover, .artikel a:not(.knopf):hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.textlink { position: relative; display: inline-block; padding-block: .55rem; text-decoration: none; }
.textlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: .45rem; height: 1.5px; background: currentColor; opacity: .4;
  transform-origin: left center; transition: transform .16s var(--ease-out), opacity .16s; }
.textlink:hover::after { opacity: 1; animation: strich-zeichnen .16s var(--ease-out); }
@keyframes strich-zeichnen { from { transform: scaleX(0); } to { transform: scaleX(1); } }
p .textlink { display: inline; padding: 0; text-decoration: underline; text-decoration-color: color-mix(in oklch, currentColor 40%, transparent); text-underline-offset: .22em; }
p .textlink::after { display: none; }
p .textlink:hover { text-decoration-color: currentColor; }
.s-dunkel .textlink, .s-dunkel .fliesstext a, .s-dunkel-2 .textlink { color: var(--blau-hell); }
.textlink--pfeil { padding-right: 1.35em; white-space: nowrap; }
.textlink--pfeil::before { content: "→"; position: absolute; right: 0; top: 50%; transform: translateY(-52%); transition: transform .16s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .textlink--pfeil:hover::before { transform: translate(3px, -52%); } }

/* ── Raster ──────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.wrap--schmal { max-width: 56rem; }
.sektion { padding-block: var(--sektion-y); position: relative; }
.sektion--alt { background: var(--bg-alt); }
.sektion--weiss { background: var(--bg); }
.s-dunkel { background: var(--dunkel-1); color: var(--signalweiss); }
.s-dunkel-2 { background: var(--dunkel-2); color: var(--signalweiss); }
.s-dunkel .lead, .s-dunkel-2 .lead, .s-dunkel .label, .s-dunkel-2 .label { color: #B8C2CD; }
.s-dunkel-2 { --text-2: #B8C2CD; }
.s-dunkel { --text-2: #B8C2CD; }
.s-blau { background: var(--gleisblau); color: #fff; }
.kopfzeile { max-width: 46rem; }
.kopfzeile > * + * { margin-top: 1rem; }
.kopfzeile + * { margin-top: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem); }
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
@media (min-width: 900px) {
  .split--7-5 { grid-template-columns: 7fr 5fr; }
  .split--5-7 { grid-template-columns: 5fr 7fr; }
  .split--6-6 { grid-template-columns: 1fr 1fr; }
}

/* ── Knöpfe (nie durchsichtig, Kontrast gerechnet) ───────────────────────── */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.35rem;
  border-radius: var(--radius-k); border: 1px solid transparent;
  font-size: 1rem; font-weight: 640; font-stretch: 100%; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .18s var(--ease-out), border-color .18s, color .18s, transform .18s var(--ease-out), box-shadow .18s;
}
.knopf--warn { background: #FF6B1F; color: #13171C; }
.knopf--warn:hover { background: #FF8442; }
.knopf--dunkel { background: #13171C; color: #F2F4F7; }
.knopf--dunkel:hover { background: #2A323B; }
.knopf--hell { background: #2A323B; color: #F2F4F7; border-color: rgb(242 244 247 / .22); }
.knopf--hell:hover { background: #36404B; }
.knopf--weiss { background: #F2F4F7; color: #13171C; }
.knopf--weiss:hover { background: #FFFFFF; }
.dark .knopf--dunkel { background: #F2F4F7; color: #13171C; }
.dark .knopf--dunkel:hover { background: #FFFFFF; }
@media (hover: hover) and (pointer: fine) {
  .knopf:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgb(19 23 28 / .18); }
}
.knopf svg { width: 20px; height: 20px; flex: none; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ── Icons (Material Symbols, Kontur + EINE Akzentfläche) ─────────────────── */
.ico { width: 2.5rem; height: 2.5rem; fill: currentColor; flex: none; }
.ico .akzent { fill: var(--icon-akzent); }
.ico-feld {
  display: inline-grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 12px;
  background: color-mix(in oklch, var(--gleisblau) 10%, var(--flaeche)); color: var(--gleisblau);
}
.dark .ico-feld { color: var(--blau-hell); }
.s-dunkel .ico-feld, .s-dunkel-2 .ico-feld { background: rgb(141 184 236 / .12); color: var(--blau-hell); }

/* ── Signatur 1: Lichtraum-Kontur ────────────────────────────────────────── */
.lr { position: relative; filter: drop-shadow(0 18px 30px rgb(19 23 28 / .22)); }
.dark .lr, .s-dunkel .lr, .s-dunkel-2 .lr { filter: drop-shadow(0 18px 30px rgb(0 0 0 / .45)); }
.lr img { width: 100%; height: 100%; object-fit: cover; clip-path: var(--lichtraum); }
.lr--hoch { aspect-ratio: 7 / 8; }
.lr--quer { aspect-ratio: 4 / 3; }
.lr--breit { aspect-ratio: 16 / 10; }
.lr figcaption { margin-top: .75rem; font-size: .875rem; color: var(--text-2); }
.lr-liste { display: grid; gap: .55rem; }
.lr-liste li { position: relative; padding-left: 2rem; }
.lr-liste li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 22px;
  background: var(--gleisblau);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 22'%3E%3Cpath d='M1.5 21V8.5L5.4 3.4 8 1.5h4l2.6 1.9 3.9 5.1V21' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M6 21h8' stroke='black' stroke-width='1.5'/%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 20 22'%3E%3Cpath d='M1.5 21V8.5L5.4 3.4 8 1.5h4l2.6 1.9 3.9 5.1V21' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M6 21h8' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dark .lr-liste li::before, .s-dunkel .lr-liste li::before, .s-dunkel-2 .lr-liste li::before { background: var(--blau-hell); }

/* ── Signatur 2: Gleis-Trenner (zwei Schienen, Schwellen alle 28 px) ──────── */
.gleis-trenner {
  --c: var(--trenner);
  height: 22px; width: 100%; border: 0; margin: 0;
  background:
    linear-gradient(var(--c), var(--c)) 0 5px / 100% 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 15.5px / 100% 1.5px no-repeat,
    repeating-linear-gradient(90deg, var(--c) 0 2px, transparent 2px 28px) 0 1px / 100% 20px no-repeat;
}
.s-dunkel .gleis-trenner, .s-dunkel-2 .gleis-trenner { --c: rgb(184 194 205 / .35); }

/* ── Signatur 3: Kettenwerk-Loop (Oberleitung, nur auf Dunkel) ───────────── */
.kettenwerk { position: absolute; inset: 0 0 auto 0; height: 56px; overflow: hidden; pointer-events: none; opacity: .14; z-index: 0; }
.kettenwerk i {
  position: absolute; inset: 0 auto 0 0; width: calc(100% + 320px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='56' viewBox='0 0 320 56' fill='none' stroke='%238DB8EC' stroke-width='1.5'%3E%3Cpath d='M0 9Q160 33 320 9'/%3E%3Cpath d='M0 41H320'/%3E%3Cpath d='M1 0V56M319 0V56' stroke-width='3'/%3E%3Cpath d='M0 7H14M306 7H320'/%3E%3Cpath d='M40 15.6V41M80 21.2V41M120 24.6V41M160 25.8V41M200 24.6V41M240 21.2V41M280 15.6V41' stroke-width='1'/%3E%3C/svg%3E") 0 0 / 320px 56px repeat-x;
  animation: kettenwerk 40s linear infinite;
  will-change: transform;
}
@keyframes kettenwerk { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-320px, 0, 0); } }
.s-dunkel > .wrap, .s-dunkel-2 > .wrap, .site-footer > .wrap { position: relative; z-index: 1; }

/* ── Header (Mechanik aus Vorlagen/header-schwebend.html, Optik: heller Balken) ── */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; pointer-events: none;
  padding: clamp(.6rem, 1.6vw, 1rem) clamp(.6rem, 2.5vw, 1.5rem); }
.site-header .nav-wrap { pointer-events: auto; max-width: 90rem; margin: 0 auto;
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem .55rem .45rem 1rem; border-radius: 10px;
  color: var(--graphit); background: rgb(246 247 249 / .9);
  border: 1px solid var(--schotter);
  box-shadow: 0 6px 24px rgb(19 23 28 / .12);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  transition: background .3s, box-shadow .3s, border-color .3s; }
.site-header.scrolled .nav-wrap { background: rgb(246 247 249 / .97); box-shadow: 0 8px 26px rgb(19 23 28 / .14); }
.dark .site-header .nav-wrap { color: var(--signalweiss); background: rgb(29 35 42 / .92); border-color: rgb(242 244 247 / .1); box-shadow: 0 8px 26px rgb(0 0 0 / .4); }
.site-header .nav-logo { display: flex; align-items: center; margin-right: auto; min-height: 44px; text-decoration: none; }
.site-header .nav-logo img { height: 46px; width: auto; }
.nav-logo .logo-hell { display: none; }
.dark .nav-logo .logo-dunkel { display: none; }
.dark .nav-logo .logo-hell { display: block; }
.site-header nav { display: none; align-items: center; gap: clamp(.25rem, .9vw, .9rem); }
.site-header nav a { color: inherit; text-decoration: none; padding: .45rem .55rem; font-size: 1rem; font-weight: 600; border-radius: 6px; white-space: nowrap;
  font-family: var(--font-head); font-stretch: 100%; transition: background .2s, color .2s; position: relative; }
.site-header nav a:hover, .site-header nav a:focus-visible { background: rgb(91 102 114 / .12); }
.site-header nav a[aria-current]::after { content: ""; position: absolute; left: .55rem; right: .55rem; bottom: .15rem; height: 2px; background: var(--warnorange); }
.site-header .nav-cta { display: none; margin-left: .3rem; min-height: 44px; padding: .6rem 1.05rem; font-size: .95rem; }
.nav-burger { background: none; border: 0; color: inherit; padding: .6rem; min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border-radius: 6px; font-family: var(--font-head); font-weight: 600; }
@media (min-width: 1024px) {
  .site-header nav { display: flex; }
  .site-header .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
}
@media (max-width: 1180px) and (min-width: 1024px) { .site-header nav { gap: .2rem; } .site-header nav a { padding: .45rem .5rem; } }
.site-header .nav-item { position: relative; display: flex; align-items: center; }
.site-header .nav-item > a { display: inline-flex; align-items: center; gap: .35rem; }
.nav-chevron { flex: none; transition: transform .2s; }
.nav-item.offen .nav-chevron, .nav-gruppe[open] .nav-chevron { transform: rotate(180deg); }
.nav-sub { position: absolute; top: 100%; left: 0; min-width: 16rem; z-index: 80; padding: .9rem 0 .6rem;
  background: var(--flaeche); color: var(--text); border-radius: 10px; border: 1px solid var(--linie);
  box-shadow: 0 14px 34px rgb(19 23 28 / .16);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.nav-item.offen > .nav-sub { opacity: 1; visibility: visible; transform: none; }
.site-header .nav-sub a { display: block; padding: .6rem 1.1rem; border-radius: 0; font-weight: 500; }
.site-header .nav-sub a:hover { background: rgb(91 102 114 / .1); }
.nav-theme { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px;
  border: 1px solid rgb(91 102 114 / .45); background: rgb(91 102 114 / .1); color: inherit; flex: none; transition: background .2s; }
.nav-theme:hover { background: rgb(91 102 114 / .22); }
.nav-theme .ic-sonne { display: none; }
.dark .nav-theme .ic-sonne { display: block; }
.dark .nav-theme .ic-mond { display: none; }
.nav-overlay { position: fixed; inset: 0; z-index: 70; background: var(--graphit); color: var(--signalweiss);
  display: flex; flex-direction: column; gap: .15rem; padding: 5.5rem clamp(1.5rem, 6vw, 3rem) 2rem; overflow-y: auto; }
.nav-overlay[hidden] { display: none; }
.nav-overlay a { color: inherit; text-decoration: none; font-family: var(--font-head); font-stretch: 112%; font-weight: 700; font-size: 1.5rem; padding: .7rem 0; border-bottom: 1px solid rgb(242 244 247 / .08); }
.nav-overlay .nav-gruppe summary { display: flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-stretch: 112%; font-weight: 700; font-size: 1.5rem;
  padding: .7rem 0; cursor: pointer; list-style: none; border-bottom: 1px solid rgb(242 244 247 / .08); }
.nav-overlay .nav-gruppe summary::-webkit-details-marker { display: none; }
.nav-overlay .nav-gruppe a { font-size: 1.15rem; font-stretch: 100%; font-weight: 600; padding: .6rem 0 .6rem 1.25rem; color: #C9D2DB; }
.nav-overlay .nav-close { position: absolute; top: 1rem; right: 1.25rem; background: none; border: 0; color: inherit; font-size: 1.6rem; padding: .6rem; min-width: 44px; min-height: 44px; }
.nav-overlay .knopf { margin-top: 1.5rem; align-self: flex-start; font-size: 1rem; border-bottom: 0; }
:target, [id] { scroll-margin-top: 6.5rem; }

/* ── Seitenkopf der Unterseiten ──────────────────────────────────────────── */
.seitenkopf { padding-top: clamp(7.5rem, 6rem + 4vw, 9.5rem); padding-bottom: var(--sektion-y); background: var(--bg-alt); position: relative; overflow: hidden; }
.seitenkopf h1 { font-size: var(--text-h1-sub); }
.seitenkopf .lead { margin-top: 1.25rem; }
.brotkrumen { font-size: .9375rem; color: var(--text-2); margin-bottom: 1rem; }
.brotkrumen a { color: inherit; text-decoration: underline; text-underline-offset: .2em; text-decoration-color: rgb(91 102 114 / .4); }
.brotkrumen span[aria-hidden] { margin-inline: .4rem; }
.seitenkopf .knopf-reihe { margin-top: 2rem; }

/* ── Streckenzeilen (statt Kacheln) ──────────────────────────────────────── */
.strecke-zeilen { display: grid; gap: 0; }
.strecke-zeile { display: grid; gap: 1.5rem; padding-block: clamp(2rem, 1.5rem + 2vw, 3rem); align-items: center; }
.zeile-inhalt { display: grid; gap: 1rem 2rem; align-items: start; }
@media (min-width: 900px) {
  .strecke-zeile { grid-template-columns: 280px minmax(0, 1fr); gap: clamp(2rem, 1rem + 3vw, 4rem); }
  .zeile-inhalt { grid-template-columns: minmax(0, 1fr) 13rem; }
  .zeile-inhalt .zeile-link { margin-top: 1.6rem; }
}
.strecke-zeile .lr { width: 100%; max-width: 280px; aspect-ratio: 7 / 8; }
.strecke-zeile h3 { margin-bottom: .6rem; }
.strecke-zeile .lr-liste { margin-top: 1rem; }
.strecke-nr { font-family: var(--font-head); font-stretch: 100%; font-weight: 600; font-size: .875rem; color: var(--text-2); margin-bottom: .4rem; display: flex; align-items: center; gap: .5rem; }
.strecke-nr .ico { width: 1.75rem; height: 1.75rem; color: var(--gleisblau); }
.dark .strecke-nr .ico { color: var(--blau-hell); }

/* ── Begriffe (Erklärliste) ─────────────────────────────────────────────── */
.begriffe { margin-top: 1.75rem; display: grid; border-top: 1px solid var(--linie); }
.begriffe > div { display: grid; gap: .25rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--linie); }
@media (min-width: 640px) { .begriffe > div { grid-template-columns: 11rem 1fr; } }
.begriffe dt { font-family: var(--font-head); font-weight: 650; font-stretch: 100%; }
.begriffe dd { margin: 0; color: var(--text-2); }

/* ── Ablauf auf der Gleislinie (Schritte sitzen auf Schwellen) ─────────── */
.ablauf { --c: rgb(184 194 205 / .38); position: relative; display: grid; gap: 2rem; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.sektion--alt .ablauf, .sektion--weiss .ablauf, .karte .ablauf { --c: var(--trenner); }
.ablauf-gleis { position: absolute; pointer-events: none; left: 1.25rem; top: 0; bottom: 0; width: 22px; margin-left: -11px;
  background:
    linear-gradient(var(--c), var(--c)) 5px 0 / 1.5px 100% no-repeat,
    linear-gradient(var(--c), var(--c)) 15.5px 0 / 1.5px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--c) 0 2px, transparent 2px 28px) 1px 0 / 20px 100% no-repeat; }
.ablauf-schritt { position: relative; padding-left: 3.75rem; min-height: 2.5rem; }
.ablauf-schwelle { position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  border-radius: 6px; background: var(--warnorange); color: #13171C; font-family: var(--font-head); font-weight: 760; font-stretch: 118%; font-size: 1.1rem; }
.ablauf-schritt h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.ablauf-schritt p { color: var(--text-2); }
.s-dunkel .ablauf-schritt p, .s-dunkel-2 .ablauf-schritt p { color: #B8C2CD; }
@media (min-width: 900px) {
  .ablauf { grid-template-columns: repeat(var(--schritte, 4), minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
  .ablauf-gleis { left: 0; right: 0; top: 1.25rem; bottom: auto; width: auto; height: 22px; margin: -11px 0 0;
    background:
      linear-gradient(var(--c), var(--c)) 0 5px / 100% 1.5px no-repeat,
      linear-gradient(var(--c), var(--c)) 0 15.5px / 100% 1.5px no-repeat,
      repeating-linear-gradient(90deg, var(--c) 0 2px, transparent 2px 28px) 0 1px / 100% 20px no-repeat; }
  .ablauf-schritt { padding-left: 0; padding-top: 4rem; }
}
.ablauf-hg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .08; pointer-events: none; }

/* ── Karten / Tafeln ─────────────────────────────────────────────────────── */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-c); padding: clamp(1.5rem, 1.2rem + 1vw, 2rem); box-shadow: var(--schatten); }
.karte h3 { margin-bottom: .6rem; }
.karten-raster { display: grid; gap: 1.5rem; align-items: stretch; }
.karten-raster > * { height: 100%; }
@media (min-width: 760px) { .karten-raster--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .karten-raster--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) and (max-width: 899px) { .karten-raster--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .karten-raster--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
.s-dunkel .karte, .s-dunkel-2 .karte { background: #232A32; border-color: rgb(242 244 247 / .08); box-shadow: none; color: var(--signalweiss); }
.dark .s-dunkel .karte, .dark .s-dunkel-2 .karte { background: #1B2128; }

.faktor-liste { display: grid; gap: 0; border-top: 1px solid var(--linie); }
.faktor-liste li { display: grid; gap: .25rem 2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--linie); }
@media (min-width: 760px) { .faktor-liste li { grid-template-columns: 16rem 1fr; } }
.faktor-liste strong { font-family: var(--font-head); font-weight: 620; font-stretch: 100%; }
.faktor-liste span { color: var(--text-2); }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 0; border-top: 1px solid var(--linie); }
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-stretch: 100%; font-weight: 620; font-size: 1.15rem; line-height: 1.35; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq-antwort { padding: 0 0 1.4rem; color: var(--text-2); max-width: 46rem; }
.faq-antwort > * + * { margin-top: .75em; }
.faq details[open] .faq-antwort { animation: faq-auf .2s var(--ease-out); }
@keyframes faq-auf { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ── Abschluss-Band (Gleisblau) ──────────────────────────────────────────── */
.abschluss { background: var(--gleisblau); color: #fff; padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); position: relative; overflow: hidden; }
.dark .abschluss { background: #174A87; }
.abschluss h2 { max-width: 40rem; }
.abschluss p { max-width: 38rem; margin-top: 1rem; color: #E3ECF8; font-size: 1.125rem; }
.abschluss .knopf-reihe { margin-top: 2rem; }
.abschluss-inner { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 900px) { .abschluss-inner { grid-template-columns: 1fr auto; } }
.abschluss-kontur { position: absolute; right: -40px; bottom: -10px; width: 340px; height: 300px; opacity: .14; pointer-events: none; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--graphit); color: #C9D2DB; position: relative; padding-top: calc(56px + clamp(2.5rem, 2rem + 2vw, 4rem)); padding-bottom: 1.25rem; overflow: hidden; }
.dark .site-footer { background: #0B0E12; }
.footer-raster { display: grid; gap: 2.5rem 2rem; }
@media (min-width: 640px) { .footer-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-raster { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-logo img { width: 200px; height: auto; }
.footer-text { margin-top: 1.25rem; font-size: .9375rem; max-width: 22rem; }
.footer-titel { font-family: var(--font-head); font-stretch: 100%; font-weight: 620; font-size: .9375rem; color: #F2F4F7; margin-bottom: .9rem; }
.footer-links { display: grid; gap: 0; }
.footer-links a { color: #C9D2DB; text-decoration: none; display: inline-block; padding: .6rem 0; font-size: .9375rem; }
.footer-links a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: .2em; }
.footer-adresse { font-style: normal; font-size: .9375rem; line-height: 1.6; }
.footer-unten { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); padding-top: 1.25rem; border-top: 1px solid rgb(242 244 247 / .1);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding-bottom: 16px; }
.footer-demo { font-size: .8125rem; color: #9AA5B1; max-width: 46rem; }
.footer-recht { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.footer-recht a { color: #C9D2DB; font-size: .875rem; text-decoration: none; padding: .7rem 0; display: inline-block; }
.footer-recht a:hover { color: #fff; text-decoration: underline; }
.site-footer .ns-badge { --ns-accent: #FF6B1F; color: #C9D2DB; }

/* ── Ladeauftritt (nur 1× je Sitzung, ohne JS nie sichtbar) ─────────────── */
.ladeauftritt { display: none; }
html.lade .ladeauftritt { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: #13171C;
  transition: transform .3s var(--ease-in-out); }
.ladeauftritt.weg { transform: translateY(-100%); }
.ladeauftritt img { width: 160px; height: auto; }
.ladeauftritt svg { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: 60px; transform: translateY(110px); }
.ladeauftritt path { stroke: #8DB8EC; stroke-width: 1.5; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; animation: lade-linie .7s var(--ease-out) forwards; opacity: .55; }
.ladeauftritt path:nth-child(2) { animation-delay: .08s; }
.ladeauftritt path:nth-child(3) { animation-delay: .16s; }
@keyframes lade-linie { to { stroke-dashoffset: 0; } }

/* ── Seitenübergang ─────────────────────────────────────────────────────── */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }

/* ── Startseite: Hero-Film ──────────────────────────────────────────────── */
section.hero[data-scrolly] { background: var(--graphit); color: var(--signalweiss); }
section.hero[data-scrolly] .scrolly-buehne { position: relative; height: auto; min-height: max(100svh, 760px); display: block; overflow: clip; }
.hero .scrolly-szene { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); }
.hero-verlauf { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(19 23 28 / .9) 0%, rgb(19 23 28 / .72) 45%, rgb(19 23 28 / .42) 100%); }
.hero-licht { position: absolute; inset: 0; }
.hero-licht--1 { background: radial-gradient(120% 90% at 85% 0%, rgb(242 182 107 / .16), rgb(242 182 107 / .06) 60%, transparent 85%); }
.hero-licht--2 { background: radial-gradient(120% 100% at 75% 10%, rgb(200 116 58 / .2), rgb(200 116 58 / .1) 65%, rgb(200 116 58 / .04) 90%); }
.hero-licht--3 { background: rgb(94 107 120 / .26); mix-blend-mode: color; }
.hero-licht--4 { background: linear-gradient(180deg, rgb(29 58 102 / .34), rgb(19 35 61 / .3)); }
.hero-licht--5 { background: radial-gradient(120% 100% at 60% 0%, rgb(234 242 251 / .22), rgb(207 224 242 / .14) 70%); }
.hero .hero-licht-wrap { position: absolute; inset: 0; }
.hero-signal { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #FFD9A3; box-shadow: 0 0 12px 4px rgb(255 190 110 / .5); left: 71%; top: 43%; animation: signal-puls 8s ease-in-out infinite; }
@keyframes signal-puls { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }
.hero .kettenwerk { z-index: 2; top: 0; }
.hero-laub, .hero-schnee { position: absolute; inset: 0; pointer-events: none; }
.hero-laub i { position: absolute; top: -40px; width: 16px; height: 11px; border-radius: 0 80% 0 80%; background: #C8743A; opacity: .85;
  animation: blatt var(--d, 26s) linear var(--v, 0s) infinite; }
.hero-laub i:nth-child(even) { background: #B9892F; }
@keyframes blatt {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  25% { transform: translate3d(40px, 25vh, 0) rotate(120deg); }
  50% { transform: translate3d(-10px, 50vh, 0) rotate(220deg); }
  75% { transform: translate3d(50px, 75vh, 0) rotate(330deg); }
  100% { transform: translate3d(10px, calc(100vh + 80px), 0) rotate(420deg); }
}
.hero-schnee i { position: absolute; top: -10px; width: var(--g, 2px); height: var(--g, 2px); border-radius: 50%; background: #fff; opacity: var(--o, .8);
  animation: flocke var(--d, 30s) linear var(--v, 0s) infinite; }
@keyframes flocke { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--x, 30px), calc(100vh + 40px), 0); } }

.hero-raster { position: relative; z-index: 3; max-width: 90rem; margin: 0 auto; padding: clamp(6.5rem, 5.5rem + 2vw, 7.25rem) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 6vh, 4rem);
  display: grid; gap: 2rem; min-height: max(100svh, 760px); align-content: center; }
@media (min-width: 1100px) {
  .hero-raster { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; align-items: end; }
  .hero-text { grid-column: 1 / 6; align-self: end; }
  .hero-objekt { grid-column: 6 / 13; align-self: center; margin-right: calc(-1 * clamp(1.25rem, 4vw, 3rem)); margin-left: -1rem; }
}
.hero h1 { font-size: clamp(2.25rem, 1.3rem + 2.9vw, 3.6rem); }
.hero h1 .h1-zeile { display: block; }
.hero h1 .h1-unter { display: block; margin-top: .9rem; font-size: clamp(1.125rem, 1rem + .45vw, 1.35rem); font-stretch: 100%; font-weight: 600; line-height: 1.35; letter-spacing: 0; color: #C9D6E3; text-wrap: balance; }
.hero .lead { margin-top: 1rem; color: #D5DDE5; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); }
.hero .knopf-reihe { margin-top: 1.75rem; }
.hero-objekt { position: relative; }
.hero-svg { width: 100%; height: auto; overflow: visible; }
.hero-svg [data-tiefe] { will-change: transform; }
.hero-svg text { font-family: var(--font-head); font-stretch: 100%; font-weight: 600; font-size: 15px; fill: #F2F4F7; paint-order: stroke; stroke: rgb(19 23 28 / .75); stroke-width: 4px; stroke-linejoin: round; }
.hero-svg .svg-label--klein { font-size: 13px; fill: #C9D6E3; }
.hero-svg .svg-label--warn { fill: #FFB38A; }
.hero-svg .svg-label--blau { fill: #B7D3F4; }

.tafel { margin-top: 1.5rem; background: rgb(29 35 42 / .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgb(242 244 247 / .14); border-radius: 14px; padding: 16px 20px; max-width: 32rem; }
.tafel-stapel { display: grid; gap: .9rem; }
.tafel-beat { background: #1D232A; }
.tafel-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.tafel-monat { font-family: var(--font-head); font-stretch: 118%; font-weight: 760; font-size: 1.35rem; color: #F2F4F7; }
.tafel-wert { font-family: var(--font-head); font-stretch: 100%; font-weight: 700; font-size: 1.5rem; color: #F2F4F7; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tafel-wert small { font-size: .875rem; color: #8DB8EC; font-weight: 600; margin-left: .15rem; }
.tafel-satz { margin-top: .3rem; color: #D5DDE5; font-size: .96875rem; line-height: 1.5; }
.tafel-label { margin-top: .9rem; font-family: var(--font-head); font-stretch: 100%; font-size: .875rem; font-weight: 600; color: #8DB8EC; }
html.film-an .tafel-stapel { gap: 0; }
html.film-an .tafel-stapel > .tafel-beat { grid-area: 1 / 1; }
html.film-an .tafel-label { margin-top: .6rem; }
.kapitel { margin-top: .75rem; display: flex; align-items: center; gap: .4rem; max-width: 32rem; }
.kapitel-knoepfe { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; flex: 1; padding-bottom: 2px; }
.kapitel-knoepfe::-webkit-scrollbar { display: none; }
.kapitel button { min-height: 44px; padding: .5rem .7rem; border: 0; border-radius: 6px; background: rgb(242 244 247 / .08); color: #E3E8EE;
  font-family: var(--font-head); font-stretch: 100%; font-weight: 600; font-size: .875rem; white-space: nowrap; position: relative; transition: background .18s; }
.kapitel button:hover { background: rgb(242 244 247 / .16); }
.kapitel button.aktiv { color: #fff; }
.kapitel button.aktiv::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: 6px; height: 2px; background: var(--warnorange); }
.kapitel .pause { flex: none; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; background: rgb(242 244 247 / .12); }
.kapitel .pause svg { width: 22px; height: 22px; fill: currentColor; }
.kapitel .pause .ic-play { display: none; }
.scrolly--pause .kapitel .pause .ic-play { display: block; }
.scrolly--pause .kapitel .pause .ic-pause { display: none; }
@media (max-width: 1099px) {
  .hero-verlauf { background: linear-gradient(180deg, rgb(19 23 28 / .9) 0%, rgb(19 23 28 / .78) 45%, rgb(19 23 28 / .6) 100%); }
  .hero-objekt { order: 2; }
  .hero-tafelblock { order: 3; }
  .hero-text { order: 1; }
  .hero-svg { width: 100%; }
  .tafel, .kapitel { max-width: none; }
}
@media (min-width: 1100px) { .hero-tafelblock { grid-column: 1 / 6; grid-row: 2; align-self: start; } .hero-text { grid-row: 1; } .hero-objekt { grid-row: 1 / span 2; } }
.fahrdraht-schwingt { animation: fahrdraht 24s ease-in-out infinite; transform-box: fill-box; }
@keyframes fahrdraht { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(1.5px); } }

/* ── Jahresplaner ────────────────────────────────────────────────────────── */
.planer { margin-top: 2.5rem; }
.planer-monate { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.planer-monate button { min-height: 44px; border: 1px solid var(--linie); background: var(--flaeche); border-radius: 6px; font-family: var(--font-head); font-stretch: 100%; font-weight: 600; font-size: .8125rem; color: var(--text); padding: 0; transition: background .16s, color .16s, border-color .16s; }
.planer-monate button:hover { border-color: var(--gleisblau); }
.planer-monate button[aria-pressed="true"] { background: var(--graphit); color: var(--signalweiss); border-color: var(--graphit); }
.dark .planer-monate button[aria-pressed="true"] { background: var(--signalweiss); color: var(--graphit); }
.planer-zeile { margin-top: 1.1rem; }
.planer-name { font-family: var(--font-head); font-stretch: 100%; font-weight: 620; font-size: .9375rem; margin-bottom: .4rem; display: flex; justify-content: space-between; gap: 1rem; }
.planer-name small { color: var(--text-2); font-weight: 500; font-size: .8125rem; }
.planer-balken { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; height: 18px; position: relative; }
.planer-balken i { border-radius: 3px; background: transparent; transform-origin: left center; transition: outline-color .16s; outline: 2px solid transparent; outline-offset: 1px; }
.planer-balken i.g { background: var(--gleisblau); }
.planer-balken i.v { background: var(--gruen-2); }
.planer-balken i.v-hell { background: color-mix(in oklch, var(--gruen-2) 32%, var(--flaeche)); }
.planer-balken i.w { background: repeating-linear-gradient(135deg, var(--blau-hell) 0 5px, color-mix(in oklch, var(--blau-hell) 45%, var(--flaeche)) 5px 10px); }
.planer-balken i.leer { background: color-mix(in oklch, var(--stahl) 10%, transparent); }
.planer-balken i.sel { outline-color: var(--warnorange); }
.planer-ausgabe { margin-top: 1.5rem; padding: 1.1rem 1.25rem; border-left: 3px solid var(--warnorange); background: var(--flaeche); border-radius: 0 10px 10px 0; min-height: 5.5rem; box-shadow: var(--schatten); }
.planer-ausgabe strong { font-family: var(--font-head); font-stretch: 100%; }
.planer-legende { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .875rem; color: var(--text-2); }
.planer-legende span { display: inline-flex; align-items: center; gap: .45rem; }
.planer-legende i { width: 22px; height: 12px; border-radius: 3px; display: inline-block; }
@media (max-width: 560px) { .planer-monate { grid-template-columns: repeat(6, minmax(0, 1fr)); } .planer-balken { gap: 2px; } }

/* ── Kopfbild-Lebenszeichen (Vegetation / Winterdienst) ─────────────────── */
.kopf-leben { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.kopf-leben i { position: absolute; top: -20px; }
.kopf-leben--laub i { width: 14px; height: 10px; border-radius: 0 80% 0 80%; background: #C8743A; opacity: .7; animation: blatt var(--d, 26s) linear var(--v, 0s) infinite; }
.kopf-leben--laub i:nth-child(even) { background: #8A9A3A; }
.kopf-leben--schnee i { width: var(--g, 2px); height: var(--g, 2px); border-radius: 50%; background: #9FB4C8; opacity: .75; animation: flocke var(--d, 30s) linear var(--v, 0s) infinite; }
.dark .kopf-leben--schnee i { background: #fff; }

/* ── Set-Pieces Unterseiten ──────────────────────────────────────────────── */
.buehne-flach { background: var(--dunkel-1); color: var(--signalweiss); border-radius: var(--radius-c); padding: clamp(1rem, .6rem + 1.5vw, 1.75rem); position: relative; overflow: hidden; }
section.buehne-sektion[data-scrolly] .scrolly-buehne { position: relative; height: auto; display: block; overflow: visible; }
.buehne-flach svg { width: 100%; height: auto; }
.buehne-flach text { font-family: var(--font-head); font-stretch: 100%; font-weight: 600; font-size: 14px; fill: #F2F4F7; paint-order: stroke; stroke: rgb(19 23 28 / .8); stroke-width: 4px; stroke-linejoin: round; }
.buehne-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 1rem; }
.buehne-leiste button { min-height: 44px; padding: .5rem .8rem; border: 0; border-radius: 6px; background: rgb(242 244 247 / .08); color: #E3E8EE; font-family: var(--font-head); font-stretch: 100%; font-weight: 600; font-size: .875rem; position: relative; }
.buehne-leiste button.aktiv::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 6px; height: 2px; background: var(--warnorange); }
.buehne-leiste .pause { width: 44px; display: grid; place-items: center; padding: 0; margin-left: auto; }
.buehne-leiste .pause svg { width: 22px; height: 22px; fill: currentColor; }
.buehne-leiste .pause .ic-play { display: none; }
.scrolly--pause .buehne-leiste .pause .ic-play { display: block; }
.scrolly--pause .buehne-leiste .pause .ic-pause { display: none; }
.buehne-wert { font-family: var(--font-head); font-stretch: 100%; font-weight: 600; font-size: .875rem; color: #8DB8EC; margin-left: .5rem; }
.buehne-wert b { font-size: 1.35rem; color: #F2F4F7; font-variant-numeric: tabular-nums; margin-right: .35rem; }

/* ── Ratgeber ───────────────────────────────────────────────────────────── */
.beitrag-zeile { display: grid; gap: 1.5rem; padding-block: 2.25rem; align-items: center; }
@media (min-width: 900px) { .beitrag-zeile { grid-template-columns: 320px minmax(0, 1fr); gap: 3rem; } }
.beitrag-zeile .lr { aspect-ratio: 4 / 3; max-width: 320px; width: 100%; }
.beitrag-meta { font-size: .875rem; color: var(--text-2); margin-bottom: .5rem; font-family: var(--font-head); font-stretch: 100%; font-weight: 600; }
.artikel { max-width: 46rem; }
.artikel .lr { margin-block: 2.5rem; }
.artikel > * + * { margin-top: 1.1em; }
.artikel h2 { margin-top: 1.8em; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.artikel h3 { margin-top: 1.4em; }
.artikel ul:not([class]) { padding-left: 1.25rem; }
.antwort-kasten { padding: 1.25rem 1.4rem; border-left: 3px solid var(--warnorange); background: var(--bg-alt); border-radius: 0 10px 10px 0; font-size: 1.125rem; }

/* ── Kontaktformular (Block A aus Vorlagen/kontakt-termin-vorlage.html, nur Farben + Rahmen angepasst) ── */
.k-wrap {
  --k-accent: #FF6B1F; --k-accent-ink: #13171C;
  --k-bg: var(--bg); --k-card: var(--flaeche); --k-text: var(--text);
  --k-muted: var(--text-2); --k-border: rgb(91 102 114 / .32); --k-radius: 14px;
}
.k-card { background: var(--k-card); border: 1px solid var(--k-border); border-radius: var(--k-radius); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); box-shadow: var(--schatten); }
.k-card h2 { font-size: 1.6rem; margin: 0 0 .35rem; }
.k-sub { color: var(--k-muted); margin: 0 0 1.25rem; }
.k-card label { display: block; font-size: .9375rem; font-weight: 600; margin: .9rem 0 .35rem; }
.k-card input, .k-card textarea, .k-card select { width: 100%; padding: .75rem .85rem; border: 1px solid var(--k-border); border-radius: 6px; background: var(--k-card); color: var(--k-text); font: inherit; min-height: 48px; }
.dark .k-card input, .dark .k-card textarea, .dark .k-card select { background: #151A20; }
.k-card input:focus, .k-card textarea:focus, .k-card select:focus { outline: 2px solid var(--k-accent); border-color: var(--k-accent); }
.k-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 560px) { .k-row { grid-template-columns: 1fr; } }
.k-btn { appearance: none; border: 0; cursor: pointer; font: inherit; font-family: var(--font-head); font-weight: 700; padding: .85rem 1.4rem; min-height: 48px; border-radius: 6px; background: var(--k-accent); color: var(--k-accent-ink); margin-top: .5rem; }
.k-btn:hover { background: #FF8442; }
.k-btn[disabled] { opacity: .55; cursor: not-allowed; }
.k-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--k-muted); margin: 1rem 0; }
.k-card .k-consent input { width: 20px; min-height: 0; height: 20px; margin-top: .15rem; flex: none; }
.k-card .k-consent label { margin: 0; font-weight: 400; font-size: .9rem; }
.k-note { font-size: .95rem; padding: .75rem .9rem; border-radius: 8px; margin-top: .9rem; display: none; }
.k-note.ok { display: block; background: #E6F3EC; color: #145A36; }
.k-note.err { display: block; background: #FDEAEA; color: #8F1F1A; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.k-card input[type=file] { padding: .6rem; cursor: pointer; }
.k-files-hint { font-size: .85rem; color: var(--k-muted); margin: .4rem 0 0; }
.k-files-list { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .4rem; }
.k-files-list li { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border: 1px solid var(--k-border); border-radius: 8px; background: var(--k-card); font-size: .9rem; }
.k-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-file-size { color: var(--k-muted); font-size: .85rem; white-space: nowrap; }
.k-file-x { appearance: none; font: inherit; font-size: .85rem; padding: .3rem .6rem; cursor: pointer; border: 1px solid var(--k-border); border-radius: 6px; background: var(--k-card); color: var(--k-muted); min-height: 36px; }

/* ── Rechtliches ────────────────────────────────────────────────────────── */
.recht { max-width: 48rem; }
.recht h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); margin: 2.2em 0 .6em; font-stretch: 100%; font-weight: 700; }
.recht h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; }
.recht p, .recht ul { margin-bottom: .85rem; }
.recht ul { padding-left: 1.25rem; }
.recht address { font-style: normal; }
.recht a { color: var(--link); }
.recht .muted { color: var(--text-2); font-size: .9rem; }

/* ── Bewegung dämpfen, nicht abschalten ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .kettenwerk i { animation-duration: 120s; }
  .hero-laub i, .kopf-leben i { animation-duration: calc(var(--d, 26s) * 2); }
  .hero-laub i:nth-child(n+4), .hero-schnee i:nth-child(n+31), .kopf-leben i:nth-child(n+4) { display: none; }
  .hero-schnee i { animation-duration: calc(var(--d, 30s) * 2); }
  .fahrdraht-schwingt { animation-duration: 48s; }
  .site-header, .site-header .nav-wrap, .nav-sub, .nav-chevron { transition-duration: .01ms; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .ladeauftritt path { animation-duration: .3s; }
}
@media print { .site-header, .kettenwerk, .ladeauftritt, #cookie-banner, .kapitel, .hero-laub, .hero-schnee { display: none !important; } }

/* ── Kontakt ─────────────────────────────────────────────────────────────── */
.kontakt-adresse { font-style: normal; margin-top: .75rem; font-size: 1.0625rem; line-height: 1.6; }
.kontakt-seite .karte p:last-child { margin-top: .5rem; }

/* ── Hero: Raster darf nie breiter als der Bildschirm werden ─────────────── */
.hero-raster { grid-template-columns: minmax(0, 1fr); }
.hero-raster > * { min-width: 0; }
@media (min-width: 1100px) { .hero-raster { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .hero-svg text { font-size: 24px; stroke-width: 5px; }
  .hero-svg .svg-label--klein { font-size: 21px; }
  .hero .knopf-reihe .knopf { flex: 1 1 auto; }
}
@media (min-width: 701px) and (max-width: 1099px) { .hero-objekt { width: 100%; max-width: 860px; margin-inline: auto; } }
