/* ==========================================================================
   teamjung.com Neubau · gemeinsames Stylesheet
   Stand: 27.11.2026, Runde 3 (Pilot), tji-web-design-agent
   Wohin: /assets/css/site.css, von jeder Seite in /de/ /en/ /es/ eingebunden.
   Grundlage: Skill tji-brand (tokens.css 02.10.2026), Reference Lock in
   09 Neubau/04 Design/referenzen.md, Regeln in 04 Design/designsystem.md.

   Aufbau
   1. Schriften (selbst gehostet, 2 Familien, Mono = Systemschrift)
   2. Tokens hell (Standard, immer) und dunkel (nur per Umschalter) plus Ink-Band
   3. Basis, Typografie, Raster
   4. Komponenten (Header, Hero, Türkarten, Wegweiser, Beweis, Signets,
      Fallkarte, Ablauf, Kontaktband, Footer)
   5. Bewegung reduzieren, Druck

   Regeln, die man beim Ändern nicht brechen darf
   - Gold (#C8A96E) ist die Handlungsfarbe: Knopf-Balken, Knopffläche auf
     Ink, Fokus auf Ink. Nie als Textfarbe auf hellem Grund (2,2:1).
   - Struktur entsteht durch Haarlinien und Abstand, nicht durch Schatten.
   - Radien 2 px (Knöpfe, Tags) und 4 px (Bildrahmen). Keine runden Karten.
   - Keine Gedankenstriche in Inhalten, auch nicht per CSS content.
   ========================================================================== */

/* 1. Schriften ------------------------------------------------------------
   Playfair Display und DM Sans als variable WOFF2, nur Zeichensatz latin
   (deckt ä ö ü ß, á é í ñ ó ú ü ¿ ¡ und € ab). Lizenz SIL OFL 1.1, liegt
   neben den Dateien. Keine Verbindung zu Google beim Seitenaufruf.
   DM Mono wird bewusst NICHT geladen (Vorgabe max. 2 Familien): Eyebrows,
   Nummern und Belegzeilen nutzen die Monospace-Systemschrift. */
@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/playfair-display-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000; font-style: normal; font-display: swap;
}
/* Ausweichschrift mit angeglichenen Maßen gegen Layoutsprung (CLS) */
@font-face {
  font-family: "Playfair Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 108%; ascent-override: 98%; descent-override: 24%;
}
@font-face {
  font-family: "DM Sans Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 99%; ascent-override: 98%; descent-override: 30%;
}

/* 2. Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: light;      /* Hell ist Standard, unabhängig vom System (E10, Frank 28.11.2026) */

  /* Markenkern (unverändert aus tji-brand) */
  --tj-ink: #0A0A0F;
  --tj-ink-2: #0F1018;
  --tj-ink-3: #15151F;
  --tj-gold: #C8A96E;
  --tj-gold-warm: #D9B574;
  --tj-silver: #E8E4DC;

  /* Rollen hell (Standard) */
  --bg: #FBF9F5;            /* warmes Papier, Seitengrund */
  --surface: #FFFFFF;       /* Karten, Bildmatten */
  --panel: #F3EEE4;         /* Hinweis- und Offenlegungsflächen */
  --text: #0A0A0F;          /* 18,8:1 auf --bg */
  --text-2: #4A4A55;        /* 8,3:1 */
  --text-3: #63636E;        /* 5,6:1 auf --bg, 5,1:1 auf --panel */
  --line: rgba(10,10,15,0.14);
  --line-strong: rgba(10,10,15,0.32);
  --em: #7A5E24;            /* Gold-Hervorhebung als Text auf Hell, 5,8:1 */
  --action-bg: #0A0A0F;     /* Primärknopf auf Hell: Ink-Fläche ... */
  --action-text: #FBF9F5;
  --action-bar: #C8A96E;    /* ... mit Goldbalken oben (Zitat der Bildmarke) */
  --action-bg-hover: #15151F;
  --focus: #0A0A0F;         /* Fokusring auf Hell */
  --link: #0A0A0F;
  --signet-plate: #FFFFFF;  /* Signets stehen immer auf Weiß, Originalfarben */

  /* Typografie */
  --font-display: "Playfair Display", "Playfair Fallback", Georgia, serif;
  --font-text: "DM Sans", "DM Sans Fallback", Arial, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --fs-display: clamp(2.25rem, 1.35rem + 4.1vw, 4.5rem);   /* 36 bis 72 px */
  --fs-h2: clamp(1.75rem, 1.25rem + 2.3vw, 3rem);          /* 28 bis 48 px */
  --fs-h3: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);       /* 22 bis 28 px */
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);     /* 17 bis 20 px */
  --fs-body: clamp(1.0625rem, 1.03rem + 0.15vw, 1.125rem); /* 17 bis 18 px */
  --fs-small: 0.9375rem;                                   /* 15 px */
  --fs-label: 0.75rem;                                     /* 12 px, Mono Versal */
  --lh-tight: 1.06;
  --lh-head: 1.15;
  --lh-body: 1.6;
  --track-display: -0.02em;
  --track-label: 0.16em;

  /* Abstände (8er-Raster) */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;   --sp-7: 3rem;    --sp-8: 4rem; --sp-9: 6rem;
  --section-y: clamp(2.5rem, 1.75rem + 3vw, 4.5rem);   /* 40 bis 72 px, Nachbesserung 28.11.2026 (vorher 64 bis 136 px) */

  /* Raster */
  --maxw: 75rem;             /* 1200 px Inhalt */
  --gutter: 1rem;            /* 16 px mobil, Pflicht */
  --measure: 40rem;          /* rund 66 Zeichen Fließtext */
  --header-h: 3.5rem;        /* 56 px mobil */

  --r-sharp: 2px;
  --r-frame: 4px;
}

/* Dunkel: NUR nach Wahl im Umschalter der Kopfzeile (data-theme="dark" am <html>, gesetzt vom
   Inline-Skript im <head>, gemerkt in localStorage "tj-theme"). Die Systemeinstellung wird bewusst
   nicht ausgewertet (Entscheidung E10 hell/editorial, Nachbesserung 28.11.2026). */
:root[data-theme="dark"] {
  color-scheme: dark;
    --bg: #0A0A0F;
    --surface: #0F1018;
    --panel: #15151F;
    --text: #E8E4DC;          /* 15,6:1 */
    --text-2: #B9B5AE;        /* 9,7:1 */
    --text-3: #9A968F;        /* 6,7:1 */
    --line: rgba(232,228,220,0.14);
    --line-strong: rgba(232,228,220,0.32);
    --em: #D9B574;            /* 10,2:1 */
    --action-bg: #C8A96E;     /* auf Dunkel ist Gold die Knopffläche */
    --action-text: #0A0A0F;   /* 8,8:1 */
    --action-bar: #C8A96E;
    --action-bg-hover: #D9B574;
    --focus: #D9B574;
    --link: #E8E4DC;
    --signet-plate: #F3EEE4;
}

