/* Baustellenseite AMFINITY 3D. Werte aus site/src/styles/tokens.css, von Hand
   übernommen, damit dieses Verzeichnis ohne den Vite-Build der Hauptseite auskommt. */

@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/ibm-plex-sans-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }
/* ß-Korrektur wie in site/src/styles/global.css: die Plex-Mono-Datei rendert U+00DF
   als kaputte Glyphe, dieses zweite @font-face fängt den Codepunkt vorher ab. */
@font-face {
  font-family: 'IBM Plex Mono';
  unicode-range: U+00DF;
  src: local('Consolas'), local('Cascadia Mono'), local('Menlo'), local('DejaVu Sans Mono'), local('Courier New');
}

:root {
  --bg: #16181d;
  --bg-alt: #1e2128;
  --surface: #252932;
  --surface-2: #2e333d;
  --ink: #f5f5f7;
  --ink-2: #b8bcc6;
  --ink-3: #8b909c;
  --ink-invert: #16181d;
  --orange: #ff6a1a;
  --orange-hot: #ff8a3d;
  --orange-deep: #c9430a;
  --orange-rgb: 255, 106, 26;
  --bg-rgb: 22, 24, 29;
  --hairline: rgba(255, 255, 255, 0.11);
  --font-display: 'IBM Plex Sans', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --fs-card-title: 17px;
  --fs-lead: 16px;
  --fs-body: 15px;
  --fs-body-s: 14px;
  --fs-label: 12px;
  --fs-caption: 13px;
  --fs-micro: 11px;
  --fs-h-seite: clamp(34px, 4.4vw, 54px);
  --fs-h-gross: clamp(40px, 5.6vw, 76px);
  --button-h: 50px;
  --button-pad-x: 28px;
  --radius-button: 3px;
  --motion: 0.25s ease;
  --kopf-h: 84px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
::selection { background: var(--orange-deep); color: var(--ink); }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container { width: min(100% - 48px, 1240px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  padding: 10px 16px; background: var(--orange); color: var(--ink-invert);
  font-family: var(--font-mono); font-size: var(--fs-label); text-decoration: none;
}
.skip-link:focus { top: 16px; }

.mono-label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.eyebrow { display: block; margin-bottom: 18px; }

/* ── Kopf und Fuß ────────────────────────────────────────── */
.site-header { border-bottom: 1px solid var(--hairline); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--kopf-h); gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.logo img { width: 120px; height: 60px; }
.logo-wortmarke { font-family: var(--font-display); font-weight: 500; font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.header-hinweis { white-space: nowrap; }

.site-footer { margin-top: auto; border-top: 1px solid var(--hairline); background: var(--bg-alt); }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px; padding: 28px 0;
}
.footer-firma { display: flex; flex-direction: column; gap: 2px; }
.footer-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: var(--fs-body); }
.footer-logo { width: 56px; height: 28px; }
.footer-ort { color: var(--ink-3); font-size: var(--fs-caption); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a {
  color: var(--ink-2); text-decoration: none; font-size: var(--fs-body-s);
  border-bottom: 1px solid transparent; transition: color var(--motion), border-color var(--motion);
}
.footer-nav a:hover, .footer-nav a[aria-current="page"] { color: var(--orange-hot); border-color: var(--orange-hot); }

.site-header, .site-footer, main { position: relative; z-index: 1; }

/* ── Gemeinsames der Startseite ──────────────────────────── */
.start-titel {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-h-seite);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}
.start-titel--gross { font-size: var(--fs-h-gross); letter-spacing: -0.025em; line-height: 1.04; }
.start-lead { margin-top: 26px; max-width: 58ch; font-size: clamp(16px, 1.4vw, 18px); color: var(--ink-2); }
.start-lead strong { color: var(--ink); font-weight: 500; }

.cta-line {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--button-h); padding: 0 var(--button-pad-x);
  margin-top: 32px;
  font-family: var(--font-display); font-size: var(--fs-body-s); font-weight: 500; letter-spacing: 0.04em;
  text-decoration: none; border-radius: var(--radius-button);
  color: var(--orange-hot); border: 1px solid var(--orange); background: rgba(var(--orange-rgb), 0.10);
  transition: color var(--motion), border-color var(--motion), background var(--motion), box-shadow var(--motion), transform var(--motion);
}
.cta-line:hover {
  color: var(--ink-invert); background: var(--orange); border-color: transparent;
  box-shadow: 0 0 44px rgba(var(--orange-rgb), 0.35); transform: translateY(-1px);
}

