/* ==========================================================================
   Deep Blue Survey — Design System
   Keine externen Ressourcen (keine Google Fonts, kein CDN) → schnell + DSGVO-sauber
   ========================================================================== */

/* --- 1. Design Tokens --------------------------------------------------- */
:root {
  /* Marke / Navy (aus dem Logo abgeleitet) */
  --navy-950: #05101d;
  --navy-900: #071a2e;
  --navy-850: #0a2440;
  --navy-800: #0e2e50;
  --brand-800: #1c1b4f;
  --brand-700: #262261;   /* Logo-Indigo */
  --brand-600: #322d7d;

  /* Wasser / Akzent */
  --cyan-600: #0b7f9b;
  --cyan-500: #1099b8;
  --cyan-400: #35bdd8;
  --cyan-300: #7ad7e8;
  --cyan-100: #d8f2f8;

  /* Signal */
  --sand-400: #e0b473;
  --sand-100: #fbf1de;

  /* Flächen */
  --surface: #ffffff;
  --surface-2: #f4f8fb;
  --surface-3: #e9f1f7;
  --line: #d9e4ee;
  --line-strong: #c2d3e2;

  /* Text */
  --text: #0b1a28;
  --text-muted: #4d6376;
  --text-on-dark: #e8f1f8;
  --text-on-dark-muted: #9fb8ca;

  /* Typografie */
  --font-sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui,
    -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "SF Mono", Menlo,
    Consolas, monospace;

  /* Raster & Rhythmus */
  --wrap: 1180px;
  --wrap-narrow: 780px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 8vw, 7.5rem);

  /* Radien */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Schatten */
  --sh-sm: 0 1px 2px rgba(7, 26, 46, .06), 0 2px 8px rgba(7, 26, 46, .04);
  --sh-md: 0 2px 4px rgba(7, 26, 46, .05), 0 12px 28px -8px rgba(7, 26, 46, .12);
  --sh-lg: 0 4px 8px rgba(7, 26, 46, .06), 0 28px 60px -16px rgba(7, 26, 46, .22);

  /* Konturlinien-Textur für dunkle Sektionen */
  --contours: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='600' viewBox='0 0 1200 600'%3E%3Cg fill='none' stroke='%2335bdd8' stroke-width='1.1' opacity='.16'%3E%3Cpath d='M-40 120C160 60 300 190 470 150 640 110 760 20 980 60c120 22 190 8 300-30'/%3E%3Cpath d='M-40 190C170 130 300 255 480 215 660 175 780 90 1000 128c120 21 180 8 280-28'/%3E%3Cpath d='M-40 262C180 200 305 322 492 282 680 242 796 160 1016 196c118 20 172 6 264-26'/%3E%3Cpath d='M-40 336C190 272 312 390 505 350 700 310 812 232 1032 266c114 18 160 4 248-24'/%3E%3Cpath d='M-40 412C200 346 320 460 518 420 718 380 828 306 1048 338c108 16 148 2 232-22'/%3E%3Cpath d='M-40 490C210 422 328 532 531 492 736 452 844 382 1064 412c102 14 136 0 216-20'/%3E%3C/g%3E%3C/svg%3E");
}

/* --- 2. Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  font-family: var(--font-sans);
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, picture { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--cyan-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-700); }

:focus-visible {
  outline: 3px solid var(--cyan-500);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* --- 3. Typografie ------------------------------------------------------ */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.021em;
  color: var(--navy-900);
  text-wrap: balance;
  /* Deutsche Komposita ("Sedimentmächtigkeit", "genehmigungsfreundlich") sind
     länger als schmale Karten breit sind. hyphens:auto trennt sie nach den
     Silbenregeln von lang="de"; overflow-wrap ist die Notbremse, falls der
     Browser keine Trennmuster hat. Ohne das ragt Text aus der Box heraus.   */
  hyphens: auto;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.75rem); }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.85vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.08rem + .6vw, 1.5rem); letter-spacing: -.014em; }
h4 { font-size: 1.075rem; letter-spacing: -.008em; }

p, li { text-wrap: pretty; }
strong { font-weight: 650; color: var(--navy-850); }

