/* cmd one — gemeinsames Stylesheet für alle Seiten (Home, Unterseiten, Impressum, 404).
   Einbinden mit Versionsnummer (?v=…), weil nginx CSS 30 Tage cachen lässt. Bei jeder Änderung hochzählen. */

/* Schriften selbst gehostet (DSGVO, keine Anfrage an Google). Geist und Geist Mono, SIL OFL 1.1, Lizenz in /assets/fonts/OFL.txt. */
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Flächen */
  --paper:      #F4F5F6;   /* Seitenhintergrund (Marke: „Papier“) */
  --surface:    #FFFFFF;   /* Karten, Eingabefelder */
  --paper-2:    #EDEFF1;   /* leicht abgesetzte Flächen */
  --ink:        #16181A;   /* Text, dunkle Flächen (Marke: „Tinte“) */
  --ink-deep:   #0E1011;   /* Footer, eine Stufe dunkler als Tinte */
  --ink-2:      #3D4247;   /* Fließtext gedämpft */
  --ink-3:      #6B7076;   /* Meta, Labels */
  --ink-4:      #9AA0A6;   /* Footer-Sub, Platzhalter */
  --line:       #E3E6E8;   /* Haarlinien */
  --line-2:     #D6D9DC;   /* Haarlinien auf Weiß */
  --line-heavy: #16181A;   /* Betonte Linien */

  /* Akzent — Tannengrün, einziger Akzent. Nie flächig, nie als Hintergrund ganzer Sektionen. */
  --green:       #0F4D3A;
  --green-hover: #0A3729;
  --green-soft:  #7FB39E;  /* Akzent auf dunklem Grund */
  --green-tint:  #9CC7B4;  /* Streifen-Platzhalter, feine Markierung */

  /* Auf dunklem Grund (Tinte) */
  --on-ink:       #F4F5F6;
  --on-ink-muted: #9AA0A6;
  --on-ink-line:  rgba(244, 245, 246, 0.14);
  --on-ink-heavy: rgba(244, 245, 246, 0.42);

  /* Schrift */
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Größen (Desktop) */
  --fs-display: clamp(40px, 6vw, 76px);
  --fs-h2:      clamp(30px, 3.6vw, 44px);
  --fs-h3:      22px;
  --fs-body:    18px;
  --fs-lead:    22px;
  --fs-small:   15px;
  --fs-label:   13px;

  /* Raster */
  --container: 1280px;
  --gutter: 24px;
  --pad-x: 64px;          /* ≤1024: 32px, ≤640: 20px */
  --section-y: 112px;     /* ≤640: 64px */
  --radius: 2px;          /* 0–2px, nie mehr */
  --focus: 2px solid var(--green);
  --header-h: 73px;       /* Höhe des klebenden Headers (für Sprungziele) */
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding-top: Anker und Fokus (Tab, Shift+Tab) landen unter dem klebenden Header, nicht dahinter (WCAG 2.4.11) */
html { scroll-behavior: smooth; color-scheme: light; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { flex: 1 0 auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--green); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: var(--focus); outline-offset: 2px; }
::selection { background: var(--green-tint); color: var(--ink); }
svg { display: block; width: 100%; height: auto; }
img { display: block; max-width: 100%; height: auto; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }

/* ---------- Typografie ---------- */
h1 { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; }
h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.text { color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.small { font-size: var(--fs-small); line-height: 1.5; }
.label {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.label .num { color: var(--green); }
.num { font-family: var(--mono); font-weight: 500; color: var(--green); }
.link {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.link:hover { color: var(--green-hover); }
.more {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--green); text-decoration: none;
}
.more::after { content: "→"; font-family: var(--sans); font-size: 16px; letter-spacing: 0; transition: transform .15s ease; }
.more:hover { color: var(--green-hover); }
.more:hover::after { transform: translateX(3px); }

/* Auf- und Zuklappen (nur details/summary, kein Skript) */
summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--mono); font-size: 13px; font-weight: 500; line-height: 1;
  letter-spacing: 0.10em; text-transform: uppercase; color: var(--green);
}
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; flex: none; width: 12px; font-size: 15px; text-align: center; }
details[open] > summary::before { content: "−"; }
summary:hover { color: var(--green-hover); }

/* Diagramme (Inline-SVG) */
.dg-box { fill: none; stroke: var(--line-heavy); stroke-width: 1; }
.dg-bridge { fill: var(--green); }
.dg-stem { stroke: var(--green); stroke-width: 2; }
.dg-b { font-family: var(--sans); font-size: 15px; font-weight: 500; fill: var(--ink); text-anchor: middle; }
.dg-w { font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; fill: #fff; text-anchor: middle; }

/* ---------- Sprunglink ---------- */
.skip {
  position: absolute; left: var(--pad-x); top: -120px; z-index: 100;
  padding: 12px 16px; background: var(--ink); color: var(--paper);
  font-size: var(--fs-small); text-decoration: none; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

/* Nur für Screenreader, visuell verborgen */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 12px 22px;
  font-family: var(--sans); font-size: 16px; font-weight: 500; line-height: 1.2;
  border: 1px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hover); border-color: var(--green-hover); }