.ambient-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(80vw 80vh at 60% 40%, #000 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(80vw 80vh at 60% 40%, #000 15%, transparent 75%);
}

/* ── Variante A: Porträt ─────────────────────────────────── */
.var-a .a-buehne {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: calc(100vh - var(--kopf-h));
  width: min(100% - 48px, 1400px);
  margin-inline: auto;
}
.var-a .a-text {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(56px, 8vw, 120px) clamp(24px, 5vw, 80px) clamp(56px, 8vw, 120px) 0;
}
.a-kontakt { list-style: none; margin-top: 40px; width: 100%; max-width: 520px; border-top: 1px solid var(--hairline); }
.a-kontakt li {
  display: grid; grid-template-columns: 120px 1fr; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--hairline);
}
.a-kontakt a { text-decoration: none; font-weight: 500; font-size: var(--fs-body); transition: color var(--motion); }
.a-kontakt a:hover { color: var(--orange-hot); }
.a-kontakt li > span:last-child { color: var(--ink-2); font-size: var(--fs-body); }

.var-a .a-bild, .var-d .a-bild { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.var-a .a-bild::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 55% at 70% 35%, rgba(var(--orange-rgb), 0.28), transparent 70%),
    radial-gradient(40% 60% at 100% 80%, rgba(var(--orange-rgb), 0.12), transparent 70%);
}
.a-portraet {
  position: relative; z-index: 1;
  width: min(100%, 560px); height: auto; max-height: calc(100vh - var(--kopf-h)); object-fit: cover; object-position: top;
  /* Das Foto liegt auf Schwarz, der Seitengrund ist Anthrazit. Die Maske sitzt auf dem
     Bild selbst, weil object-fit dort beschneidet: alle vier Kanten laufen weich aus,
     damit das Schwarz nirgends als Rechteck steht. */
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 72%, transparent 100%), linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 72%, transparent 100%), linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-composite: intersect; -webkit-mask-composite: source-in;
}
.a-bildtext {
  position: absolute; left: 0; bottom: clamp(24px, 4vw, 48px); z-index: 2;
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 16px; border-left: 2px solid var(--orange);
  background: rgba(var(--bg-rgb), 0.7); backdrop-filter: blur(6px);
}
.a-name { font-size: var(--fs-body); font-weight: 500; }

/* ── Variante B: Werkbank ────────────────────────────────── */
.var-b { background: #0f1013; }
.b-hintergrund {
  position: fixed; inset: 0; z-index: 0;
  background-image: image-set(url('/img/werkbank.webp') 1x);
  background-size: cover; background-position: center 40%;
  filter: saturate(0.85);
}
.b-hintergrund::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(var(--bg-rgb), 0.55) 0%, rgba(var(--bg-rgb), 0.72) 45%, rgba(var(--bg-rgb), 0.97) 100%),
    radial-gradient(70% 60% at 85% 15%, rgba(var(--orange-rgb), 0.22), transparent 70%);
}
.var-b .site-header { border-bottom-color: rgba(255, 255, 255, 0.14); background: rgba(var(--bg-rgb), 0.35); backdrop-filter: blur(8px); }
.var-b .b-buehne { display: flex; flex-direction: column; justify-content: space-between; min-height: calc(100vh - var(--kopf-h)); }
.b-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px;
  padding: clamp(72px, 10vw, 140px) 0 clamp(40px, 6vw, 72px);
}
.b-kopf .start-lead { max-width: 56ch; }
.var-b .eyebrow { color: var(--ink-2); }
.b-person {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px 14px 14px; border: 1px solid var(--hairline); border-radius: 3px;
  background: rgba(var(--bg-rgb), 0.6); backdrop-filter: blur(8px);
}
.b-person > div { display: flex; flex-direction: column; gap: 2px; }
.b-portraet { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; border: 1px solid rgba(255, 255, 255, 0.2); }
.b-name { font-size: var(--fs-card-title); font-weight: 500; }
.b-rolle { color: var(--ink-2); font-size: var(--fs-caption); }

.b-leiste {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--hairline); border-radius: 3px; overflow: hidden;
  background: rgba(var(--bg-rgb), 0.7); backdrop-filter: blur(8px);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.b-leiste li + li { border-left: 1px solid var(--hairline); }