/* Ink-Band: dunkle Fläche in der hellen Seite (Kontaktband, Footer).
   Im Dunkelmodus hebt es sich über --surface und Goldkante ab. */
.band-ink {
  --bg: #0A0A0F;
  --surface: #0F1018;
  --panel: #15151F;
  --text: #E8E4DC;
  --text-2: #B9B5AE;
  --text-3: #9A968F;
  --line: rgba(232,228,220,0.16);
  --line-strong: rgba(232,228,220,0.34);
  --em: #D9B574;
  --action-bg: #C8A96E;
  --action-text: #0A0A0F;
  --action-bg-hover: #D9B574;
  --focus: #D9B574;
  --link: #E8E4DC;
  background: var(--bg);
  color: var(--text);
}
:root[data-theme="dark"] .band-ink { --bg: #0F1018; border-top: 1px solid rgba(200,169,110,0.45); }

/* 3. Basis ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  overflow-x: clip;           /* Schutz gegen horizontales Scrollen */
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-sharp); }
::selection { background: rgba(200,169,110,0.35); color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--track-display);
  line-height: var(--lh-head);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-display); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.01em; }
/* Marken-Signatur (tji-brand): genau eine kursive Hervorhebung, nur in H1 */
h1 em { font-style: italic; color: var(--em); }
h2 em, h3 em { font-style: normal; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: var(--sp-4); }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--line); }
.measure { max-width: var(--measure); }
.lead { font-size: var(--fs-lead); color: var(--text-2); line-height: 1.55; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (min-width: 48rem) { :root { --gutter: 2rem; --header-h: 4.5rem; } }
@media (min-width: 80rem) { :root { --gutter: 3.5rem; } }

/* Eyebrow: Mono Versal mit kleinem Quadrat (Hazel), Nummer zuerst (tji-brand) */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--text-2); margin: 0 0 var(--sp-4);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--tj-gold); flex: none; }

/* Belegzeile: das sichtbare Merkmal von "nachweisbar" */
.proof-line {
  font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.5;
  color: var(--text-3); letter-spacing: 0.01em;
  border-top: 1px solid var(--line); padding-top: var(--sp-2); margin-top: var(--sp-4);
}
.proof-line strong { font-weight: 600; color: var(--text-2); }

/* Abschnittskopf */
.section-head { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-7); max-width: 48rem; }
.section-head p { color: var(--text-2); max-width: var(--measure); }

/* 4. Komponenten ----------------------------------------------------------- */

/* 4.1 Sprungmarke */
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--action-bg); color: var(--action-text);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sharp); text-decoration: none;
}
.skip-link:focus { top: var(--sp-2); }

/* 4.2 Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-3);
  min-height: 3rem; padding: 0.75rem 1.5rem;
  font-family: var(--font-text); font-size: 1rem; font-weight: 500; line-height: 1.25;
  text-decoration: none; border-radius: var(--r-sharp); border: 1px solid transparent;
  cursor: pointer; position: relative;
  transition: background-color .2s ease, color .2s ease;
}
.btn-primary {
  background: var(--action-bg); color: var(--action-text);
  box-shadow: inset 0 3px 0 0 var(--action-bar);   /* Goldbalken oben */
}
.btn-primary:hover { background: var(--action-bg-hover); }
.btn-primary .arrow { width: 1rem; height: 1rem; flex: none; }
.btn-small { min-height: 2.75rem; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.microcopy { font-size: var(--fs-small); color: var(--text-3); margin-top: var(--sp-2); }
.text-link {
  display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 2.75rem;
  color: var(--link); font-weight: 500;
}

/* 4.3 Header mit Sprachumschalter */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  min-height: var(--header-h);
}
.logo { display: inline-flex; align-items: center; min-height: 2.75rem; flex: none; }
.logo img { width: auto; height: 1.875rem; }           /* 30 px mobil */
@media (min-width: 48rem) { .logo img { height: 2.375rem; } }
.header-actions { display: flex; align-items: center; gap: var(--sp-2); }

.nav-main { display: none; }
.nav-main ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--sp-1); }
.nav-main a {
  display: inline-flex; align-items: center; gap: 0.4em; min-height: 2.75rem;
  padding: 0 0.75rem; text-decoration: none; color: var(--text); font-size: 0.9875rem;
  border-bottom: 2px solid transparent;
}
.nav-main a:hover { border-bottom-color: var(--line-strong); }
.nav-main a[aria-current="page"] { border-bottom-color: var(--tj-gold); }
.nav-main .num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); }
.nav-main .group-gap { margin-left: var(--sp-5); }

.lang-switch { display: none; font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.08em; }
.lang-switch ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.75rem; min-height: 2.75rem; text-decoration: none; color: var(--text-2);
}
.lang-switch a[aria-current="true"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--tj-gold); text-decoration-thickness: 2px; }

/* Mobiles Menü ohne JavaScript: <details> */
.menu { position: static; }
.menu > summary {
  list-style: none; display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; cursor: pointer; border: 1px solid var(--line-strong); border-radius: var(--r-sharp);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 1.25rem; height: 1.25rem; }
.menu .icon-close { display: none; }
.menu[open] .icon-open { display: none; }
.menu[open] .icon-close { display: block; }
.menu-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: var(--sp-5) var(--gutter) var(--sp-7);
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
}
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel li a {
  display: grid; grid-template-columns: 2.25rem 1fr; gap: 0 var(--sp-2);
  padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text);
}
.menu-panel .num { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-3); padding-top: 0.3rem; }
.menu-panel .label { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; }
.menu-panel .sub { grid-column: 2; font-size: var(--fs-small); color: var(--text-2); }
.menu-panel .lang-switch { display: block; margin-top: var(--sp-5); }
.menu-panel .btn { width: 100%; margin-top: var(--sp-5); }

@media (min-width: 64rem) {
  .nav-main, .lang-switch { display: block; }
  .menu { display: none; }
}
.cta-short { display: inline; }
.cta-long { display: none; }
@media (min-width: 64rem) { .cta-short { display: none; } .cta-long { display: inline; } }

/* 4.4 Hero: Versprechen links, Mensch rechts (mobil darunter) */
.hero { padding-block: clamp(2.5rem, 1.5rem + 5vw, 6.5rem) 0; }  /* unten 0: Abstand liefert der folgende Abschnitt */
.hero-grid { display: grid; gap: var(--sp-7); }
.hero h1 { max-width: 15ch; margin-bottom: var(--sp-5); }
.hero .lead { max-width: 34rem; }
/* Startseite 29.11.2026: Dreiklang, Leitsatz, Kennzeile statt Fließtext-Unterzeile.
   Kurze Aussagesätze untereinander (Aboard "short declarative rhythm"), fette Verben tragen
   den Ablauf; Leitsatz in der Display-Serife als eigene Zeile; Kennzeile klein in Ink-Grau
   mit Haarlinie als Marker (Typewolf/Titan: kleine, ruhige Kennzeichnung). Gold bleibt
   bei Handlung (Knopf) und H1-Hervorhebung, hier bewusst nicht. */