.btn-secondary { background: transparent; border-color: var(--line-heavy); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
/* Auf dunklem Grund */
.btn-light { background: var(--on-ink); border-color: var(--on-ink); color: var(--ink); }
.btn-light:hover { background: var(--green-soft); border-color: var(--green-soft); color: var(--ink); }
.btn-outline-light { background: transparent; border-color: var(--on-ink-heavy); color: var(--on-ink); }
.btn-outline-light:hover { background: var(--on-ink); border-color: var(--on-ink); color: var(--ink); }
.actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
/* >900 px volle Zeile, darunter Hamburger (Popover-API, ohne JS) links neben dem CTA */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink); text-decoration: none; }
.wordmark { font-size: 21px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.one { color: var(--green); }
/* [popover] bringt UA-Styles mit (position:fixed, inset:auto, Rand, Rahmen …); auf Desktop im normalen Fluss zurücksetzen */
.nav {
  position: static; inset: auto; margin: 0 0 0 auto; width: auto; height: auto;
  padding: 0; border: 0; background: none; color: inherit; overflow: visible;
  display: flex; gap: 28px;
}
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); font-size: 16px; text-decoration: none;
  text-underline-offset: 6px; text-decoration-thickness: 1px;
}
.nav a:hover { color: var(--green); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--green); text-decoration: underline; }
.nav-toggle { display: none; }
.lbl-short { display: none; }
.lockup { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.cursor-box { width: 30px; height: 30px; background: var(--green); display: inline-flex; align-items: flex-end; padding: 0 0 8px 8px; flex: none; }
.cursor-bar { width: 11px; height: 2.5px; background: #fff; display: block; animation: blink 1.2s step-end 4; } /* endet nach 4,8 s, Cursor bleibt sichtbar (WCAG 2.2.2) */
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ---------- Hero (Startseite) ---------- */
/* Zentrierter Text, darunter das Teamfoto und die drei Schwerpunkte.
   Foto und Schwerpunkte teilen eine Breite, damit jeder Baustein unter seiner Person steht
   (Foto von links: Dennis, Christian, Michael). Die Breite richtet sich nach der Bildschirmhöhe,
   damit das Foto auf dem ersten Bildschirm Platz hat. */
.hero { overflow: clip; border-bottom: 1px solid var(--line-heavy); }
.hero-copy { max-width: 780px; margin: auto; padding-top: clamp(32px, 6svh, 96px); text-align: center; }
.hero h1 { font-size: clamp(32px, 3.5vw, 48px); line-height: 1.05; max-width: 30ch; margin-inline: auto; text-wrap: balance; }
.hero-sub { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.35; color: var(--ink); max-width: 48ch; margin: 16px auto 0; text-wrap: balance; }
.hero .lead { font-size: var(--fs-body); max-width: 58ch; margin: 16px auto 0; }
.hero .actions { justify-content: center; margin-top: 28px; }
.hero-photo, .skills { width: min(100%, clamp(400px, (100svh - var(--header-h) - 480px) * 1.75, 960px)); margin-inline: auto; }
/* Text und Foto füllen den ersten Bildschirm, das Foto endet an dessen Unterkante. */
/* Feste Höhe: Ragt das Foto wenige Pixel darüber, wird es unten abgeschnitten (es endet ohnehin an der Hüfte). */
.hero-stage { display: flex; flex-direction: column; height: max(calc(100svh - var(--header-h)), 520px); overflow: clip; }
.hero-photo { padding-top: 32px; }
.hero-photo img { display: block; }
.hero-photo img { width: 100%; height: auto; }

/* Drei Schwerpunkte, je unter der Person im Foto */
.skills { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-heavy); }
.skills a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 12px 22px; text-align: center; color: var(--ink); text-decoration: none; }
.skills strong { font-size: 17px; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.skills span { font-size: var(--fs-small); line-height: 1.4; color: var(--ink-3); text-wrap: balance; }
.skills a:hover strong { color: var(--green); }
.skills a:focus-visible { outline: var(--focus); outline-offset: -2px; }

/* Bewegung. Die Schwerpunkte steigen nacheinander auf, sobald sie ins Bild kommen.
   Das Foto bleibt stehen, solange es ganz zu sehen ist, und blendet aus, wenn es oben hinausläuft.
   Ohne Scroll-Zeitleiste: Schwerpunkte einmal beim Laden, Foto ohne Effekt.
   Bei reduzierter Bewegung nur Deckkraft, ohne Verschieben. */
.skills li { animation: skill-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.skills li:nth-child(2) { animation-delay: 0.15s; }
.skills li:nth-child(3) { animation-delay: 0.3s; }
@keyframes skill-in { from { opacity: 0; } }
@supports (animation-timeline: view()) {
  .skills li { animation-duration: auto; animation-delay: 0s; animation-timing-function: linear; animation-timeline: view(); }
  .skills li:nth-child(1) { animation-range: entry 20% entry 100%; }
  .skills li:nth-child(2) { animation-range: entry 45% cover 25%; }
  .skills li:nth-child(3) { animation-range: entry 70% cover 32%; }
  .hero-photo img { animation: hero-fade linear both; animation-timeline: view(); animation-range: exit 0% exit 90%; }
  @keyframes hero-fade { to { opacity: 0; } }
}
@media screen and (prefers-reduced-motion: no-preference) {
  @keyframes skill-in { from { opacity: 0; transform: translateY(20px); } }
  @supports (animation-timeline: view()) {
    .hero-photo img { transform-origin: 50% 100%; animation-name: hero-out; }
    .hero-copy { animation: hero-copy linear both; animation-timeline: scroll(root); animation-range: 0 45svh; }
    @keyframes hero-out { to { opacity: 0; transform: translateY(40px) scale(0.95); } }
    @keyframes hero-copy { to { transform: translateY(-20px); } } /* ohne Deckkraft: Kontrast bleibt beim Scrollen (1.4.3) */
  }
}

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-head { padding: calc(var(--section-y) - 24px) 0 calc(var(--section-y) - 32px); }
.page-head h1 { margin-top: 20px; font-size: clamp(40px, 5vw, 64px); line-height: 1.04; max-width: 20ch; text-wrap: balance; }
.page-head .lead { margin-top: 32px; }
.page-head + .section, .page-head + .photo-stage { border-top: 1px solid var(--line-heavy); }
.photo-stage { padding-top: 48px; border-bottom: 1px solid var(--line-heavy); }
.photo-stage img { width: 100%; max-width: 940px; margin-inline: auto; }

/* ---------- Sektionen ---------- */
.section { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.hero + .section, .photo-stage + .section { border-top: 0; }
.sec-head h2 { margin-top: 16px; max-width: 22ch; text-wrap: balance; }
.sec-head .lead { margin-top: 24px; }
.sec-body { margin-top: 48px; }
.sec-foot { margin-top: 40px; }

/* Raster 3 → 2 → 1 (Leistungen, Projekte) */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 56px; }
.cell { border-top: 1px solid var(--line-heavy); padding-top: 24px; }
.cell h3 { margin-top: 20px; }
.cell .text { margin-top: 12px; }
.cell-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.cell-head .label { line-height: 1.5; }
.cell-head .num { flex: none; }


/* Pfad (Vorgehen): ab 1024 px waagerecht, darunter senkrecht. Linie und Knoten per CSS, Texte sind HTML. */
.path {
  display: grid; column-gap: var(--gutter);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 112px minmax(0, 1fr) minmax(0, 1fr);
}
.node, .gate { position: relative; padding-top: 72px; }
.node::after, .gate::after {
  content: ""; position: absolute; top: 22px; left: 0; right: calc(var(--gutter) * -1);
  height: 1px; background: var(--line-heavy);
}
.node:last-child::after { display: none; }
.dot {
  position: absolute; z-index: 1; top: 0; left: 0; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-heavy); border-radius: var(--radius); background: var(--paper);
  font-family: var(--mono); font-size: 15px; font-weight: 500; color: var(--green);
}
.node:last-child .dot { background: var(--green); border-color: var(--green); color: #fff; }
.node h3 { text-wrap: balance; }
.node .text { margin-top: 10px; font-size: 16px; line-height: 1.55; }
.gate { text-align: center; }
.diamond {
  position: absolute; z-index: 1; top: 8px; left: 50%; width: 28px; height: 28px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--paper); border: 1.5px solid var(--green);
}
.gate .label { color: var(--green); line-height: 1.5; }

/* Zeilen (Anlässe, Leistungen im Detail): Nummer und Titel links, Text rechts */
.rows { border-top: 1px solid var(--line-heavy); }
.row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: var(--gutter); row-gap: 10px; padding: 32px 0; border-bottom: 1px solid var(--line);
}
.row-head { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: baseline; padding-right: 24px; }
.row-head .num { font-size: var(--fs-small); }
.row h3 { font-size: clamp(24px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.row .text { padding-top: 3px; }
.row-body { padding-top: 3px; }
.row-body .text { padding-top: 0; }
.tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 6px 10px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface);
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2);
}
.contact-line { margin-top: 20px; font-size: var(--fs-small); color: var(--ink-3); }
.contact-line a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Dunkle Flächen ---------- */
/* Statement-Band: großer Satz, zweite Zeile grün */
.band { background: var(--ink); color: var(--on-ink); padding-block: clamp(80px, 11vw, 148px); }
.band p {
  font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 600;
  max-width: 24ch; text-wrap: balance;
}
.band p::before { content: ""; display: block; width: 44px; height: 3px; margin-bottom: 40px; background: var(--green-soft); }
.band span { display: block; }
.band .alt { margin-top: 0.4em; color: var(--green-soft); }
.band + .section, .band + .band, .dark + .section { border-top: 0; }