.b-leiste a, .b-statisch { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; text-decoration: none; transition: background var(--motion); }
.b-leiste a:hover { background: rgba(var(--orange-rgb), 0.12); }
.b-wert { font-size: var(--fs-body); font-weight: 500; }
.b-statisch .b-wert { font-weight: 400; color: var(--ink-2); }

/* ── Variante C: Blueprint ───────────────────────────────── */
.var-c .c-buehne { display: flex; flex-direction: column; min-height: calc(100vh - var(--kopf-h)); }
.c-raster {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-rows: auto auto;
  column-gap: clamp(32px, 5vw, 80px);
  padding: clamp(56px, 7vw, 100px) 0 clamp(40px, 5vw, 64px);
}
.c-text { grid-column: 1; grid-row: 1; }
.c-orange { color: var(--orange); font-weight: 400; }
.c-bild { grid-column: 2; grid-row: 1 / span 2; align-self: start; justify-self: end; width: min(100%, 420px); }
.c-rahmen {
  position: relative; padding: 14px;
  border: 1px solid var(--hairline);
}
.c-rahmen::before, .c-rahmen::after {
  content: ''; position: absolute; width: 22px; height: 22px; border-color: var(--orange); border-style: solid;
}
.c-rahmen::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; }
.c-rahmen::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }
.c-portraet { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; filter: contrast(1.05); }
.c-text .cta-line { margin-top: 28px; }
.c-bildtext { display: flex; justify-content: space-between; margin-top: 10px; color: var(--ink-2); font-size: var(--fs-caption); }
.c-kontakt {
  grid-column: 1; grid-row: 2; align-self: end;
  list-style: none; margin-top: 48px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px;
  border-top: 1px solid var(--hairline);
}
.c-kontakt li { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.c-kontakt a { text-decoration: none; font-weight: 500; font-size: var(--fs-body); transition: color var(--motion); }
.c-kontakt a:hover { color: var(--orange-hot); }
.c-kontakt li > span:last-child:not(.mono-label) { color: var(--ink-2); font-size: var(--fs-body); line-height: 1.5; }

.c-laufband { overflow: hidden; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--bg-alt); }
.c-lauf { display: flex; width: max-content; animation: c-lauf 42s linear infinite; }
.c-lauf span {
  padding: 14px 36px; white-space: nowrap;
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3);
  border-right: 1px solid var(--hairline);
}
@keyframes c-lauf { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Rechtsseiten ────────────────────────────────────────── */
.page-intro { padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.page-intro h1 {
  font-family: var(--font-display); font-weight: 300; font-size: var(--fs-h-seite);
  letter-spacing: -0.02em; line-height: 1.12; max-width: 20ch;
}
.page-lead { margin-top: 16px; color: var(--ink-3); font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; }
.page-intro .cta-line { margin-top: 28px; }

.section--alt { background: var(--bg-alt); border-top: 1px solid var(--hairline); }
.legal-section { padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); }

.legal-raster { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: 48px clamp(40px, 5vw, 80px); align-items: start; }
.legal-seite { position: sticky; top: 24px; }
.legal-kurz { margin-bottom: 24px; color: var(--ink); }
.legal-intro { margin-bottom: 24px; }
.legal-intro .legal-box { max-width: none; margin-bottom: 0; }

.legal-toc-label { display: block; margin-bottom: 12px; }
.legal-toc ol { list-style: none; border-top: 1px solid var(--hairline); }
.legal-toc li { border-bottom: 1px solid var(--hairline); }
.legal-toc a {
  display: block; padding: 10px 0 10px 14px; position: relative;
  color: var(--ink-2); text-decoration: none; font-size: var(--fs-body-s); line-height: 1.45;
  transition: color var(--motion);
}
.legal-toc a::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: transparent; transition: background var(--motion); }
.legal-toc a:hover { color: var(--ink); }
.legal-toc a:hover::before { background: var(--orange); }

.legal-werkzeuge { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 10px; }
.filter-btn {
  display: inline-block; padding: 6px 12px;
  font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: 0.08em;
  color: var(--ink-2); text-decoration: none;
  border: 1px solid var(--hairline); border-radius: 3px;
  transition: color var(--motion), border-color var(--motion);
}
.filter-btn:hover { color: var(--orange-hot); border-color: var(--orange); }