.hero-triad { max-width: 34rem; font-size: var(--fs-lead); line-height: 1.45; color: var(--text-2); }
.hero-triad span { display: block; }
.hero-triad span + span { margin-top: var(--sp-1); }
.hero-triad strong { font-weight: 650; color: var(--text); }
.hero-principle {
  margin-top: var(--sp-5); max-width: 34rem;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem);   /* 24 bis 34 px */
  line-height: 1.15; letter-spacing: var(--track-display); color: var(--text);
  text-wrap: balance;
}
.hero-principle em { font-style: italic; }
.hero .audience {
  margin-top: var(--sp-5); max-width: 34rem;
  padding-left: var(--sp-3); border-left: 2px solid var(--line-strong);
  color: var(--text-3); font-size: 0.875rem; line-height: 1.5;
}
/* Kennzeile als drei klare Zeilen (Frank 29.11.): jede Zeile beginnt vorne, Zeile 1 bricht
   mobil ausgewogen um, Länderzeile bleibt ab 384 px zusammen (darunter darf sie umbrechen,
   damit 320-px-Geräte nicht seitlich scrollen). */
.hero .audience span { display: block; text-wrap: balance; }
@media (min-width: 24rem) { .hero .audience .nowrap { white-space: nowrap; } }
.hero-actions { margin-top: var(--sp-6); display: grid; justify-items: start; gap: var(--sp-1); }
.hero-actions .btn { width: 100%; }
@media (min-width: 30rem) { .hero-actions .btn { width: auto; } }
.portrait-frame { position: relative; }
.hero-portrait { margin: 0; width: min(100%, 17.5rem); }
.hero-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-frame); background: var(--panel); }
/* Namensschild auf dem Bild (Hazel "portrait nameplate"), als echter Text */
.nameplate {
  position: absolute; left: var(--sp-3); bottom: var(--sp-3);
  background: var(--tj-ink); color: var(--tj-silver);
  box-shadow: inset 0 3px 0 0 var(--tj-gold);
  padding: var(--sp-3) var(--sp-4) var(--sp-2); border-radius: var(--r-sharp);
  font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.45; letter-spacing: 0.06em; text-transform: uppercase;
}
.hero-portrait figcaption.credit { font-size: 0.75rem; color: var(--text-3); margin-top: var(--sp-3); font-family: var(--font-mono); }
@media (min-width: 64rem) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; gap: var(--sp-8); }
  .hero-portrait { width: 100%; justify-self: end; max-width: 22rem; }
}

/* 4.5 Drei Türkarten: gleich groß, geteilte Haarlinien, kein Abstand
   (Aboard capability matrix + Chargetrip drei gleichwertige Karten) */
.doors { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line-strong); }
.door {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-6) 0; border-bottom: 1px solid var(--line-strong);
  transition: background-color .2s ease;
}
.door-num { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-2); }
.door-num b { color: var(--text); font-weight: 600; margin-right: 0.6em; }
.door h3 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 400; letter-spacing: -0.02em; }
.door h3 a { color: inherit; text-decoration: none; }
/* Ganze Karte klickbar, ein einziger Link im Tab-Fluss */
.door h3 a::after { content: ""; position: absolute; inset: 0; }
.door h3 a:focus-visible { outline: none; }
.door:has(h3 a:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
.door .door-sub { color: var(--text-2); font-size: var(--fs-small); margin-top: calc(-1 * var(--sp-2)); }
.door .benefit { font-size: var(--fs-body); }
.door .questions { list-style: none; margin: var(--sp-2) 0 0; padding: 0; display: grid; gap: var(--sp-2); }
.door .questions li { font-family: var(--font-display); font-style: italic; color: var(--text-2); padding-left: var(--sp-4); border-left: 1px solid var(--line-strong); line-height: 1.4; }
.door .products { list-style: none; margin: var(--sp-2) 0 0; padding: 0; display: grid; gap: var(--sp-2); }
.door .products li { display: flex; justify-content: space-between; gap: var(--sp-3); align-items: baseline; border-bottom: 1px dotted var(--line-strong); padding-bottom: var(--sp-1); }
.door .door-more { margin-top: auto; padding-top: var(--sp-4); font-weight: 500; display: inline-flex; align-items: center; gap: var(--sp-2); }
.door .door-more svg { width: 1rem; height: 1rem; transition: transform .2s ease; }
.door:hover { background: color-mix(in srgb, var(--panel) 55%, transparent); }
.door:hover .door-more svg { transform: translateX(4px); }
.status {
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line-strong); border-radius: var(--r-sharp); padding: 0.05rem 0.4rem; color: var(--text-2); white-space: nowrap;
}
@media (min-width: 64rem) {
  .doors { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line-strong); }
  .door { padding: var(--sp-6) var(--sp-6) var(--sp-6); border-bottom: 0; border-left: 1px solid var(--line-strong); }
  .door:last-child { border-right: 1px solid var(--line-strong); }
}

/* 4.6 Fragen-Wegweiser: redaktionelle Zeilenliste (Aboard editorial row) */
.q-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.q-list li { border-bottom: 1px solid var(--line); }
.q-list a {
  display: grid; grid-template-columns: 1fr auto; gap: var(--sp-1) var(--sp-4); align-items: center;
  min-height: 3rem; padding: var(--sp-4) 0; text-decoration: none; color: var(--text);
}
.q-list .q { font-family: var(--font-display); font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.3; }
.q-list .door-tag { grid-column: 1; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.q-list svg { grid-row: 1 / span 2; grid-column: 2; width: 1.125rem; height: 1.125rem; transition: transform .2s ease; }
.q-list a:hover .q { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.q-list a:hover svg { transform: translateX(4px); }
.q-more { margin-top: var(--sp-5); }
@media (min-width: 64rem) {
  .q-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--sp-8); }
  .q-layout .section-head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}

/* 4.7 Beweis-Abschnitt */
.principles { list-style: none; margin: 0; padding: 0; counter-reset: p; display: grid; gap: var(--sp-5); }
.principles li { counter-increment: p; display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--sp-3); }
.principles li::before {
  content: counter(p, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-3); padding-top: 0.35rem;
}
.principles h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.principles p { color: var(--text-2); }
.proof-grid { display: grid; gap: var(--sp-7); }
@media (min-width: 64rem) { .proof-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--sp-8); align-items: start; } }

