/* wonk.ai · component styles */

/* ---------- Fonts ----------
   EK Baumer Grotesk ist die einzige Marken-Schrift.
   Regular (400) für Body, Bold (700) für Display, Headings, Buttons,
   Labels — also alles. Hierarchie über size, casing, tracking — nicht Schrift.
   ----------------------------------------------------------------- */
@font-face {
  font-family: "EK Baumer Grotesk";
  src: url("/static/fonts/EKBaumerGrotesk-Regular.woff2?v=2") format("woff2"),
       url("/static/fonts/EKBaumerGrotesk-Regular.woff?v=2")  format("woff"),
       url("/static/fonts/EKBaumerGrotesk-Regular.otf?v=2")   format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "EK Baumer Grotesk";
  src: url("/static/fonts/EKBaumerGrotesk-Bold.woff2?v=2") format("woff2"),
       url("/static/fonts/EKBaumerGrotesk-Bold.woff?v=2")  format("woff"),
       url("/static/fonts/EKBaumerGrotesk-Bold.otf?v=2")   format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg:            #f5f9f6;
  --bg-alt:        #ffffff;
  --bg-sunken:     #e6ecea;
  /* Beispiel „mehr Farbe“ — warme Hörsaal/Lehre-Fläche */
  --bg-warm:       #f5f1e7;
  --fg:            #17303a;
  --fg-2:          #2e454e;
  --fg-mute:       #4f6168;
  --fg-sub:        #7a8a8d;
  --border:        #cdd6d4;
  --border-strong: #17303a;
  --ink:           #17303a;
  --ink-deep:      #0e2129;
  --arctic:        #f5f9f6;
  --cta:           #0090c0;
  --cta-hover:     #007aa3;

  /* Eine Schrift, kein Fallback. Wenn die Font nicht lädt soll es
     auch nicht "fast richtig" aussehen, sondern es fällt sofort auf. */
  --font-display: "EK Baumer Grotesk";
  --font-sans:    "EK Baumer Grotesk";
  --font-label:   "EK Baumer Grotesk";

  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --radius-2xl:    36px;
  --radius-bubble: 9999px;

  --shadow-1: 0 1px 0 rgba(23, 48, 58, 0.06);
  --shadow-2: 0 4px 14px rgba(23, 48, 58, 0.06);
  --shadow-3: 0 12px 32px -8px rgba(23, 48, 58, 0.14);
  --shadow-stamp: 4px 4px 0 0 var(--ink);

  --ease:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur:   200ms;
  --dur-lg: 320ms;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-x: clip;
  /* Gesamtmaßstab ~115 % (Typo, Abstände, Komponenten in px) */
  zoom: 1.15;
}
:target { scroll-margin-top: 160px; }
section[id] { scroll-margin-top: 120px; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  /* Nur Standard-Kerning + Ligaturen. KEINE stylistic sets:
     ss01/ss02 würden alternative Glyphen für M, a, g, R, t aktivieren
     (das "komische M") und brechen den klassischen Look von EK Baumer Grotesk. */
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
img.media-cover__img { height: 100%; }

a {
  color: inherit; text-decoration: none;
  transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease);
}
a:hover { opacity: 0.65; }

button { font: inherit; cursor: pointer; }

::selection { background: var(--ink); color: var(--arctic); }

p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4, h5, h6 { margin: 0; text-wrap: balance; font-family: var(--font-display); }

hr {
  border: 0; height: 1px; background: var(--border);
  margin: 0;
}

/* ---------- Layout primitives ---------- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.site-header > .container {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
  width: auto;
}
.container--narrow { max-width: 720px; }

.section {
  padding: 112px 0;
  border-top: 1px solid var(--border);
}
.section--first { border-top: none; }
.section--tight { padding: 80px 0; }
.section--dark {
  background: var(--ink);
  color: var(--arctic);
  border-top-color: rgba(245, 249, 246, 0.12);
}

/* Section surface rhythm — less flat gray, still brand-monochrome + cyan wash */
.section--surface {
  background: var(--bg-alt);
  border-top-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.section--sunken {
  background: var(--bg-sunken);
  border-top-color: rgba(23, 48, 58, 0.06);
}
.section--wash {
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(0, 144, 192, 0.07), transparent 58%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(23, 48, 58, 0.04), transparent 55%),
    var(--bg);
  border-top-color: transparent;
}
.section--wash-cta {
  background:
    linear-gradient(135deg, rgba(0, 144, 192, 0.09) 0%, transparent 42%),
    var(--bg-alt);
  border-top-color: transparent;
}
.section--warm {
  background: var(--bg-warm);
  border-top: none;
}
.section--flush-top { border-top: none; }

.clients--surface {
  background: var(--bg-alt);
  border-top: none;
  box-shadow: 0 1px 0 var(--border);
}

/* ============================================================
   Clients (logo marquee)
   ============================================================ */
.clients {
  padding: 72px 0 76px;
  border-top: 1px solid var(--border);
  background:
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  overflow-x: hidden;
  overflow-y: visible;
}
.clients__intro {
  max-width: 42rem;
  margin-bottom: 32px;
}
.clients__chapter {
  margin: 0 0 12px;
}
.clients__lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.58;
  color: var(--fg-mute);
  text-wrap: pretty;
  max-width: 36rem;
}
.clients__lead-kicker {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.018em;
  line-height: 1.35;
  color: var(--ink);
}
.clients__viewport {
  position: relative;
  overflow: hidden;
  margin-inline: -32px;
  padding-inline: 32px;
  padding-block: 10px;
  margin-block: -10px;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}
.clients__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  gap: 0;
  will-change: transform;
}
.clients__set {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 20px;
  padding-right: 20px;
  flex-shrink: 0;
}
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 168px;
  min-height: 80px;
  padding: 22px 28px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}
.client-logo img {
  max-height: 42px;
  max-width: 132px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1;
  filter: none;
}

@media (prefers-reduced-motion: no-preference) {
  .clients__track {
    animation: clients-marquee 42s linear infinite;
  }
  .clients__viewport:hover .clients__track {
    animation-play-state: paused;
  }
}
@keyframes clients-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .clients__viewport {
    mask-image: none;
    -webkit-mask-image: none;
    overflow: visible;
  }
  .clients__track {
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 16px;
  }
  .clients__set {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding-right: 0;
  }
  .clients__set[aria-hidden="true"] {
    display: none;
  }
}

@media (max-width: 560px) {
  .clients { padding: 48px 0 56px; }
  .client-logo {
    min-width: 140px;
    min-height: 72px;
    padding: 18px 20px;
  }
}

.section--dark .chapter { color: rgba(245, 249, 246, 0.55); }
.section--dark .chapter .n { color: var(--arctic); }
.section--dark .section-title { color: var(--arctic); }
.section--dark .lead { color: rgba(245, 249, 246, 0.78); }
.section--dark hr { background: rgba(245, 249, 246, 0.18); }

.section-head {
  margin-bottom: 56px;
  max-width: 800px;
}

/* ---------- Typography utilities ---------- */
.eyebrow {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
  text-transform: lowercase;
}

.chapter {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.chapter .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.125rem;
  height: 2.125rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-weight: 600;
  line-height: 1;
}
.section--dark .chapter .n {
  border-color: rgba(245, 249, 246, 0.55);
  color: var(--arctic);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--fg);
  margin: 14px 0 0;
  max-width: 18ch;
  text-wrap: balance;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.display-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 6vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.032em;
  color: var(--fg);
  margin: 0;
  text-wrap: balance;
}

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-mute);
  margin: 22px 0 0;
  max-width: 60ch;
  text-wrap: pretty;
}
.lead--bright { color: var(--fg-2); font-size: 21px; line-height: 1.5; }

.label-mono {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-sub);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  line-height: 1.1;
  padding: 13px 26px;
  border-radius: var(--radius-bubble);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              opacity var(--dur) var(--ease),
              transform 100ms var(--ease);
  -webkit-appearance: none; appearance: none;
}
.btn:hover { opacity: 1; }
.btn:active { transform: scale(0.985); }

