@charset "utf-8";
/* ==========================================================================
   BIMz — Designsystem
   Herleitung: Die Wortmarke ist eine schwere, eng gesetzte Grotesk in Schwarz
   mit einem einzigen farbigen Element (dem konturierten „z" im Verlauf von
   Tiefblau nach Cyan). Das Designsystem übernimmt diese Logik:
   schwarze Typografie, weisser Grund, Haarlinien wie in einer Bauzeichnung —
   und Blau ausschliesslich dort, wo etwas markiert oder bedient wird.
   ========================================================================== */

/* --------------------------------------------------------------- 1 Tokens */
:root {
  color-scheme: light;

  /* Farbe — Tiefblau und Cyan sind direkt aus der Logodatei abgegriffen */
  --ink:        #0B0C0E;
  --ink-2:      #2C3138;
  --muted:      #5C636D;
  --faint:      #666D76;   /* dunkler als zuvor: 4,31:1 reichte fuer AA nicht */

  --paper:      #FFFFFF;
  --paper-2:    #F5F6F8;
  --paper-3:    #ECEEF1;
  --night:      #0B0C0E;
  --night-2:    #14171B;

  --line:       #E3E6EA;
  --line-2:     #CDD3DA;
  --line-night: rgba(255,255,255,.16);
  /* Trennlinien duerfen zart sein, die Umrandung von Bedienelementen nicht:
     WCAG 1.4.11 verlangt dafuer 3:1. .16 ergab nur 1,63:1. */
  --rand-night: rgba(255,255,255,.36);

  --blue:       #001CFF;
  --blue-deep:  #0016CC;
  --cyan:       #00BFFF;
  --blue-wash:  #F0F2FF;

  /* Schrift — bewusst ein System-Stack: keine Fremdanfrage, keine Ladezeit,
     kein Layoutsprung. Alle enthaltenen Schnitte sind neutrale Grotesken und
     stehen der Wortmarke nahe. Austausch siehe README. */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI",
               Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono",
               "Roboto Mono", Menlo, Consolas, monospace;

  /* Groessenskala (fluid) */
  --t-display: clamp(2.5rem, 1.15rem + 5.1vw, 5.25rem);
  --t-h1:      clamp(2.1rem, 1.35rem + 2.9vw, 3.6rem);
  --t-h2:      clamp(1.8rem, 1.25rem + 2.2vw, 2.95rem);
  --t-h3:      clamp(1.2rem, 1.06rem + .55vw, 1.5rem);
  --t-lead:    clamp(1.075rem, 1.01rem + .38vw, 1.3rem);
  --t-body:    1.0625rem;
  --t-small:   .9375rem;
  --t-mono:    .75rem;

  /* Abstandsskala */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --gutter:   clamp(20px, 4.6vw, 56px);
  --measure:  68ch;
  --radius:   2px;   /* zurueckhaltend: Bauzeichnung, nicht Karte */
  --kopfhoehe: 69px;   /* Hoehe der klebenden Kopfzeile inkl. Trennlinie */
  --dur:      .5s;
  --ease:     cubic-bezier(.2,.7,.3,1);
}

/* --------------------------------------------------------------------------
   Nachtmodus. Nur die Farbwerte werden getauscht — Abstaende, Schrift und
   Raster bleiben identisch. Drei Zustaende: ohne Angabe folgt die Seite dem
   Betriebssystem, [data-theme] gewinnt in beide Richtungen.
   -------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #F2F4F7; --ink-2: #C9CFD7; --muted: #99A1AB; --faint: #8A929C;
    --paper: #0E1013; --paper-2: #15181D; --paper-3: #1B1F25;
    --night: #08090B; --night-2: #101318;
    --line: #262B32; --line-2: #39404A;
    --blue: #6E8BFF; --blue-deep: #A8BCFF; --cyan: #00BFFF; --blue-wash: #141B33;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #F2F4F7; --ink-2: #C9CFD7; --muted: #99A1AB; --faint: #8A929C;
  --paper: #0E1013; --paper-2: #15181D; --paper-3: #1B1F25;
  --night: #08090B; --night-2: #101318;
  --line: #262B32; --line-2: #39404A;
  --blue: #6E8BFF; --blue-deep: #A8BCFF; --cyan: #00BFFF; --blue-wash: #141B33;
}

/* ----------------------------------------------------------------- 2 Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.08; letter-spacing: -.028em; }
h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -.018em; }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg { max-width: 100%; height: auto; display: block; }
strong { font-weight: 650; }

a { color: inherit; }
a:where(:not([class])) {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: color .2s;
}
a:where(:not([class])):hover { color: var(--blue-deep); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 1px;
}
.night :focus-visible { outline-color: var(--cyan); }

::selection { background: var(--blue); color: var(--paper); }

/* --------------------------------------------------------------- 3 Layout */
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }

.section { padding-block: clamp(64px, 8.4vw, 136px); }
.section + .section { border-top: 1px solid var(--line); }
.section--tint { background: var(--paper-2); }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); max-width: 58ch; }
.prose { max-width: var(--measure); color: var(--ink-2); }
.prose + .prose { margin-top: var(--s4); }

.skip {
  position: absolute; left: var(--s4); top: -100px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--radius);
  font-size: var(--t-small); text-decoration: none; transition: top .2s;
}
.skip:focus { top: var(--s4); }

/* Abschnittskopf: Kennziffer, Haarlinie, Titel — wie ein Planschriftfeld */
.kicker {
  display: flex; align-items: center; gap: var(--s3);
  font-family: var(--font-mono); font-size: var(--t-mono);
  letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
  margin-bottom: var(--s5);
}
.kicker::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.kicker b { color: var(--blue); font-weight: 500; }

.sec-head { margin-bottom: clamp(36px, 4.6vw, 68px); }
.sec-head h2 { font-size: var(--t-h2); max-width: 20ch; }
.sec-head .lead { margin-top: var(--s5); }

/* ---------------------------------------------------------------- 4 Button */
.btn {
  --bg: var(--ink); --fg: var(--paper); --bd: var(--ink);
  display: inline-flex; align-items: center; gap: .6em;
  padding: 14px 22px; min-height: 48px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  border-radius: var(--radius);
  font: 600 var(--t-small)/1.2 var(--font-sans); letter-spacing: -.005em;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { --bg: var(--blue); --bd: var(--blue); }
.btn:active { transform: translateY(1px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-2); }
.btn--ghost:hover { --bg: transparent; --fg: var(--blue); --bd: var(--blue); }
.btn--light { --bg: #fff; --fg: var(--night); --bd: #fff; }
.btn--light:hover { --bg: var(--cyan); --fg: var(--night); --bd: var(--cyan); }
.btn--onnight { --bg: transparent; --fg: #fff; --bd: var(--rand-night); }
.btn--onnight:hover { --bg: transparent; --fg: var(--cyan); --bd: var(--cyan); }
.btn .arw { transition: transform .2s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* Textlink mit Pfeil */
.tlink {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: var(--t-small); color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--blue) 35%, transparent);
  padding-bottom: 2px; transition: border-color .2s, color .2s;
}
.tlink:hover { color: var(--blue-deep); border-color: var(--blue-deep); }
.tlink .arw { transition: transform .2s var(--ease); }
.tlink:hover .arw { transform: translateX(3px); }

/* ---------------------------------------------------------------- 5 Header */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.site-head.is-stuck { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: var(--s5); min-height: 68px; }

.brand { display: inline-flex; align-items: center; margin-right: auto; padding: 6px 0; }
.brand img { width: auto; height: 21px; }

/* Navigation und Handlungsaufforderung stehen nebeneinander in einer Reihe.
   Ohne diese Zeile wäre .nav-wrap ein Block und der Button rutschte unter
   die Menüpunkte — genau auf deren Unterstriche. */
.nav-wrap { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 28px); }
.nav { display: flex; align-items: center; gap: clamp(12px, 1.7vw, 26px); }
.nav a {
  font-size: var(--t-small); font-weight: 500; color: var(--ink-2);
  text-decoration: none; padding: 6px 0; position: relative;
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.head-cta { flex: none; }

.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 44px; height: 44px; margin-left: auto;
    background: none; border: 1px solid var(--line-2); border-radius: var(--radius);
    cursor: pointer; color: var(--ink);
  }
  .nav-toggle span { display: block; width: 17px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s var(--ease), background .1s; }
  .nav-toggle span::before, .nav-toggle span::after {
    content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: currentColor;
    transition: transform .25s var(--ease), top .2s;
  }
  .nav-toggle span::before { top: -5.5px; }
  .nav-toggle span::after  { top: 5.5px; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

  .brand { margin-right: 0; }
  .nav-wrap {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: var(--s4) var(--gutter) var(--s6);
    display: none;
  }
  .nav-wrap[data-open="true"] { display: block; }   /* im Panel wieder gestapelt */
  .nav { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .nav a::after { display: none; }
  .head-cta { margin: var(--s5) 0 0; width: 100%; justify-content: center; }
}

/* ------------------------------------------------------------------ 6 Hero */
.hero { padding-block: clamp(44px, 5.5vw, 84px) clamp(56px, 6.5vw, 104px); }
.hero-meta {
  font-family: var(--font-mono); font-size: var(--t-mono);
  letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4);
  padding-bottom: var(--s5); margin-bottom: clamp(28px, 3.4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: var(--t-display); max-width: 15ch; letter-spacing: -.038em; }
.hero h1 .q { color: var(--muted); }
.hero-grid { display: grid; gap: clamp(32px, 4vw, 56px); }
.hero-lead { max-width: 46ch; }
.hero .btn-row { margin-top: var(--s6); }

@media (min-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0,1.02fr) minmax(0,.98fr); align-items: end; }
  .hero-copy { padding-bottom: var(--s2); }
}