.lead {
  font-size: clamp(1.075rem, 1rem + .5vw, 1.32rem);
  line-height: 1.55;
  color: var(--text-muted);
}

.muted { color: var(--text-muted); }
.small { font-size: .875rem; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Eyebrow / Kicker */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan-600);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  flex: none;
  background: var(--cyan-500);
}
.eyebrow--center { justify-content: center; }

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

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.75rem, 5vw, 4.5rem); }
.section--alt { background: var(--surface-2); }
.section--line { border-top: 1px solid var(--line); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1rem; }

.stack > * + * { margin-top: 1.1rem; }
.stack-sm > * + * { margin-top: .55rem; }

/* Dunkle Sektion */
.section--dark {
  position: relative;
  background:
    radial-gradient(1200px 520px at 12% -10%, rgba(53, 189, 216, .18), transparent 62%),
    linear-gradient(165deg, var(--navy-900) 0%, var(--navy-950) 55%, var(--brand-800) 130%);
  color: var(--text-on-dark);
  overflow: hidden;
}
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--contours);
  background-size: 1200px auto;
  background-position: center bottom;
  background-repeat: repeat;
  pointer-events: none;
}
.section--dark > * { position: relative; }
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }
.section--dark p,
.section--dark li { color: var(--text-on-dark-muted); }
.section--dark .lead { color: var(--cyan-100); }
.section--dark .eyebrow { color: var(--cyan-400); }
.section--dark .eyebrow::before { background: var(--cyan-400); }
.section--dark strong { color: #fff; }
.section--dark a { color: var(--cyan-300); }

/* Grids */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }

/* --- 5. Skip-Link ------------------------------------------------------ */
.skip {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2000;
  transform: translate(-50%, -140%);
  padding: .7rem 1.25rem;
  background: var(--navy-900);
  color: #fff;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  transition: transform .18s ease;
}
.skip:focus { transform: translate(-50%, 0); color: #fff; }

/* --- 6. Header & Navigation ------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  color: var(--navy-900);
  flex: none;
}
.brand img { width: 46px; height: 46px; }
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name b {
  font-size: 1.075rem;
  font-weight: 750;
  letter-spacing: -.02em;
}
.brand-name span {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .55rem;
  padding: .55rem .85rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: .82rem;
  font-weight: 650;
  color: var(--navy-900);
  cursor: pointer;
}
.nav-toggle .bars {
  position: relative;
  width: 17px;
  height: 11px;
  flex: none;
}
.nav-toggle .bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-900);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle .bars i:nth-child(1) { top: 0; }
.nav-toggle .bars i:nth-child(2) { top: 4.5px; }
.nav-toggle .bars i:nth-child(3) { top: 9px; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: .15rem;
}
/* Nur echte Navigationslinks — Buttons (.btn) behalten ihre eigenen Farben,
   sonst überschreibt die höhere Spezifität von ".nav-menu a" die Button-Schrift. */
.nav-menu a:not(.btn) {
  display: block;
  padding: .55rem .8rem;
  border-radius: var(--r-sm);
  font-size: .945rem;
  font-weight: 600;
  color: var(--navy-850);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav-menu a:not(.btn):hover { background: var(--surface-3); color: var(--brand-700); }
.nav-menu a[aria-current="page"]:not(.btn) {
  color: var(--cyan-600);
  background: var(--cyan-100);
}

/* Handlungsaufforderung in der Navigation: immer weiße Schrift */
.nav-cta { flex: none; }
.nav-menu a.nav-cta,
.nav-menu a.nav-cta:hover,
.nav-menu a.nav-cta:focus-visible,
.nav-menu a.nav-cta[aria-current="page"] {
  color: #fff;
  text-decoration: none;
}
.nav-menu a.nav-cta[aria-current="page"] { background: var(--brand-600); }

/* Dropdown */
.has-sub { position: relative; }
.has-sub > button {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem .8rem;
  background: none;
  border: 0;
  border-radius: var(--r-sm);
  font-size: .945rem;
  font-weight: 600;
  color: var(--navy-850);
  cursor: pointer;
}
.has-sub > button:hover { background: var(--surface-3); color: var(--brand-700); }
.has-sub > button.is-current { color: var(--cyan-600); background: var(--cyan-100); }
.has-sub > button svg { transition: transform .2s ease; }
.has-sub > button[aria-expanded="true"] svg { transform: rotate(180deg); }

.subnav {
  position: absolute;
  top: calc(100% + .6rem);
  left: 0;
  z-index: 20;
  min-width: 20rem;
  padding: .55rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.has-sub > button[aria-expanded="true"] + .subnav {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.subnav a {
  padding: .6rem .75rem;
  white-space: normal;
  line-height: 1.35;
}
.subnav a span {
  display: block;
  font-size: .8rem;
  font-weight: 450;
  color: var(--text-muted);
  margin-top: .1rem;
}

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: .1rem;
    padding: .75rem var(--gutter) 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-md);
    max-height: calc(100dvh - 4.5rem);
    overflow-y: auto;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a, .has-sub > button { width: 100%; padding: .8rem .75rem; font-size: 1rem; }
  .has-sub > button { justify-content: space-between; }
  .subnav {
    position: static;
    display: none;
    min-width: 0;
    margin: .2rem 0 .5rem .75rem;
    padding: .25rem;
    border-left: 2px solid var(--cyan-100);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-top: 0; border-right: 0; border-bottom: 0;
  }
  .has-sub > button[aria-expanded="true"] + .subnav { display: block; }
  .nav-cta { margin-top: .6rem; }
}

/* --- 7. Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: .96rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease,
    transform .16s ease, box-shadow .16s ease;
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn--primary {
  background: var(--brand-700);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(38, 34, 97, .7);
}
.btn--primary:hover { background: var(--brand-600); color: #fff; }

.btn--accent {
  background: var(--cyan-500);
  color: #04222b;
  box-shadow: 0 6px 18px -8px rgba(16, 153, 184, .8);
}
.btn--accent:hover { background: var(--cyan-400); color: #04222b; }

.btn--outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--navy-900);
}
.btn--outline:hover { border-color: var(--brand-700); background: var(--surface-2); color: var(--brand-700); }

.btn--ghost-light {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .34);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.btn--lg { padding: 1rem 1.75rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.85rem;
}

/* Textlink mit Pfeil */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--cyan-600);
}
.arrow-link::after {
  content: "→";
  transition: transform .18s ease;
}
.arrow-link:hover::after { transform: translateX(4px); }