/* Arbeitsprobe (echter Screenshot mit Fundstelle). Bis das Bild vorliegt:
   ehrlicher Platzhalter mit festen Maßen, kein nachgebautes Interface. */
.evidence { margin: 0; }
.evidence .frame {
  aspect-ratio: 16 / 10; border: 1px solid var(--line-strong); border-radius: var(--r-frame);
  background: var(--surface); overflow: hidden; position: relative;
}
.evidence .frame img { width: 100%; height: 100%; object-fit: cover; }
.evidence .placeholder {
  height: 100%; display: grid; place-content: center; gap: var(--sp-2); text-align: center; padding: var(--sp-5);
  background: repeating-linear-gradient(135deg, transparent 0 10px, var(--line) 10px 11px);
  color: var(--text-2); font-size: var(--fs-small);
}
.evidence .placeholder strong { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); }
.evidence figcaption { margin-top: var(--sp-3); font-size: var(--fs-small); color: var(--text-2); }

/* 4.8 Zertifikats-Signets mit Offenlegung (Entscheidung 16) */
.certs { margin-top: var(--sp-8); padding-top: var(--sp-6); border-top: 1px solid var(--line-strong); }
.certs h3 { margin-bottom: var(--sp-5); }
.cert-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-4); }
@media (min-width: 48rem) { .cert-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cert { display: grid; gap: var(--sp-2); justify-items: start; }
.cert .plate { background: var(--signet-plate); border-radius: 50%; padding: 4px; }
.cert img { width: 6rem; height: 6rem; }             /* Mindestgröße 96 px */
.cert .norm { font-weight: 600; }
.cert .meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); line-height: 1.45; }
.cert a { font-size: var(--fs-small); display: inline-flex; min-height: 2.75rem; align-items: center; }
.disclosure {
  margin-top: var(--sp-6); background: var(--panel); border-left: 3px solid var(--tj-gold);
  padding: var(--sp-5); border-radius: 0 var(--r-frame) var(--r-frame) 0; max-width: 56rem;
}
.disclosure p { color: var(--text); font-size: var(--fs-small); }
.disclosure .label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); display: block; margin-bottom: var(--sp-2); }

/* 4.9 Fallkarte */
.cases { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-5); }
@media (min-width: 48rem) { .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.case {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-3);
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--text);
  padding: var(--sp-5); border-radius: 0 0 var(--r-frame) var(--r-frame);
}
.case .case-meta { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); }
.case h3 a { color: inherit; text-decoration: none; }
.case h3 a::after { content: ""; position: absolute; inset: 0; }
.case h3 a:focus-visible { outline: none; }
.case:has(h3 a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.case dl { margin: 0; display: grid; gap: var(--sp-2); }
.case dt { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.case dd { margin: 0 0 var(--sp-2); color: var(--text-2); }
.case .proof-line { margin-top: auto; }

/* 4.10 Wer dahinter steht */
.people { display: grid; gap: var(--sp-6); }
@media (min-width: 64rem) { .people { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--sp-8); } }
.people .facts { list-style: none; margin: var(--sp-5) 0 0; padding: 0; border-top: 1px solid var(--line); }
.people .facts li { padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); display: grid; gap: var(--sp-1); }
.people .facts .k { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }

/* 4.11 Kontaktband mit Ablauf in drei Schritten (läuft in den Footer über) */
.contact-band { padding-block: var(--section-y) var(--sp-8); }
.contact-band h2 { max-width: 18ch; }
.steps { list-style: none; margin: var(--sp-7) 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-strong); counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: var(--sp-3); padding: var(--sp-5) 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--em); }
.steps strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; line-height: 1.3; color: var(--text); margin-bottom: var(--sp-1); }
.steps p { color: var(--text-2); }
@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .steps li { grid-template-columns: 1fr; padding: var(--sp-5) var(--sp-5) var(--sp-5) 0; border-bottom: 0; }
  .steps li + li { padding-left: var(--sp-5); border-left: 1px solid var(--line); }
}
.contact-cta { margin-top: var(--sp-7); display: grid; gap: var(--sp-2); justify-items: start; }
.contact-cta .btn { width: 100%; }
@media (min-width: 30rem) { .contact-cta .btn { width: auto; } }
.contact-alt { margin-top: var(--sp-4); font-size: var(--fs-small); color: var(--text-2); }

/* 4.12 Footer (gleiche Ink-Fläche, endet mit angeschnittener Wortmarke) */
.site-footer { padding-top: var(--sp-7); position: relative; overflow: hidden; }
.footer-top { display: grid; gap: var(--sp-6); padding-bottom: var(--sp-7); border-top: 1px solid var(--line); padding-top: var(--sp-7); }
.footer-brand img { height: 2.25rem; width: auto; }
.footer-brand .claim { margin-top: var(--sp-3); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--tj-gold); }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-5); }
@media (min-width: 64rem) {
  .footer-top { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.footer-cols h2 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: var(--sp-3); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols a { display: inline-flex; min-height: 2.75rem; align-items: center; text-decoration: none; color: var(--text); font-size: var(--fs-small); }
.footer-cols a:hover { text-decoration: underline; }
.footer-legal { border-top: 1px solid var(--line); padding-block: var(--sp-5); font-size: 0.8125rem; color: var(--text-3); display: grid; gap: var(--sp-2); }
.footer-legal p { margin: 0; }
.sculpture { width: 100%; margin-top: var(--sp-6); margin-bottom: -2.2%; pointer-events: none; }
.sculpture img { width: 100%; height: auto; }

/* Hinweisleiste nur in der Vorlage (vor Livegang entfernen) */
.dev-note { background: #F3EEE4; color: #0A0A0F; font-family: var(--font-mono); font-size: 0.75rem; padding: var(--sp-2) var(--gutter); text-align: center; border-bottom: 1px solid rgba(10,10,15,.14); }

/* 5. Bewegung reduzieren, Druck ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .menu, .skip-link, .sculpture, .dev-note { display: none !important; }
  .band-ink { background: #fff; color: #000; }
  a { color: #000; }
}

/* 4.13 FAQ (natives details/summary, ohne JavaScript) */
.faq { border-top: 1px solid var(--line-strong); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 1.25rem; gap: var(--sp-4); align-items: center;
  min-height: 3rem; padding: var(--sp-4) 0;
  font-family: var(--font-display); font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 1.25rem; height: 1.25rem; transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .answer { padding: 0 0 var(--sp-5); color: var(--text-2); max-width: var(--measure); }

/* Markierung für Inhalte, die Frank noch freigeben muss (Entscheidung 18) */
.tbd { background: transparent; color: var(--text-2); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; border: 1px dashed var(--line-strong); padding: 0 0.35rem; border-radius: var(--r-sharp); white-space: nowrap; }

/* Liste "Im Betrieb" im Beweis-Abschnitt */
.in-use { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.in-use li { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-1) var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.in-use .name { font-weight: 600; }
.in-use .what { grid-column: 1 / -1; color: var(--text-2); font-size: var(--fs-small); }
.subhead { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-2); font-weight: 500; margin: var(--sp-7) 0 var(--sp-3); }

/* 4.14 Produktkarte (Tür Nutzen) und anonymer Teaser */
.products-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-5); }
@media (min-width: 48rem) { .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.product-card {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-3);
  background: var(--surface); border: 1px solid var(--line); padding: var(--sp-5); border-radius: var(--r-frame);
}
.product-card .head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); }
.product-card .logo-slot { height: 2rem; width: auto; } /* Produktlogo in eigenen Markenfarben, nie umgefärbt */
.product-card h3 a { color: inherit; text-decoration: none; }
.product-card h3 a::after { content: ""; position: absolute; inset: 0; }
.product-card:has(h3 a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.product-card .scope { font-size: var(--fs-small); color: var(--text-2); border-top: 1px solid var(--line); padding-top: var(--sp-3); margin-top: auto; }
.product-card.teaser { background: transparent; border-style: dashed; }

/* 4.15 Brotkrumen (ab Ebene 2) */
.breadcrumb ol { list-style: none; margin: 0; padding: var(--sp-4) 0 0; display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-2); font-size: var(--fs-small); color: var(--text-3); }
.breadcrumb li + li::before { content: "›"; margin-right: var(--sp-2); color: var(--text-3); }
.breadcrumb a { color: var(--text-2); }