.keyvisual { margin: 0; }
.keyvisual figcaption {
  margin-top: var(--s4); padding-top: var(--s3);
  border-top: 1px solid var(--line);
  font-size: var(--t-small); color: var(--muted); max-width: 52ch;
}
.kv__cap-js { display: none; }
.js .kv__cap-js { display: inline; }

/* --- Schlüsselgrafik: ziehbarer Vergleich Punktwolke / Modell ------------
   Zwei deckungsgleiche Ebenen. Die obere (Erfassung) wird bei --split
   beschnitten, darunter kommt das Modell zum Vorschein. Ohne JavaScript
   bleibt der Stand bei 52 % stehen und die Grafik erklärt dasselbe. */
.kv {
  --split: 52%;
  position: relative;
  aspect-ratio: 796 / 512;         /* kein Layoutsprung beim Laden */
  background: var(--paper);
  touch-action: pan-y;             /* senkrecht scrollen bleibt möglich */
}
.kv__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.kv__cloud { clip-path: inset(0 calc(100% - var(--split)) 0 0); }

.kv-bg   { fill: var(--paper); }
.kv-hud  { fill: none; stroke: var(--line-2); stroke-width: 1; }
.kv-fill { fill: var(--paper-2); }
.kv-fill2 { fill: var(--paper-3); }
.kv-hatch { fill: none; stroke: var(--line-2); stroke-width: .7; }
.kv-dim      { fill: none; stroke: var(--faint); stroke-width: 1; }
.kv-dim-voll { fill: var(--faint); stroke: none; }
.kv-scanner, .kv-drohne { fill: none; stroke: var(--ink); stroke-width: 1.5;
  stroke-linejoin: round; stroke-linecap: round; }
.kv-drohne ellipse { fill: none; }
.kv-target { fill: var(--paper); stroke: var(--ink); stroke-width: 1.3; }
.kv-target path { fill: var(--ink); stroke: none; }
.kv-line { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linejoin: round; }
.kv-thin { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .35; }
.kv-node { fill: var(--paper); stroke: var(--blue); stroke-width: 1.3; }
.kv-dots { stroke-width: 2.6; stroke-linecap: round; }
@media (max-width: 600px) { .kv-dots { stroke-width: 4; } }
@media (max-width: 380px) { .kv-dots { stroke-width: 5; } }
.kv-capture   { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.kv-flight    { stroke: var(--line-2); stroke-dasharray: 5 6; }
.kv-ray       { stroke: var(--faint); stroke-width: 1; opacity: .5; }
.kv-station   { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; }

/* Beschriftungen liegen als HTML darüber, damit sie auf dem Telefon
   lesbar bleiben und nicht mit der Grafik mitschrumpfen. */
.kv__tag {
  position: absolute; top: 4%;
  font-family: var(--font-mono); font-size: clamp(10px, .68vw + 7px, 12px);
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--paper); padding: 3px 7px;
  border: 1px solid var(--line); border-radius: var(--radius);
  white-space: nowrap; transition: opacity .2s;
}
.kv__tag--cloud { left: 3%;  color: var(--blue-deep); border-color: color-mix(in srgb, var(--blue) 22%, var(--line)); }
.kv__tag--model { right: 3%; color: var(--ink); }
/* Unter 420 px stossen die beiden Marken aneinander — dann entfaellt die
   Formatangabe, die Bezeichnung allein genuegt. */
@media (max-width: 420px) {
  .kv__fmt { display: none; }
  .kv__tag { padding: 3px 5px; letter-spacing: .06em; }
}

/* Trennkante mit Griff */
.kv__wipe {
  position: absolute; top: 0; bottom: 0; left: var(--split);
  width: 2px; margin-left: -1px; pointer-events: none;
  background: linear-gradient(to top, var(--blue), var(--cyan));
}
.kv__grip {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--blue);
  box-shadow: 0 1px 3px rgba(11,12,14,.14);
  transition: scale .18s var(--ease), background .18s;
}
.kv__grip-arrows {
  font: 600 17px/1 var(--font-sans); color: var(--blue);
  letter-spacing: .12em; translate: 0 -1px;
}
.kv__hint {
  position: absolute; left: var(--split); bottom: 2%; translate: -50% 0;
  display: none;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint);
  background: var(--paper); padding: 2px 8px; white-space: nowrap;
  transition: opacity .3s;
}
.js .kv__hint { display: block; }

/* Der Regler liegt unsichtbar über der ganzen Fläche: Klicken, Ziehen und
   Pfeiltasten funktionieren damit nativ, ohne eigene Zeigerlogik. */
.kv__range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; padding: 0; opacity: 0; cursor: ew-resize;
  appearance: none; background: none; display: none;
  touch-action: pan-y;             /* senkrechtes Wischen scrollt weiter */
}
.js .kv__range { display: block; }
.kv__range::-webkit-slider-thumb { appearance: none; width: 2px; height: 100%; }
.kv__range::-moz-range-thumb { width: 2px; height: 100%; border: 0; }
.kv__range:hover ~ .kv__wipe .kv__grip { scale: 1.08; }
.kv__range:active ~ .kv__wipe .kv__grip { scale: .96; background: var(--blue-wash); }
.kv__range:focus-visible ~ .kv__wipe .kv__grip { outline: 2px solid var(--blue); outline-offset: 3px; }
.kv.is-touched .kv__hint { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .kv__grip, .kv__hint, .kv__tag { transition: none; }
}

/* -------------------------------------------------------- 7 Zeilenlisten */
/* Grundmuster der Seite: nummerierte Zeilen, durch Haarlinien getrennt.
   Ersetzt bewusst die uebliche Drei-Karten-Reihe. */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; gap: var(--s3) clamp(24px, 4vw, 64px);
  padding-block: clamp(26px, 3.2vw, 42px);
  border-bottom: 1px solid var(--line);
}
.row-num {
  font-family: var(--font-mono); font-size: var(--t-mono); letter-spacing: .12em;
  color: var(--faint); padding-top: .35em; white-space: nowrap;
}
.row h3 { margin-bottom: var(--s3); }
.row p { color: var(--ink-2); max-width: 62ch; }
.row-side { color: var(--muted); font-size: var(--t-small); }
/* Erst ab 900 px dreispaltig. Bei 780–899 px blieben fuer den Fliesstext nur
   rund 41 Zeichen pro Zeile — einspaltig sind es dort 77. */