/* --- 8. Hero ----------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(84svh, 46rem);
  padding-block: clamp(4.5rem, 10vw, 8rem) clamp(2.5rem, 5vw, 4rem);
  background: var(--navy-950);
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media video { opacity: 0; transition: opacity .9s ease; }
.hero-media video.is-visible { opacity: 1; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(5, 16, 29, .94) 0%, rgba(5, 16, 29, .72) 34%, rgba(5, 16, 29, .34) 68%, rgba(5, 16, 29, .5) 100%),
    linear-gradient(105deg, rgba(28, 27, 79, .62) 0%, rgba(5, 16, 29, .1) 62%);
}

.hero-content { max-width: 46rem; color: #fff; }
.hero-content h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .38); }
.hero-content .eyebrow { color: var(--cyan-300); }
.hero-content .eyebrow::before { background: var(--cyan-400); }
.hero-content .lead {
  margin-top: 1.15rem;
  color: #d5e6f2;
  max-width: 38rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .35);
}

/* Kennzahlen-Leiste unter dem Hero */
.hero-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-md);
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.hero-facts div {
  padding: 1.1rem 1.25rem;
  background: rgba(7, 26, 46, .52);
}
.hero-facts b {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  color: #fff;
}
.hero-facts span {
  display: block;
  margin-top: .2rem;
  font-size: .8rem;
  line-height: 1.35;
  color: var(--cyan-100);
}

