/* ============================================================
   marcel-henke.de · v9 „Das Lagebild"
   Die Seite als präzises Kartenwerk: Navy = Kartengrund,
   Gold = Route & Markierung, Cream = Papier & Legende.
   Schriften: Schibsted Grotesk (Display/Text) + Spline Sans Mono
   (Koordinaten, Zonenlabels, Kenndaten). Alles lokal, cookie-frei.
   ============================================================ */

/* ---------- Fonts (lokal, /fonts) ---------- */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Spline Sans Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/spline-sans-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Spline Sans Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/spline-sans-mono-latin-500-normal.woff2") format("woff2");
}

/* ---------- Design-Tokens ---------- */
:root {
  /* Markenkonstanten */
  --navy: #0d1f3c;
  --navy-deep: #091628;
  --gold: #c9a84c;
  --gold-soft: #e2c97a;
  --cream: #f4ede0;

  /* Theme hell: die Papierkarte */
  --bg: #f2ecdd;
  --bg-alt: #eae2cf;
  --surface: #f9f4e8;
  --ink: #10203a;
  --ink-soft: rgba(16, 32, 58, 0.76);
  --ink-dim: rgba(16, 32, 58, 0.68);
  --line: rgba(16, 32, 58, 0.28);
  --line-soft: rgba(16, 32, 58, 0.12);
  --grid: rgba(16, 32, 58, 0.085);
  --accent: #715a1c;
  --route: #9a7b2d;
  --btn-bg: #10203a;
  --btn-ink: #f4ede0;
  --btn-hover: #1a3159;
  --frame: #10203a;
  --shadow: 0 14px 40px -22px rgba(13, 31, 60, 0.4);
  --nav-bg: rgba(242, 236, 221, 0.92);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1830;
    --bg-alt: #081426;
    --surface: #10203a;
    --ink: #f4ede0;
    --ink-soft: rgba(244, 237, 224, 0.78);
    --ink-dim: rgba(244, 237, 224, 0.6);
    --line: rgba(244, 237, 224, 0.3);
    --line-soft: rgba(244, 237, 224, 0.13);
    --grid: rgba(244, 237, 224, 0.05);
    --accent: #c9a84c;
    --route: #c9a84c;
    --btn-bg: #c9a84c;
    --btn-ink: #091628;
    --btn-hover: #e2c97a;
    --frame: rgba(244, 237, 224, 0.75);
    --shadow: 0 14px 40px -20px rgba(0, 0, 0, 0.65);
    --nav-bg: rgba(10, 24, 48, 0.9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1830;
  --bg-alt: #081426;
  --surface: #10203a;
  --ink: #f4ede0;
  --ink-soft: rgba(244, 237, 224, 0.78);
  --ink-dim: rgba(244, 237, 224, 0.6);
  --line: rgba(244, 237, 224, 0.3);
  --line-soft: rgba(244, 237, 224, 0.13);
  --grid: rgba(244, 237, 224, 0.05);
  --accent: #c9a84c;
  --route: #c9a84c;
  --btn-bg: #c9a84c;
  --btn-ink: #091628;
  --btn-hover: #e2c97a;
  --frame: rgba(244, 237, 224, 0.75);
  --shadow: 0 14px 40px -20px rgba(0, 0, 0, 0.65);
  --nav-bg: rgba(10, 24, 48, 0.9);
  color-scheme: dark;
}

/* ---------- Reset & Basis ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.0525rem;
  line-height: 1.62;
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, var(--grid) 0, var(--grid) 1px, transparent 1px, transparent 96px),
    repeating-linear-gradient(90deg, var(--grid) 0, var(--grid) 1px, transparent 1px, transparent 96px),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Kartenblatt-Rahmen um die gesamte Seite */
body::after {
  content: "";
  position: fixed;
  inset: 10px;
  border: 1px solid var(--frame);
  pointer-events: none;
  z-index: 150;
  opacity: 0.55;
}
@media (max-width: 760px) {
  body::after {
    inset: 6px;
  }
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
p a,
.prose li a:not([class]) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
strong {
  font-weight: 700;
}
::selection {
  background: var(--gold);
  color: var(--navy-deep);
}
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--btn-bg);
  color: var(--btn-ink);
  padding: 0.75rem 1.25rem;
  z-index: 500;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- Typografie ---------- */
h1,
h2,
h3,
.display {
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
}
h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
p {
  text-wrap: pretty;
}
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 52ch;
}
em.gold-italic,
.gold-italic {
  font-style: normal;
  color: var(--accent);
}
/* Zonenlabel: kartografische Beschriftung, ersetzt das alte Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.coords {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

/* ---------- Layout ---------- */
.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}
.section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  position: relative;
}
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line-soft);
}
.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2.2rem, 5vw, 3.6rem);
}
.section-head p {
  margin-top: 1.1rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 58ch;
}