.btn--primary { background: var(--cta);  color: #fff; }
.btn--primary:hover { background: var(--cta-hover); }

.btn--dark    { background: var(--ink);  color: var(--arctic); }
.btn--dark:hover { background: var(--ink-deep); }

.btn--outline { background: transparent; color: var(--fg); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--arctic); }

.btn--ghost   { background: transparent; color: var(--fg); padding: 13px 6px; }
.btn--ghost:hover { opacity: 0.65; }

.btn--sm { font-size: 13px; padding: 8px 18px; }
.btn--lg { font-size: 16px; padding: 16px 30px; }

.btn .arr { font-size: 18px; line-height: 1; transition: transform var(--dur) var(--ease); }
.btn:hover .arr { transform: translateX(2px); }

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.btn:disabled:hover,
.btn[aria-disabled="true"]:hover {
  background: var(--cta);
  transform: none;
}

.section--dark .btn--outline { color: var(--arctic); border-color: var(--arctic); }
.section--dark .btn--outline:hover { background: var(--arctic); color: var(--ink); }
.section--dark .btn--ghost { color: var(--arctic); }

/* ============================================================
   Bubble Pill (signature wonk-Element mit Sprechblasen-Pfeil)
   ============================================================ */
.bubble {
  position: relative;
  display: inline-block;
  padding: 8px 22px 10px;
  border-radius: var(--radius-bubble);
  border: 2px solid var(--ink);
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--bg);
}
/* Sprechblasen-Tail: gleichschenkliges Dreieck, doppelter Border-Trick
   --------------------------------------------------------------
   ::after  = outer ink-Dreieck  (Höhe 10, Basis 18) — sitzt unter der Bubble
   ::before = inner bg-Dreieck   (Höhe 10, Basis 14) — versetzt 2px höher,
              deckt die 2px Bubble-Border am Tail-Anschluss exakt ab.
   Beide Dreiecke teilen dieselbe Mittelachse (right: 28 + 9 = 37). */
.bubble::after {
  content: "";
  position: absolute;
  right: 28px; bottom: -10px;
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 10px solid var(--ink);
}
.bubble::before {
  content: "";
  position: absolute;
  right: 30px; bottom: -8px; z-index: 1;
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid var(--bg);
}
.bubble--left::after  { left: 28px; right: auto; }
.bubble--left::before { left: 30px; right: auto; }

/* ============================================================
   Cred Stamp (Prof. Dr. badge)
   ============================================================ */
.cred-stamp {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-bubble);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
}
.cred-stamp small {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-mute);
}

/* ============================================================
   Pills (Werte / Tags)
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-bubble);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.015em;
  color: var(--ink);
  background: transparent;
  white-space: nowrap;
}
.pill--solid { background: var(--ink); color: var(--arctic); }
.pill--cta { background: var(--cta); color: #fff; border-color: var(--cta); }
.pill--sm { font-size: 14px; padding: 6px 14px; border-width: 1.25px; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 32px 28px;
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
a.card:hover,
button.card:hover { border-color: var(--ink); }
.card--dark { background: var(--ink); color: var(--arctic); border-color: var(--ink); }
a.card--dark:hover,
button.card--dark:hover { border-color: var(--ink-deep); }

/* Diagnose-Card (Q/A) */
.diag-q {
  display: flex; flex-direction: column; gap: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 32px 26px;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
  text-decoration: none;
  color: inherit;
}
.diag-q:hover { border-color: var(--ink); opacity: 1; transform: translateY(-2px); }
.diag-q__q {
  font-family: var(--font-display); font-weight: 700;
  font-size: 26px; line-height: 1.18; letter-spacing: -0.02em;
  color: var(--fg); text-wrap: balance;
  position: relative;
  padding-left: 0;
}
/* Typografisch korrekte Anführungszeichen — DE „…" / EN "…" */
.diag-q__q::before,
.diag-q__q::after {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fg-sub);
}
.diag-q__q::before { content: "„"; margin-right: 4px; }
.diag-q__q::after  { content: "\201C"; margin-left: 2px; } /* DE schließend: " (U+201C) */
html[lang="en"] .diag-q__q::before { content: "\201C"; }   /* EN open  " */
html[lang="en"] .diag-q__q::after  { content: "\201D"; }   /* EN close " */
.diag-q__a {
  display: flex; align-items: baseline; gap: 10px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.diag-q__a .label {
  font-family: var(--font-label); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-mute);
  white-space: nowrap;
}
.diag-q__a .answer {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  color: var(--cta); margin-left: auto;
  display: inline-flex; align-items: baseline; gap: 8px;
  letter-spacing: -0.005em;
}

/* Lehre/Forschung-Card */
.lf-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color var(--dur) var(--ease);
}
a.lf-card--link {
  text-decoration: none;
  color: var(--fg);
  cursor: pointer;
}
a.lf-card--link.lf-card--dark {
  color: var(--arctic);
}
a.lf-card--link:hover {
  opacity: 1;
  border-color: var(--cta);
}
a.lf-card--link:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 3px;
}
a.lf-card--link:hover .lf-card__title {
  color: var(--cta);
}
a.lf-card--dark.lf-card--link:hover .lf-card__title {
  color: var(--arctic);
}
a.lf-card--dark.lf-card--link:hover .lf-card__lead,
a.lf-card--dark.lf-card--link:hover li {
  color: rgba(245, 249, 246, 0.78);
}
a.lf-card--dark.lf-card--link:hover li::before {
  color: rgba(245, 249, 246, 0.55);
}
.lf-card--dark { background: var(--ink); color: var(--arctic); border-color: var(--ink); }
.lf-card--spotlight {
  border-color: var(--cta);
  box-shadow: 0 0 0 1px rgba(0, 144, 192, 0.2);
}
.lf-card__spotlight {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 2px;
  padding: 4px 10px;
  border-radius: var(--radius-bubble);
  background: var(--cta);
  color: #fff;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lf-card__badge {
  font-family: var(--font-label); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-mute);
}
.lf-card--dark .lf-card__badge { color: rgba(245, 249, 246, 0.6); }
.lf-card__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 26px; letter-spacing: -0.022em; line-height: 1.15;
  margin: 0; text-wrap: balance;
}
.lf-card__lead { font-size: 15px; line-height: 1.55; color: var(--fg-mute); margin: 0; }
.lf-card--dark .lf-card__lead { color: rgba(245, 249, 246, 0.78); }
.lf-card ul {
  list-style: none; padding: 0; margin: 4px 0 0;
  display: grid; gap: 6px; font-size: 14.5px;
}
.lf-card li {
  padding-left: 22px; position: relative; line-height: 1.5;
}
.lf-card li::before {
  content: "→";
  position: absolute; left: 0; top: 0;
  font-family: var(--font-label); color: var(--fg-sub);
}
.lf-card--dark li::before { color: rgba(245, 249, 246, 0.55); }
.lf-card__meta {
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-label); font-size: 12px;
  letter-spacing: 0.03em; color: var(--fg-mute);
}
.lf-card--dark .lf-card__meta {
  color: rgba(245, 249, 246, 0.65);
  border-top-color: rgba(245, 249, 246, 0.22);
}
.lf-card__meta a {
  color: inherit;
  text-decoration: none;
}
.lf-card__meta a:hover {
  color: var(--cta);
  text-decoration: underline;
}
.lf-card--dark .lf-card__meta a:hover {
  color: var(--cta);
}

/* Person-Card */
.person {
  display: flex; flex-direction: column; gap: 12px;
}
.person__photo {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center 20%;
  background-color: var(--bg-sunken);
  border: 1px solid var(--border);
}
.person__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 19px; letter-spacing: -0.015em; line-height: 1.22;
  color: var(--fg); margin-top: 8px; text-wrap: balance;
}
.person__role {
  font-family: var(--font-label); font-size: 12px;
  letter-spacing: 0.04em; color: var(--fg-mute); text-transform: lowercase;
}
.person__cv {
  font-size: 14px; line-height: 1.5; color: var(--fg-mute);
  margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--border);
}
.person__cv b { color: var(--ink); font-weight: 700; }

a.person--link {
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
a.person--link:hover {
  opacity: 1;
  transform: translateY(-2px);
}
a.person--link:hover .person__name {
  color: var(--cta);
}
a.person--link:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 4px;
}
.person__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--cta);
  text-transform: lowercase;
}
a.person--link:hover .person__more .arr {
  transform: translateX(3px);
}
.person__more .arr {
  display: inline-block;
  transition: transform var(--dur) var(--ease);
}