@media (min-width: 900px) {
  /* Zwei Spalten: Ueberschrift links, Text rechts. Die frueher vorhandene
     Nummernspalte ist entfallen — blieb sie stehen, wurde die Ueberschrift
     in 9 Zeichen Breite gequetscht. */
  .row { grid-template-columns: minmax(0, 22ch) minmax(0, 1fr); align-items: start; }
}

/* Prozess: gleiche Zeilenlogik, plus Ergebniszeile */
.step-out {
  margin-top: var(--s4); padding-top: var(--s3);
  border-top: 1px dashed var(--line-2);
  font-size: var(--t-small); color: var(--muted);
}
.step-out b {
  font-family: var(--font-mono); font-size: var(--t-mono); letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink); display: block; margin-bottom: 4px; font-weight: 500;
}

/* Leistungsblock */
.svc { border-bottom: 1px solid var(--line); padding-block: clamp(30px, 3.6vw, 52px); }
.svc:first-child { border-top: 1px solid var(--line); }
.svc-grid { display: grid; gap: var(--s5) clamp(24px, 4vw, 64px); }
.svc-key {
  font-family: var(--font-mono); font-size: 2.25rem; line-height: 1; font-weight: 400;
  color: var(--line-2); letter-spacing: -.02em;
}
.svc h3 { margin-bottom: var(--s3); }
.svc-prob { color: var(--ink-2); max-width: 54ch; }
.ticks { list-style: none; display: grid; gap: 10px; max-width: 68ch; }
.ticks li { position: relative; padding-left: 22px; font-size: var(--t-small); color: var(--ink-2); }
/* Fett gesetzter Auftakt in Aufzaehlungen: „Die Kette liegt intern." */
.ticks li b { color: var(--ink); font-weight: 650; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 9px; height: 1px; background: var(--blue);
}
.svc-for {
  font-family: var(--font-mono); font-size: var(--t-mono); letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint); margin-top: var(--s5);
}
.svc-for b { color: var(--ink-2); font-weight: 500; }
@media (min-width: 900px) {
  .svc-grid { grid-template-columns: 3.5rem minmax(0, 30ch) minmax(0, 1fr); align-items: start; }
}

/* Pakete: Verkettung sichtbar machen */
.packs { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pack { background: var(--paper); padding: clamp(24px, 3vw, 36px); }
.chain {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: var(--t-mono); letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: var(--s4);
}
.chain i { font-style: normal; color: var(--ink); border: 1px solid var(--line-2); padding: 4px 8px; border-radius: var(--radius); }
.chain s { text-decoration: none; color: var(--blue); }
.pack h3 { font-size: 1.15rem; margin-bottom: var(--s3); }
.pack p { color: var(--ink-2); font-size: var(--t-small); }
@media (min-width: 900px) { .packs { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------- 8 Tabelle */
/* Auf schmalen Schirmen muss die Tabelle seitlich geschoben werden. Die
   beiden Verlaeufe an den Raendern zeigen an, dass dort noch etwas kommt —
   sie verschwinden von selbst, sobald das Ende erreicht ist. Reines CSS
   ueber background-attachment: local bzw. scroll. */
.table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(to right,  var(--paper), rgba(255,255,255,0)) left   center / 28px 100% no-repeat local,
    linear-gradient(to left,   var(--paper), rgba(255,255,255,0)) right  center / 28px 100% no-repeat local,
    linear-gradient(to right,  rgba(11,12,14,.10), rgba(11,12,14,0)) left  center / 12px 100% no-repeat scroll,
    linear-gradient(to left,   rgba(11,12,14,.10), rgba(11,12,14,0)) right center / 12px 100% no-repeat scroll;
}
table { width: 100%; border-collapse: collapse; min-width: 620px; text-align: left; }
caption { text-align: left; font-size: var(--t-small); color: var(--muted); padding-bottom: var(--s4); }
th, td { padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: var(--t-small); }
thead th {
  font-family: var(--font-mono); font-size: var(--t-mono); letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint); font-weight: 500;
  border-bottom-color: var(--line-2); padding-bottom: 12px;
}
tbody th { font-weight: 650; color: var(--ink); padding-right: 28px; }
td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
tbody tr:hover td, tbody tr:hover th { background: var(--paper-2); }
.note { font-size: var(--t-small); color: var(--muted); margin-top: var(--s5); max-width: 74ch; }

/* Auf dem Telefon reicht die Breite fuer drei Spalten nicht: die Preisspalte
   lag komplett ausserhalb des Bildschirms. Jede Zeile wird deshalb zu einem
   eigenen Block — Bezeichnung oben, darunter Kalkulationsgroesse und Preis
   nebeneinander. Gescrollt werden muss dann nicht mehr. */
@media (max-width: 720px) {
  .table-scroll { overflow-x: visible; background: none; }
  table { min-width: 0; display: block; }
  thead { display: none; }
  tbody { display: block; }
  tbody tr {
    display: grid; grid-template-columns: auto 1fr; gap: 4px var(--s4);
    padding-block: 16px; border-bottom: 1px solid var(--line);
  }
  tbody tr:hover td, tbody tr:hover th { background: none; }
  tbody th {
    display: block; grid-column: 1 / -1;
    padding: 0 0 2px; border: 0; font-size: var(--t-body);
  }
  tbody td { display: block; padding: 0; border: 0; color: var(--muted); }
  /* Preis darf umbrechen — sonst quetscht er die Kalkulationsgroesse
     auf drei Zeilen zusammen. */
  tbody td.num {
    color: var(--ink); font-weight: 600;
    justify-self: end; text-align: right; white-space: normal;
  }
  caption { display: block; padding-bottom: var(--s3); }
}

/* ------------------------------------------------------------------ 9 Team */
.people { display: grid; gap: clamp(48px, 6vw, 96px); }
.person { display: grid; gap: clamp(24px, 3.4vw, 48px); align-items: start; }
.person figure { margin: 0; }
.person img { width: 100%; background: var(--paper-3); }
/* Gestapelt (unter 900 px) wird das Portraet begrenzt, sonst waechst es auf
   dem Tablet auf ueber 800 px Breite an. */
@media (max-width: 899px) {
  .person figure { max-width: 380px; }
}
.person figcaption {
  margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: var(--t-mono); letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint);
}
/* Der Bildnachweis steht unter der Rollenangabe, eine Stufe leiser. */
.bildnachweis {
  display: block; margin-top: 5px;
  letter-spacing: .08em; text-transform: none; opacity: .82;
}
.person h3 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); }
.person-role { color: var(--blue); font-weight: 600; font-size: var(--t-small); margin-top: var(--s2); }
.person-bio { margin-top: var(--s5); color: var(--ink-2); max-width: 56ch; }
.deflist { margin-top: var(--s6); border-top: 1px solid var(--line); }
.deflist > div { display: grid; gap: 4px var(--s5); padding-block: var(--s4); border-bottom: 1px solid var(--line); }
.deflist dt {
  font-family: var(--font-mono); font-size: var(--t-mono); letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint);
}
.deflist dd { margin: 0; font-size: var(--t-small); color: var(--ink-2); }
.deflist dd ul { list-style: none; display: grid; gap: 6px; }
/* Ankerwort je Zeile: das Auge findet Station und Rolle, bevor es liest. */
.deflist dd b { color: var(--ink); font-weight: 600; }
@media (min-width: 620px) { .deflist > div { grid-template-columns: 12ch minmax(0,1fr); } }
@media (min-width: 900px) {
  .person { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); }
  /* Bei der gespiegelten Reihe muss auch die Spaltenvorlage gespiegelt werden.
     order allein vertauscht nur die Elemente, nicht die Breiten — das Porträt
     landete sonst in der breiten Spalte und der Text in der schmalen. */
  .person--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
  .person--flip figure { order: 2; }
}