/* ---------- Buttons: präzise Kontrollelemente ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 1.7rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
}
.btn-primary:hover {
  background: var(--btn-hover);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-arrow::after {
  content: "→";
  transition: transform 0.2s ease;
}
.btn-arrow:hover::after {
  transform: translateX(4px);
}
.text-link {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.text-link:hover {
  border-color: var(--accent);
}
.text-link::after {
  content: " →";
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 200;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.25s ease;
}
.nav.scrolled {
  box-shadow: 0 10px 30px -18px rgba(9, 22, 40, 0.45);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 78px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
}
.nav-brand img {
  height: 44px;
  width: auto;
}
.nav-brand span {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}
.nav-links a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
}
.nav-links .btn {
  padding: 0.62rem 1.15rem;
  font-size: 0.72rem;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.theme-toggle,
.nav-burger {
  width: 42px;
  height: 42px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover,
.nav-burger:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.theme-toggle svg,
.nav-burger svg {
  width: 19px;
  height: 19px;
}
.theme-toggle .icon-sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}
:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }
}
.nav-burger {
  display: none;
}
@media (max-width: 980px) {
  .nav-burger {
    display: inline-flex;
  }
  .nav-links {
    position: fixed;
    top: 78px;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 4vw 1.25rem;
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-links li:last-child {
    border-bottom: none;
    padding-top: 1rem;
  }
  .nav-links a:not(.btn) {
    display: block;
    padding: 0.9rem 0.25rem;
    font-size: 1.05rem;
  }
  .nav-links .btn {
    width: 100%;
  }
}

/* ---------- Hero: das Kartenblatt öffnet ---------- */
.hero {
  position: relative;
  padding-top: clamp(8.5rem, 13vw, 11rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.hero .coords {
  display: block;
  margin-bottom: 1.6rem;
}
.hero h1 {
  margin-bottom: 1.5rem;
}
.hero .lead {
  margin-bottom: 2.4rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}
.hero-contactline {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--ink-dim);
}
.hero-contactline a {
  color: var(--accent);
  font-weight: 500;
}
/* Porträt als annotierte Aufnahme */
.hero-figure {
  position: relative;
  padding: 10px;
}
.hero-figure::before,
.hero-figure::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid var(--accent);
  pointer-events: none;
}
.hero-figure::before {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}
.hero-figure::after {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.03);
  box-shadow: var(--shadow);
}
.hero-figure figcaption {
  margin-top: 0.9rem;
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-figure figcaption strong {
  color: var(--ink);
  font-weight: 500;
  font-family: inherit;
}
.hero-figure figcaption span {
  font-family: inherit;
}

/* ---------- Legende (ersetzt das Statistik-Band) ---------- */
.stats {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stats::before {
  content: "Legende — Kenndaten";
  grid-column: 1 / -1;
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 0.7rem 1.2rem;
  border-bottom: 1px solid var(--line-soft);
}
.stat {
  padding: 1.2rem 1.2rem 1.3rem;
  border-right: 1px solid var(--line-soft);
}
.stat:last-child {
  border-right: none;
}
.stat b {
  display: block;
  font-family: "Spline Sans Mono", monospace;
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: var(--accent);
  line-height: 1.15;
}
.stat span {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.45;
  display: block;
  margin-top: 0.3rem;
}
@media (max-width: 860px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat:nth-child(odd) {
    border-right: none;
  }
  .stat {
    border-bottom: 1px solid var(--line-soft);
  }
}

/* ---------- Einsatzgebiete (Leistungssäulen) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border-top: 1px solid var(--line-soft);
  transition: background 0.25s ease;
}
.pillar:hover {
  background: color-mix(in srgb, var(--surface) 88%, var(--gold) 12%);
}
.pillar-num {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.pillar h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}
.pillar p {
  color: var(--ink-soft);
  flex-grow: 1;
}
.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.tag {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.pillar-major {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  border-top: none;
}
.pillar-major .pillar-badge {
  position: absolute;
  top: 0;
  right: 0;
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--btn-ink);
  background: var(--btn-bg);
  padding: 0.4rem 0.9rem;
}
.pillar-major-aside {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  border-left: 1px solid var(--line);
  padding-left: 1.8rem;
  list-style: none;
}
.pillar-major-aside li {
  padding-left: 1.3rem;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.pillar-major-aside li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.pillar-minor {
  grid-column: span 6;
}
.pillar-minor + .pillar-minor {
  border-left: 1px solid var(--line-soft);
}
@media (max-width: 860px) {
  .pillar-major {
    grid-template-columns: 1fr;
  }
  .pillar-major-aside {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 1.3rem;
  }
  .pillar-minor {
    grid-column: span 12;
  }
  .pillar-minor + .pillar-minor {
    border-left: none;
  }
}

/* Routen-Verbindungsstücke: die Route läuft als Rückgrat durch die Zonen */
.route-connector {
  width: 0;
  height: clamp(2.2rem, 4vw, 3.2rem);
  border-left: 2px dashed var(--route);
  margin: -1rem auto clamp(1.6rem, 3vw, 2.4rem);
  opacity: 0.75;
  position: relative;
}
.route-connector::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: -5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--route);
}