.legal-abschnitt { border-top: 1px solid var(--hairline); scroll-margin-top: 24px; }
.legal-abschnitt:last-child { border-bottom: 1px solid var(--hairline); }
.legal-abschnitt summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
  transition: color var(--motion);
}
.legal-abschnitt summary::-webkit-details-marker { display: none; }
.legal-abschnitt summary:hover, .legal-abschnitt[open] summary { color: var(--orange-hot); }
.legal-abschnitt h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1rem, 1.5vw, 1.15rem); letter-spacing: -0.01em; line-height: 1.3;
}
.legal-pfeil { position: relative; flex: 0 0 18px; height: 18px; }
.legal-pfeil::before, .legal-pfeil::after { content: ''; position: absolute; left: 50%; top: 50%; background: currentColor; transition: transform var(--motion); }
.legal-pfeil::before { width: 14px; height: 1px; transform: translate(-50%, -50%); }
.legal-pfeil::after { width: 1px; height: 14px; transform: translate(-50%, -50%); }
.legal-abschnitt[open] .legal-pfeil::after { transform: translate(-50%, -50%) rotate(90deg); }
.legal-panel { padding: 4px 0 28px; }

.legal-abschnitt h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-card-title); margin: 20px 0 10px; }
.legal-panel > h3:first-child { margin-top: 0; }
.legal-abschnitt p { color: var(--ink-2); font-size: var(--fs-body-s); max-width: 78ch; margin-bottom: 14px; }
.legal-abschnitt ul { list-style: none; margin: 0 0 14px; max-width: 78ch; display: flex; flex-direction: column; gap: 10px; }
.legal-abschnitt ul li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: var(--fs-body-s); line-height: 1.65; }
.legal-abschnitt ul li::before { content: ''; position: absolute; left: 0; top: 0.8em; width: 8px; height: 1px; background: var(--orange); }

.legal-box {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 3px;
  padding: 18px 22px; margin-bottom: 18px; max-width: 78ch;
  font-size: var(--fs-body-s); line-height: 1.7; color: var(--ink-2);
}

.legal-table-wrap { overflow-x: auto; margin-bottom: 18px; border-top: 1px solid var(--hairline); }
.legal-table-wrap table { width: 100%; border-collapse: collapse; min-width: 560px; }
.legal-table-wrap th {
  text-align: left; font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3); padding: 14px 16px; border-bottom: 1px solid var(--hairline); white-space: nowrap;
}
.legal-table-wrap td { padding: 14px 16px; border-bottom: 1px solid var(--hairline); color: var(--ink-2); font-size: var(--fs-caption); vertical-align: top; }

.legal-form { display: flex; flex-direction: column; gap: 20px; border: 1px solid var(--hairline); border-radius: 3px; padding: 24px 26px; margin: 18px 0; max-width: 78ch; }
.legal-form-field { display: flex; flex-direction: column; gap: 8px; }
.legal-form-label { font-size: var(--fs-micro); letter-spacing: 0.14em; }
.legal-form-line { border-bottom: 1px solid var(--hairline); height: 22px; }

@media print {
  .legal-abschnitt { border: 0; }
  .legal-werkzeuge, .legal-pfeil, .site-footer { display: none; }
  .legal-raster { display: block; }
}