/* Hinweiskasten — sparsam eingesetzt, nur fuer Status und Vorbehalte */
.callout {
  border-left: 2px solid var(--blue);
  background: var(--blue-wash);
  padding: clamp(20px, 2.6vw, 30px);
  margin-top: var(--s7);
}
.callout h3 { font-size: 1.0625rem; margin-bottom: var(--s3); }
.callout p { color: var(--ink-2); font-size: var(--t-small); max-width: 68ch; }
.callout p + p { margin-top: var(--s3); }
.ph {
  font-family: var(--font-mono); font-size: .8em; color: var(--blue-deep);
  background: var(--paper); border: 1px solid color-mix(in srgb, var(--blue) 25%, transparent);
  padding: 1px 6px; border-radius: var(--radius);
  /* Platzhalter koennen lang sein: umbrechen statt das Layout sprengen. */
  white-space: normal; overflow-wrap: anywhere;
}
.night .ph { background: transparent; color: var(--cyan); border-color: var(--line-night); }

/* --------------------------------------------------------- 10 Dunkle Zone */
.night { background: var(--night); color: #fff; }
.night h2, .night h3 { color: #fff; }
.night .lead, .night p { color: rgba(255,255,255,.74); }
.night .kicker { color: rgba(255,255,255,.55); }
.night .kicker::after { background: var(--line-night); }
.night .kicker b { color: var(--cyan); }
.night a:where(:not([class])) { color: var(--cyan); }
.night .rows, .night .row { border-color: var(--line-night); }
.night .row-num { color: rgba(255,255,255,.5); }

.contact-grid { display: grid; gap: clamp(40px, 5vw, 80px); align-items: start; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }

.steps-mini { list-style: none; counter-reset: s; margin-top: var(--s7); border-top: 1px solid var(--line-night); }
.steps-mini li {
  counter-increment: s; position: relative;
  padding: var(--s4) 0 var(--s4) 40px; border-bottom: 1px solid var(--line-night);
  font-size: var(--t-small); color: rgba(255,255,255,.74);
}
.steps-mini li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: var(--s4);
  font-family: var(--font-mono); font-size: var(--t-mono); letter-spacing: .1em; color: var(--cyan);
}
.contact-details { margin-top: var(--s7); display: grid; gap: var(--s4); font-size: var(--t-small); }
.contact-details div { display: grid; gap: 2px; }
.contact-details dt {
  font-family: var(--font-mono); font-size: var(--t-mono); letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
}
.contact-details dd { margin: 0; color: #fff; }
.contact-details a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--line-night); }
.contact-details a:hover { color: var(--cyan); border-color: var(--cyan); }

/* ------------------------------------------------------------- 11 Formular */
.form { display: grid; gap: var(--s5); }
.field { display: grid; gap: var(--s2); }
.field > label, .fieldset > legend {
  font-family: var(--font-mono); font-size: var(--t-mono); letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.6); padding: 0;
}
.field .hint { font-size: var(--t-small); color: rgba(255,255,255,.5); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: var(--t-body);
  color: #fff; background: var(--night-2);
  border: 1px solid var(--rand-night); border-radius: var(--radius);
  padding: 13px 14px; min-height: 50px;
  transition: border-color .2s, background .2s;
  appearance: none;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.5); }
input:hover, select:hover, textarea:hover { border-color: rgba(255,255,255,.3); }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); background: #0E1216; }

.grid-2 { display: grid; gap: var(--s5); }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.fieldset > legend { margin-bottom: var(--s2); }
.checks { display: grid; gap: 2px; }
@media (min-width: 560px) { .checks { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: var(--t-small); color: rgba(255,255,255,.8); cursor: pointer; }
/* Bequeme Trefferflaeche fuer den Finger: die Zeile war nur 25 px hoch. */
.checks .check { min-height: 44px; align-items: center; padding-block: 4px; }
.check input { flex: none; width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--cyan); cursor: pointer; }
.check--consent { align-items: flex-start; padding-top: var(--s2); }
.check--consent a { color: var(--cyan); }

.form-foot { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s5); align-items: center; }
.form-note { font-size: var(--t-small); color: rgba(255,255,255,.5); }
.form-status { font-size: var(--t-small); border-left: 2px solid var(--cyan); padding: 10px 14px; background: var(--night-2); color: #fff; }
.form-status:empty { display: none; }

/* --------------------------------------------------------------- 12 Footer */
.site-foot { background: var(--night); color: #fff; border-top: 1px solid var(--line-night); }
.site-foot .wrap { padding-block: clamp(48px, 5.5vw, 80px) var(--s7); }
.foot-top { display: grid; gap: var(--s7); padding-bottom: var(--s7); border-bottom: 1px solid var(--line-night); }
@media (min-width: 820px) { .foot-top { grid-template-columns: minmax(0,1.4fr) repeat(3, minmax(0,1fr)); gap: var(--s6); } }
.foot-brand img { height: 22px; width: auto; }
.foot-brand p { margin-top: var(--s4); font-size: var(--t-small); color: rgba(255,255,255,.6); max-width: 34ch; }
.foot-col h2 {
  font-family: var(--font-mono); font-size: var(--t-mono); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5);
  margin-bottom: var(--s4); letter-spacing: .14em;
}
.foot-col ul { list-style: none; display: grid; gap: 10px; }
@media (max-width: 899px) { .foot-col ul { gap: 0; } .foot-col a { display: block; padding-block: 10px; } }
.foot-col a { font-size: var(--t-small); color: rgba(255,255,255,.8); text-decoration: none; transition: color .2s; }
.foot-col a:hover { color: var(--cyan); }
.foot-bot {
  padding-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5);
  justify-content: space-between; font-size: var(--t-small); color: rgba(255,255,255,.5);
}

/* ------------------------------------------------------------ 13 Bewegung */
/* Sparsam: ein Reveal beim Eintritt, sonst nur Zustandswechsel. */
.js .reveal { opacity: 0; transform: translateY(10px); }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
}
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ------------------------------------------------------------- 14 Utility */
.mono { font-family: var(--font-mono); }
.u-mt7 { margin-top: var(--s7); }
.u-mt6 { margin-top: var(--s6); }
.u-mt5 { margin-top: var(--s5); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.page-head { padding-block: clamp(44px, 5.5vw, 88px) clamp(36px, 4vw, 60px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: var(--t-h1); max-width: 18ch; }
.page-head .lead { margin-top: var(--s5); }
.crumbs {
  font-family: var(--font-mono); font-size: var(--t-mono); letter-spacing: .16em;
  text-transform: uppercase; color: var(--faint); margin-bottom: var(--s5);
}
.crumbs a { color: var(--faint); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.legal h2 { font-size: var(--t-h3); margin: var(--s8) 0 var(--s4); }
.legal h3 { font-size: 1.0625rem; margin: var(--s6) 0 var(--s3); }
.legal p, .legal li { color: var(--ink-2); font-size: var(--t-small); max-width: var(--measure); }
.legal ul { list-style: disc; padding-left: 1.25em; display: grid; gap: 8px; margin-top: var(--s3); }
.legal p + p { margin-top: var(--s4); }
.legal address { font-style: normal; margin-top: var(--s3); font-size: var(--t-small); color: var(--ink-2); }

/* ------------------------------------------------- 15 Feinschliff mobil */
@media (max-width: 480px) {
  /* Gestapelte Schaltflaechen wirken ruhiger, wenn sie eine Kante teilen. */
  .btn-row { display: grid; grid-template-columns: 1fr; }
  .btn-row .btn { justify-content: center; }
  .hero-meta { gap: 6px var(--s3); line-height: 1.5; }
}

/* ------------------------------- 16 Weiter zum nächsten Abschnitt ------- */
/* Bewusst ohne Skript: Es ist ein gewöhnlicher Anker. Das weiche Scrollen
   übernimmt html{scroll-behavior:smooth} aus Abschnitt 2, und derselbe
   Block schaltet es bei prefers-reduced-motion wieder ab. Tastatur,
   Fokusring und Kontextmenü funktionieren dadurch von selbst.
   Gestalterisch sitzt die Schaltfläche mittig auf der Trennlinie zwischen
   zwei Abschnitten — dieselbe Logik wie die Standpunktmarken in der
   Schlüsselgrafik: ein Knoten auf einer Linie. */
.hero, .section, .page-head { position: relative; }

/* Sprungziele unter der klebenden Kopfzeile freihalten */
section[id], .page-head { scroll-margin-top: 84px; }
/* Auf der Leistungsseite steht ab 900 px zusaetzlich die Sprungleiste im Weg. */
@media (min-width: 900px) {
  .seite-leistungen section[id] { scroll-margin-top: 136px; }
}

.next-section {
  position: absolute; left: 50%; bottom: 0; z-index: 2;
  translate: -50% 50%;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line-2); border-radius: 50%;
  background: var(--paper); color: var(--muted);
  text-decoration: none;
  transition: color .2s, border-color .2s, background .2s;
}
/* Tippfläche auf 50 px vergrößern, ohne den Kreis wachsen zu lassen */
.next-section::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; }

.next-section svg {
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  transition: translate .2s var(--ease);
}
.next-section:hover { color: var(--blue); border-color: var(--blue); }
.next-section:hover svg { translate: 0 2px; }
.next-section:active { background: var(--blue-wash); }

@media (prefers-reduced-motion: reduce) {
  .next-section, .next-section svg { transition: none; }
}


/* ----------------------------- 17 Leistungsseite: Untermenü und Ausklapp -- */
/* Die Detailseite war eine lange Textstrecke. Sie ist jetzt dreigeteilt:
   ein Sprungmenü oben, die zwei Kernlisten immer sichtbar, der Rest
   aufklappbar über natives <details> — ohne Skript, ohne Bibliothek. */

/* Sprungmenue der Leistungsseite.
   Es liegt bewusst NICHT in .page-head: ein klebendes Element haftet nur,
   solange sein Elternelement im Bild ist — im Kopfbereich waere es nach
   wenigen hundert Pixeln wieder verschwunden. Als direktes Kind von <main>
   begleitet es die ganze Seite. */
.subnav-halter {
  background: var(--paper);
  border-block: 1px solid var(--line);
}
.subnav {
  display: grid; gap: 1px; background: var(--line);
}
.subnav a {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper); padding: 14px 16px; min-height: 52px;
  font-size: var(--t-small); font-weight: 500; color: var(--ink-2);
  text-decoration: none;
  transition: background .18s, color .18s;
}
.subnav a b {
  flex: none; display: grid; place-items: center;
  width: 24px; height: 24px; border: 1px solid var(--line-2); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: .8125rem; font-weight: 400; color: var(--faint);
  transition: border-color .18s, color .18s, background .18s;
}
.subnav a:hover { background: var(--paper-2); color: var(--ink); }
.subnav a:hover b { border-color: var(--blue); color: var(--blue); }