/* ---------- Die Route (Vorgehen) ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 1.6rem;
  counter-reset: step;
}
.steps::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 8px;
  right: 8px;
  border-top: 2px dashed var(--route);
  opacity: 0.75;
}
.step {
  position: relative;
  padding-top: 2rem;
}
.step::before {
  counter-increment: step;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--route);
}
.step::after {
  content: "Station 0" counter(step);
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  position: absolute;
  top: 1px;
  left: 26px;
  background: var(--bg-alt);
  padding-inline: 6px 8px;
}
.section:not(.section-alt) .step::after {
  background: var(--bg);
}
.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.step p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.steps-five {
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1060px) {
  .steps-five {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 2.2rem;
  }
}
@media (max-width: 860px) {
  .steps,
  .steps-five {
    grid-template-columns: 1fr;
    row-gap: 2rem;
    padding-left: 26px;
  }
  .steps::before {
    top: 8px;
    bottom: 8px;
    left: 7px;
    right: auto;
    border-top: none;
    border-left: 2px dashed var(--route);
  }
  .step {
    padding-top: 0;
  }
  .step::before {
    left: -26px;
    top: 2px;
  }
  .step::after {
    position: static;
    display: block;
    margin-bottom: 0.4rem;
  }
}

/* ---------- Zur Person ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.about-figure {
  position: relative;
  padding: 10px;
}
.about-figure::before,
.about-figure::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid var(--accent);
  pointer-events: none;
}
.about-figure::before {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}
.about-figure::after {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}
.about-figure img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.03);
  box-shadow: var(--shadow);
}
.about-motto {
  position: absolute;
  right: -0.6rem;
  bottom: -1rem;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 0.85rem 1.2rem;
  box-shadow: var(--shadow);
}
.about-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-block: 1.8rem;
  border: 1px solid var(--line);
}
.about-facts div {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line-soft);
}
.about-facts div:nth-child(odd) {
  border-right: 1px solid var(--line-soft);
}
.about-facts div:nth-last-child(-n + 2) {
  border-bottom: none;
}
.about-facts b {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.about-facts span {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-motto {
    right: 0.4rem;
  }
  .about-facts {
    grid-template-columns: 1fr;
  }
  .about-facts div:nth-child(odd) {
    border-right: none;
  }
  .about-facts div:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }
  .about-facts div:last-child {
    border-bottom: none;
  }
}

/* ---------- Warum ich: Registerliste statt Kartenraster ---------- */
.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  counter-reset: merkmal;
}
.value {
  padding: clamp(1.4rem, 2.6vw, 2rem);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  transition: background 0.25s ease;
}
.value:nth-child(odd) {
  border-right: 1px solid var(--line-soft);
}
.value:nth-last-child(-n + 2) {
  border-bottom: none;
}
.value:hover {
  background: color-mix(in srgb, var(--surface) 88%, var(--gold) 12%);
}
.value h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
  padding-left: 2.2rem;
  position: relative;
}
.value h3::before {
  counter-increment: merkmal;
  content: counter(merkmal, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.18em;
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.value p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding-left: 2.2rem;
}
.value .step-link {
  margin-left: 2.2rem;
}
@media (max-width: 860px) {
  .values {
    grid-template-columns: 1fr;
  }
  .value:nth-child(odd) {
    border-right: none;
  }
  .value:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }
  .value:last-child {
    border-bottom: none;
  }
}

