/* ==========================================================================
   Tim Simms · Design "Motorsport-Klassik" (Sept. 2026)

   Idee: ein Rennprogramm / Magazinporträt aus der Zeit der luftgekühlten
   Porsche. Warmes Creme als Papier, dunkles Petrol als einzige Farbe, feine
   Haarlinien statt Karten und Schatten. Fotos ungetönt, gerade Kanten, kein
   Overlay. Headlines in breiter Archivo, Fließtext in Source Serif.

   Bewusst NICHT mehr drin (wirkte laut Robert "typisch KI"): roter Glow,
   Filmkorn, Laufband, schräge Bildschnitte, Kamera-Eckklammern, Eyebrows
   mit Strich davor, Plakat-Versalien. Altes Design: _quellmaterial/design-precision-hud/.

   Theme: Standard ist hell (Creme). body.dark (von common.js gesetzt) schaltet
   auf die dunkle Variante. --accent kommt zusätzlich aus dem CMS (settings.accent).
   ========================================================================== */

:root {
  --accent: #1f4e56;           /* Petrol */
  --accent-rgb: 31, 78, 86;
  --accent-ui: var(--accent);  /* Akzent für Text/Linien (im Dunkeln aufgehellt) */
  --accent-ink: #f6f2e9;

  --bg: #f3efe6;               /* Programm-Papier */
  --bg-raised: #ebe5d8;
  --paper: #faf7f0;
  --ink: #1b1f1e;
  --text: #1b1f1e;
  --text-dim: #4d524f;
  --text-faint: #666962;       /* >= 4.5:1 auf Creme (WCAG AA) */
  --line: rgba(27, 31, 30, 0.22);
  --line-soft: rgba(27, 31, 30, 0.12);

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-ui: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --container: 1200px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

body.dark {
  --accent-ui: color-mix(in srgb, var(--accent) 45%, #e9f1ef);
  --accent-ink: #f6f2e9;
  --bg: #141816;
  --bg-raised: #1b201e;
  --paper: #191e1c;
  --ink: #0e1110;
  --text: #ece6d8;
  --text-dim: #b7b2a6;
  --text-faint: #95928a;
  --line: rgba(236, 230, 216, 0.2);
  --line-soft: rgba(236, 230, 216, 0.1);
}

/* ------------------------------------------------------------------ Basis */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background .3s, color .3s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* Kleine Beschriftung in Versalien, wie Rubriken im Rennprogramm */
.label, .sh-label, .sh-side {
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0;
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 600; letter-spacing: .02em;
  padding: 14px 24px; border-radius: var(--radius); border: 1px solid transparent;
  transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
.btn-outline { border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--text); }

/* ------------------------------------------------------ Scroll-Fortschritt */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0%; background: var(--accent-ui); z-index: 2000; }

/* ----------------------------------------------------------------- Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
  transition: border-color .3s;
}
.site-header.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand {
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
  font-stretch: 125%; font-variation-settings: "wdth" 125;
  letter-spacing: .04em; text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-family: var(--font-ui); font-size: 14px; font-weight: 500; color: var(--text-dim); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-cta { color: var(--accent-ui); font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.nav-tools { display: flex; align-items: center; gap: 12px; }

.tool-btn {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-dim); transition: border-color .2s, color .2s;
}
.tool-btn:hover { border-color: var(--text); color: var(--text); }
.tool-btn svg { width: 16px; height: 16px; }
.lang-toggle { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.lang-toggle button { padding: 8px 11px; color: var(--text-faint); transition: background .2s, color .2s; }
.lang-toggle button.active { background: var(--text); color: var(--bg); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 24px; }
.nav-toggle span { display: block; height: 1.5px; background: var(--text); transition: transform .25s var(--ease), opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Ankündigungsleiste */
.announcement-bar { background: var(--accent); color: var(--accent-ink); font-family: var(--font-ui); font-size: 13px; }
.announcement-inner { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 9px; padding-bottom: 9px; position: relative; text-align: center; }
.announcement-link { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.announcement-close { position: absolute; right: 32px; top: 50%; transform: translateY(-50%); font-size: 20px; line-height: 1; opacity: .8; }
.announcement-close:hover { opacity: 1; }

/* ------------------------------------------------------------------- Hero */
.hero { padding: calc(var(--header-h) + 64px) 0 96px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: end; }
.hero-meta { font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); padding-bottom: 18px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.hero-headline {
  font-size: clamp(46px, 7.2vw, 108px);
  font-weight: 800; font-stretch: 118%; font-variation-settings: "wdth" 118;
  line-height: .96; letter-spacing: -0.025em;
  margin-bottom: 34px;
}
.hero-headline .line { display: block; }
.hero-headline .accent { color: var(--accent-ui); font-weight: 300; font-style: italic; }
.hero-role { font-family: var(--font-ui); font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.hero-sub { color: var(--text-dim); font-size: 18px; max-width: 52ch; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-figure { margin: 0; position: relative; }
.hero-figure img { width: 100%; aspect-ratio: 685 / 805; object-fit: cover; }

/* ------------------------------------------------------ Hero-Video
   "has-bg-video": Vollbild-Video hinter dem Hero (wie robertrodak.com). Nur ein
   weicher Verlauf von unten, damit die Schrift lesbar bleibt, keine Tönung
   übers ganze Bild. "has-frame-video": Video statt Foto im Bildrahmen rechts. */
.hero { position: relative; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--ink); }
.hero-media video, .hero-frame-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media iframe, .hero-frame-video iframe { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 0; pointer-events: none; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,17,16,.78) 0%, rgba(14,17,16,.35) 42%, rgba(14,17,16,0) 72%); pointer-events: none; }

.hero.has-bg-video { min-height: 100svh; display: flex; align-items: flex-end; border-bottom: none; padding-bottom: 72px; }
.hero.has-bg-video .hero-grid { position: relative; z-index: 1; grid-template-columns: 1fr; width: 100%; }
.hero.has-bg-video .hero-figure { display: none; }
.hero.has-bg-video .hero-text { max-width: 760px; color: #f3efe6; }
.hero.has-bg-video .hero-meta { color: rgba(243,239,230,.75); border-color: rgba(243,239,230,.35); }
.hero.has-bg-video .hero-headline .accent { color: #bcd7d6; }
.hero.has-bg-video .hero-role { color: #f3efe6; }
.hero.has-bg-video .hero-sub { color: rgba(243,239,230,.85); }
.hero.has-bg-video .btn-outline { color: #f3efe6; border-color: rgba(243,239,230,.5); }
.hero.has-bg-video .btn-outline:hover { border-color: #f3efe6; }

.hero-frame-video { position: absolute; inset: 0; overflow: hidden; background: var(--ink); }

.sound-toggle {
  position: absolute; right: 32px; bottom: 32px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px;
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  color: #f3efe6; background: rgba(14,17,16,.55); border: 1px solid rgba(243,239,230,.35); border-radius: var(--radius);
  backdrop-filter: blur(6px); transition: background .2s, border-color .2s;
}
.sound-toggle:hover { background: rgba(14,17,16,.75); border-color: #f3efe6; }
.sound-toggle svg { width: 16px; height: 16px; }
.hero.has-frame-video .sound-toggle { bottom: 110px; }

/* ------------------------------------------------------------- Sektionen */
section { padding: 110px 0; position: relative; }
.section-head { display: flex; align-items: center; gap: 18px; margin-bottom: 36px; }
.sh-rule { flex: 1; height: 1px; background: var(--line); }
.sh-side { white-space: nowrap; }
.section-title { font-size: clamp(34px, 4.6vw, 60px); margin-bottom: 48px; }

/* ------------------------------------------------------ Datenblatt (Fakten) */
.facts { padding: 0; border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.fact { padding: 30px 28px 30px 0; border-right: 1px solid var(--line); }
.fact + .fact { padding-left: 28px; }
.fact:last-child { border-right: none; }
.fact dt { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); font-stretch: 118%; font-variation-settings: "wdth" 118; line-height: 1.1; margin-bottom: 6px; }
.fact dd { margin: 0; font-family: var(--font-ui); font-size: 13px; color: var(--text-faint); }

/* ------------------------------------------------------------------ Über mich */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.about-media { margin: 0; position: sticky; top: calc(var(--header-h) + 28px); }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-media .tag { margin-top: 12px; font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.about-grid .section-title { margin-bottom: 32px; }
.about-text p { color: var(--text-dim); max-width: 62ch; }
.about-text p:first-child { color: var(--text); font-size: 21px; line-height: 1.5; }
.about-more { margin-top: 26px; }
.about-more summary { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; font-family: var(--font-ui); font-size: 14px; font-weight: 600; color: var(--accent-ui); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.about-more summary::-webkit-details-marker { display: none; }
.about-more summary::after { content: '+'; font-weight: 400; font-size: 17px; line-height: 1; }
.about-more[open] summary::after { content: '\2212'; }
.about-more-text { margin-top: 26px; }
.about-more-text p { color: var(--text-dim); max-width: 62ch; }

/* --------------------------------------------------------- Tätigkeitsfelder
   Zeilen wie in einer Startliste: Nummer | Titel | Text + Link */
#professions { padding-top: 40px; }
.prof-grid { border-top: 1px solid var(--text); }
.prof-card {
  display: grid; grid-template-columns: 70px 1fr 1.25fr; column-gap: 32px;
  grid-template-areas: "num title text" "num title cta";
  padding: 34px 0; border-bottom: 1px solid var(--line);
}
.prof-num { grid-area: num; font-family: var(--font-ui); font-size: 14px; font-weight: 600; color: var(--accent-ui); padding-top: 6px; }
.prof-title { grid-area: title; font-size: clamp(22px, 2.4vw, 30px); }
.prof-text { grid-area: text; color: var(--text-dim); margin: 0; max-width: 58ch; }
.prof-cta { grid-area: cta; justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-family: var(--font-ui); font-size: 13.5px; font-weight: 600; color: var(--accent-ui); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.prof-cta svg { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.prof-cta:hover svg { transform: translate(2px, -2px); }

/* --------------------------------------------------------------- Werdegang */
.career-section { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.approach { margin-bottom: 72px; }
.approach-head { margin-bottom: 20px; }
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.approach-item { border-top: 2px solid var(--accent-ui); padding-top: 20px; }
.approach-num { display: block; font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--text-faint); margin-bottom: 10px; }
.approach-title { font-size: 22px; margin-bottom: 10px; }
.approach-item p { color: var(--text-dim); font-size: 16px; }

.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--text); }
.tl-item { border-bottom: 1px solid var(--line); }
.tl-row { display: grid; grid-template-columns: 190px 1fr 24px; gap: 32px; align-items: baseline; padding: 22px 0; list-style: none; }
.tl-row::-webkit-details-marker { display: none; }
.tl-item.has-more summary { cursor: pointer; }
.tl-period { font-family: var(--font-ui); font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--accent-ui); font-variant-numeric: tabular-nums; }
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 18px; row-gap: 4px; }
.tl-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; font-stretch: 112%; font-variation-settings: "wdth" 112; transition: color .2s; }
.tl-item.has-more summary:hover .tl-title { color: var(--accent-ui); }
.tl-place { font-family: var(--font-ui); font-size: 13px; color: var(--text-faint); }
/* Plus-Zeichen, wird beim Aufklappen zum Minus */
.tl-plus { position: relative; width: 14px; height: 14px; justify-self: end; align-self: center; }
.tl-plus::before, .tl-plus::after { content: ''; position: absolute; left: 0; top: 50%; width: 14px; height: 1.5px; background: var(--text-faint); transition: transform .25s var(--ease); }
.tl-plus::after { transform: rotate(90deg); }
details[open] .tl-plus::after { transform: rotate(0deg); }
.tl-text { margin: -8px 0 0; padding: 0 56px 24px calc(190px + 32px); color: var(--text-dim); font-size: 16px; max-width: calc(190px + 32px + 60ch); }

/* ------------------------------------------------------------------ Marken */
.brands-section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.brands-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.brands-main .label { margin-bottom: 18px; }
.brand-list { display: flex; flex-wrap: wrap; row-gap: 16px; }
.brand-item { display: flex; flex-direction: column; gap: 4px; padding: 0 28px; border-left: 1px solid var(--line); }
.brand-item:first-child { padding-left: 0; border-left: none; }
.brand-item .b-label { font-family: var(--font-display); font-weight: 700; font-size: 20px; font-stretch: 112%; font-variation-settings: "wdth" 112; }
.brand-item .b-note { font-family: var(--font-ui); font-size: 12.5px; color: var(--text-faint); }
.brand-badge { display: flex; align-items: center; gap: 14px; }
.brand-badge img { width: 64px; height: 64px; object-fit: contain; }
.brand-badge .bb-label { font-family: var(--font-ui); font-size: 12.5px; color: var(--text-dim); max-width: 16ch; }

/* ------------------------------------------------------------------ Galerie */
.gallery-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.gallery-top .section-title { margin-bottom: 0; }
.filter-row { display: flex; flex-wrap: wrap; gap: 22px; }
.filter-btn { font-family: var(--font-ui); font-size: 14px; font-weight: 500; color: var(--text-faint); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.filter-btn:hover { color: var(--text); }
.filter-btn.active { color: var(--text); border-color: var(--accent-ui); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.gallery-item { margin: 0; cursor: zoom-in; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .3s; }
.gallery-item:hover img { opacity: .9; }
.gallery-item .gi-plus { display: none; }
.gallery-item .gi-cap { display: block; margin-top: 12px; font-size: 15px; font-style: italic; color: var(--text-dim); }
.gallery-grid.is-filtered .gallery-item { grid-column: span 1; }
.gallery-grid.is-filtered .gallery-item img { aspect-ratio: 4 / 3; }

/* ----------------------------------------------------------------- Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(20, 24, 22, .96); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox figure { margin: 0; max-width: 88vw; max-height: 84vh; }
.lightbox img { max-width: 88vw; max-height: 78vh; object-fit: contain; }
.lightbox figcaption { margin-top: 14px; text-align: center; font-style: italic; color: #d9d3c5; }
.lb-close, .lb-prev, .lb-next { position: fixed; color: #ece6d8; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(236,230,216,.3); border-radius: var(--radius); transition: border-color .2s; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { border-color: #ece6d8; }
.lb-close { top: 24px; right: 28px; }
.lb-prev { left: 28px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 28px; top: 50%; transform: translateY(-50%); }
.lb-close svg, .lb-prev svg, .lb-next svg { width: 18px; height: 18px; }
.lb-counter { position: fixed; top: 36px; left: 32px; font-family: var(--font-ui); font-size: 13px; letter-spacing: .08em; color: rgba(236,230,216,.7); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .lb-prev, .lb-next { display: none; } }

/* ------------------------------------------------------------------ Kontakt */
.contact-section { background: var(--paper); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-info .section-title { margin-bottom: 24px; }
.contact-lede { color: var(--text-dim); max-width: 46ch; margin-bottom: 40px; }
.contact-grid { align-items: end; }
.contact-info .contact-lede { margin-bottom: 0; }
.contact-links { border-top: 1px solid var(--text); }
.contact-links .cl-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--font-ui); font-size: 15px; transition: color .2s; }
.contact-links .cl-row:hover { color: var(--accent-ui); }
.contact-links .cl-row > span:last-child { display: inline-flex; align-items: center; gap: 10px; }
.contact-links .cl-k { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.contact-links svg { width: 14px; height: 14px; opacity: .6; }

.contact-form { padding-top: 6px; }
.form-row { margin-bottom: 26px; }
.form-row label { display: block; font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: 10px 0; font-family: var(--font-body); font-size: 17px; color: var(--text); border-radius: 0; transition: border-color .2s;
}
.form-row select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-faint) 50%), linear-gradient(135deg, var(--text-faint) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-row select option { background: var(--paper); color: var(--text); }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--accent-ui); outline: none; }
.form-row textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; }
.form-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { margin-top: 16px; font-family: var(--font-ui); font-size: 14px; }
.form-status.ok { color: var(--accent-ui); }
.form-status.err { color: #a3342b; }

/* ------------------------------------------------------------------- Footer
   Dunkle "Rückseite" des Programms */
.site-footer { background: var(--ink); color: #ece6d8; padding: 64px 0 34px; }
.site-footer .brand { color: #ece6d8; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding-bottom: 36px; margin-bottom: 26px; border-bottom: 1px solid rgba(236,230,216,.18); }
.footer-socials { display: flex; gap: 12px; }
.site-footer .tool-btn { border-color: rgba(236,230,216,.25); color: #ece6d8; }
.site-footer .tool-btn:hover { border-color: #ece6d8; }
.footer-legal { display: flex; gap: 26px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 22px; font-family: var(--font-ui); font-size: 13.5px; color: rgba(236,230,216,.7); }
.footer-legal a:hover { color: #ece6d8; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--font-ui); font-size: 13px; color: rgba(236,230,216,.5); }

/* ------------------------------------------------------------------ Reveal */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------ Vorschau-Sperre */
.preview-gate { position: fixed; inset: 0; z-index: 5000; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 24px; }
.gate-card { max-width: 400px; width: 100%; text-align: left; border-top: 2px solid var(--accent-ui); padding-top: 28px; }
.gate-card .label { margin-bottom: 18px; }
.gate-card h1 { font-size: clamp(28px, 5vw, 38px); margin-bottom: 14px; }
.gate-card .gate-text { color: var(--text-dim); margin-bottom: 30px; }
.gate-form { display: flex; flex-direction: column; gap: 14px; }
.gate-form input { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line); padding: 12px 0; font-family: var(--font-body); font-size: 17px; color: var(--text); }
.gate-form input:focus { border-color: var(--accent-ui); outline: none; }
.gate-form .btn { margin-top: 10px; }
.gate-error { color: #a3342b; font-family: var(--font-ui); font-size: 13.5px; margin-top: 16px; }
.gate-card.shake { animation: shake .4s; }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-8px)} 40%{transform:translateX(8px)} 60%{transform:translateX(-5px)} 80%{transform:translateX(5px)} }

/* -------------------------------------------------- Rechtsseiten + 404 */
.page-hero { padding: calc(var(--header-h) + 80px) 0 48px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(34px, 6vw, 58px); }
.page-hero .label { margin-bottom: 16px; }
.back-link { display: inline-block; margin-bottom: 22px; font-family: var(--font-ui); font-size: 14px; color: var(--text-faint); }
.back-link:hover { color: var(--text); }
.article-body { padding-top: 64px; padding-bottom: 110px; max-width: 780px; }
.article-body p { color: var(--text-dim); white-space: pre-line; margin-bottom: 1.4em; }

/* --------------------------------------------------------------- Responsiv */
/* Mobiles Menü: Panel von rechts, Button bleibt darüber und wird zum X,
   Hintergrund abgedunkelt (Klick/Escape schließt, siehe initNavChrome). */
.nav-backdrop { position: fixed; inset: 0; z-index: 890; background: rgba(20, 24, 22, .45); opacity: 0; pointer-events: none; transition: opacity .3s; }
.nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
@media (max-width: 1100px) {
  .nav-toggle { display: flex; position: relative; z-index: 3; padding: 10px 0; width: 26px; box-sizing: content-box; }
  .nav-links {
    position: fixed; top: 0; right: 0; z-index: 2; height: 100vh; height: 100dvh; width: min(380px, 100vw);
    background: var(--bg); border-left: 1px solid var(--line);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: calc(var(--header-h) + 24px) 32px 32px;
    transform: translateX(100%); transition: transform .35s var(--ease); visibility: hidden;
    overflow-y: auto;
  }
  .nav-links.is-open { transform: none; visibility: visible; }
  .nav-links > li { border-bottom: 1px solid var(--line); }
  .nav-links > li.nav-tools { border-bottom: none; padding-top: 28px; }
  .nav-links a { display: block; padding: 16px 0; font-family: var(--font-display); font-weight: 700; font-size: 24px; font-stretch: 112%; font-variation-settings: "wdth" 112; color: var(--text); }
  .nav-links a.nav-cta { border-bottom: none; padding-bottom: 16px; color: var(--accent-ui); }
}
@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-figure { max-width: 520px; }
  .about-media { position: static; max-width: 460px; }
  .approach-grid { grid-template-columns: 1fr; gap: 28px; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: none; }
  .fact:nth-child(3) { padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  section { padding: 76px 0; }
  .hero { padding-top: calc(var(--header-h) + 36px); padding-bottom: 64px; }
  .hero.has-bg-video { min-height: 88svh; padding-bottom: 88px; }
  .sound-toggle { right: 20px; bottom: 20px; }
  .sound-toggle-label { display: none; }
  .prof-card { grid-template-columns: 1fr; grid-template-areas: "num" "title" "text" "cta"; row-gap: 10px; }
  .tl-row { grid-template-columns: 1fr 20px; gap: 6px 16px; }
  .tl-period { grid-column: 1 / -1; }
  .tl-text { padding: 0 0 22px; margin-top: 0; }
  .fact { padding: 22px 16px 22px 0; }
  .fact + .fact { padding-left: 16px; }
  .fact:nth-child(3) { padding-left: 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .brand-item { padding: 0 18px 0 0; border-left: none; }
  .announcement-inner { justify-content: flex-start; padding-right: 44px; text-align: left; }
  .announcement-close { right: 20px; }
  .sh-side { display: none; }
}