/* Gerade gelesener Bereich — sonst waere ein mitlaufendes Menue nur Beiwerk. */
.subnav a[aria-current="true"] { color: var(--ink); background: var(--paper-2); }
.subnav a[aria-current="true"] b {
  border-color: var(--blue); background: var(--blue); color: var(--paper);
}

@media (min-width: 620px) and (max-width: 899px) {
  .subnav { grid-template-columns: 1fr 1fr; }
}

/* Einreihig und mitlaufend erst ab 900 px. Darunter waere die Leiste
   gestapelt ueber 260 px hoch und wuerde den halben Schirm verdecken. */
@media (min-width: 900px) {
  .subnav { grid-template-columns: repeat(4, 1fr); }
  .subnav a { white-space: nowrap; }   /* Leiste bleibt einzeilig, 54 px hoch */
  .subnav-halter {
    position: sticky; top: calc(var(--kopfhoehe) - 1px); z-index: 90;
  }
}

/* Zwei Kernlisten nebeneinander: was wir machen, was Sie bekommen */
.svc-cols { display: grid; gap: clamp(28px, 3.4vw, 56px); }
@media (min-width: 720px) { .svc-cols { grid-template-columns: 1fr 1fr; } }
.svc-col h3 {
  font-family: var(--font-mono); font-size: var(--t-mono); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
  padding-bottom: var(--s3); margin-bottom: var(--s4);
  border-bottom: 1px solid var(--line);
}
.svc-meta {
  margin-top: clamp(28px, 3.2vw, 44px);
  font-size: var(--t-small); color: var(--muted); max-width: 74ch;
}
.svc-meta b { color: var(--ink-2); font-weight: 600; }

/* Ausklappbereich */
.drop { border-top: 1px solid var(--line); margin-top: var(--s6); }
.drop > summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: 18px 0; min-height: 48px; cursor: pointer;
  font-family: var(--font-mono); font-size: var(--t-mono); letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink);
  list-style: none;
  transition: color .18s;
}
.drop > summary::-webkit-details-marker { display: none; }
.drop > summary::marker { content: ""; }
.drop > summary:hover { color: var(--blue); }
.drop__pfeil {
  flex: none; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  transition: rotate .22s var(--ease);
}
.drop[open] .drop__pfeil { rotate: 180deg; }
.drop__inhalt { padding-bottom: var(--s6); }
.drop__inhalt p { color: var(--ink-2); max-width: 68ch; }
.drop__inhalt p + p { margin-top: var(--s4); }
@media (prefers-reduced-motion: reduce) {
  .drop > summary, .drop__pfeil { transition: none; }
}

/* ================================ 18 Vollbild-Einstieg mit Logo ========== */
/* Das Logo steht zunaechst bildschirmfuellend und wandert beim Scrollen in
   die Kopfzeile. Die Buehne klebt am oberen Rand, damit das Logo waehrend
   des Uebergangs ruhig steht; die Bewegung selbst setzt site.js. */
/* Der Einstieg ist absichtlich hoeher als ein Bildschirm: nur so hat die
   klebende Buehne Spielraum, waehrend dessen das Logo in die Ecke wandert.
   Waere .intro genau 100svh hoch, klebte gar nichts. */
.intro {
  height: 140svh; min-height: 620px;
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 700px) { .intro { height: 170svh; } }
.intro__buehne {
  position: sticky; top: 0;
  height: 100svh; min-height: 460px;
  display: grid; place-content: center; justify-items: center;
  gap: clamp(20px, 3vw, 34px);
  padding-inline: var(--gutter);
}
/* Zwei getrennte Ebenen: die Huelle traegt den Auftritt beim Laden, das Bild
   den scrollgesteuerten Weg in die Ecke. Lagen beide auf demselben Element,
   ueberschrieb die Keyframe-Animation Transform und Deckkraft. */
.intro__huelle { display: block; }
/* <picture> ist von Haus aus inline und wuerde die Messung der
   Logo-Animation um die Zeilenhoehe verfaelschen. */
.intro__huelle picture, .brand picture { display: block; }
.intro__logo {
  display: block; width: min(78vw, 860px); height: auto;
  transform-origin: left top;
  will-change: transform;
}
.intro__linie {
  display: block; opacity: var(--intro-neben, 1); height: 2px; width: min(52vw, 400px);
  background: linear-gradient(to right, var(--blue), var(--cyan));
  transform-origin: center;
}
.intro__claim {
  opacity: var(--intro-neben, 1);
  font-family: var(--font-mono); font-size: var(--t-mono);
  letter-spacing: .18em; text-transform: uppercase; color: var(--faint);
  text-align: center;
}
.intro__weiter {
  position: absolute; left: 50%; bottom: clamp(24px, 4vh, 48px); translate: -50% 0;
  opacity: var(--intro-neben, 1);
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line-2); border-radius: 50%;
  color: var(--muted); text-decoration: none; background: var(--paper);
  transition: color .2s, border-color .2s;
}
.intro__weiter svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.intro__weiter:hover { color: var(--blue); border-color: var(--blue); }