/* Person profile page */
.person-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: start;
}
.person-hero__title { max-width: none; margin-top: 0; }
.person-hero__role {
  margin: 10px 0 0;
  font-family: var(--font-label);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--fg-mute);
}
.person-hero__media {
  position: relative;
}
.person-hero__photo { aspect-ratio: 4 / 5; }
.person-hero__social {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  z-index: 2;
}
.person-hero__social .person-social--compact {
  padding: 10px 12px;
  background: rgba(245, 249, 246, 0.94);
  border-color: rgba(245, 249, 246, 0.5);
  box-shadow: var(--shadow-2);
}
.person-hero__social .person-social--compact:hover {
  background: var(--arctic);
  border-color: var(--cta);
}
.person-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.person-tags__item {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-bubble);
  border: 1px solid var(--border);
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--fg-2);
  background: var(--bg-alt);
}
.person-page {
  max-width: 720px;
}
.person-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px 24px;
  margin: 0 0 32px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--border);
}
.person-facts dt {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-sub);
  margin-bottom: 4px;
}
.person-facts dd {
  margin: 0;
  font-size: 16px;
  color: var(--fg-2);
}
.person-page__prose { margin-bottom: 36px; }
.person-block {
  margin-bottom: 32px;
}
.person-block__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ink);
}
.person-block__list {
  margin: 0;
  padding-left: 1.2em;
  color: var(--fg-mute);
  line-height: 1.55;
}
.person-links {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.person-links__text {
  font-family: var(--font-label);
  font-size: 14px;
  color: var(--cta);
  text-decoration: none;
}
.person-links__text:hover { color: var(--cta-hover); }
.person-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.person-social:hover {
  border-color: var(--cta);
  color: var(--cta);
  box-shadow: var(--shadow-1);
}
.person-social__icon {
  display: block;
  flex-shrink: 0;
}
.person-social__label {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}
.person-cta {
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
}
.person-cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--ink);
}
.person-cta__text {
  margin: 0 0 20px;
  color: var(--fg-mute);
  max-width: 48ch;
}

/* ============================================================
   Quote Card (Sprechblase als Card)
   ============================================================ */
.quote-card {
  position: relative;
  padding: 36px 36px 32px;
  background: var(--bg-alt);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-2xl);
}
.quote-card--dark {
  background: var(--ink); color: var(--arctic); border-color: var(--ink);
}
/* Quote-Card Tail: dezenter & sauberer als zuvor (12/11 statt 16/14),
   inner deckt die 1.5px Karten-Border am Anschluss ab. */
.quote-card::before {
  content: "";
  position: absolute;
  left: 44px; bottom: -12px;
  width: 0; height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 12px solid var(--ink);
}
.quote-card::after {
  content: "";
  position: absolute;
  left: 46px; bottom: -10px; z-index: 1;
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 12px solid var(--bg-alt);
}
.quote-card--dark::after { border-top-color: var(--ink); }

.quote-card__q {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; line-height: 1.34; letter-spacing: -0.015em;
  color: inherit; text-wrap: balance;
  margin: 0;
}
.quote-card__who {
  margin-top: 22px; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-label); font-size: 12px;
  letter-spacing: 0.04em; color: var(--fg-mute);
}
.quote-card--dark .quote-card__who {
  color: rgba(245, 249, 246, 0.65);
  border-top-color: rgba(245, 249, 246, 0.22);
}

.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 32px;
  margin-top: 8px;
}
.quotes .quote-card {
  margin-bottom: 12px;
}
@media (max-width: 880px) {
  .quotes {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ============================================================
   Case-Row (Liste)
   ============================================================ */
.cases {
  margin-top: 8px;
  border-top: 1px solid var(--ink);
}
.case {
  display: grid;
  grid-template-columns: 160px 1.4fr 2fr 80px;
  gap: 32px;
  padding: 28px 0;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background var(--dur) var(--ease),
              padding var(--dur) var(--ease),
              margin var(--dur) var(--ease);
}
.case:hover {
  background: var(--bg-sunken);
  padding-left: 16px; padding-right: 16px;
  margin: 0 -16px;
  opacity: 1;
}
.case__industry {
  font-family: var(--font-label); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-mute);
}
.case__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; letter-spacing: -0.02em; line-height: 1.2;
  color: var(--fg);
}
.case__out {
  font-size: 15px; line-height: 1.5; color: var(--fg-mute);
}
.case__year {
  font-family: var(--font-label); font-size: 13px;
  color: var(--fg-sub); text-align: right;
}

/* ============================================================
   Flow (Process Steps)
   ============================================================ */
.flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 8px;
  position: relative;
}
.flow::before {
  content: "";
  position: absolute; left: 0; right: 0;
  top: calc(28px + 6px);
  border-top: 1px dashed var(--border);
  pointer-events: none;
}
.flow:has(.flow__num)::before {
  top: calc(28px + 13px);
}
.flow__step { padding: 28px 28px 0 0; position: relative; }
.flow__step:last-child { padding-right: 0; }
.flow__step--link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: opacity var(--dur) var(--ease);
}
.flow__step--link:hover { opacity: 1; }
.flow__step--link:hover .flow__title { color: var(--cta); }
.flow__step--link:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 8px;
  border-radius: var(--radius-md);
}
.flow__num {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border: none;
  border-radius: 50%;
  font-family: var(--font-label); font-size: 10px; font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--cta);
  box-shadow: 0 0 0 4px var(--bg);
}
.flow__marker {
  position: relative; z-index: 1;
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--cta);
  box-shadow: 0 0 0 4px var(--bg);
}
.section--sunken .flow__num,
.section--sunken .flow__marker {
  box-shadow: 0 0 0 4px var(--bg-sunken);
}
.flow__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 24px; letter-spacing: -0.02em; line-height: 1.15;
  margin-top: 22px; color: var(--fg);
}
.flow__desc {
  font-size: 15px; line-height: 1.5;
  color: var(--fg-mute); margin-top: 10px; max-width: 30ch;
}
.flow__meta {
  font-family: var(--font-label); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-sub);
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border);
}

/* ============================================================
   Form Fields
   ============================================================ */