/* ---------- Werdegang-Timeline ---------- */
.timeline {
  position: relative;
  margin-block: 2rem;
  padding-left: 2.2rem;
  border-left: 2px dashed var(--route);
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}
.timeline-item {
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-2.2rem - 8px);
  top: 0.4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--route);
}
.timeline-item .when {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.timeline-item h3 {
  margin-block: 0.35rem 0.45rem;
}
.timeline-item p {
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- Kontakt: der Meldekopf ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.channel {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.15rem 1.3rem;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.2s ease;
}
.channel:last-child {
  border-bottom: none;
}
.channel:hover {
  background: color-mix(in srgb, var(--surface) 88%, var(--gold) 12%);
}
.channel .ico {
  width: 42px;
  height: 42px;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.channel .ico svg {
  width: 19px;
  height: 19px;
}
.channel b {
  display: block;
  font-family: "Spline Sans Mono", monospace;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}
.channel span {
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.contact-note {
  margin-top: 1.3rem;
  font-size: 0.9rem;
  color: var(--ink-dim);
}
.contact-note a {
  color: var(--accent);
}

/* Formblatt */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  position: relative;
}
.form-card::before {
  content: "Anfrage — vertraulich";
  display: block;
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 0.8rem;
  margin-bottom: 1.4rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.field label {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.8rem 1rem;
  transition: border-color 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.field-file {
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.field-file input {
  padding: 0.6rem;
  font-size: 0.85rem;
}
.form-hint {
  font-size: 0.78rem;
  color: var(--ink-dim);
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  display: none;
  padding: 0.9rem 1.1rem;
  border-radius: 2px;
}
.form-status.ok {
  display: block;
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid rgba(76, 175, 80, 0.45);
}
.form-status.err {
  display: block;
  background: rgba(211, 77, 77, 0.12);
  border: 1px solid rgba(211, 77, 77, 0.5);
}

/* ---------- Footer: der Kartenrand ---------- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.2rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer h3 {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer a {
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.footer a:hover {
  color: var(--accent);
}
.footer-brand p {
  color: var(--ink-soft);
  max-width: 34ch;
  margin-top: 0.8rem;
}
.footer-brand img {
  height: 50px;
  width: auto;
}
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: var(--ink-dim);
  font-size: 0.85rem;
}
.footer-bottom nav {
  display: flex;
  gap: 1.5rem;
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Seiten-Hero (Unterseiten) ---------- */
.page-hero {
  padding-top: clamp(8.5rem, 13vw, 10.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.page-hero .lead {
  margin-top: 1.3rem;
  max-width: 58ch;
}
.breadcrumb {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 1.4rem;
}
.breadcrumb a {
  color: var(--ink-dim);
}
.breadcrumb a:hover {
  color: var(--accent);
}

/* ---------- Prose ---------- */
.prose {
  max-width: 72ch;
}
.prose h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  margin-block: 2.4rem 0.8rem;
}
.prose h3 {
  margin-block: 1.6rem 0.5rem;
}
.prose p,
.prose li {
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}
.prose ul {
  padding-left: 1.2rem;
}
.prose li::marker,
.overlay-inner li::marker {
  color: var(--accent);
}

/* ---------- CTA-Banner ---------- */
.cta-banner {
  background: var(--btn-bg);
  color: var(--btn-ink);
  padding: clamp(2.2rem, 5vw, 3.6rem);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 2rem;
  align-items: center;
  position: relative;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid color-mix(in srgb, var(--btn-ink) 35%, transparent);
  pointer-events: none;
}
.cta-banner h2 {
  color: var(--btn-ink);
}
.cta-banner p {
  margin-top: 0.8rem;
  opacity: 0.85;
}
.cta-banner .btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}
.cta-banner .btn-primary:hover {
  background: var(--gold-soft);
}
.cta-banner .btn-ghost {
  border-color: color-mix(in srgb, var(--btn-ink) 40%, transparent);
  color: var(--btn-ink);
}
@media (max-width: 760px) {
  .cta-banner {
    grid-template-columns: 1fr;
  }
}

/* ---------- Overlays: der Vermerk ---------- */
.step-link {
  display: inline-block;
  margin-top: 0.9rem;
}
dialog.overlay {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  width: min(640px, 92vw);
  max-height: min(84vh, 900px);
  padding: 0;
  margin: auto;
  box-shadow: var(--shadow);
}
dialog.overlay::backdrop {
  background: rgba(9, 22, 40, 0.6);
  backdrop-filter: blur(3px);
}
.overlay-inner {
  padding: clamp(1.6rem, 4vw, 2.4rem);
  overflow-y: auto;
  max-height: inherit;
}
.overlay-inner .eyebrow {
  margin-bottom: 0.6rem;
}
.overlay-inner h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin-bottom: 0.8rem;
}
.overlay-inner h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 1.3rem 0 0.35rem;
}
.overlay-inner p,
.overlay-inner li {
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.overlay-inner ul {
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.overlay-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.overlay-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.overlay-cta {
  margin-top: 1.6rem;
}

/* ---------- Motion ---------- */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero .coords,
.hero h1,
.hero .lead,
.hero .hero-ctas,
.hero .hero-contactline,
.page-hero .breadcrumb,
.page-hero .eyebrow,
.page-hero h1,
.page-hero .lead,
.page-hero .hero-ctas {
  animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.hero h1,
.page-hero h1 {
  animation-delay: 0.08s;
}
.hero .lead,
.page-hero .lead {
  animation-delay: 0.16s;
}
.hero .hero-ctas,
.page-hero .hero-ctas {
  animation-delay: 0.24s;
}
.hero .hero-contactline {
  animation-delay: 0.3s;
}
.hero .hero-figure,
.page-hero .hero-figure {
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s backwards;
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
/* Die Route zeichnet sich, Stationen erscheinen nacheinander */
.steps.reveal::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}
.steps.reveal.visible::before {
  transform: scaleX(1);
}
.steps.reveal > .step,
.values.reveal > .value {
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.steps.reveal.visible > .step,
.values.reveal.visible > .value {
  opacity: 1;
}
.steps.reveal.visible > :nth-child(2),
.values.reveal.visible > :nth-child(2) {
  transition-delay: 0.12s;
}
.steps.reveal.visible > :nth-child(3),
.values.reveal.visible > :nth-child(3) {
  transition-delay: 0.24s;
}
.steps.reveal.visible > :nth-child(4),
.values.reveal.visible > :nth-child(4) {
  transition-delay: 0.36s;
}
.steps.reveal.visible > :nth-child(5),
.values.reveal.visible > :nth-child(5) {
  transition-delay: 0.48s;
}
.steps.reveal.visible > :nth-child(6),
.values.reveal.visible > :nth-child(6) {
  transition-delay: 0.6s;
}
dialog.overlay[open] {
  animation: rise-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes backdrop-in {
  from {
    opacity: 0;
  }
}
dialog.overlay[open]::backdrop {
  animation: backdrop-in 0.28s ease;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .steps.reveal > .step,
  .values.reveal > .value {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .steps.reveal::before {
    transform: none;
    transition: none;
  }
  .hero .coords,
  .hero h1,
  .hero .lead,
  .hero .hero-ctas,
  .hero .hero-contactline,
  .hero .hero-figure,
  .page-hero .breadcrumb,
  .page-hero .eyebrow,
  .page-hero h1,
  .page-hero .lead,
  .page-hero .hero-ctas,
  .page-hero .hero-figure,
  dialog.overlay[open],
  dialog.overlay[open]::backdrop {
    animation: none;
  }
}

/* ---------- Mobile Basisanpassungen ---------- */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-figure {
    max-width: 420px;
  }
}