/* Zielgröße mind. 24 x 24 px auch für Links im Fließtext (WCAG 2.2, 2.5.8) */
.footer-legal a, .contact-alt a { display: inline-block; padding-block: 0.25rem; }

/* Signets kompakt im Beweis-Abschnitt der Startseite (Entscheidung 16) */
.cert-list--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
@media (min-width: 48rem) { .cert-list--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 44rem; } }
.cert-list--compact a { display: grid; justify-items: start; gap: var(--sp-2); min-height: 0; text-decoration: none; color: var(--text); font-size: var(--fs-small); }
.cert-list--compact a:hover .norm { text-decoration: underline; }
.cert-list--compact img { width: 4.5rem; height: 4.5rem; }
.certs .disclosure { margin-top: var(--sp-5); }

/* ===== Ergänzungen Pilot Runde 3 (Start mit Türbildern, Türseite Klären) ===== */
/* Eyebrow: Text wird wie in der Inhaltsdatei gesetzt (EN "SMEs" darf nicht zu "SMES" werden) */
.eyebrow { text-transform: none; }

/* Türbild: alle drei gleich hoch (4:3), Bildschirmaufnahme oben ausgerichtet */
.door-media { margin: 0 0 var(--sp-2); }
.door-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-frame); background: var(--panel); }
.door-media img.top { object-position: top; }
.door-media figcaption, .case-media figcaption { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); margin-top: var(--sp-2); line-height: 1.45; position: relative; z-index: 1; }
@media (min-width: 64rem) { .door { padding-top: var(--sp-5); } }
.case-media { margin: calc(-1 * var(--sp-5)) calc(-1 * var(--sp-5)) var(--sp-2); }
.case-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.case-media figcaption { padding: 0 var(--sp-5); }

/* Türseite */
.hero--door { padding-top: var(--sp-6); }
.split { display: grid; gap: var(--sp-6); }
@media (min-width: 64rem) { .split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--sp-8); } .split > .section-head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; margin-bottom: 0; } }
.split > div > * + * { margin-top: var(--sp-5); }
.facts { margin: var(--sp-5) 0 0; border-top: 1px solid var(--line-strong); }
.facts > div { display: grid; gap: var(--sp-1); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 48rem) { .facts > div { grid-template-columns: 11rem 1fr; gap: var(--sp-4); } }
.facts dt { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); padding-top: 0.2rem; }
.facts dd { margin: 0; }
.checklist { list-style: none; margin: 0; padding: 0; counter-reset: c; display: grid; gap: 0; border-top: 1px solid var(--line-strong); max-width: 52rem; }
.checklist li { counter-increment: c; display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--sp-3); padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-lead); }
.checklist li::before { content: counter(c, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-3); padding-top: 0.3rem; }
@media (min-width: 64rem) { .doors--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 48rem) and (max-width: 63.99rem) { .doors--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .doors--4 .door { padding-inline: var(--sp-4); } }
.door--plain h3 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); }
.qa { border-top: 1px solid var(--line); padding-top: var(--sp-4); }
.qa h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.qa p { color: var(--text-2); }
.fields { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
@media (min-width: 48rem) { .fields { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fields li { border-top: 2px solid var(--text); padding-top: var(--sp-3); }
.fields h3 { font-size: 1.25rem; margin-bottom: var(--sp-2); }
.fields p { font-size: var(--fs-small); color: var(--text-2); }
.separation h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-3); }
.separation .label { margin-top: var(--sp-5); }
.separation p + p { margin-top: var(--sp-3); }
.rules { margin: var(--sp-3) 0; padding-left: 1.25rem; display: grid; gap: var(--sp-2); font-size: var(--fs-small); }
.crosslinks { font-size: var(--fs-small); color: var(--text-2); }
.crosslinks a, .separation a, .crosslist a, .next-doors a { display: inline-block; padding-block: 0.25rem; }
.next-doors { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.next-doors li { border-bottom: 1px solid var(--line); }
.next-doors a { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); min-height: 3rem; padding: var(--sp-3) 0; text-decoration: none; color: var(--text); font-family: var(--font-display); font-size: 1.25rem; }
.section--tight { padding-block: var(--sp-7); }
.crosslist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); font-size: var(--fs-small); }
.footer-cols h2 a { color: inherit; text-decoration: none; display: inline; min-height: 0; font-size: inherit; }
.footer-cols h2 a, .breadcrumb a { display: inline-block; padding-block: 0.375rem; }