/* ── Umbrüche ────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .var-a .a-buehne { grid-template-columns: 1fr; min-height: 0; }
  .var-a .a-text { order: 2; padding: 40px 0 64px; }
  .var-a .a-bild { order: 1; }
  .a-portraet { width: min(100%, 420px); max-height: 56vh; }
  .b-inner { grid-template-columns: 1fr; align-items: start; }
  .b-leiste { grid-template-columns: repeat(2, 1fr); }
  .b-leiste li:nth-child(3) { border-left: 0; }
  .b-leiste li:nth-child(n + 3) { border-top: 1px solid var(--hairline); }
  .c-raster { grid-template-columns: 1fr; }
  .c-bild { grid-column: 1; grid-row: 2; justify-self: start; width: min(100%, 360px); margin-top: 40px; }
  .c-kontakt { grid-row: 3; }
  .legal-raster { grid-template-columns: 1fr; gap: 24px; }
  .legal-seite { position: static; }
  /* Schmal steht die Akkordeonliste direkt unter dem Inhaltsverzeichnis und wäre
     dieselbe Liste zweimal; das Verzeichnis bleibt dem breiten Layout vorbehalten. */
  .legal-toc { display: none; }
}
@media (max-width: 600px) {
  .header-inner { min-height: 72px; }
  :root { --kopf-h: 72px; }
  .logo img { width: 100px; height: 50px; }
  .logo { gap: 10px; }
  .logo-wortmarke { font-size: 14px; }
  /* Auf dem Handy trägt der Kopf nur Logo und Wortmarke, sonst bricht die Marke um. */
  .header-hinweis { display: none; }
  .logo-wortmarke { white-space: nowrap; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .d-punkte { grid-template-columns: 1fr; }
  .d-zeile { flex-direction: column; gap: 12px; }
  .a-kontakt li { grid-template-columns: 1fr; gap: 4px; }
  .b-leiste { grid-template-columns: 1fr; }
  .b-leiste li + li { border-left: 0; border-top: 1px solid var(--hairline); }
  .c-kontakt { grid-template-columns: 1fr; }
  .legal-werkzeuge { justify-content: flex-start; }
}

/* ── Variante D: Mischung (Kopf B, Porträt A, Typo und Laufband C, Kontakt A) ── */
.var-d .site-header { background: rgba(9, 10, 13, 0.92); border-bottom-color: rgba(255, 255, 255, 0.16); }
.var-d .b-hintergrund::after {
  background:
    linear-gradient(to bottom, rgba(var(--bg-rgb), 0.62) 0%, rgba(var(--bg-rgb), 0.78) 50%, rgba(var(--bg-rgb), 0.96) 100%),
    radial-gradient(70% 60% at 85% 15%, rgba(var(--orange-rgb), 0.18), transparent 70%);
}
/* Tischkante als Obergrenze für den Text (Tobias, 02.09.). Das Werkbank-Foto (1600 x 893)
   hat die Tischkante bei 18,5 % seiner Höhe. Mit background-size: cover und Anker oben
   ist die gerenderte Bildhöhe max(100vh, 100vw * 893/1600), die Kante liegt also bei
   max(18.5vh, 10.35vw) vom oberen Fensterrand. Der Text beginnt 28 px darunter. */
.var-d .b-hintergrund { background-position: center top; }
.var-d .d-buehne { display: flex; flex-direction: column; flex: 1; }
.var-d .eyebrow { color: var(--ink); }
/* Zwei Zeilen: die Overline allein oben, darunter Text und Bild in einer Zeile. So liegt
   die Oberkante des Porträts genau auf der Oberkante der Überschrift (Tobias, 02.09.). */
.d-raster {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  /* Beide Zeilen auto, nicht 1fr: sonst füllt die Bildzeile den Rest und der Textblock
     klebt oben. So wird der ganze Block (Overline, Text, Bild) im Abschnitt mittig gesetzt. */
  grid-template-rows: auto auto;
  column-gap: clamp(24px, 4vw, 64px);
  align-content: start;
  padding: max(16px, calc(max(18.5vh, 10.35vw) + 28px - var(--kopf-h))) 0 clamp(12px, 2vh, 40px);
}
.d-eyebrow { grid-column: 1; grid-row: 1; margin-bottom: 12px; }
.d-oben { color: var(--ink-2); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.55; margin-bottom: 14px; }
.d-text { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; align-items: flex-start; }
.d-titel { font-size: clamp(32px, 3.8vw, 56px); letter-spacing: -0.025em; line-height: 1.04; }
.d-text .start-lead { margin-top: 14px; max-width: 54ch; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; }
.d-lead { margin-top: 10px; }
/* Zwei Spalten, spaltenweise gefüllt: links die drei Zahlen, rechts die drei Zusagen. */
/* Spaltensatz statt Grid: Ein Grid teilt die Zeilenhöhe, ein zweizeiliger Punkt rechts riss
   dann links eine Lücke. Mit column-count läuft jede Spalte für sich. */
.d-punkte { list-style: none; margin-top: 8px; column-count: 2; column-gap: 24px; max-width: 560px; }
.d-punkte li { break-inside: avoid; margin-bottom: 4px; }
.d-punkte li { position: relative; padding-left: 16px; color: var(--ink); font-size: clamp(14px, 1.1vw, 16px); line-height: 1.5; }
.d-punkte li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 1px; background: var(--orange); }
.d-schluss { margin-top: 10px; }
.d-text .cta-line { margin-top: 14px; }
/* Kontaktzeile: drei Wege mit Symbol nebeneinander, größer als Fließtext, ohne Anschrift
   (Tobias, 02.09.). Umbricht bei Platzmangel in eine zweite Zeile. */