/* Dunkle Sektion (Referenzen, CTA) */
.dark { background: var(--ink); color: var(--on-ink); border-top: 0; }
.dark .label { color: var(--on-ink-muted); }
.dark .label .num, .dark .num { color: var(--green-soft); }
.dark .lead, .dark .text { color: var(--on-ink-muted); }
.dark .link, .dark a:not(.btn) { color: var(--on-ink); }
.dark .link:hover { color: var(--green-soft); }
.dark .more { color: var(--green-soft); }
.dark .more:hover { color: var(--on-ink); }
.dark a:focus-visible { outline-color: var(--green-soft); }
.band + .dark, .dark + .band, .dark + .dark { border-top: 1px solid var(--on-ink-line); }

/* Referenz-Band: Logos (bis zur Freigabe Branchen als Wortmarken) */
.refs { padding-block: clamp(64px, 8vw, 104px); }
.refs-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 40px; }
.refs-head .refs-title { margin-top: 16px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; max-width: 30ch; text-wrap: balance; }
.logos {
  margin-top: 48px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--on-ink-line); border-left: 1px solid var(--on-ink-line);
}
.logos li {
  display: flex; align-items: center; justify-content: center; min-height: 112px; padding: 20px 16px;
  border-right: 1px solid var(--on-ink-line); border-bottom: 1px solid var(--on-ink-line);
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  line-height: 1.5; text-align: center; color: var(--on-ink-muted);
}
.logos img { max-height: 36px; width: auto; filter: grayscale(1) brightness(0) invert(1); opacity: 0.72; }
/* Logo-Laufband: zwei gleiche Listen laufen nach links, die zweite schließt nahtlos an.
   Läuft, bis jemand den Schalter „Laufband anhalten“ nutzt; bei „Bewegung reduzieren“ stehen die Logos als Reihe (WCAG 2.2.2). */