.field {
  display: block; width: 100%;
  padding: 14px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  font-family: var(--font-label);
  font-size: 15px; letter-spacing: 0.02em;
  color: var(--fg);
  transition: border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field::placeholder { color: var(--fg-sub); }
.field:focus { border-color: var(--ink); }
textarea.field { resize: vertical; min-height: 120px; line-height: 1.5; }

/* Dark variant (underline fields) */
.section--dark .field,
.demo-frame--dark .field {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(245, 249, 246, 0.22);
  border-radius: 0;
  padding: 18px 2px;
  color: var(--arctic);
}
.section--dark .field::placeholder,
.demo-frame--dark .field::placeholder { color: rgba(245, 249, 246, 0.5); }
.section--dark .field:focus,
.demo-frame--dark .field:focus { border-bottom-color: var(--arctic); }
.section--dark textarea.field,
.demo-frame--dark textarea.field { min-height: 96px; }

/* ============================================================
   Site Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  overflow: visible;
  background: rgba(245, 249, 246, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 22px -10px rgba(23, 48, 58, 0.18),
              0 1px 0 rgba(23, 48, 58, 0.04);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 96px;
  height: auto;
  gap: 20px;
  overflow: visible;
}
.site-header .container {
  position: relative;
}
.site-drawer {
  display: flex; align-items: center; gap: 20px;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
}
.logo-lockup {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; user-select: none;
  position: relative;
  flex-shrink: 0;
}
.logo-lockup:hover { opacity: 1; }

.brand-mascot {
  height: 56px;
  width: auto;
  display: block;
  flex-shrink: 0;
  transform-origin: 50% 90%;
  transition: transform 280ms var(--ease-spring);
}

.brand-mark {
  height: 58px;
  width: auto;
  display: block;
  flex-shrink: 0;
  transform: translateY(7px);
}

.wonki-mark {
  position: relative;
  display: block;
  width: 70px; height: 70px;
  background-image: url("/static/img/logos/wonkai-mammut.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  flex-shrink: 0;
  transform-origin: 50% 90%;
  transition: transform 280ms var(--ease-spring);
}
.wonki-bubble {
  position: absolute;
  top: -10px;
  right: calc(100% - 24px);
  background: var(--ink);
  color: var(--arctic);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 11px 5px;
  border-radius: var(--radius-bubble);
  opacity: 0;
  transform: translateX(6px) scale(0.7);
  transform-origin: 100% 80%;
  pointer-events: none;
  transition: opacity 200ms ease, transform 240ms var(--ease-spring);
  white-space: nowrap;
  z-index: 4;
}
.wonki-bubble::after {
  content: "";
  position: absolute;
  bottom: -5px; right: 12px;
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--ink);
}
.logo-lockup:hover .brand-mascot,
.logo-lockup:hover .wonki-mark {
  animation: wonki-wiggle 600ms var(--ease-spring);
}
.logo-lockup:hover .wonki-bubble {
  opacity: 1;
  transform: translateX(0) scale(1);
}
@keyframes wonki-wiggle {
  0%   { transform: rotate(0)    scale(1)    translateY(0); }
  25%  { transform: rotate(-6deg) scale(1.08) translateY(-3px); }
  55%  { transform: rotate(5deg)  scale(1.06) translateY(-3px); }
  80%  { transform: rotate(-2deg) scale(1.04) translateY(-1px); }
  100% { transform: rotate(0)    scale(1)    translateY(0); }
}

/* Desktop: drawer is just a flex container for nav + cta side by side */

/* Burger button — hidden on desktop, animates to X on mobile */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; padding: 0;
  cursor: pointer; position: relative;
  color: var(--ink); margin-left: auto;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--cta); outline-offset: 2px; border-radius: 6px;
}
.nav-toggle__bar {
  position: absolute; left: 10px; right: 10px;
  height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 260ms var(--ease-spring),
              top 260ms var(--ease-spring),
              opacity 160ms ease;
}
.nav-toggle__bar:nth-child(1) { top: 15px; }
.nav-toggle__bar:nth-child(2) { top: 21px; }
.nav-toggle__bar:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  top: 21px; transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  top: 21px; transform: rotate(-45deg);
}

.site-nav {
  display: flex; gap: 18px; align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  flex-shrink: 0;
}
.site-nav a {
  font-family: var(--font-sans); font-size: 15px; color: var(--fg);
  position: relative; padding: 4px 0;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1.5px; background: var(--cta);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.site-nav a:hover { opacity: 1; }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a.active { font-weight: 700; }
.site-nav a.active::after { transform: scaleX(1); }

/* Start: nur Logo-Lockup, nicht als Nav-Punkt (Desktop + Mobilmenü) */
.site-nav a.nav-home { display: none; }

.header-cta {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}

/* Language: single alternate locale as flag icon */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-bubble);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.lang-toggle:hover {
  opacity: 1;
  border-color: var(--ink);
  box-shadow: var(--shadow-1);
  transform: translateY(-1px);
}
.lang-toggle__flag {
  display: flex;
  line-height: 0;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(23, 48, 58, 0.08);
}
.lang-toggle__flag--en svg { width: 22px; height: auto; display: block; }
.lang-toggle__flag--de svg { width: 22px; height: auto; display: block; }

.lang-toggle--footer {
  width: auto;
  height: auto;
  padding: 6px 12px 6px 10px;
  gap: 8px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(245, 249, 246, 0.78);
  background: transparent;
  border-color: rgba(245, 249, 246, 0.22);
}
.lang-toggle--footer:hover {
  color: var(--arctic);
  border-color: rgba(245, 249, 246, 0.45);
  transform: none;
}
.lang-toggle--footer .lang-toggle__flag { box-shadow: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Site Footer
   ============================================================ */
.site-footer {
  background: var(--ink-deep);
  color: var(--arctic);
  padding: 64px 0 40px;
  border-top: 1px solid var(--ink-deep);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__logo {
  height: 48px; width: auto; display: block;
}
.footer__brand p {
  font-family: var(--font-label); font-size: 13px;
  color: rgba(245, 249, 246, 0.6);
  margin-top: 14px; max-width: 32ch; line-height: 1.6;
}

.footer__col h6 {
  font-family: var(--font-label); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(245, 249, 246, 0.55);
  margin: 0 0 14px; font-weight: 400;
}
.footer__col ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 8px;
}
.footer__col li { font-size: 14.5px; color: var(--arctic); }
.footer__col a { color: var(--arctic); }

.footer__bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgba(245, 249, 246, 0.14);
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px;
  font-family: var(--font-label); font-size: 12px;
  color: rgba(245, 249, 246, 0.55); letter-spacing: 0.02em;
}

/* ============================================================
   Hero — Two-column layout, photo right with overlay tags
   ============================================================ */
.hero {
  padding: 72px 0 104px;
  border-top: none;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 65% at 92% 5%, rgba(0, 144, 192, 0.12), transparent 58%),
    radial-gradient(ellipse 55% 45% at 0% 100%, rgba(23, 48, 58, 0.07), transparent 52%),
    linear-gradient(180deg, var(--bg-sunken) 0%, #eef4f1 38%, var(--bg) 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px 56px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.hero__inner--solo {
  grid-template-columns: minmax(0, 1fr);
  max-width: 800px;
}
.hero .page-hero__back {
  margin: 0 0 20px;
}
.hero .post-meta--hero {
  margin-bottom: 4px;
}
.hero__copy { max-width: 640px; min-width: 0; }
.hero__copy:has(.page-hero__back) {
  max-width: 100%;
}
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(56px, 6vw, 72px);
  line-height: 0.96; letter-spacing: -0.032em;
  color: var(--fg); margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}
/* Blog- und andere Artikel mit langen Titeln neben Cover */
.hero--compact {
  padding-bottom: 72px;
}
.hero--compact .hero__inner {
  gap: 40px 48px;
  align-items: center;
}
.hero--compact .hero__copy {
  max-width: 100%;
}
.hero--compact .hero__title {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: pretty;
  max-width: 28ch;
}
.hero--compact .hero__lead {
  margin-top: 20px;
  font-size: 18px;
  max-width: 48ch;
}
.hero__lead {
  margin-top: 36px; max-width: 52ch;
  font-size: 21px; line-height: 1.5; color: var(--fg-2);
}
.hero__ctas {
  display: flex; gap: 14px; margin-top: 40px;
  align-items: center; flex-wrap: wrap;
}
.hero__side {
  position: relative;
  margin-top: 8px;
  min-width: 0;
  max-width: 100%;
}
.hero__photo {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: var(--radius-xl);
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center 28%;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.wissen-intro {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-mute);
  max-width: 62ch;
  margin: 0 0 36px;
}