/* Zurueckhaltender Auftritt beim Laden */
@media (prefers-reduced-motion: no-preference) {
  .intro__huelle { animation: introLogo .9s var(--ease) both; }
  .intro__linie  { animation: introLinie .7s var(--ease) .5s both; }
  /* backwards statt both: nach dem Auftritt faellt die Deckkraft zurueck an die
     Kaskade, damit --intro-neben beim Scrollen ueberhaupt greifen kann.
     Mit both haetten Claim und Pfeil dauerhaft auf opacity 1 festgehangen. */
  .intro__claim  { animation: introText .6s var(--ease) .85s backwards; }
  .intro__weiter { animation: introText .6s var(--ease) 1.1s backwards; }
  @keyframes introLogo  { from { opacity: 0; transform: scale(.965); } to { opacity: 1; transform: none; } }
  @keyframes introLinie { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes introText  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* Das Logo in der Kopfzeile blendet sich ein, sobald das grosse ankommt.
   Ohne JavaScript bleibt es dauerhaft sichtbar. */
.js .site-head .brand[data-uebergabe] { opacity: 0; }

/* =============================================== 19 Piktogramme ========== */
.ico {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico--gross { width: 34px; height: 34px; stroke-width: 1.4; }
.svc-key { color: var(--blue); font-size: 0; line-height: 0; }
.svc--ruht .svc-key { color: var(--faint); }
.kicker b .ico, .subnav b .ico { width: 17px; height: 17px; }
.kicker b { display: inline-flex; align-items: center; }
.subnav a b { color: var(--blue); }
.subnav a[aria-current="true"] b .ico { stroke: #fff; }

/* ================================== 20 Ruhende (noch nicht angebotene) ==== */
.marke {
  display: inline-block; vertical-align: middle;
  margin-left: .5em; padding: 3px 9px;
  border: 1px solid var(--line-2); border-radius: 100px;
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.marke--klein { font-size: .625rem; padding: 2px 7px; margin-left: .35em; }
/* Noch nicht angebotene Leistung: als graue Flaeche abgesetzt. */
.svc--ruht {
  background: var(--paper-3);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
  margin-block: var(--s6);
}
.svc--ruht h3, .svc--ruht h2 { color: var(--ink-2); }
.svc--ruht .ticks li, .svc--ruht .svc-meta, .svc--ruht .drop > summary,
.svc--ruht .lead, .svc--ruht p { color: var(--muted); }
.svc--ruht .ticks li::before { background: var(--line-2); }
.svc--ruht .marke { background: var(--ink-2); border-color: var(--ink-2); color: var(--paper); }
section.svc--ruht { border: 0; border-radius: 0; margin-block: 0; padding-inline: 0; background: var(--paper-3); }
.subnav__ruht { color: var(--muted) !important; }
.subnav__ruht b { color: var(--faint) !important; }
.hinweis-klein { color: rgba(255,255,255,.5); }

/* ============================ 21 Ablauf: Grafik, die beim Scrollen läuft == */
.ablauf {
  --fortschritt: 0;
  list-style: none; position: relative;
  display: grid; gap: clamp(28px, 3.4vw, 40px);
  padding: 0; margin: 0;
}
.ablauf__bahn {
  position: absolute; left: 21px; top: 12px; bottom: 12px; width: 2px;
  background: var(--line-2); overflow: hidden;
  z-index: 0;
}
.ablauf__fortschritt {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(to bottom, var(--blue), var(--cyan));
  transform-origin: top; transform: scaleY(var(--fortschritt));
  transition: transform .25s linear;
}
/* Der Text bleibt immer lesbar. Den Fortschritt zeigen Marke und Linie. */
.ablauf__schritt {
  display: grid; grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px var(--s5); align-items: start;
  position: relative; z-index: 1;
}
.ablauf__marke {
  grid-row: 1 / span 3;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line-2); border-radius: 50%;
  background: var(--paper-2);
  color: var(--line-2);
  position: relative; z-index: 1;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.ablauf__schritt.ist-aktiv .ablauf__marke {
  color: var(--paper); border-color: var(--blue); background: var(--blue);
}
.ablauf__schritt h3 { transition: color .3s var(--ease); color: var(--ink-2); }
.ablauf__schritt.ist-aktiv h3 { color: var(--ink); }
.ablauf__schritt h3 { font-size: var(--t-h3); }
.ablauf__schritt p { color: var(--ink-2); max-width: 56ch; margin-top: 6px; }
.ablauf__ergebnis {
  font-family: var(--font-mono); font-size: var(--t-mono); letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint) !important; margin-top: 10px !important;
}

@media (min-width: 900px) {
  .ablauf { grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 2.6vw, 40px); }
  .ablauf__bahn { left: 22px; right: 22px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .ablauf__fortschritt {
    background: linear-gradient(to right, var(--blue), var(--cyan));
    transform-origin: left; transform: scaleX(var(--fortschritt));
  }
  .ablauf__schritt { grid-template-columns: 1fr; gap: var(--s4); }
  .ablauf__marke { grid-row: auto; }
  .ablauf__schritt p { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ablauf__schritt, .ablauf__marke, .ablauf__fortschritt { transition: none; }
  .intro__logo { transition: none; }
}

/* Kontaktschritte mit Piktogramm statt Zähler */
.steps-mini { list-style: none; }
.steps-mini li { display: flex; gap: var(--s4); align-items: flex-start; padding-left: 0; }
.steps-mini li::before { content: none; }
.steps-mini .ico { color: var(--cyan); margin-top: 1px; }

/* ================================ 22 Scan-to-BIM-Viewer (Punktwolke/IFC) ==
   Zwei Welten, ein Blickwinkel: links der Scan auf schwarzem Grund, rechts
   das Modell auf Papier. Der Regler ist das einzige bunte Element.
   Markup:  <div class="sv" data-scanviewer></div>            (JS baut den Rest)
   ========================================================================== */
.sv { --split: 50%; margin-block: var(--s6); }

.sv__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  max-height: 74vh;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(90deg, #07090C 0 50%, var(--paper-2) 50% 100%);
  overflow: hidden;
  touch-action: none;
}
@media (max-width: 640px) { .sv__stage { aspect-ratio: 4 / 3; min-height: 320px; } }

.sv__canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.sv__canvas.is-greifend { cursor: grabbing; }

/* -- Beschriftung: Fachbegriff gross, Erlaeuterung klein darunter -------- */
.sv__cap, .sv__stat {
  position: absolute; margin: 0; pointer-events: none;
  font-family: var(--font-mono); font-size: var(--t-mono);
  letter-spacing: .14em; text-transform: uppercase;
  transition: opacity .25s var(--ease);
}
.sv__cap { top: 14px; display: grid; gap: 3px; line-height: 1.5; }
.sv__cap b { font-weight: 500; letter-spacing: .18em; }
.sv__cap span { letter-spacing: .1em; text-transform: none; font-size: .6875rem; }
.sv__cap--links  { left: 16px; color: #fff; }
.sv__cap--links span { color: rgba(255,255,255,.6); }
.sv__cap--rechts { right: 16px; text-align: right; color: var(--ink); }
.sv__cap--rechts span { color: var(--muted); }

.sv__stat { bottom: 14px; font-size: .6875rem; letter-spacing: .12em; }
.sv__stat--links  { left: 16px; color: rgba(255,255,255,.62); }
.sv__stat--rechts { right: 16px; color: var(--muted); }
.sv__zahl { color: var(--cyan); font-variant-numeric: tabular-nums; }

.sv__laden {
  position: absolute; inset: 0; margin: 0; display: grid; place-content: center;
  font-family: var(--font-mono); font-size: var(--t-mono); letter-spacing: .14em;
  color: rgba(255,255,255,.7); background: #07090C;
}

/* -- Der Regler: eine Schnittkante, kein Bedienelement-Klischee ---------- */
.sv__handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; margin-left: -1px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 0 0 1px rgba(255,255,255,.22), 0 0 22px rgba(0,120,255,.45);
}
.sv__grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; display: grid; place-items: center;
  padding: 0; border: 1px solid var(--line-2); border-radius: 50%;
  background: var(--paper); color: var(--ink);
  cursor: ew-resize; touch-action: none;
  box-shadow: 0 6px 20px rgba(11,12,14,.32);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.sv__grip:hover { box-shadow: 0 8px 26px rgba(11,12,14,.4); }
.sv__handle.is-aktiv .sv__grip { transform: translate(-50%, -50%) scale(1.06); }
.sv__grip:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* -- Fusszeile: Hinweis links, Schalter rechts -------------------------- */
.sv__bar {
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5);
  align-items: baseline; justify-content: space-between;
  padding-top: var(--s3);
}
.sv__hint {
  font-family: var(--font-mono); font-size: var(--t-mono);
  letter-spacing: .1em; color: var(--faint); margin: 0;
}
.sv__btns { display: flex; flex-wrap: wrap; gap: var(--s2); }
.sv__btn {
  font: inherit; font-size: var(--t-small); line-height: 1;
  padding: 9px 14px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--paper); color: var(--ink-2);
  transition: border-color .18s, color .18s, background .18s;
}
.sv__btn:hover { border-color: var(--ink); color: var(--ink); }
.sv__btn--reset { color: var(--muted); }

/* -- Legende: was im Modell welche Farbe traegt ------------------------- */
.sv__legende {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5);
  margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line);
  list-style: none;
}
.sv__legende li {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: var(--t-mono);
  letter-spacing: .08em; color: var(--muted);
}
.sv__legende i {
  width: 11px; height: 11px; flex: none; display: block;
  border: 1px solid rgba(11,12,14,.28); background: var(--pf, #ccc);
}
.sv__fehler {
  padding: var(--s5); border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--paper-2); color: var(--muted); font-size: var(--t-small);
}

@media (prefers-reduced-motion: reduce) {
  .sv__grip, .sv__cap, .sv__stat { transition: none; }
}


/* ==========================================================================
   21 · Vorteile und Formular-Chips
   ========================================================================== */

/* Fuenf Vorteile. Gleiche Mechanik wie der Ablauf unter Vorgehen,
   aber eckige Marken — damit die beiden Grafiken unterscheidbar bleiben. */
.vorteile {
  --fortschritt: 0;
  list-style: none; position: relative;
  display: grid; gap: clamp(22px, 2.6vw, 32px);
  padding: 0; margin: 0;
}
.vorteile__bahn {
  position: absolute; left: 21px; top: 12px; bottom: 12px; width: 2px;
  background: var(--line-2); overflow: hidden; z-index: 0;
}
.vorteile__fortschritt {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(to bottom, var(--blue), var(--cyan));
  transform-origin: top; transform: scaleY(var(--fortschritt));
  transition: transform .25s linear;
}
.vorteile__eintrag {
  display: grid; grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px var(--s5); align-items: start;
  position: relative; z-index: 1;
}
.vorteile__marke {
  grid-row: 1 / span 2;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--paper-2); color: var(--line-2);
  position: relative; z-index: 1;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.vorteile__eintrag.ist-aktiv .vorteile__marke {
  color: var(--paper); border-color: var(--blue); background: var(--blue);
}
.vorteile__eintrag h3 { font-size: var(--t-h3); color: var(--ink-2); transition: color .3s var(--ease); }
.vorteile__eintrag.ist-aktiv h3 { color: var(--ink); }
.vorteile__ziel {
  font-family: var(--font-mono); font-size: var(--t-mono); letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); margin: 6px 0 0;
}