/* Seiten-Hero (Unterseiten) */
.page-hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(900px 420px at 88% -20%, rgba(53, 189, 216, .22), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 62%, var(--brand-800) 130%);
  color: var(--text-on-dark);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--contours);
  background-size: 1200px auto;
  background-position: right bottom;
  opacity: .8;
  pointer-events: none;
}
.page-hero > * { position: relative; }
.page-hero h1 { color: #fff; max-width: 34ch; }
.page-hero .lead { margin-top: 1.15rem; max-width: 60ch; color: var(--cyan-100); }
.page-hero .eyebrow { color: var(--cyan-400); }
.page-hero .eyebrow::before { background: var(--cyan-400); }
.page-hero .btn-row { margin-top: 2rem; }

/* --- 9. Breadcrumb ---------------------------------------------------- */
.breadcrumb { padding-block: .9rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--text-muted);
}
.breadcrumb li { display: flex; align-items: center; gap: .5rem; }
.breadcrumb li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan-600); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--navy-850); font-weight: 600; }

/* --- 10. Cards --------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
}
.card > * + * { margin-top: .8rem; }
.card p { color: var(--text-muted); }
.card h3 + p, .card h4 + p { margin-top: .55rem; }

.card--link {
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card--link:hover {
  border-color: var(--cyan-300);
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
  color: inherit;
}
.card--link .arrow-link { margin-top: auto; padding-top: 1rem; }

.card--flat { box-shadow: none; background: var(--surface-2); }

.section--dark .card {
  background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: none;
  backdrop-filter: blur(6px);
}
.section--dark .card--link:hover {
  background: rgba(255, 255, 255, .09);
  border-color: var(--cyan-400);
}

/* Icon im Kartenkopf */
.card-icon {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  margin-bottom: .35rem;
  border-radius: 10px;
  background: var(--cyan-100);
  color: var(--cyan-600);
  flex: none;
}
.card-icon svg { width: 1.5rem; height: 1.5rem; }
.section--dark .card-icon { background: rgba(53, 189, 216, .16); color: var(--cyan-300); }

/* Nummerierte Karte */
.card-num {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .12em;
  color: var(--cyan-600);
}
.section--dark .card-num { color: var(--cyan-400); }

/* --- 11. Split / Feature-Reihen --------------------------------------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
}
.split--reverse > *:first-child { order: 2; }
.split--wide-media { grid-template-columns: 1fr; }
@media (min-width: 62rem) {
  .split--media-60 { grid-template-columns: 1.35fr 1fr; }
  .split--text-60 { grid-template-columns: 1fr 1.35fr; }
  .split--wide-media { grid-template-columns: 1.6fr 1fr; }
}
.split + .split { margin-top: clamp(3rem, 7vw, 6rem); }

.figure { margin: 0; }
.figure img, .figure svg, .figure video {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.figure--plain img { border: 0; background: none; }
.figure--shadow img, .figure--shadow video { box-shadow: var(--sh-lg); border: 0; }
.figure figcaption {
  margin-top: .8rem;
  font-size: .84rem;
  line-height: 1.5;
  color: var(--text-muted);
  padding-left: .85rem;
  border-left: 2px solid var(--cyan-300);
}
.section--dark .figure figcaption { color: var(--text-on-dark-muted); }
.section--dark .figure img,
.section--dark .figure svg { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); }

/* Skizzen bekommen einen weißen Hintergrund, auch in dunklen Sektionen.
   Die zweite Zeile ist nötig, weil ".section--dark .figure img" mit zwei
   Klassen die höhere Spezifität hat und den weißen Grund sonst überschreibt —
   die dunklen Beschriftungen in den Skizzen wären dann unlesbar. */
.figure--sketch img,
.section--dark .figure--sketch img {
  background: #fff;
  padding: clamp(.75rem, 2vw, 1.5rem);
}

/* Verlinkte Skizzen: Der Link soll sich wie das Bild selbst verhalten, also
   keinen eigenen Textfluss und keine Linkfarbe mitbringen. */
.figure a {
  display: block;
  line-height: 0;
  text-decoration: none;
}
.figure a:focus-visible { outline: 3px solid var(--cyan-500); outline-offset: 3px; }
.figure a img { transition: filter .18s ease; }
.figure a:hover img { filter: brightness(1.03) saturate(1.05); }