.d-zeile { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 36px; margin-top: 26px; }
.d-zeile a {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: clamp(16px, 1.3vw, 19px); font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: color var(--motion);
}
.d-zeile a:hover { color: var(--orange-hot); }
.d-zeile svg { flex: 0 0 auto; color: var(--orange); }

/* Wechselwort wie im Hero der Hauptwebsite: vier Wörter, 2500 ms je Wort, weicher
   Übergang. Alle liegen übereinander, das breiteste bestimmt die Zeilenbreite. */
.wechselwort { position: relative; display: inline-grid; color: var(--orange); }
.wechselwort > span { grid-area: 1 / 1; opacity: 0; animation: wechsel 10s infinite; }
.wechselwort > span:nth-child(2) { animation-delay: 2.5s; }
.wechselwort > span:nth-child(3) { animation-delay: 5s; }
.wechselwort > span:nth-child(4) { animation-delay: 7.5s; }
@keyframes wechsel {
  0% { opacity: 0; transform: translateY(6px); }
  4%, 22% { opacity: 1; transform: none; }
  26%, 100% { opacity: 0; transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .wechselwort > span { animation: none; }
  .wechselwort > span:first-child { opacity: 1; }
}
.d-bild { grid-column: 2; grid-row: 2; min-height: 0; }
.d-bild::before { display: none; }
.d-bild .a-bildtext { left: 50%; transform: translateX(-50%); white-space: nowrap; }
/* Absolut im Rahmen, Höhe aus der Textzeile, Breite folgt dem Bildformat: derselbe volle
   Ausschnitt wie in A, nur so hoch, wie der Text daneben ist. Nichts wird beschnitten. */
.d-portraet { position: absolute; top: 0; right: 0; height: 100%; width: auto; max-width: 100%; max-height: none; object-fit: contain; object-position: top right; }
.d-laufband .c-lauf span { padding-top: 11px; padding-bottom: 11px; }
.d-laufband { border-bottom: 0; background: rgba(var(--bg-rgb), 0.85); }
.c-lauf em { font-style: normal; color: var(--orange); margin-right: 10px; }

@media (max-width: 1000px) {
  .d-raster { grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding-top: 0; }
  .d-bild { grid-column: 1; grid-row: 1; height: 56vh; }
  .d-eyebrow { grid-row: 2; margin-top: 28px; }
  .d-text { grid-row: 3; padding-bottom: 40px; }
  .d-portraet { left: 0; right: auto; width: 100%; object-position: top center; }
  /* Kachel auf dem Handy: Unterkante eine halbe Kachelhöhe über der Bildunterkante
     */
  /* Die Maske blendet das untere Bildviertel aus; die sichtbare Bildunterkante liegt also
     deutlich über dem Bildrahmen. Tobias markierte die Kachel eine ganze Kachelhöhe
     höher: Unterkante 1,5 Kachelhöhen über dem Rahmen, damit sichtbar eine halbe Kachel
     Bild zwischen Kachel und Bildende bleibt. */
  .d-bild .a-bildtext { bottom: 0; transform: translate(-50%, -100%); }
}

/* Niedrige Fenster (Laptops mit 800 und 900 px): dieselben Bausteine, engere Fugen, damit
   Kopf, Inhalt, Laufband und Fuß ohne Scrollen passen. Gemessen 02.09.: 1280x800 fehlten 32 px. */
@media (min-width: 1001px) and (max-height: 920px) {
  .var-d .d-raster { padding-top: max(12px, calc(max(18.5vh, 10.35vw) + 18px - var(--kopf-h))); padding-bottom: 8px; }
  .var-d .d-lead, .var-d .d-schluss { margin-top: 6px; }
  .var-d .d-text .cta-line { margin-top: 10px; }
  .var-d .d-zeile { margin-top: 18px; }
  .var-d .d-laufband .c-lauf span { padding-top: 8px; padding-bottom: 8px; }
  .var-d .footer-inner { padding: 16px 0; }
}

/* Steht hinter dem Variante-D-Block, weil dessen zweispaltige Regel sonst die
   Handy-Regel weiter oben überschreibt (Reihenfolge im Stylesheet). */
@media (max-width: 600px) {
  .d-punkte { column-count: 1; }
}