/* ===== Runde 4: generische Seiten ===== */
.hero-media, .page-media { margin: 0; }
.hero-media img, .page-media img { width: 100%; height: auto; border-radius: var(--r-frame); border: 1px solid var(--line); background: var(--panel); }
.hero-media img.top, .page-media img.top { object-fit: cover; object-position: top; }
.hero-media figcaption, .page-media figcaption { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); margin-top: var(--sp-2); line-height: 1.45; }
@media (min-width: 64rem) { .hero--door .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; } .hero-media img { max-height: 34rem; object-fit: cover; object-position: top; } }
.measure-wide { max-width: 52rem; }
.measure-wide > * + * { margin-top: var(--sp-4); }
.steps--light { margin-top: var(--sp-3); }
.band-lead { margin-top: var(--sp-5); }
.single-link { list-style: none; margin: 0; padding: 0; }
.single-link a, .crosslist a { display: inline-block; padding-block: 0.375rem; }
.only-mobile { display: inline-flex; }
@media (min-width: 64rem) { .only-mobile { display: none; } }
.cert-list .cert--full { border-top: 1px solid var(--line-strong); padding-top: var(--sp-4); }
.cert--full .meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); }
.cert--full a { display: inline-block; padding-block: 0.375rem; }
@media (min-width: 64rem) { .split .cert-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.door .status { margin-left: var(--sp-2); }
.doors--1 { grid-template-columns: 1fr; }
@media (min-width: 64rem) { .doors--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split .doors--3, .split .doors--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split .doors--4 .door, .split .doors--3 .door { border-bottom: 1px solid var(--line-strong); } }

/* Anfrageformular (Vorlage technik/vorlage-formular.html) */
.anfrage { display: grid; gap: var(--sp-5); max-width: 36rem; }
.anfrage-falle { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.anfrage-hinweis, .anfrage-datenschutz { font-size: var(--fs-small); color: var(--text-2); }
.feld { display: grid; gap: var(--sp-2); margin: 0; padding: 0; border: 0; min-width: 0; }
.feld > label, .feld legend { font-weight: 500; }
.feld legend { margin-bottom: var(--sp-2); padding: 0; }
fieldset.feld label { display: flex; gap: var(--sp-3); align-items: flex-start; min-height: 2.75rem; padding: var(--sp-2) 0; font-weight: 400; cursor: pointer; }
fieldset.feld input[type="radio"] { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--text); flex: none; }
.pflicht { font-weight: 400; color: var(--text-3); font-size: var(--fs-small); }
.feld-hilfe { font-size: var(--fs-small); color: var(--text-3); }
.feld input[type="text"], .feld input[type="email"], .feld input[type="tel"], .feld textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-sharp); padding: 0.75rem 0.875rem; min-height: 3rem;
}
.feld input:focus-visible, .feld textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.feld [aria-invalid="true"] { border-color: #B4463F; border-width: 2px; }
.feld-fehler { color: #9E3A34; font-size: var(--fs-small); font-weight: 500; }
:root[data-theme="dark"] .feld-fehler { color: #F0A49E; }
.feld-bezug { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-2); }
.anfrage-status { font-size: var(--fs-small); min-height: 1.5em; }
.anfrage .btn { justify-self: start; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.card-links { list-style: none; margin: var(--sp-2) 0 0; padding: 0; position: relative; z-index: 1; }
.card-links a { display: inline-flex; min-height: 2.75rem; align-items: center; }
.door .door-num .status { margin-left: var(--sp-2); }
/* Links im Fließtext: Zielhöhe mind. 24 px (WCAG 2.2, 2.5.8) */
main p a:not(.btn):not(.text-link), .anfrage-datenschutz a { padding-block: 0.125rem; }
/* Lange Wörter (ES/DE) in Überschriften umbrechen statt überlaufen */
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
/* Lange Quellenangaben und Adressen umbrechen, Rasterspalten dürfen schrumpfen */
.split > *, .hero-grid > *, .q-layout > *, .people > * { min-width: 0; }
main p, main li, main dd { overflow-wrap: anywhere; }

/* hidden-Attribut hat immer Vorrang (z. B. Formular-Abschnitt, Sprunglink .only-mobile), Abnahme K4 27.11.2026 */
[hidden] { display: none !important; }

/* ==========================================================================
   Nachbesserung 28.11.2026 (nach Livegang, Sichtprüfung Frank)
   1. Dichtere Abstände und ausgewogenes Raster
   2. Hell/Dunkel-Umschalter in der Kopfzeile
   3. Sofia-Telefon-Sticker (KI-Kennzeichnung nach AI Act Art. 50)
   4. Sichtbarer LinkedIn-Link (Vertrauensanker)
   Rückweg: _build/site.css.vor-nachbesserung-2026-11-28 zurückkopieren und neu bauen.
   ========================================================================== */

/* 1. Abstände --------------------------------------------------------------- */
.hero { padding-block: clamp(1.5rem, 1rem + 3vw, 4rem) 0; }
.hero-grid { gap: var(--sp-6); }
@media (min-width: 64rem) { .hero-grid { gap: var(--sp-7); } }
.hero h1 { margin-bottom: var(--sp-4); }
.hero-actions { margin-top: var(--sp-5); }
.hero--door { padding-top: var(--sp-5); }
.section-head { margin-bottom: var(--sp-6); gap: var(--sp-3); }
.section--tight { padding-block: var(--sp-6); }
.subhead { margin-top: var(--sp-6); }
.certs { margin-top: var(--sp-7); padding-top: var(--sp-5); }
.proof-grid { gap: var(--sp-6); }
@media (min-width: 64rem) { .proof-grid { gap: var(--sp-7); } }
.contact-band { padding-block: var(--section-y) var(--sp-7); }
.steps { margin-top: var(--sp-6); }
.contact-cta { margin-top: var(--sp-6); }
.site-footer { padding-top: var(--sp-5); }
.footer-top { padding-block: var(--sp-6); gap: var(--sp-5); }
.footer-cols { gap: var(--sp-5) var(--sp-5); }
.sculpture { margin-top: var(--sp-5); }
.menu-panel { padding-bottom: var(--sp-6); }

/* Türkarten: Inhalt oben bündig, Link folgt direkt dem Inhalt (kein Leerraum durch margin-top:auto) */
.door { padding-block: var(--sp-5); gap: var(--sp-2); }
@media (min-width: 64rem) { .door { padding: var(--sp-5); } }
.door .door-sub { margin-top: 0; }
.door .door-more { margin-top: var(--sp-2); padding-top: 0; }
.door-media { margin-bottom: var(--sp-1); }

/* Fallkarten: nicht auf gleiche Höhe strecken (sonst leere Fläche, wenn eine Karte ein Bild hat) */
.cases { align-items: start; gap: var(--sp-4); }
.case .proof-line { margin-top: var(--sp-3); }
.product-card .scope { margin-top: var(--sp-2); }
.products-grid { gap: var(--sp-4); }

/* Zweispalter: schmalere Kopfspalte, kleinere Lücke */
@media (min-width: 64rem) {
  .split, .q-layout, .people { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: var(--sp-7); }
  .split > .section-head, .q-layout .section-head { top: calc(var(--header-h) + 1.5rem); }
  /* FAQ, Ablaufschritte und Kartenraster brauchen die volle Breite: Überschrift darüber statt links daneben
     (vorher lange leere linke Spalte) */
  .split:has(> div > .faq), .split:has(> div > .steps), .split:has(> div > .doors--4) { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .split:has(> div > .faq) > .section-head, .split:has(> div > .steps) > .section-head, .split:has(> div > .doors--4) > .section-head { position: static; margin-bottom: var(--sp-5); }
  /* Ablauf: so viele Spalten wie Schritte (3 oder 4), kein einzelner Schritt in neuer Zeile */
  .steps { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
}
.split > div > * + * { margin-top: var(--sp-4); }
.steps li { padding-block: var(--sp-4); }
@media (min-width: 64rem) { .steps li { padding: var(--sp-4) var(--sp-4) var(--sp-4) 0; } .steps li + li { padding-left: var(--sp-4); } }
.steps li::before { font-size: 1.75rem; }
.faq summary { padding: var(--sp-3) 0; }
.faq .answer { padding-bottom: var(--sp-4); }
.q-list a { padding: var(--sp-3) 0; }
.q-more { margin-top: var(--sp-4); }
.principles { gap: var(--sp-4); }
.checklist li { padding: var(--sp-3) 0; }

/* 2. Hell/Dunkel-Umschalter (Muster Bonalin, 44 x 44 px, Sonne/Mond) -------- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 2.75rem; height: 2.75rem; padding: 0; cursor: pointer;
  background: transparent; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--r-sharp);
}
.theme-toggle:hover { border-color: var(--text); }
.theme-toggle svg { width: 1.25rem; height: 1.25rem; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
/* Ohne JavaScript ist der Knopf wirkungslos, deshalb nur mit JS zeigen */
:root:not(.js) .theme-toggle { display: none; }
/* Logo je Modus (ersetzt <picture media="prefers-color-scheme">) */
.logo .logo-dunkel { display: none; }
:root[data-theme="dark"] .logo .logo-hell { display: none; }
:root[data-theme="dark"] .logo .logo-dunkel { display: block; }
/* Mobil: Header kompakter, damit Logo, Umschalter, Knopf und Menü nebeneinander passen */
@media (max-width: 23.99rem) { .site-header .btn-small { padding-inline: 0.625rem; } .header-actions { gap: 0.375rem; } }

/* 3. Schwebende Knöpfe: siehe Abschnitt "Runde 2" am Dateiende (WhatsApp, Sofia, Nach oben) */

/* 4. LinkedIn-Link (kein Embed, keine Fremd-Skripte) ------------------------ */
.li-link { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 2.75rem; color: var(--link); font-size: var(--fs-small); font-weight: 500; }
.li-link svg { width: 1.125rem; height: 1.125rem; flex: none; }
.hero-portrait .li-link { margin-top: var(--sp-1); }
.footer-brand .li-link { margin-top: var(--sp-2); color: var(--text); }

/* LinkedIn-Firmenseiten (nur sichtbar, wenn URL in build_pilot.py LINKEDIN gesetzt ist) */
.social-line { list-style: none; margin: var(--sp-2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--sp-4); }
/* Start-Hero: Porträt und LinkedIn-Link in einer Spalte */
@media (min-width: 64rem) { .hero-side { justify-self: end; width: 100%; max-width: 22rem; } }
.hero-side .li-link { margin-top: var(--sp-1); }
/* Schmale Telefone: Logo etwas kleiner, damit Umschalter, Knopf und Menü ohne horizontales Scrollen passen */
@media (max-width: 29.99rem) { .logo img { height: 1.625rem; } .header-actions { gap: 0.375rem; } }
/* Sehr schmale Telefone (unter 360 px): Kopfzeilen-Knopf ausblenden, er steht im Menü und im Hero */
@media (max-width: 22.49rem) { .header-actions > .btn-small { display: none; } }

/* 6. Bildpaket 28.11.2026: Fotos mit festen Maßen (width/height im HTML), Bildunterschrift in Mono */
.foto { margin: 0; }
.foto img { width: 100%; height: auto; border-radius: var(--r-frame); background: var(--panel); }
.foto figcaption { font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.45; color: var(--text-3); margin-top: var(--sp-2); }
.photo-band { padding-block: var(--sp-5) 0; }
.photo-band + .section { border-top: 0; }
.foto--band img { aspect-ratio: 1920 / 823; object-fit: cover; }
.foto--breit img { aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 47.99rem) { .foto--band img { aspect-ratio: 16 / 9; } }   /* mobil etwas höher, damit das Motiv lesbar bleibt */
.head-media { margin-top: var(--sp-5); max-width: 17.5rem; }
.head-media img { aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 64rem) { .head-media { max-width: none; } }
.body-media { margin-top: var(--sp-5); }
.foto.evidence img { border: 1px solid var(--line-strong); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

/* ==========================================================================
   Runde 2 (28.11.2026, tji-web-design-agent) nach Gesamtcheck
   ========================================================================== */

/* R2.1 Schwebende Knöpfe unten rechts, gestapelt: Nach oben (44 px), Sofia (44 px), WhatsApp (52 px, ab 48rem mit Text).
   Frank 28.11.2026: WhatsApp ist der Hauptweg. Grün nur im Symbol und im Ring, Fläche Ink (Kontrast Symbol 10:1). */
.float-stack {
  position: fixed; z-index: 40;
  right: max(var(--gutter), env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem;
  pointer-events: none;   /* nur die Knöpfe selbst sind klickbar, nichts dazwischen wird verdeckt */
}
.float-stack > * { pointer-events: auto; }
.to-top {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; padding: 0; cursor: pointer;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 50%;
  box-shadow: 0 4px 14px rgba(10,10,15,0.12);
  opacity: 0; visibility: hidden; transform: translateY(6px);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--text); }
.to-top svg { width: 1.125rem; height: 1.125rem; transform: rotate(-90deg); }
.sofia-call {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--tj-ink); color: var(--tj-gold); text-decoration: none;
  border: 1px solid rgba(200,169,110,0.7); box-shadow: 0 4px 14px rgba(10,10,15,0.18);
}
.sofia-call svg { width: 1.125rem; height: 1.125rem; }
.sofia-call:hover { background: var(--tj-ink-3); }
.wa-call {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  width: 3.25rem; height: 3.25rem; padding: 0; border-radius: 999px;
  background: var(--tj-ink); color: var(--tj-silver); text-decoration: none; font-weight: 600; font-size: 0.9375rem;
  border: 2px solid #25D366; box-shadow: 0 6px 20px rgba(10,10,15,0.22);
}
.wa-call .ico { display: inline-flex; color: #25D366; }
.wa-call .ico svg { width: 1.5rem; height: 1.5rem; }
.wa-call .txt { display: none; }
.wa-call:hover { background: var(--tj-ink-3); }
@media (min-width: 48rem) {
  .wa-call { width: auto; padding: 0 1.125rem 0 0.875rem; }
  .wa-call .txt { display: inline; }
}
.sofia-call:focus-visible, .wa-call:focus-visible { outline: 2px solid var(--tj-gold-warm); outline-offset: 3px; }
:root[data-theme="dark"] .sofia-call, :root[data-theme="dark"] .wa-call { box-shadow: 0 6px 20px rgba(0,0,0,0.5); }
:root[data-theme="dark"] .sofia-call:focus-visible, :root[data-theme="dark"] .wa-call:focus-visible { outline-color: var(--tj-silver); }
/* Nichts verdecken: am Seitenende Platz für den untersten Knopf (52 px + Abstand) */
.band-ink { padding-bottom: 5.5rem; }
@media print { .float-stack { display: none !important; } }

/* R2.2 Gesprächsseite: Kontaktwege als große Schaltflächen direkt unter der H1 */
.contact-ways { margin-top: var(--sp-6); max-width: 40rem; }
.contact-ways h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); }
.contact-ways > p { margin-top: var(--sp-2); }
.contact-way-list { list-style: none; margin: var(--sp-4) 0 0; padding: 0; display: grid; gap: var(--sp-2); }
@media (min-width: 40rem) { .contact-way-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-way {
  display: flex; align-items: center; gap: var(--sp-3); min-height: 3.5rem;
  padding: 0.625rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--r-sharp);
  background: var(--surface); color: var(--text); text-decoration: none; line-height: 1.25;
}
.contact-way:hover { border-color: var(--text); }
.contact-way .ico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--panel); }
.contact-way .ico svg { width: 1.125rem; height: 1.125rem; }
.contact-way .txt { display: grid; }
.contact-way .t1 { font-weight: 600; }
.contact-way .t2 { font-size: var(--fs-small); color: var(--text-2); overflow-wrap: anywhere; }
.contact-way--main { background: var(--action-bg); color: var(--action-text); border-color: var(--action-bg); box-shadow: inset 0 3px 0 0 var(--action-bar); }
.contact-way--main .t2 { color: inherit; opacity: 0.85; }
.contact-way--main .ico { background: var(--tj-gold); color: var(--tj-ink); }
.contact-way--main:hover { background: var(--action-bg-hover); }
.contact-hours { font-weight: 500; margin-top: var(--sp-4); }

/* R2.3 Brotkrumen: alle Glieder auf einer Grundlinie (Link und aktuelle Seite gleich hoch) */
.breadcrumb ol { align-items: baseline; }
.breadcrumb li { display: inline-flex; align-items: baseline; }
.breadcrumb [aria-current="page"] { display: inline-block; padding-block: 0.375rem; }

/* R2.4 Türkarten: Weiterlink immer unten, ganze Karte klickbar (h3 a::after) */
.door .door-more { margin-top: auto; padding-top: var(--sp-3); }
.door-media { overflow: hidden; border-radius: var(--r-frame); }

/* R2.5 Dezente Bewegung, nur wenn erwünscht */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .door-media img { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
  .door:hover .door-media img, .door:has(h3 a:focus-visible) .door-media img { transform: scale(1.03); }
  .door .door-more svg { transition: transform .25s ease; }
  .door:hover .door-more svg, .door:has(h3 a:focus-visible) .door-more svg { transform: translateX(6px); }
  .text-link, .next-doors a, .crosslist a, .footer-cols a { transition: color .2s ease; }
  .text-link {
    text-decoration: none;
    /* Ruhezustand: feine Linie bleibt sichtbar (Link erkennbar), beim Zeigen wächst eine kräftige Linie darüber */
    background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--line-strong), var(--line-strong));
    background-size: 0% 2px, 100% 1px; background-repeat: no-repeat; background-position: 0 85%, 0 85%;
    transition: background-size .3s ease;
  }
  .text-link:hover, .text-link:focus-visible { background-size: 100% 2px, 100% 1px; }
  .to-top { transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
  .to-top.is-visible { transition: opacity .2s ease, transform .2s ease; }
  .wa-call, .sofia-call, .contact-way { transition: background-color .2s ease, border-color .2s ease; }
}

/* R2.6 Leerer Aktionsbereich im Kopf (nur verborgener Formular-Sprunglink) nimmt keinen Platz ein */
.hero-actions:not(:has(> :not([hidden]))) { display: none; }
.hero .contact-ways { margin-top: var(--sp-5); }

/* ===== Dokumentkarte EKS-Zeugnis (Darstellung B, K1 beim Prüfvermerk) und Dokumentbild klein (Darstellung A, Über uns), 28.11.2026 ===== */
.doc-card { background: var(--panel); border-left: 3px solid var(--tj-gold); display: grid; gap: var(--sp-6); align-items: center;
  grid-template-columns: 1fr; padding: var(--sp-6) var(--sp-4); margin-top: var(--sp-6); }
.doc-card__media { justify-self: center; width: min(62%, 17.5rem); margin: 0; }
.doc-card__doc { display: block; width: 100%; height: auto; transform: rotate(-2deg); background: #fff;
  box-shadow: 0 1px 2px rgba(10,10,15,.08), 0 18px 40px -12px rgba(10,10,15,.28); }
.doc-card__eyebrow { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--em); margin: 0; }
.doc-card__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h3); line-height: var(--lh-head); margin: var(--sp-2) 0 var(--sp-5); text-wrap: balance; }
.doc-card__facts { margin: 0; }
.doc-card__fact { padding: var(--sp-3) 0; border-top: 1px solid var(--line); }
.doc-card__fact:last-child { border-bottom: 1px solid var(--line); }
.doc-card__fact dt { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-3); }
.doc-card__fact dd { margin: var(--sp-1) 0 0; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3; }
.doc-card__fact--sig dd { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); }
.doc-card__loupe { flex: none; width: 6rem; margin: 0; text-align: center; }
.doc-card__loupe img { display: block; width: 6rem; height: 6rem; object-fit: cover; border-radius: 50%; border: 2px solid var(--tj-gold); background: #fff; }
.doc-card__loupe figcaption { font-family: var(--font-text); margin-top: var(--sp-1); font-size: 0.75rem; line-height: 1.3; color: var(--text-3); }
.doc-card__note { margin: var(--sp-4) 0 0; font-size: var(--fs-small); line-height: 1.5; color: var(--text-3); }
@media (min-width: 48rem) {
  .doc-card { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding: var(--sp-7) var(--sp-6); }
  .doc-card__media { width: 100%; max-width: 17.5rem; }
}
.foto--dokument { max-width: 11rem; margin-top: var(--sp-4); }
.foto--dokument img { aspect-ratio: 1200 / 1692; background: #fff; box-shadow: 0 1px 2px rgba(10,10,15,.08), 0 10px 24px -10px rgba(10,10,15,.3); border-radius: var(--r-sharp); }
@media (min-width: 48rem) { .foto--dokument { float: right; margin: 0 0 var(--sp-4) var(--sp-5); } }
.doc-beside { display: flow-root; }