/* Hinweis „zum Vergrößern anklicken" – auf Touchgeräten sinnlos, dort ausgeblendet */
.figure-zoom {
  display: inline-block;
  margin-left: .5rem;
  padding-left: 1.25rem;
  position: relative;
  font-weight: 600;
  color: var(--cyan-600);
  white-space: nowrap;
}
.figure-zoom::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: .85rem;
  height: .85rem;
  transform: translateY(-50%);
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: .42rem .42rem 0 -.28rem currentColor;
}
.section--dark .figure-zoom { color: var(--cyan-300); }
@media (hover: none) {
  .figure-zoom { display: none; }
}

/* --- 12. Listen -------------------------------------------------------- */
.check > li,
.dot > li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .7rem;
  line-height: 1.55;
}
.check > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--cyan-100);
  border: 1px solid var(--cyan-300);
}
.check > li::after {
  content: "";
  position: absolute;
  left: .3rem;
  top: .72em;
  width: .42rem;
  height: .22rem;
  border-left: 2px solid var(--cyan-600);
  border-bottom: 2px solid var(--cyan-600);
  transform: rotate(-45deg);
}
.section--dark .check > li::before { background: rgba(53, 189, 216, .18); border-color: rgba(53, 189, 216, .5); }
.section--dark .check > li::after { border-color: var(--cyan-300); }

.dot > li::before {
  content: "";
  position: absolute;
  left: .3rem;
  top: .68em;
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: var(--cyan-500);
}

.deflist { display: grid; gap: 1.4rem; }
.deflist dt {
  font-weight: 650;
  color: var(--navy-850);
  margin-bottom: .25rem;
}
.deflist dd { margin: 0; color: var(--text-muted); }

/* --- 13. Kennzahlen ---------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: var(--brand-700);
}
.stat span {
  display: block;
  margin-top: .45rem;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.section--dark .stat b { color: var(--cyan-400); }

/* --- 14. Prozess-Schritte --------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
@media (min-width: 60rem) { .steps--5 { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 48rem) { .steps--4 { grid-template-columns: repeat(4, 1fr); } .steps--3 { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  counter-increment: step;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--surface);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: .85rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--cyan-600);
}
.steps h3 { font-size: 1.075rem; margin-bottom: .45rem; }
.steps p { font-size: .92rem; color: var(--text-muted); }

/* --- 15. Tabellen ----------------------------------------------------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
table.spec caption {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 650;
  color: var(--navy-850);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
table.spec th,
table.spec td {
  padding: .85rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
table.spec tr:last-child th,
table.spec tr:last-child td { border-bottom: 0; }
table.spec th {
  width: 38%;
  font-weight: 600;
  color: var(--text-muted);
}
table.spec td { font-weight: 550; color: var(--navy-850); font-variant-numeric: tabular-nums; }
table.spec td small { display: block; margin-top: .2rem; font-weight: 400; color: var(--text-muted); }
table.spec tbody tr:nth-child(even) { background: var(--surface-2); }

@media (max-width: 34rem) {
  table.spec th, table.spec td { display: block; width: 100%; }
  table.spec th { padding-bottom: .1rem; border-bottom: 0; color: var(--cyan-600); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
}

/* --- 16. Pills / Tags ------------------------------------------------- */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy-850);
  text-decoration: none;
}
.pill--accent { background: var(--cyan-100); border-color: var(--cyan-300); color: var(--cyan-600); }
.section--dark .pill {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .2);
  color: var(--cyan-100);
}
a.pill:hover { border-color: var(--cyan-500); color: var(--cyan-600); }