/* Forschung / Lehre landing */
.research-partner {
  margin-bottom: 56px;
  padding: 36px 36px 32px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.research-page .research-partner {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
.research-page .research-partner__cta {
  margin-top: 8px;
}
.research-partner__kicker {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cta);
  margin: 0 0 12px;
}
.research-partner__name {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: -0.022em;
  margin: 0 0 6px;
  text-wrap: balance;
}
.research-partner__org {
  font-size: 15px;
  color: var(--fg-mute);
  margin: 0 0 24px;
}
.research-partner__body {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}
.research-prose {
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-2);
  margin: 0;
  max-width: 72ch;
}
.research-prose--compact {
  font-size: 15px;
  color: var(--fg-mute);
}
.research-partner__cta {
  margin: 0 0 28px;
}
.research-partner__programs {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.research-partner__programs-lead {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-mute);
  margin: 0 0 8px;
}
.research-partner__programs-link a {
  font-size: 15px;
  color: var(--cta);
  text-decoration: none;
}
.research-partner__programs-link a:hover {
  text-decoration: underline;
  opacity: 1;
}
.research-focus__grid--pair {
  grid-template-columns: repeat(2, 1fr);
}
.research-thesis {
  margin-bottom: 8px;
}
.research-thesis .section-head {
  margin-bottom: 28px;
}
.research-thesis__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.research-thesis__col {
  padding: 28px 28px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  min-height: 160px;
}
.research-thesis__label {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.research-thesis__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.research-thesis__item {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.research-thesis__item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.research-thesis__topic {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}
.research-thesis__topic-lead {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-mute);
  margin: 0;
}
.research-thesis__placeholder {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-mute);
  margin: 0;
}
.research-focus__bullets {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14.5px;
  line-height: 1.5;
}
.research-focus__bullets li {
  padding-left: 22px;
  position: relative;
  color: var(--fg-mute);
}
.research-focus__bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-label);
  color: var(--fg-sub);
}
.research-page .research-stats {
  list-style: none;
  margin: 0 0 56px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.research-stats__item {
  padding: 28px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.research-stats__value {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--cta);
  line-height: 1.1;
}
.research-stats__label {
  font-size: 14px;
  line-height: 1.45;
  color: var(--fg-mute);
}
.research-focus {
  margin-bottom: 56px;
}
.research-focus__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.research-focus__card {
  padding: 24px 24px 22px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.research-focus__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.research-focus__lead {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-mute);
  margin: 0;
}
.research-soon {
  margin-bottom: 48px;
  padding: 40px 36px 36px;
  background: var(--ink);
  color: var(--arctic);
  border-radius: var(--radius-xl);
  border: 1px solid var(--ink);
}
.research-soon__bubble {
  margin: 0 0 20px;
}
.research-soon__bubble .bubble {
  background: var(--cta);
  color: #fff;
}
.research-soon__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.022em;
  margin: 0 0 12px;
  text-wrap: balance;
}
.research-soon__lead {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(245, 249, 246, 0.82);
  margin: 0;
  max-width: 58ch;
}
@media (max-width: 900px) {
  .research-page .research-stats,
  .research-focus__grid,
  .research-focus__grid--pair,
  .research-thesis__grid {
    grid-template-columns: 1fr;
  }
  .research-partner {
    padding: 28px 24px 24px;
  }
  .research-page .research-partner {
    padding: 0;
  }
  .research-thesis__col {
    padding: 24px 22px 20px;
  }
}
@media (max-width: 640px) {
  .research-soon {
    padding: 28px 24px 24px;
  }
}

.edu-tools {
  margin-bottom: 48px;
}
.wissen-hub.lf-grid {
  margin-bottom: 48px;
}
.edu-tools .section-head {
  margin-bottom: 40px;
}
.edu-tools__group-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 48px 0 20px;
}
.edu-tools__group-title:first-of-type {
  margin-top: 0;
}
.edu-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.edu-tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: inherit;
  transition:
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.edu-tool-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.edu-tool-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  padding-right: 28px;
}
.edu-tool-card__lead {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-mute);
  margin: 0;
  flex: 1;
}
.edu-tool-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}
.edu-tool-card__tags .pill--sm {
  font-size: 10px;
  padding: 3px 8px;
  letter-spacing: 0.04em;
}
.edu-tool-card__more {
  position: absolute;
  top: 22px;
  right: 20px;
  font-size: 18px;
  color: var(--cta);
  line-height: 1;
}
.wissen-roadmap {
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.wissen-roadmap .section-head {
  margin-bottom: 32px;
}
.lf-grid--pair {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 900px) {
  .edu-tool-grid,
  .lf-grid--pair {
    grid-template-columns: 1fr;
  }
}

.hero__photo-badges {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  pointer-events: none;
}
.hero__tag {
  position: relative;
  flex-shrink: 0;
  padding: 7px 14px;
  background: rgba(245, 249, 246, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-bubble);
  font-family: var(--font-label);
  font-size: 12px; letter-spacing: 0.06em;
  text-transform: lowercase; color: var(--ink);
  box-shadow: 0 4px 16px rgba(23, 48, 58, 0.12);
}
.hero__media {
  margin: 0;
}
.hero__photo-cap,
.image-attrib__caption {
  margin: 16px 0 0;
  font-family: var(--font-label); font-size: 12.5px;
  color: var(--fg-mute); letter-spacing: 0.02em;
  line-height: 1.5;
}
.hero__photo-cap b,
.image-attrib__caption b {
  display: block;
  color: var(--ink); font-family: var(--font-display);
  font-weight: 700; font-size: 17px;
  letter-spacing: -0.015em; margin-bottom: 4px;
}
.image-attrib {
  margin: 0;
  text-align: left;
}
.image-attrib__caption {
  margin-top: 16px;
}
.image-attrib__scene {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--fg-mute);
  letter-spacing: 0.01em;
}
.image-attrib__credit {
  margin: 6px 0 0;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: color-mix(in srgb, var(--fg-mute) 88%, var(--ink));
  line-height: 1.4;
}
.image-attrib__license {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 2px;
}
.image-attrib__license:hover {
  color: var(--ink);
  text-decoration-color: var(--cyan);
}

.hero__cred {
  margin-top: 56px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px;
  padding-top: 28px; border-top: 1px solid var(--border);
}
.hero__cred .sep { color: var(--border); }
.hero__cred .text {
  font-family: var(--font-label); font-size: 13px;
  color: var(--fg-mute); letter-spacing: 0.01em;
}


/* ============================================================
   Reveal-on-scroll (Progressive Enhancement)
   Ohne JS → alle Inhalte sind sichtbar.
   Mit JS    → body bekommt .js-ready, dann fade-up-on-scroll.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .js-ready [data-reveal] {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 320ms var(--ease), transform 320ms var(--ease);
  }
  .js-ready [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  /* Hero/Header: sofort sichtbar, kein Warten auf Scroll */
  .js-ready .hero [data-reveal],
  .js-ready .page-hero [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1180px) and (min-width: 1141px) {
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 14px; }
  .site-drawer { gap: 12px; }
  .header-cta .btn { padding-left: 12px; padding-right: 12px; font-size: 14px; }
}

/* Header: ab Tablet-Breite Burger, damit alle Nav-Punkte sichtbar bleiben */
@media (max-width: 1140px) {
  .nav-toggle { display: block; }
  .site-header__inner { min-height: 80px; }
  .site-drawer {
    position: fixed; top: 80px; left: 0; right: 0;
    z-index: 90;
    flex: none;
    flex-direction: column; align-items: stretch; gap: 6px;
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 22px max(24px, calc((100vw - 1240px) / 2 + 32px)) 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 36px -18px rgba(23, 48, 58, 0.22);
    transform: translateY(-10px);
    opacity: 0; visibility: hidden;
    transition: transform 240ms var(--ease-spring),
                opacity 200ms ease,
                visibility 0s linear 240ms;
  }
  .site-drawer.is-open {
    transform: translateY(0); opacity: 1; visibility: visible;
    transition: transform 240ms var(--ease-spring),
                opacity 200ms ease,
                visibility 0s;
  }
  .site-nav {
    flex-direction: column; align-items: stretch; gap: 0;
    flex-wrap: nowrap;
    flex-shrink: 1;
  }
  .site-nav a {
    padding: 14px 4px; font-size: 17px;
    border-bottom: 1px solid var(--border);
    white-space: normal;
  }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a::after { display: none; }
  .header-cta {
    flex-direction: column; align-items: stretch; gap: 12px;
    margin-top: 8px; padding-top: 18px;
    border-top: 1px solid var(--border);
  }
  body.nav-open { overscroll-behavior: contain; }
}