@media (min-width: 900px) {
  .vorteile { grid-template-columns: repeat(5, 1fr); gap: clamp(18px, 2vw, 28px); }
  .vorteile--drei { grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); }
  .vorteile__bahn { left: 22px; right: 22px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .vorteile__fortschritt {
    background: linear-gradient(to right, var(--blue), var(--cyan));
    transform-origin: left; transform: scaleX(var(--fortschritt));
  }
  .vorteile__eintrag { grid-template-columns: 1fr; gap: var(--s4); }
  .vorteile__marke { grid-row: auto; }
  .vorteile__ziel { margin-top: 0; }
}

/* Themenauswahl als anklickbare Felder statt Ankreuzliste. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
/* Der Kontaktabschnitt liegt auf dunklem Grund — die Felder folgen ihm. */
.chip span {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; min-height: 44px;
  border: 1px solid var(--rand-night); border-radius: var(--radius);
  font-size: var(--t-small); color: rgba(255,255,255,.8); background: var(--night-2);
  transition: border-color .2s, color .2s, background .2s;
}
.chip i { font-style: normal; color: rgba(255,255,255,.45); font-size: .85em; }
.chip input:hover + span { border-color: rgba(255,255,255,.3); }
.chip input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.chip input:checked + span {
  border-color: var(--cyan); color: #fff; background: #0E1216;
}
/* Ein Haken macht die Auswahl auch ohne Farbe erkennbar. */
.chip input:checked + span::before {
  content: ""; flex: none; width: 13px; height: 8px; margin-right: 2px;
  border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg) translate(1px, -2px);
}

/* „optional" als ruhiger Zusatz am Label. */
/* Steht ausschliesslich im Kontaktformular, also auf dunklem Grund.
   var(--faint) waere dort mit 3,74:1 zu schwach. */
.opt {
  font-family: var(--font-mono); font-size: var(--t-mono); letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.62); font-weight: 400; margin-left: 8px;
}

/* Telefon liegt eingeklappt — sichtbar, aber nicht im Weg. */
.mehr > summary {
  cursor: pointer; font-size: var(--t-small); color: rgba(255,255,255,.6);
  padding: 10px 0; min-height: 44px; display: flex; align-items: center; gap: 10px;
  list-style: none;
}
/* display:flex unterdrueckt das Standarddreieck — deshalb ein eigenes Zeichen. */
.mehr > summary::-webkit-details-marker { display: none; }
.mehr > summary::before {
  content: ""; flex: none; width: 9px; height: 9px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg); transition: transform .2s var(--ease);
}
.mehr[open] > summary::before { transform: rotate(45deg); }
.mehr > summary:hover { color: var(--cyan); }
.mehr[open] > summary { color: rgba(255,255,255,.8); }

@media (prefers-reduced-motion: reduce) {
  .vorteile__eintrag, .vorteile__marke, .vorteile__fortschritt, .chip span { transition: none; }
}


/* ==========================================================================
   22 · Umschalter Tag / Nacht
   ========================================================================== */
.theme-schalter {
  flex: none; width: 44px; height: 44px; margin-left: auto;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-2); border-radius: var(--radius);
  color: var(--ink-2); cursor: pointer;
  transition: color .2s, border-color .2s;
}
.theme-schalter:hover { color: var(--blue); border-color: var(--blue); }
.theme-schalter svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* Sonne zeigt „es ist hell“, Mond zeigt „es ist dunkel“. */
.theme-schalter .sym-mond { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-schalter .sym-sonne { display: none; }
  :root:not([data-theme="light"]) .theme-schalter .sym-mond  { display: block; }
}
:root[data-theme="dark"] .theme-schalter .sym-sonne { display: none; }
:root[data-theme="dark"] .theme-schalter .sym-mond  { display: block; }
:root[data-theme="light"] .theme-schalter .sym-sonne { display: block; }
:root[data-theme="light"] .theme-schalter .sym-mond  { display: none; }

/* Der Kopf traegt den Schalter links neben dem Menuknopf. */
@media (max-width: 899px) {
  .theme-schalter { margin-left: auto; margin-right: var(--s3); }
}
@media (min-width: 900px) {
  .theme-schalter { margin-left: var(--s5); }
}

/* Die Punktwolke ist in festen Blautoenen gezeichnet (Tiefenstaffelung).
   Auf dunklem Grund werden diese angehoben, statt sie flach zu ueberschreiben. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .kv__cloud { filter: brightness(1.5) saturate(1.05); }
}
:root[data-theme="dark"] .kv__cloud { filter: brightness(1.5) saturate(1.05); }

/* Portraits auf dunklem Grund minimal beruhigen, damit sie nicht blenden. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .person figure img { filter: brightness(.92); }
}
:root[data-theme="dark"] .person figure img { filter: brightness(.92); }


/* ==========================================================================
   23 · Team: ruhigere Portraits, Werdegang auf Wunsch
   ========================================================================== */

/* Beide Portraits werden auf dasselbe Format gebracht. Damit kann auch eine
   spaeter nachgelieferte Datei mit anderem Zuschnitt nichts verziehen. */
.person figure img {
  aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%;
  width: 100%; height: auto;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

/* Der lange Werdegang liegt eingeklappt: Name, Rolle und Kurzprofil stehen
   sofort da, alles Weitere oeffnet, wer es wissen will. */
.werdegang { border-top: 1px solid var(--line); margin-top: var(--s5); }
.werdegang > summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: var(--s3) 0;
  font-family: var(--font-mono); font-size: var(--t-mono);
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  transition: color .2s;
}
.werdegang > summary::-webkit-details-marker { display: none; }
.werdegang > summary::before {
  content: ""; flex: none; width: 9px; height: 9px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg); transition: transform .2s var(--ease);
}
.werdegang[open] > summary::before { transform: rotate(45deg); }
.werdegang > summary:hover { color: var(--blue); }
.werdegang .deflist { margin-bottom: var(--s5); }