/* --- 17. Callout / Notiz ---------------------------------------------- */
.callout {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: var(--r-md);
  border: 1px solid var(--cyan-300);
  border-left-width: 4px;
  background: var(--cyan-100);
}
.callout h3, .callout h4 { color: var(--navy-900); margin-bottom: .5rem; }
.callout p { color: #235064; }
.callout--sand { border-color: var(--sand-400); background: var(--sand-100); }
.callout--sand p { color: #6b4d1c; }

/* --- 18. FAQ ---------------------------------------------------------- */
.faq { display: grid; gap: .75rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}
.faq details[open] { border-color: var(--cyan-300); }
.faq summary {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  font-weight: 650;
  font-size: 1.02rem;
  color: var(--navy-900);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: .7rem;
  height: .7rem;
  margin-top: .38rem;
  margin-left: auto;
  border-right: 2px solid var(--cyan-600);
  border-bottom: 2px solid var(--cyan-600);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--brand-700); }
.faq .faq-body { padding: 0 1.35rem 1.35rem; }
.faq .faq-body > * + * { margin-top: .8rem; }
.faq .faq-body p, .faq .faq-body li { color: var(--text-muted); }

/* --- 19. CTA-Band ----------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 30ch; margin-inline: auto; }
.cta-band .lead { max-width: 52ch; margin: 1.15rem auto 0; }
.cta-band .btn-row { justify-content: center; }
.cta-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-family: var(--font-mono);
  font-size: .9rem;
}
.cta-contact a { color: var(--cyan-300); text-decoration: none; }
.cta-contact a:hover { text-decoration: underline; }

/* --- 20. Video ------------------------------------------------------- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--navy-900);
  box-shadow: var(--sh-lg);
}
.video-frame video,
.video-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --- 21. Formular ---------------------------------------------------- */
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .88rem; font-weight: 650; color: var(--navy-850); }
.field .hint { font-size: .8rem; color: var(--text-muted); }
.field input,
.field select,
.field textarea {
  padding: .75rem .9rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--cyan-500); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(16, 153, 184, .18);
}
.field textarea { resize: vertical; min-height: 9rem; }
.field--req label::after { content: " *"; color: var(--cyan-600); }
.consent {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.consent input { width: 1.1rem; height: 1.1rem; margin-top: .18rem; flex: none; accent-color: var(--cyan-600); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- 22. Kontakt-Kacheln --------------------------------------------- */
.contact-tile {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.contact-tile:hover { border-color: var(--cyan-300); box-shadow: var(--sh-md); color: inherit; }
.contact-tile .card-icon { width: 2.4rem; height: 2.4rem; margin: 0; }
.contact-tile .card-icon svg { width: 1.25rem; height: 1.25rem; }
.contact-tile b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 650; }
.contact-tile span { display: block; margin-top: .15rem; font-weight: 600; color: var(--navy-900); word-break: break-word; }

/* --- 23. Referenz-Karten --------------------------------------------- */
.ref-card { overflow: hidden; padding: 0; }
.ref-card > img { border-radius: 0; border-bottom: 1px solid var(--line); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.ref-card .ref-body { padding: clamp(1.25rem, 2.5vw, 1.75rem); display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.ref-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.1rem;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--cyan-600);
}

/* --- 24. Prose (Rechtstexte) ----------------------------------------- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.05rem; }
.prose h2 {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem);
}
.prose h3 { margin-top: 2rem; font-size: 1.14rem; }
.prose ul { margin-left: 0; }
.prose ul > li { position: relative; padding-left: 1.35rem; margin-bottom: .45rem; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: .25rem;
  top: .68em;
  width: .35rem;
  height: .35rem;
  border-radius: 50%;
  background: var(--cyan-500);
}
.prose address { font-style: normal; }

/* --- 25. Footer ------------------------------------------------------- */
.site-footer {
  background: var(--navy-950);
  color: var(--text-on-dark-muted);
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
  font-size: .93rem;
}
.footer-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.footer-grid > div:first-child { grid-column: span 1; }
@media (min-width: 60rem) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-footer h2 {
  font-size: .78rem;
  font-family: var(--font-mono);
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan-400);
  margin-bottom: 1.1rem;
}
.site-footer a { color: var(--text-on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer li + li { margin-top: .55rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.footer-brand img { width: 44px; height: 44px; background: #fff; border-radius: 8px; padding: 3px; }
.footer-brand b { color: #fff; font-size: 1.05rem; letter-spacing: -.02em; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .84rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom li + li { margin-top: 0; }
.footer-region { margin-top: 1rem; font-size: .84rem; line-height: 1.6; }

/* --- 26. Hilfsklassen ------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-lg { margin-top: clamp(2rem, 4vw, 3rem); }
.no-wrap { white-space: nowrap; }
[hidden] { display: none !important; }