.marquee-wrap { display: flex; flex-direction: column; }
.marquee { order: 1; }
.marquee {
  margin-top: 48px; display: flex; overflow: hidden; padding-block: 40px;
  border-block: 1px solid var(--on-ink-line);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; flex: none; align-items: center; gap: 80px; padding-right: 80px;
  animation: marquee 70s linear infinite;
}
.marquee li { flex: none; }
/* Schalter „Laufband anhalten“ ohne Skript: Checkbox (role=switch) + Label, im DOM vor dem Band, optisch darunter rechts */
.marquee-control {
  order: 2; align-self: flex-end; position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.4;
  color: var(--on-ink-muted); cursor: pointer;
}
.marquee-control::before { content: ""; flex: none; width: 36px; height: 20px; border: 1px solid var(--on-ink-heavy); border-radius: var(--radius); }
.marquee-control::after { content: ""; position: absolute; left: 4px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: var(--radius); background: var(--on-ink-muted); transition: left .15s ease; }
.marquee-toggle:checked + .marquee-control::before { background: var(--green-soft); border-color: var(--green-soft); }
.marquee-toggle:checked + .marquee-control::after { left: 22px; background: var(--ink); }
.marquee-toggle:focus-visible + .marquee-control { outline: 2px solid var(--green-soft); outline-offset: 2px; }
.marquee-toggle:checked ~ .marquee .marquee-track { animation-play-state: paused; }
.marquee img { max-width: none; opacity: 0.72; }
@keyframes marquee { to { transform: translateX(-100%); } }
.refs-note { margin-top: 24px; font-size: var(--fs-small); color: var(--on-ink-muted); max-width: 70ch; }

/* CTA: dunkle Karte auf Papier, nicht volle Breite */
.cta { background: none; padding-block: clamp(48px, 7vw, 96px); }
.cta .container {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--gutter); row-gap: 48px; align-items: end;
  width: calc(100% - 2 * var(--pad-x)); max-width: calc(var(--container) - 2 * var(--pad-x));
  padding: clamp(36px, 6vw, 80px);
  border-radius: 20px; color: var(--on-ink);
  background:
    radial-gradient(ellipse 60% 90% at 100% 0%, rgba(127, 179, 158, 0.16), transparent 70%),
    radial-gradient(circle, rgba(244, 245, 246, 0.05) 1px, transparent 1.2px) 0 0 / 22px 22px,
    var(--ink);
}
.cta h2 { margin-top: 20px; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.03em; max-width: 18ch; text-wrap: balance; }
.cta h2::before { content: ""; display: block; width: 44px; height: 3px; margin-bottom: 32px; background: var(--green-soft); }
.cta .lead { margin-top: 28px; }
.cta-box { border-top: 1px solid var(--on-ink-heavy); padding-top: 24px; }
.cta-box .big {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px;
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; overflow-wrap: anywhere;
}
.cta-box .actions { margin-top: 24px; }

/* ---------- Warum cmd one (kompakt) ---------- */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; }
.why li { border-top: 1px solid var(--line-heavy); padding-top: 20px; }
.why .num { font-size: var(--fs-small); }
.why h3 { margin-top: 14px; font-size: 19px; line-height: 1.25; }
.why .text { margin-top: 8px; font-size: 16px; line-height: 1.5; }