@media (max-width: 1080px) {
  .section-title { font-size: 44px; }
}
@media (max-width: 880px) {
  .container { padding: 0 24px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .site-header__inner { min-height: 80px; }
  .brand-mascot { height: 48px; }
  .wonki-mark { width: 52px; height: 56px; }
  .brand-mark { height: 44px; transform: translateY(5px); }

  .hero { padding: 48px 0 72px; }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 24px;
  }
  .hero__photo { max-width: 100%; }
  .hero__title { font-size: 48px; }
  .hero--compact .hero__title {
    font-size: clamp(26px, 7vw, 34px);
    max-width: none;
  }
  .hero__lead { font-size: 18px; }
  .flow { grid-template-columns: 1fr; }
  .flow::before { display: none; }
  .flow__step { padding: 28px 0; border-top: 1px solid var(--border); }
  .flow__step:first-child { border-top: none; }
  .case { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .case__year { text-align: left; }
  .case:hover { padding-left: 0; padding-right: 0; margin: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Styleguide-only helpers
   ============================================================ */
.sg-nav {
  position: sticky; top: 96px; z-index: 50;
  background: rgba(245, 249, 246, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.sg-nav__inner {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-family: var(--font-label); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.sg-nav a { color: var(--fg-mute); }
.sg-nav a:hover { color: var(--ink); opacity: 1; }

.sg-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.sg-section:first-of-type { border-top: none; }

.sg-block {
  margin-top: 36px;
  display: flex; flex-direction: column; gap: 20px;
}
.sg-row {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
}
.sg-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sg-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sg-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 880px) {
  .sg-grid-2, .sg-grid-3, .sg-grid-4 { grid-template-columns: 1fr; }
}

.sg-h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 32px; letter-spacing: -0.022em; line-height: 1.1;
  margin: 0; text-wrap: balance;
}
.sg-h3 {
  font-family: var(--font-label); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-mute); margin: 0;
}
.sg-meta {
  font-family: var(--font-label); font-size: 12px;
  color: var(--fg-sub); letter-spacing: 0.02em;
  margin-top: 8px;
}

.swatch {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-alt);
}
.swatch__chip { height: 110px; }
.swatch__meta { padding: 14px 16px; }
.swatch__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 14px; color: var(--fg); letter-spacing: -0.01em;
}
.swatch__hex {
  font-family: var(--font-label); font-size: 11px;
  letter-spacing: 0.04em; color: var(--fg-mute); margin-top: 2px;
}

.demo-frame {
  padding: 32px;
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}
.demo-frame--dark { background: var(--ink); color: var(--arctic); border-color: var(--ink); }

/* Form-Demos im Styleguide: gleiches Rhythmus-Spacing in beiden Varianten.
   Light  → boxed fields, 14px gap
   Dark   → underline fields, ein wenig mehr Luft (20px) damit die
            Trennlinien nicht zu eng wirken; größerer Abstand vorm Button. */
.demo-form { display: flex; flex-direction: column; gap: 14px; }
.demo-form--dark { gap: 4px; padding: 28px 32px 32px; }
.demo-form__cta { margin-top: 20px; }
.demo-form--dark .demo-form__cta { margin-top: 32px; }

/* ============================================================
   Section grids (Landing page)
   ----------------------------------------------------------------
   diag-grid · team-grid · lf-grid sind alle 3 Spalten auf Desktop,
   responsive auf 2/1 Spalten herunter. Konsistente gap-Werte für
   den Brand-Rhythmus.
   ============================================================ */
.diag-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.lf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 8px;
}

@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .lf-grid   { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 860px) {
  .diag-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .diag-q__a {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .diag-q__a .answer { margin-left: 0; }
}
@media (max-width: 720px) {
  .team-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Contact section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-grid__copy .section-head { margin-bottom: 40px; }

.contact-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 40px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 249, 246, 0.18);
}
.contact-meta > div { display: flex; flex-direction: column; gap: 4px; }
.contact-meta dt {
  font-family: var(--font-label);
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(245, 249, 246, 0.55);
}
.contact-meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px; line-height: 1.35;
  color: var(--arctic);
}
.contact-meta a {
  color: var(--arctic);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 249, 246, 0.35);
  padding-bottom: 1px;
  transition: border-color var(--dur) var(--ease);
}
.contact-meta a:hover { border-bottom-color: var(--arctic); }

.contact-form {
  display: flex; flex-direction: column;
  gap: 4px;
  padding: 36px 36px 40px;
  background: rgba(245, 249, 246, 0.04);
  border: 1px solid rgba(245, 249, 246, 0.12);
  border-radius: var(--radius-lg);
}
.contact-form .field {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(245, 249, 246, 0.22);
  color: var(--arctic);
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 17px;
  border-radius: 0;
}
.contact-form .field::placeholder { color: rgba(245, 249, 246, 0.5); }
.contact-form .field:focus { outline: none; border-bottom-color: var(--arctic); }
.contact-form textarea.field { min-height: 110px; resize: vertical; }

.contact-form__cta {
  display: flex; align-items: baseline; gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.contact-form__note {
  margin: 0;
  font-family: var(--font-label);
  font-size: 12px; line-height: 1.5;
  color: rgba(245, 249, 246, 0.55);
  max-width: 28ch;
}

.contact-form__offscreen {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.contact-form__offscreen label { display: none; }

.contact-form__status {
  margin: 0 0 20px;
  font-family: var(--font-label);
  font-size: 13px; line-height: 1.5;
  max-width: 42ch;
}
.contact-form__status--ok { color: rgba(0, 200, 160, 0.95); }
.contact-form__status--err { color: rgba(255, 180, 120, 0.95); }

.contact-form__field { display: flex; flex-direction: column; gap: 6px; }
.contact-form__field-err {
  margin: 0;
  font-family: var(--font-label);
  font-size: 12px; line-height: 1.4;
  color: rgba(255, 180, 120, 0.95);
}
.contact-form__field-err[hidden] { display: none; }

.field--invalid {
  border-bottom-color: rgba(255, 140, 90, 0.95) !important;
}
.contact-form--inline .field--invalid {
  border-bottom-color: #b85c28 !important;
}

#kontakt { scroll-margin-top: 96px; }

.kontakt-result__detail {
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-muted, #3d5560);
  max-width: 52ch;
}

.kontakt-fehler__reason {
  margin: 28px 0 0;
  padding: 18px 20px;
  border-left: 4px solid #b85c28;
  background: rgba(184, 92, 40, 0.08);
  max-width: 56ch;
}
.kontakt-fehler__hint-lead {
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 52ch;
}
.kontakt-fehler__reason-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-line;
}

.kontakt-fehler__intro {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 52ch;
}
.kontakt-fehler__foot { margin-top: 32px; }

.contact-form__hint {
  margin: 0 0 12px;
  font-family: var(--font-label);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(245, 249, 246, 0.55);
  max-width: 42ch;
}
.contact-form--inline .contact-form__hint {
  color: rgba(23, 48, 58, 0.55);
}

.contact-form--inline {
  padding: 0;
  background: transparent;
  max-width: 100%;
}
.contact-form--inline .field {
  color: var(--ink);
  border-bottom-color: rgba(23, 48, 58, 0.25);
}
.contact-form--inline .field::placeholder {
  color: rgba(23, 48, 58, 0.45);
}
.contact-form--inline .field:focus {
  border-bottom-color: var(--cta);
}
.contact-form--inline .contact-form__field-err {
  color: #b85c28;
}

@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-meta { grid-template-columns: 1fr; gap: 18px; }
  .contact-form { padding: 28px 24px 32px; }
}

/* ============================================================
   Inner pages (Cases, Blog) + shared prose
   ============================================================ */
.page-hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 65% at 92% 5%, rgba(0, 144, 192, 0.12), transparent 58%),
    radial-gradient(ellipse 55% 45% at 0% 100%, rgba(23, 48, 58, 0.07), transparent 52%),
    linear-gradient(180deg, var(--bg-sunken) 0%, #eef4f1 38%, var(--bg) 100%);
}
.page-hero--wash,
.page-hero--surface,
.page-hero--sunken {
  background:
    radial-gradient(ellipse 80% 65% at 92% 5%, rgba(0, 144, 192, 0.12), transparent 58%),
    radial-gradient(ellipse 55% 45% at 0% 100%, rgba(23, 48, 58, 0.07), transparent 52%),
    linear-gradient(180deg, var(--bg-sunken) 0%, #eef4f1 38%, var(--bg) 100%);
}
.page-hero__back {
  margin: 0 0 20px;
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.page-hero__back a { color: var(--fg-mute); }
.page-hero__back a:hover { color: var(--cta); opacity: 1; }
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 16px 0 20px;
  max-width: 18ch;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.page-hero__lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-mute);
  max-width: 56ch;
  margin: 0;
}
.page-hero__meta {
  margin: 24px 0 0;
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-sub);
}
.page-hero__meta--date { display: block; margin-bottom: 12px; }
.page-hero .pill { margin-bottom: 8px; }

.section-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.section-foot .btn {
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .section-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .section-foot .btn {
    justify-content: center;
  }
}

/* --- Page closing CTA (umschaltbar: contact | products) --- */
.page-closing {
  padding-top: 72px;
  padding-bottom: 80px;
}
.page-closing__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: center;
}