@media (prefers-reduced-motion: reduce) {
  .werdegang > summary::before { transition: none; }
}


/* ==========================================================================
   24 · Leistungskarten
   ========================================================================== */

.karten {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: 1fr;
}
@media (min-width: 620px)  { .karten { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .karten { grid-template-columns: repeat(4, 1fr); } }

.karte {
  position: relative; background: var(--paper);
  padding: clamp(22px, 2.4vw, 30px);
  display: grid; align-content: start; gap: var(--s3);
}
.karte:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.karte__picto { color: var(--blue); line-height: 0; }
.ico--xl { width: 40px; height: 40px; }
.karte h3 { font-size: var(--t-h3); }
.karte__satz { color: var(--ink-2); font-size: var(--t-small); margin: 0; }
.karte .ticks { margin: 0; }
.karte .svc-for { margin-top: var(--s4); }

/* Die Energieberatung ruht sichtbar. */
.karte--ruht { background: var(--paper-3); }
.karte--ruht .karte__picto { color: var(--faint); }
.karte--ruht h3 { color: var(--ink-2); }

/* Grundzustand — auch auf Touch und ohne Zeiger: alles steht untereinander,
   nichts ist versteckt. Erst Geraete mit echtem Zeiger bekommen die
   Einblendung, denn nur dort gibt es ein Darueberfahren. */
.karte__mehr { display: grid; gap: var(--s3); }

@media (hover: hover) and (pointer: fine) {
  /* Die Einblendung bleibt vollstaendig INNERHALB der Karte. Ragte sie darueber
     hinaus, blieb der Zeiger auf der ausgeklappten Flaeche haengen und die
     Karte schloss nicht mehr — genau der gemeldete Fehler. */
  /* Hoch genug, dass der laengste Umfang (324 px) ohne Scrollen hineinpasst. */
  .karte { min-height: 340px; overflow: hidden; }
  .karte__mehr {
    position: absolute; inset: 0; z-index: 2;
    padding: clamp(22px, 2.4vw, 30px);
    background: var(--paper); border-top: 2px solid var(--blue);
    align-content: start; gap: var(--s2);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .karte--ruht .karte__mehr { background: var(--paper-3); border-top-color: var(--line-2); }
  .karte:hover .karte__mehr,
  .karte:focus-within .karte__mehr {
    opacity: 1; visibility: visible; transform: none;
  }
  /* Der Titel bleibt beim Aufdecken sichtbar, damit klar ist, wozu die Liste gehoert. */
  .karte__mehr::before {
    content: attr(data-titel);
    font-family: var(--font-mono); font-size: var(--t-mono);
    letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
  }
}

.karten__fuss {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s4) var(--s5);
}
.karten__hinweis {
  font-family: var(--font-mono); font-size: var(--t-mono);
  letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
}
/* Ohne Zeiger gibt es nichts aufzudecken — dann ist der Hinweis irrefuehrend. */
@media not all and (hover: hover) { .karten__hinweis { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .karte__mehr { transition: none; }
}


/* Knappe Aufzaehlung in den Karten: Stichworte, keine Saetze. */
.ticks--knapp { display: grid; gap: 6px; }
.ticks--knapp li { font-size: var(--t-small); line-height: 1.4; }
.karte .svc-for { margin-top: var(--s3); font-size: var(--t-mono); }


/* ==========================================================================
   25 · Haeufige Fragen
   ========================================================================== */

.faq__gruppe + .faq__gruppe { margin-top: clamp(40px, 5vw, 72px); }
.faq__gruppe > h2 {
  font-family: var(--font-mono); font-size: var(--t-mono);
  letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
  font-weight: 400; margin-bottom: var(--s5);
  padding-bottom: var(--s3); border-bottom: 1px solid var(--line);
}
.faq {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .faq { grid-template-columns: 1fr 1fr; } }

/* Frage und Antwort stehen als Block nebeneinander — Picto links, damit das
   Auge beim Ueberfliegen eine Spur hat. */
.faq__eintrag {
  background: var(--paper); padding: clamp(20px, 2.2vw, 28px);
  display: grid; grid-template-columns: 36px minmax(0, 1fr);
  gap: 4px var(--s4); align-content: start;
}
.faq__picto { grid-row: 1 / span 2; color: var(--blue); line-height: 0; }
/* Die Frageseite nutzt h3/p, das Glossar dt/dd — gleiches Bild, andere Semantik. */
.faq__eintrag h3, .faq__eintrag dt {
  font-size: 1.0625rem; letter-spacing: -.01em; margin: 0;
  font-weight: 700; color: var(--ink); line-height: 1.35;
}
.faq__eintrag p, .faq__eintrag dd {
  margin: 6px 0 0; color: var(--ink-2); font-size: var(--t-small);
}
.faq__eintrag a { color: var(--blue-deep); }


/* ==========================================================================
   26 · Typische Anlaesse, Ergebniszeile und Ruhevermerk der Karten
   ========================================================================== */

/* Die Marken unterbrechen die Fortschrittslinie, indem sie den Grund der
   Sektion aufnehmen. Auf ungetoenten Abschnitten ist das --paper, nicht
   --paper-2 — sonst stuende dort ein grauer Kreis auf Weiss.
   Wichtig: nur der RUHENDE Zustand. Ohne :not(.ist-aktiv) haette diese Regel
   dieselbe Spezifitaet wie die Aktiv-Regel weiter oben, stuende aber spaeter
   in der Datei — und haette das Blau der aktiven Marke mit Weiss uebermalt. */
.section:not(.section--tint) .ablauf__schritt:not(.ist-aktiv) .ablauf__marke,
.section:not(.section--tint) .vorteile__eintrag:not(.ist-aktiv) .vorteile__marke {
  background: var(--paper);
}

/* Drei Anlassfelder im Raster der uebrigen Hairline-Gitter. */
.anlaesse {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .anlaesse { grid-template-columns: repeat(3, 1fr); } }
.anlass {
  position: relative;
  background: var(--paper-2); padding: clamp(22px, 2.4vw, 30px);
  display: grid; align-content: start; gap: var(--s3);
}
.anlass__picto { color: var(--blue); line-height: 0; }
.anlass h3 { font-size: var(--t-h3); }
.anlass p { color: var(--ink-2); font-size: var(--t-small); margin: 0; }
.anlass:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }

/* Wie bei den Leistungskarten: ohne Zeiger steht alles untereinander da,
   erst Geraete mit echtem Zeiger bekommen die Einblendung. */
.anlass__mehr { display: grid; gap: var(--s2); }

@media (hover: hover) and (pointer: fine) {
  .anlass { min-height: 260px; overflow: hidden; }
  .anlass__mehr {
    position: absolute; inset: 0; z-index: 2;
    padding: clamp(22px, 2.4vw, 30px);
    background: var(--paper-2); border-top: 2px solid var(--blue);
    align-content: start;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .anlass:hover .anlass__mehr,
  .anlass:focus-within .anlass__mehr { opacity: 1; visibility: visible; transform: none; }
  .anlass__mehr::before {
    content: attr(data-titel);
    font-family: var(--font-mono); font-size: var(--t-mono);
    letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
  }
}

@media (prefers-reduced-motion: reduce) { .anlass__mehr { transition: none; } }

/* Ergebniszeile der Leistungskarten — dieselbe Sprache wie im Ablauf. */
.karte__ergebnis {
  font-family: var(--font-mono); font-size: var(--t-mono); letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint); margin: 0;
}
/* Der Ruhevermerk sitzt ueber dem Titel, damit die Karte sofort einzuordnen ist. */
.karte__badge {
  justify-self: start; margin: 0;
  font-family: var(--font-mono); font-size: var(--t-mono); letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 3px 8px; background: var(--paper);
}