/* ---------- Zweispaltig: Kopf links, Inhalt rechts ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gutter); row-gap: 48px; }
.split .sec-head { position: sticky; top: 104px; align-self: start; }
.split .sec-head .text { margin-top: 24px; }
.bridge { margin-top: 48px; max-width: 420px; }
.list { border-top: 1px solid var(--line-heavy); }
.label + .list { margin-top: 16px; }
.list > li { padding: 28px 0; border-bottom: 1px solid var(--line); }
.list .text { margin-top: 10px; }
.details-list > li { padding-block: 32px 36px; }
.details-list .results-label { display: block; margin: 24px 0 12px; }

/* ---------- Team: eine Sektion pro Person, Foto abwechselnd rechts und links ---------- */
.person { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.person.alt { background: var(--surface); }
.person .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 6vw, 96px); align-items: center; }
.person.flip .container { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.person.flip .person-photo { order: -1; }
.person h3 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.02em; }
.person .role { margin-top: 16px; line-height: 1.5; letter-spacing: 0.08em; }
/* Abschlüsse und Erfahrung als Plaketten unter der Rolle */
.person .creds { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.person .creds li {
  padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--green);
  background: color-mix(in srgb, var(--green-tint) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--green-tint) 55%, transparent);
}
.person .when { margin-top: 28px; padding-left: 20px; border-left: 3px solid var(--green); font-size: 20px; line-height: 1.45; color: var(--ink); max-width: 44ch; text-wrap: pretty; }
.person-cols { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gutter); row-gap: 32px; }
.person .bio { font-size: 17px; line-height: 1.55; color: var(--ink); text-wrap: pretty; }
.person .cv { margin-top: 16px; color: var(--ink-2); text-wrap: pretty; }
.person .focus-title { margin-bottom: 16px; }
.checks li { position: relative; padding: 10px 0 10px 32px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.4; }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.person .contact { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; color: var(--ink-3); }
.person .contact a { display: inline-flex; align-items: center; min-height: 44px; }
/* Foto: Freisteller vor einer grünen Fläche, Anlehnung an die Box im Logo */
.person-photo { position: relative; aspect-ratio: 4 / 5; background: var(--paper-2); border-radius: var(--radius); overflow: hidden; }
.person.alt .person-photo { background: var(--paper); }
.person-photo::before { content: ""; position: absolute; inset: 18% 8% 0 14%; background: var(--green); clip-path: polygon(0 0, 100% 5%, 104% 100%, -4% 100%); }
.person.flip .person-photo::before { inset: 18% 14% 0 8%; clip-path: polygon(0 5%, 100% 0, 104% 100%, -4% 100%); }
.person-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.page-head + .person { border-top: 1px solid var(--line-heavy); }
.page-head .lead + .text { margin-top: 20px; }

/* ---------- Kundenstimmen (Platzhalter bis zur Freigabe) ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 24px; }
.quote {
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 260px;
  padding: 32px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: repeating-linear-gradient(-45deg, var(--paper) 0 10px, var(--paper-2) 10px 11px);
}
.quote p { font-size: clamp(20px, 2vw, 24px); line-height: 1.35; letter-spacing: -0.01em; font-weight: 500; color: var(--ink-3); max-width: 32ch; }
.quote p::before { content: "„"; display: block; margin-bottom: 8px; font-size: 48px; line-height: 0.6; color: var(--green); }

/* ---------- Kontakt ---------- */
.contact-list { border-top: 1px solid var(--line-heavy); }
.contact-list > div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.contact-list dd { margin-top: 12px; }
.contact-list .big {
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2;
  overflow-wrap: anywhere;
}
.contact-list .link { display: inline-flex; align-items: center; min-height: 44px; }
.contact-list .cta-btn { margin-top: 16px; padding-bottom: 8px; }
.people { display: grid; gap: 4px; }
.people li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.people li:first-child { border-top: 0; }
.people strong { display: block; font-weight: 600; }
.people .label { margin-top: 6px; line-height: 1.5; letter-spacing: 0.08em; }
.people .link { font-size: var(--fs-small); }
.contact-list address { font-style: normal; color: var(--ink-2); }