/* Produkte-Hinweis: klar abgesetzt nach hellem Vorgehen-Block */
.page-closing--dark.section--dark {
  border-top: 1px solid rgba(245, 249, 246, 0.14);
  box-shadow: 0 -24px 48px rgba(23, 48, 58, 0.08);
}
.page-closing--dark .page-closing__inner {
  grid-template-columns: 1fr;
  align-items: stretch;
  max-width: 44rem;
}
.page-closing__kicker {
  margin: 0 0 12px;
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--fg-mute);
}
.page-closing__kicker--upper {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-sub);
}
.page-closing--dark .page-closing__kicker--upper {
  margin-bottom: 16px;
  font-size: 13px;
  color: rgba(245, 249, 246, 0.55);
}
.page-closing__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 22ch;
}
.page-closing--dark .page-closing__title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
  color: var(--arctic);
  max-width: 20em;
  text-wrap: pretty;
}
.page-closing__text {
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-mute);
  max-width: 58ch;
  text-wrap: pretty;
}
.page-closing--dark .page-closing__text {
  color: rgba(245, 249, 246, 0.78);
}
.page-closing__actions {
  margin-top: 28px;
}
.page-closing--dark .page-closing__actions {
  margin-top: 36px;
}
.page-closing__photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  max-height: 420px;
  border-radius: var(--radius-xl);
  background-size: cover;
  background-position: center 22%;
  background-color: var(--bg-sunken);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-3);
}
@media (max-width: 880px) {
  .page-closing__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
  }
  .page-closing__photo {
    max-height: 320px;
    aspect-ratio: 16 / 10;
  }
}

.prose {
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-2);
}
.prose h2 {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 40px 0 16px;
  color: var(--ink);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 28px 0 12px;
  color: var(--ink);
}
.prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose img,
.prose video,
.prose iframe,
.prose figure {
  max-width: 100%;
}
.prose img,
.prose video {
  height: auto;
}
.prose figure {
  margin: 24px 0;
}
.prose pre,
.prose code {
  max-width: 100%;
}
.prose pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.prose--article blockquote p {
  margin: 0 0 0.75em;
}
.prose--article blockquote p:last-child {
  margin-bottom: 0;
}
.prose--article ul {
  margin: 0 0 1.25em;
  padding-left: 1.2em;
}
.prose--article li {
  margin-bottom: 0.45em;
  padding-left: 0.15em;
}
.prose--article li::marker {
  color: var(--cta);
}
.prose--article p strong {
  color: var(--ink);
  font-weight: 700;
}
.prose--article h2 + p {
  margin-top: 0;
}
.prose a {
  color: var(--cta);
  border-bottom: 1px solid rgba(0, 144, 192, 0.35);
  padding-bottom: 1px;
}
.prose a:hover { opacity: 1; border-bottom-color: var(--cta); }
.prose blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--cta);
  background: var(--bg-sunken);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 17px;
  color: var(--fg);
}
.prose--article table {
  width: 100%;
  margin: 24px 0 28px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}
.prose--article th,
.prose--article td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--border);
}
.prose--article th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--bg-sunken);
}
.prose--article tbody tr:nth-child(even) td {
  background: rgba(245, 249, 246, 0.6);
}
@media (max-width: 640px) {
  .prose--article table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* --- Media placeholders (CSS fallback when cover_image is empty) --- */
.media-cover {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-sunken);
}
.media-cover--ratio-card { aspect-ratio: 16 / 10; }
.media-cover--ratio-post { aspect-ratio: 16 / 9; }
.media-cover--ratio-panel { aspect-ratio: 4 / 3; min-height: 280px; }
.media-cover--ratio-hero { aspect-ratio: 16 / 11; min-height: 260px; }
.media-cover__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Media placeholders (replace with real photos when ready) --- */
.media-ph {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-sunken);
}
.media-ph--ratio-card { aspect-ratio: 16 / 10; }
.media-ph--ratio-post { aspect-ratio: 16 / 9; }
.media-ph--ratio-panel { aspect-ratio: 4 / 3; min-height: 280px; }
.media-ph--ratio-hero { aspect-ratio: 16 / 11; min-height: 260px; }
.media-ph--ratio-aside { aspect-ratio: 1; min-height: 200px; }
.media-ph--ratio-wide { aspect-ratio: 21 / 9; }

.media-ph__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(23, 48, 58, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 48, 58, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.7;
}
.media-ph--tech {
  background: linear-gradient(145deg, rgba(0, 144, 192, 0.12), var(--bg-sunken) 55%);
}
.media-ph--data {
  background: linear-gradient(160deg, rgba(23, 48, 58, 0.08), var(--bg-alt) 50%);
}
.media-ph--chat {
  background: linear-gradient(135deg, rgba(0, 144, 192, 0.08), var(--bg-sunken) 60%);
}
.media-ph--media {
  background: linear-gradient(120deg, var(--bg-alt), rgba(0, 144, 192, 0.06));
}
.media-ph--idea {
  background: linear-gradient(145deg, var(--bg-sunken), rgba(0, 144, 192, 0.1));
}
.media-ph--default {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg-sunken));
}
.media-ph__label {
  position: absolute; left: 16px; bottom: 14px; right: 16px;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-sub);
}

/* --- Case cards (index / overview) --- */
.case-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}
.case-card-grid--home {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1080px) {
  .case-card-grid--home {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .case-card-grid--home {
    grid-template-columns: 1fr;
  }
}
.case-card-grid--home .case-card__title {
  font-size: 21px;
}
.case-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.case-card:hover {
  opacity: 1;
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow-3);
}
.case-card .media-ph { border: none; border-radius: 0; border-bottom: 1px solid var(--border); }
.case-card__body { padding: 24px 26px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case-card__industry {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-sub);
}
.case-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.case-card__out {
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-mute);
  margin: 0;
  flex: 1;
}
.case-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.case-card__year {
  font-family: var(--font-label);
  font-size: 13px;
  color: var(--fg-sub);
}
.case-card__more { color: var(--cta); font-size: 18px; }

/* --- Case detail hero + KPI band --- */
.case-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: start;
}
.case-hero__grid > * {
  min-width: 0;
}
.case-hero__title { max-width: none; }

/* Produkte overview: contact card in hero */
.case-hero__grid.produkte-hero__grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 40px;
  align-items: center;
}
.produkte-hero__aside {
  width: 100%;
  max-width: 300px;
  justify-self: end;
}
.produkte-hero-card {
  background: var(--ink);
  color: var(--arctic);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  border: 1px solid rgba(245, 249, 246, 0.08);
}
.produkte-hero-card__media {
  position: relative;
}
.produkte-hero-card__photo-link {
  display: block;
  text-decoration: none;
}
.produkte-hero-card__photo {
  margin: 0;
  aspect-ratio: 5 / 4;
  min-height: 200px;
  background-size: cover;
  background-position: center 18%;
  position: relative;
}
.produkte-hero-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--ink) 0%,
    rgba(23, 48, 58, 0.22) 26%,
    transparent 48%
  );
  pointer-events: none;
}
a.produkte-hero-card__photo-link:focus-visible .produkte-hero-card__photo {
  outline: 2px solid var(--cta);
  outline-offset: -2px;
}
.produkte-hero-card__body {
  padding: 22px 24px 26px;
  margin-top: -4px;
}
.produkte-hero-card__who {
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.produkte-hero-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--arctic);
}
.produkte-hero-card__role {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 249, 246, 0.55);
}
.produkte-hero-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 10px;
  color: var(--arctic);
}
.produkte-hero-card__text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(245, 249, 246, 0.78);
  margin: 0 0 18px;
}
.produkte-hero-card__body .btn--primary {
  width: 100%;
  justify-content: center;
}

.case-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.case-hero__facts dt {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-sub);
}
.case-hero__facts dd {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
}