/* ---------- Rechtliches (Impressum) ---------- */
.legal { padding: calc(var(--section-y) - 16px) 0 var(--section-y); }
.legal-head { position: sticky; top: 104px; align-self: start; }
.legal-head h1 { margin-top: 20px; font-size: clamp(36px, 5vw, 64px); } /* „Barrierefreiheit“ passt so in die linke Spalte */
.legal-body { border-top: 1px solid var(--line-heavy); }
.legal-section { padding: 32px 0 36px; border-bottom: 1px solid var(--line); }
.legal-section h2 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; text-wrap: balance; }
.legal-section h2 .num { display: block; margin-bottom: 16px; font-size: var(--fs-small); line-height: 1; letter-spacing: 0; }
.legal-section p, .legal-section address {
  margin-top: 16px; max-width: 68ch;
  font-style: normal; color: var(--ink-2); text-wrap: pretty;
}
.legal-section strong { color: var(--ink); font-weight: 600; }
.legal-list { margin-top: 12px; max-width: 68ch; padding-left: 1.2em; list-style: disc; color: var(--ink-2); }
.legal-list li + li { margin-top: 4px; }
.legal-section .link { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.legal-section .btn { margin-top: 16px; max-width: 100%; white-space: normal; } /* bricht bei 320 px um (Reflow) */
.legal-section code { font-family: var(--mono); font-size: 0.9em; overflow-wrap: anywhere; }
/* Tabelle Cookies und Speicher: scrollt in der Hülle, wenn der Platz fehlt (Reflow, WCAG 1.4.10) */
.table-wrap { margin-top: 16px; max-width: 68ch; overflow-x: auto; }
.table-wrap:focus-visible { outline: var(--focus); outline-offset: 2px; }
.legal-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.45; color: var(--ink-2); text-align: left; }
.legal-table caption {
  padding-bottom: 12px; text-align: left;
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 500; line-height: 1; letter-spacing: 0.10em; text-transform: uppercase; color: var(--ink-3);
}
.legal-table th, .legal-table td { padding: 10px 16px 10px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table thead th { border-top: 1px solid var(--line-heavy); border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.legal-table tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
.note-box {
  margin-top: 20px; max-width: 68ch; padding: 20px 24px;
  background: var(--surface); border: 1px solid var(--line-2); border-left: 2px solid var(--green); border-radius: var(--radius);
  font-size: 16px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty;
}

/* ---------- Platzhalter für Seiten in Arbeit (soon.html) ---------- */
.soon-head .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--gutter); row-gap: 56px; align-items: center; }
.soon-status {
  display: flex; align-items: center; gap: 10px; width: fit-content; margin-bottom: 28px; padding: 6px 14px 6px 12px;
  border-radius: 999px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.4;
  color: var(--green); background: color-mix(in srgb, var(--green-tint) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--green-tint) 55%, transparent);
}
.soon-status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 45%, transparent); animation: soon-pulse 2s ease-out 2;
}
@keyframes soon-pulse { to { box-shadow: 0 0 0 8px transparent; } }
.soon-term {
  border-radius: 16px; overflow: hidden; color: var(--on-ink); font-family: var(--mono); font-size: 14px; line-height: 1.7;
  background:
    radial-gradient(ellipse 80% 100% at 100% 0%, rgba(127, 179, 158, 0.18), transparent 70%),
    radial-gradient(circle, rgba(244, 245, 246, 0.05) 1px, transparent 1.2px) 0 0 / 22px 22px,
    var(--ink);
  box-shadow: 0 32px 64px -32px rgba(22, 24, 26, 0.45);
}
.soon-term-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--on-ink-line); }
.soon-term-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(244, 245, 246, 0.16); }
.soon-term-bar span { margin-left: 10px; font-size: 12px; color: var(--on-ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soon-term-body { padding: 28px 24px 36px; }
.soon-term-body p + p { margin-top: 6px; }
.soon-term .prompt { color: var(--green-soft); }
.soon-term .muted { padding-left: 1.2em; color: var(--on-ink-muted); }
.soon-term .cursor-bar { display: inline-block; vertical-align: -3px; width: 9px; height: 17px; background: var(--green-soft); }
.soon-progress { height: 3px; background: var(--on-ink-line); overflow: hidden; }
.soon-progress span { display: block; width: 35%; height: 100%; background: var(--green-soft); animation: soon-load 2.4s ease-in-out 2; }
@keyframes soon-load { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
.soon-head + .dark { border-top: 0; }

/* ---------- 404 ---------- */
.notfound { padding: calc(var(--section-y) - 16px) 0 calc(var(--section-y) + 32px); }
.notfound h1 { margin-top: 20px; max-width: 16ch; text-wrap: balance; }
.notfound .lead { margin-top: 32px; }

/* ---------- Footer (dunkel) ---------- */
.site-footer { background: var(--ink-deep); color: var(--on-ink); padding: 72px 0 48px; border-top: 1px solid var(--on-ink-line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; column-gap: var(--gutter); row-gap: 40px; }
.footer-grid .label { margin-bottom: 14px; color: var(--on-ink-muted); }
.footer-grid p, .footer-grid li { font-size: var(--fs-small); line-height: 1.5; color: var(--on-ink-muted); }
.footer-grid a { display: inline-flex; align-items: center; min-height: 40px; color: var(--on-ink); text-decoration: none; }
.footer-grid a:hover { color: var(--green-soft); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.footer-grid a:focus-visible { outline-color: var(--green-soft); }
.footer-grid a[aria-current="page"] { color: var(--green-soft); }
/* Knopf „Datenschutz-Einstellungen“: sieht aus wie ein Footer-Link */
.footer-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0; border: 0; background: none;
  font: inherit; font-size: var(--fs-small); color: var(--on-ink); text-align: left; cursor: pointer;
}
.footer-link:hover { color: var(--green-soft); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.footer-link:focus-visible { outline: 2px solid var(--green-soft); outline-offset: 2px; }
.footer-grid .lockup, .footer-grid .lockup:hover { color: var(--on-ink); text-decoration: none; }
.site-footer .one { color: var(--green-soft); }
.footer-grid .org { color: var(--on-ink); font-weight: 500; }
.footer-grid .group + .group { margin-top: 28px; }
.claim { margin-top: 16px; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--on-ink-line);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink-muted);
}

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) {
  .why { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  :root { --pad-x: 32px; }
  .nav { gap: 24px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .person-cols { grid-template-columns: minmax(0, 1fr); }
  .split .sec-head, .legal-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta .container { grid-template-columns: minmax(0, 1fr); }
  .soon-head .container { grid-template-columns: minmax(0, 1fr); }
  .soon-term { max-width: 520px; }
}
/* Unter 1024 px: Pfad senkrecht */
@media (max-width: 1023px) {

  .path { grid-template-columns: minmax(0, 1fr); row-gap: 44px; }
  .node, .gate { padding-top: 0; padding-left: 72px; min-height: 44px; }
  .node::after, .gate::after { top: 0; bottom: -44px; left: 22px; right: auto; width: 1px; height: auto; }
  .node { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: var(--gutter); align-items: start; }
  .node h3 { padding-top: 8px; }
  .node .text { margin-top: 0; padding-top: 8px; font-size: var(--fs-body); }
  .gate { display: flex; align-items: center; text-align: left; }
  .diamond { top: 50%; left: 22px; transform: translate(-50%, -50%) rotate(45deg); }
}
/* Tablet: drei Leistungen als Zeilen (Titel links, Text rechts), damit keine Zelle allein steht */
@media (min-width: 641px) and (max-width: 1024px) {
  .services { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .services .cell { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr; column-gap: var(--gutter); padding-bottom: 36px; }
  .services .cell > * { grid-column: 1; }
  .services .cell .text { grid-column: 2; grid-row: 1 / span 3; margin-top: 42px; }
}
@media (max-width: 900px) {
  .person .container, .person.flip .container { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .person-photo, .person.flip .person-photo { order: -1; width: 100%; max-width: 420px; }
  :root { --header-h: 65px; }
  .site-header .container { gap: 8px; min-height: 64px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-left: auto; padding: 0;
    border: 0; background: none; color: var(--ink); cursor: pointer;
  }
  .nav-toggle:focus-visible { outline: var(--focus); outline-offset: 2px; }
  .nav-toggle-bars { position: relative; width: 22px; height: 12px; flex: none; }
  .nav-toggle-bars span {
    position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink);
    border-radius: 0; transition: transform .2s ease, opacity .2s ease;
  }
  .nav-toggle-bars span:nth-child(1) { top: 0; }
  .nav-toggle-bars span:nth-child(2) { top: 5px; }
  .nav-toggle-bars span:nth-child(3) { top: 10px; }
  .site-header:has(.nav:popover-open) .nav-toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .site-header:has(.nav:popover-open) .nav-toggle-bars span:nth-child(2) { opacity: 0; }
  .site-header:has(.nav:popover-open) .nav-toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  .nav:not(:popover-open) { display: none; }
  .nav:popover-open {
    display: flex; flex-direction: column; position: fixed; inset: var(--header-h) 0 auto 0;
    margin: 0; width: auto; max-height: calc(100dvh - var(--header-h)); overflow: auto;
    padding: 8px var(--pad-x) 24px; background: var(--paper); border: 0; border-bottom: 1px solid var(--line-2);
    box-shadow: 0 16px 24px -16px rgba(22, 24, 26, .18); gap: 0;
  }
  .nav:popover-open a {
    min-height: 52px; font-size: 20px; border-top: 1px solid var(--line);
  }
  .nav:popover-open a:first-child { border-top: 0; }
  .site-header .btn { flex: none; }
  .quotes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .row { grid-template-columns: minmax(0, 1fr); }
  .row-head { padding-right: 0; }
  .row .text, .row-body { padding-top: 0; padding-left: 56px; }
  .row-body .text { padding-left: 0; }
  .node { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .node .text { padding-top: 0; }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --pad-x: 20px; --section-y: 64px; }
  .site-header .btn { padding: 10px 10px; font-size: 15px; }
  .site-header .brand { gap: 10px; }
  .site-header .wordmark { font-size: 19px; }
  .hero-copy { text-align: left; padding-top: 48px; }
  .hero h1, .hero-sub, .hero .lead { margin-inline: 0; }
  .hero .actions { justify-content: flex-start; }
  .hero-photo, .skills { width: 100%; }
  .skills a { padding: 14px 4px 18px; }
  .skills strong { font-size: 14px; hyphens: auto; }
  .skills span { font-size: 12.5px; }
  .actions { margin-top: 32px; flex-direction: column; align-items: stretch; }
  .hero-stage { height: auto; }
  .hero-photo { padding-top: 40px; }
  .page-head { padding: 48px 0 56px; }
  .page-head .lead { margin-top: 28px; }
  .photo-stage { padding-top: 32px; }
  .sec-body { margin-top: 40px; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .why { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos li { min-height: 88px; font-size: 12px; }
  .marquee { margin-top: 36px; padding-block: 28px; }
  .marquee-track { zoom: 0.8; }
  .path { row-gap: 36px; }
  .node, .gate { padding-left: 64px; }
  .node::after, .gate::after { bottom: -36px; }
  .row { padding: 28px 0; }
  .row-head { grid-template-columns: 40px minmax(0, 1fr); }
  .row .text, .row-body { padding-left: 40px; }
  .row-body .text { padding-left: 0; }
  .bridge { margin-top: 36px; max-width: none; }
  .person .when { font-size: 18px; }
  .quote { padding: 24px; min-height: 200px; }
  .people li { grid-template-columns: minmax(0, 1fr); }
  .contact-list .cta-btn .btn, .cta-box .btn { display: flex; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .site-footer { padding: 56px 0 40px; }
}
@media (max-width: 374px) {
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor-bar, .soon-status::before, .soon-progress span { animation: none; }
  .btn, .more::after { transition: none; }
  .nav-toggle-bars span { transition: none; }
  /* Laufband: still, Logos stehen als Reihe (nur die erste Liste, die Kopie entfällt) */
  .marquee-track { animation: none; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .marquee { mask-image: none; }
  .marquee-track { flex: 1 1 auto; flex-wrap: wrap; justify-content: center; row-gap: 32px; padding-right: 0; }
  .marquee-control, .marquee-toggle { display: none; }
}
/* Kontrastmodus: Symbole, die sonst nur aus Hintergrundfarbe bestehen, bleiben sichtbar (WCAG 1.4.11) */
@media (forced-colors: active) {
  .nav-toggle-bars span { forced-color-adjust: none; background: ButtonText; }
  .cursor-box { forced-color-adjust: none; background: CanvasText; }
  .cursor-bar { forced-color-adjust: none; background: Canvas; }
  .soon-term .cursor-bar { background: CanvasText; }
  .marquee-control::before { border-color: ButtonText; }
  .marquee-control::after { forced-color-adjust: none; background: ButtonText; }
  .marquee { forced-color-adjust: none; background: var(--ink); } /* weiße Logos brauchen ihren dunklen Grund */
  .marquee-toggle:checked + .marquee-control::before { forced-color-adjust: none; background: Highlight; border-color: Highlight; }
}
/* Fallback ohne Popover-API (z. B. Safari < 17): Nav als umbrechende zweite Zeile, kein Hamburger */
@supports not selector(:popover-open) {
  @media (max-width: 900px) {
    .nav-toggle { display: none; }
    .site-header .container { flex-wrap: wrap; }
    .nav { display: flex; order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; gap: 0 24px; }
  }
}

/* ---------- Dezente Bewegung (nur als Zugabe) ----------
   Greift nur, wenn der Browser Scroll-Zeitleisten kann und keine reduzierte Bewegung gewünscht ist.
   Ohne Unterstützung ist alles direkt sichtbar. Nur Verschieben, keine Deckkraft: Der Text behält immer den vollen Kontrast (WCAG 1.4.3). */
@media screen and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .container:not(.split) > .sec-head, .cell, .row, .path, .list li, .person .container > *, .contact-list > div,
    .band p, .why li, .logos, .marquee, .quote, .cta h2 {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    @keyframes rise {
      from { transform: translateY(16px); }
      to { transform: none; }
    }
  }
}

/* ---------- Druck ---------- */
@media print {
  :root { --section-y: 36px; --pad-x: 0px; }
  html { scroll-behavior: auto; }
  body { background: #fff; font-size: 11pt; }
  .skip, .nav, .nav-toggle, .btn, .hero-photo, .photo-stage { display: none; }
  .site-header { position: static; background: none; border-bottom: 1px solid var(--ink); }
  .split .sec-head, .legal-head { position: static; }
  .hero { padding-top: 32px; }
  .band, .dark, .site-footer, .cta .container { background: none; color: var(--ink); }
  .cta .container { padding: 0; }
  .band { padding-block: 28px; border-block: 2px solid var(--ink); }
  .band p { font-size: 20pt; max-width: none; }
  .band p::before, .cta h2::before { display: none; }
  .band .alt, .dark .label, .dark .lead, .dark .text, .footer-grid p, .footer-grid li, .footer-grid a { color: var(--ink); }
  .dot, .diamond, .node:last-child .dot { background: #fff; color: var(--green); }
  .cursor-bar { animation: none; }
  .marquee-control, .footer-link { color: var(--ink); }
  .cell, .row, .node, .person, .list li, .band, .why li { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  a { color: var(--ink); }
}