.kpi-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--ink);
  color: var(--arctic);
}
.kpi-band__item {
  padding: 28px 32px;
  border-right: 1px solid rgba(245, 249, 246, 0.12);
  text-align: center;
}
.kpi-band__item:last-child { border-right: none; }
.kpi-band__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.kpi-band__label {
  display: block;
  margin-top: 8px;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 249, 246, 0.65);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: start;
}
.article-layout > * {
  min-width: 0;
}
.article-aside { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 20px; }
.article-aside__box {
  padding: 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.article-aside__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--ink);
}
.article-aside__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-mute);
  margin: 0 0 16px;
}
.article-aside__box {
  padding: 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.article-aside__box--cta {
  padding: 0;
  overflow: hidden;
}
a.article-aside__photo-link {
  display: block;
  text-decoration: none;
}
a.article-aside__photo-link:focus-visible .article-aside__photo {
  outline: 2px solid var(--cta);
  outline-offset: -2px;
}
.article-aside__body {
  padding: 22px 24px 24px;
}
.article-aside__photo {
  margin: 0;
  aspect-ratio: 5 / 4;
  min-height: 0;
  background-size: cover;
  background-position: center 28%;
  background-color: var(--bg-sunken);
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}

/* --- Services (Leistungen) --- */
.services-stack { display: flex; flex-direction: column; gap: 48px; }
.service-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  scroll-margin-top: 96px;
}
.service-panel > * {
  min-width: 0;
}
.produkte-intro {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-mute);
  max-width: 62ch;
  margin: 0 0 8px;
}
.service-panel--reverse .service-panel__copy { order: 2; }
.service-panel--reverse .media-ph { order: 1; }
.service-panel__num {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg-sub);
}
.service-panel__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.025em;
  margin: 8px 0 16px;
  color: var(--ink);
}
.service-panel__duration {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: -4px 0 16px;
  padding: 5px 12px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-bubble);
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
}
.service-panel__subtitle {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin: -8px 0 12px;
}
.service-panel__lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-mute);
  margin: 0 0 20px;
  max-width: 48ch;
}
.service-panel__list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.service-panel__list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--fg-2);
}
.service-panel__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--cta);
  font-size: 12px;
}

.team-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: end;
}
.blog-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: start;
}
.blog-hero__title { max-width: none; }
.blog-hero__copy .page-hero__title {
  margin-top: 0;
}

/* Blog: meta-Hinweis (nicht Artikelinhalt) zwischen Hero und Text */
.blog-stale-bar {
  padding: 18px 0 20px;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  background: var(--bg);
}
.blog-stale-bar__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.blog-stale-bar__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1.5px solid var(--cta);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  color: var(--cta);
  background: rgba(0, 144, 192, 0.08);
}
.blog-stale-bar__label {
  margin: 0;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-sub);
}
.blog-stale-bar__text {
  margin: 0;
  max-width: 62ch;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-mute);
  text-wrap: pretty;
}
.blog-stale-bar + .section.section--flush-top {
  border-top: none;
}

/* Blog post meta (date · reading · author) */
.post-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-sub);
  line-height: 1.3;
}
.post-meta__when,
.post-meta__author-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.post-meta--hero {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  margin-bottom: 20px;
}
.post-meta__dot {
  color: var(--fg-mute);
  opacity: 0.55;
  user-select: none;
  line-height: 1;
}
.post-meta__date {
  font-variant-numeric: tabular-nums;
  text-transform: none;
  letter-spacing: 0.02em;
}
.post-meta__reading {
  text-transform: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.post-meta__author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-2);
}
.post-meta__author-name {
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 500;
}
.post-meta__author-photo {
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-alt);
}
.post-meta--hero .post-meta__author-photo {
  width: 32px;
  height: 32px;
}
.post-meta--teaser .post-meta__author-photo {
  width: 26px;
  height: 26px;
}
.post-teaser__body .post-meta {
  margin: 0;
}
.post-teaser__body .post-meta__author-row {
  width: 100%;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch;
}
.post-teaser {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.post-teaser .media-ph { border: none; border-radius: 0; border-bottom: 1px solid var(--border); }
.post-teaser__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 26px 22px;
  flex: 1;
  min-height: 0;
}
.post-teaser:hover {
  opacity: 1;
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.post-teaser__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  overflow-wrap: break-word;
  hyphens: auto;
}
.post-teaser__lead {
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-mute);
  margin: 0;
  flex: 1;
}
.post-teaser__more {
  font-family: var(--font-label);
  font-size: 13px;
  color: var(--cta);
  margin-top: 8px;
}
.post-teaser__more .arr { margin-left: 4px; }

@media (max-width: 900px) {
  .case-hero__grid.produkte-hero__grid {
    grid-template-columns: 1fr;
  }
  .produkte-hero__aside {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 720px) {
  .post-grid { grid-template-columns: 1fr; }
  .case-card-grid { grid-template-columns: 1fr; }
  .case-hero__grid,
  .case-hero__grid.produkte-hero__grid,
  .article-layout,
  .service-panel,
  .team-hero__grid,
  .person-hero__grid,
  .blog-hero__grid { grid-template-columns: 1fr; }
  .service-panel--reverse .service-panel__copy,
  .service-panel--reverse .media-ph { order: unset; }
  .kpi-band { grid-template-columns: 1fr; }
  .kpi-band__item { border-right: none; border-bottom: 1px solid rgba(245, 249, 246, 0.12); }
  .article-aside { position: static; }
  .produkte-hero-card__photo { min-height: 180px; }
  .page-hero { padding: 64px 0 48px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .site-header > .container {
    padding-left: 18px;
    padding-right: 18px;
  }
  .media-cover--ratio-panel,
  .media-cover--ratio-hero {
    min-height: 0;
  }
}

/* ============================================================
   Error pages (404 etc.)
   ============================================================ */
.error-page {
  min-height: calc(100vh - 96px - 320px);
  display: flex; align-items: center;
  padding: 120px 0;
}
.error-page__inner {
  max-width: 720px;
}
.error-page__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 6vw, 64px); line-height: 1.05;
  letter-spacing: -0.025em; color: var(--ink);
  margin: 28px 0 24px;
  text-wrap: balance;
}
.error-page__lead {
  font-size: 19px; line-height: 1.55; color: var(--fg-mute);
  max-width: 56ch; margin: 0 0 32px;
  text-wrap: pretty;
}
.error-page__ctas {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.error-page__path {
  font-family: var(--font-label); font-size: 12px;
  color: var(--fg-sub); letter-spacing: 0.02em;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.error-page__path .label {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px;
}
.error-page__path code {
  font-family: var(--font-label); font-size: 13px;
  color: var(--ink); background: var(--bg-alt);
  padding: 3px 9px; border-radius: 6px;
  border: 1px solid var(--border);
}
@media (max-width: 880px) {
  .error-page { padding: 72px 0; min-height: auto; }
}

/* Ambient overlay (optional motion) */
.ambient-root {
  position: fixed;
  inset: 0;
  z-index: 10050;
  pointer-events: none;
  visibility: hidden;
}
.ambient-root.is-active { visibility: visible; }
.ambient-root__buf {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ambient-peek {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 10051;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%) translateY(110%);
  transition: transform 720ms var(--ease-spring);
  filter: drop-shadow(0 -8px 24px rgba(23, 48, 58, 0.12));
}
.ambient-root.is-active .ambient-peek {
  transform: translateX(-50%) translateY(8%);
}
.ambient-peek__mark {
  width: auto;
  height: clamp(100px, 18vh, 160px);
  transform-origin: 50% 100%;
  animation: ambient-peek-sway 2.4s ease-in-out infinite alternate;
}
.ambient-peek__note {
  position: relative;
  margin: 0 0 10px;
  padding: 8px 18px 10px;
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--arctic);
  background: var(--ink);
  border-radius: var(--radius-bubble);
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  transition: opacity 400ms ease 320ms, transform 520ms var(--ease-spring) 280ms;
}
.ambient-peek__note::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  margin-left: -6px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--ink);
}
.ambient-root.is-active .ambient-peek__note {
  opacity: 1;
  transform: translateY(0) scale(1);
}
@keyframes ambient-peek-sway {
  from { transform: rotate(-5deg) translateY(0); }
  to   { transform: rotate(8deg) translateY(-4px); }
}
body.ambient-live .site-footer {
  position: relative;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .ambient-peek__mark { animation: none; }
  .ambient-root.is-active .ambient-peek {
    transform: translateX(-50%) translateY(12%);
  }
}
