/* tomade.de – Angebotsseite (Karte #359, Gestaltung nach Claude-Design-Entwurf „Angebotsseite Mandate v2“, Karte #420).
   Schriften: Archivo (Überschriften, Marke) und Inter (Fließtext), beide variabel und selbst gehostet.
   Kontraste (WCAG): #D6E0E0 auf #0F2326 12,1:1 · #B7C6C6 auf #0F2326 9,2:1 · #8FA6A7 auf #0F2326 6,4:1 ·
   #8FA6A7 auf #12343A 5,2:1 · #3C4E51 auf #F2F4F3 7,9:1 · #4B5B5D auf #F2F4F3 6,4:1 · #4B5B5D auf #FFF 7,1:1 ·
   #2E3F42 auf #F2F4F3 10:1 · #FF7A33 auf #0F2326 6,3:1 · #0F2326 auf #FF7A33 6,3:1 · #FF7A33 auf #12343A 5,1:1.
   Orange nie als Textfarbe auf Weiß/Hellgrau (2,6:1). */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/archivo-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/archivo-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter nur mit dem Teil latin (Schriftbudget 120 KB, scripts/pruefen.mjs); Zeichen außerhalb fallen auf Archivo zurück. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --petrol-schwarz: #0F2326;
  --petrol: #12343A;
  --hellgrau: #F2F4F3;
  --weiss: #FFFFFF;
  --orange: #FF7A33;
  --linie-hell: #D3DBDB;
  --linie-dunkel: #2E4A4E;
  --kontur-dunkel: #4E6A6D;
  --text-hell: #3C4E51;
  --text-these: #2E3F42;
  --text-leise: #4B5B5D;
  --text-dunkel: #D6E0E0;
  --text-dunkel-leise: #B7C6C6;
  --text-dunkel-label: #8FA6A7;

  --schrift: 'Inter', 'Archivo', system-ui, sans-serif;
  --schrift-titel: 'Archivo', system-ui, sans-serif;
  --breite: 1200px;
  --rand: clamp(20px, 5vw, 24px);
  --abstand: clamp(72px, 9.4vw, 120px);
  --spalten: repeat(auto-fit, minmax(min(340px, 100%), 1fr));

  /* je Fläche überschrieben */
  --grund: var(--hellgrau);
  --vorder: var(--petrol-schwarz);
  --text: var(--petrol-schwarz);
  --linie: var(--linie-hell);
  --fokus: var(--petrol-schwarz);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  background: var(--hellgrau);
  color: var(--petrol-schwarz);
  overflow-wrap: break-word;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }

::selection { background: var(--orange); color: var(--petrol-schwarz); }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; }

/* Flächen */
.hell { --grund: var(--hellgrau); background: var(--hellgrau); }
.weiss { --grund: var(--weiss); background: var(--weiss); }
.dunkel {
  --grund: var(--petrol-schwarz);
  --vorder: var(--weiss);
  --text: var(--text-dunkel);
  --linie: var(--linie-dunkel);
  --fokus: var(--orange);
  background: var(--petrol-schwarz);
  color: var(--weiss);
}
.orange {
  --grund: var(--orange);
  --vorder: var(--petrol-schwarz);
  --text: var(--petrol-schwarz);
  --linie: var(--petrol-schwarz);
  --fokus: var(--petrol-schwarz);
  background: var(--orange);
  color: var(--petrol-schwarz);
}
.orange ::selection { background: var(--petrol-schwarz); color: var(--orange); }
.abschnitt-linien { border-block: 1px solid var(--linie-hell); }
.abschnitt-linie-oben { border-top: 1px solid var(--linie-hell); }

/* Typografie */
h1, h2, h3, h4 {
  font-family: var(--schrift-titel);
  color: var(--vorder);
  font-weight: 800;
  line-height: 1.1;
  text-wrap: balance;
  overflow-wrap: normal;
  hyphens: auto;
  hyphenate-limit-chars: 10 4 4;
}
h1 { font-size: clamp(38px, 1.6rem + 3.6vw, 68px); font-weight: 900; line-height: 1.0; letter-spacing: -0.03em; }
.titel-gross { font-size: clamp(32px, 1.25rem + 2.6vw, 52px); font-weight: 900; line-height: 1.02; letter-spacing: -0.03em; }
.titel-mittel { font-size: clamp(30px, 1.15rem + 2.1vw, 44px); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; }
.titel-kontakt { font-size: clamp(38px, 1.5rem + 3.4vw, 64px); font-weight: 900; line-height: 0.98; letter-spacing: -0.03em; }
.akzent { color: var(--orange); }
.meta, .vorzeile {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--text-leise);
}
.vorzeile { font-size: 14px; }
.dunkel .meta, .dunkel .vorzeile { color: var(--text-dunkel-label); }
.held .vorzeile { color: var(--text-dunkel-leise); }
.vorzeile-strich { display: inline-flex; align-items: center; gap: 12px; }
.vorzeile-strich::before { content: ''; width: 32px; height: 2px; background: var(--orange); flex: none; }

.sprung {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--orange); color: var(--petrol-schwarz);
  padding: 12px 16px; font-weight: 700;
}
.sprung:focus { top: 16px; }

.rahmen { max-width: var(--breite); margin-inline: auto; padding-inline: var(--rand); }
.abschnitt { padding-block: var(--abstand); }
.abschnitt-eng { padding-block: clamp(72px, 8.8vw, 112px); }
.abschnitt-titel { margin-bottom: 48px; }
.fliesstext { display: grid; gap: 22px; }

.zwei-spalten { display: grid; grid-template-columns: var(--spalten); gap: 32px 56px; align-items: start; }
.zwei-spalten-unten { align-items: end; }

/* Knöpfe */
.knopfreihe { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; max-width: 100%; padding: 8px 22px; text-align: center;
  font-family: var(--schrift); font-size: 17px; font-weight: 700; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; border-radius: 0;
  transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out;
}
.knopf .pfeil { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 160ms ease-out; }
.knopf:hover .pfeil { transform: translateX(3px); }
.knopf-gross { min-height: 56px; padding-inline: 28px; }
.knopf-primaer { background: var(--orange); color: var(--petrol-schwarz); }
.knopf-primaer:hover { background: var(--weiss); }
.knopf-kontur { border-color: var(--kontur-dunkel); color: var(--weiss); font-weight: 500; padding-inline: 24px; }
.knopf-kontur:hover { border-color: var(--weiss); }
.knopf-dunkel { background: var(--petrol-schwarz); color: var(--weiss); }
.knopf-dunkel:hover { background: var(--petrol); }
.knopf-klein { min-height: 44px; padding: 0 20px; font-size: 15px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .knopf, .knopf .pfeil, .aussage { transition: none; } }

/* Kopf */
.kopf-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-block: 22px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--schrift-titel); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1;
  color: var(--weiss); text-decoration: none;
}
.logo-quadrat { width: 14px; height: 14px; background: var(--orange); flex: none; }
.logo-klein { font-size: 18px; gap: 8px; }
.logo-klein .logo-quadrat { width: 10px; height: 10px; }
.nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; }
.nav a:not(.knopf) {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; color: var(--text-dunkel); text-decoration: none;
}
.nav a:not(.knopf):hover { color: var(--weiss); text-decoration: underline; }
@media (max-width: 599px) {
  .kopf-innen { padding-block: 14px; }
  .nav { width: 100%; }
  .nav ul { gap: 0 18px; }
  .nav li:last-child { margin-left: auto; }
}

/* Held */
.held { overflow: hidden; padding-block: clamp(40px, 6vw, 72px) clamp(72px, 9vw, 112px); }
.held-raster { display: grid; grid-template-columns: var(--spalten); gap: 56px; align-items: center; }
.held-text { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.held-lead { max-width: 560px; font-size: clamp(18px, 1rem + 0.4vw, 20px); line-height: 1.55; color: var(--text-dunkel); }

/* Fragen, die heute auf dem Tisch liegen */
.tischfragen { display: flex; flex-direction: column; gap: 14px; }
.tf-titel { margin-bottom: 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dunkel-label); }
.tf-liste { display: flex; flex-direction: column; gap: 14px; }
.tf-karte {
  display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px;
  background: var(--weiss); color: var(--petrol-schwarz);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}
.tf-karte p { font-size: 18px; font-weight: 600; line-height: 1.4; }
.tf-versetzt { margin-left: clamp(12px, 3vw, 32px); }
.tf-nr {
  flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px;
  font-family: var(--schrift-titel); font-size: 15px; font-weight: 800; line-height: 1;
  background: var(--petrol-schwarz); color: var(--weiss);
}
.tf-offen { background: var(--orange); box-shadow: none; }
.tf-offen p { font-weight: 700; }
.tf-offen .tf-nr { color: var(--orange); }
@media (max-width: 479px) {
  .tf-karte { padding: 18px; gap: 14px; }
  .tf-karte p { font-size: 17px; }
}

/* Themenband */
.themenband { background: var(--orange); color: var(--petrol-schwarz); }
.themen {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  padding-block: 18px;
  font-family: var(--schrift-titel); font-size: clamp(15px, 0.8rem + 0.45vw, 18px); font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.3;
}
@media (max-width: 1279px) {
  .themen-trenner { display: none; }
}
@media (max-width: 767px) {
  .themen { justify-content: flex-start; gap: 8px 20px; }
}

/* These */
.these-text { font-size: 19px; color: var(--text-these); }
.abgrenzung {
  padding: 20px 24px; background: var(--weiss); border: 1px solid var(--linie-hell);
  font-size: 16px; color: var(--text-hell);
}
.abgrenzung strong { color: var(--petrol-schwarz); }

/* Selbsttest */
.selbsttest { display: grid; gap: 30px 56px; grid-template-areas: "kopf" "aussagen" "ergebnis"; }
@media (min-width: 784px) {
  .selbsttest {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "kopf aussagen" "ergebnis aussagen";
    grid-template-rows: auto 1fr;
  }
}
.st-kopf { grid-area: kopf; display: flex; flex-direction: column; gap: 18px; }
.st-kopf > p:last-child { color: var(--text-hell); }
.st-aussagen { grid-area: aussagen; display: flex; flex-direction: column; gap: 12px; }
.aussage {
  width: 100%; display: flex; align-items: center; gap: 18px;
  min-height: 72px; padding: 18px 22px; text-align: left; cursor: pointer;
  font: inherit; font-size: 17px; line-height: 1.45; font-weight: 500;
  background: var(--hellgrau); color: var(--petrol-schwarz);
  border: 2px solid var(--linie-hell); border-radius: 0;
  transition: background-color 140ms ease-out, color 140ms ease-out, border-color 140ms ease-out;
}
.aussage:hover { border-color: var(--petrol-schwarz); }
.kaestchen {
  flex: 0 0 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--text-leise); color: var(--petrol-schwarz); /* Karte #420: 6,4:1 statt 2,3:1 (WCAG 1.4.11) */
}
.kaestchen svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.aussage[aria-pressed="true"] { background: var(--petrol-schwarz); color: var(--weiss); border-color: var(--petrol-schwarz); font-weight: 600; }
.aussage[aria-pressed="true"] .kaestchen { background: var(--orange); border-color: var(--orange); color: var(--petrol-schwarz); }
.aussage[aria-pressed="true"] .kaestchen svg { visibility: visible; }
.aussage:focus-visible { outline-color: var(--petrol-schwarz); }

.st-ergebnis { grid-area: ergebnis; align-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px; }
.st-zaehler { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dunkel-label); font-variant-numeric: tabular-nums; }
.st-titel { font-family: var(--schrift-titel); font-size: 26px; font-weight: 800; line-height: 1.2; color: var(--orange); text-wrap: balance; }
.st-text { color: var(--text-dunkel); }
.st-ergebnis .knopf { margin-top: 8px; }

/* Formate */
.formate-kopf { display: flex; flex-direction: column; gap: 18px; padding-bottom: 48px; }
.formate-kopf h2 { max-width: 860px; }
.formate { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; margin-top: 24px; }
.format { display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 3.5vw, 40px); }
.format h3 { font-size: clamp(24px, 1rem + 1.1vw, 30px); line-height: 1.1; }
.format-zeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.format-nr { font-family: var(--schrift-titel); font-size: 56px; font-weight: 900; line-height: 1; color: var(--petrol-schwarz); }
.format-dunkel .format-nr { color: var(--orange); }
.format-dunkel .meta { color: var(--text-dunkel-leise); }
.format-dunkel > p { color: var(--text-dunkel); }
.format-hell { background: var(--weiss); border: 1px solid var(--linie-hell); }
.advisory-teile { display: flex; flex-direction: column; gap: 16px; }
.advisory-teile > div { padding: 18px 20px; background: var(--hellgrau); }
.advisory-teile h4 { margin-bottom: 4px; font-family: var(--schrift); font-size: 17px; font-weight: 700; line-height: 1.6; text-wrap: wrap; hyphens: manual; }
.advisory-teile p { font-size: 16px; color: var(--text-hell); }
.eckdaten { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--linie); font-size: 16px; }
.eckdaten span { color: var(--text-hell); }
.format-dunkel .eckdaten span { color: var(--text-dunkel); }

.bausteine-kopf {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-top: 56px; margin-bottom: 20px;
}
.bausteine-kopf h3 { font-size: 26px; font-weight: 800; }
.bausteine-titel { font-weight: 500; }
.bausteine-kopf p { font-size: 15px; color: var(--text-leise); }
/* Trennlinien über 2px-Raster auf Petrol-Schwarz */
.bausteine {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px;
  border: 2px solid var(--petrol-schwarz); background: var(--petrol-schwarz);
}
/* ab 900 px alle Bausteine in einer Reihe, gleich breit: 2 oder 3 (Schalter matchmaking), nie eine leere Zelle */
@media (min-width: 900px) {
  .bausteine { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}
.baustein { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 32px); background: var(--weiss); }
.baustein h4 { font-size: 22px; line-height: 1.2; }
.baustein > p:not(.meta):not(.ergebnis) { font-size: 16px; color: var(--text-hell); }
.baustein .ergebnis { margin-top: auto; font-size: 16px; }

/* Erfahrung */
.erfahrung { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 64px); }
.erfahrung .zwei-spalten { gap: 24px 40px; }
#kontakt .zwei-spalten { column-gap: 48px; }
.erfahrung-text { font-size: 19px; color: var(--text-dunkel); }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); border-top: 1px solid var(--linie-dunkel); }
.kennzahl { display: flex; flex-direction: column; gap: 10px; padding: 32px 24px 0 0; }
.kennzahl p:last-child { color: var(--text-dunkel); }
.kennzahl-wert { font-family: var(--schrift-titel); font-size: clamp(40px, 0.75rem + 3.85vw, 60px); font-weight: 900; line-height: 1; color: var(--orange); white-space: nowrap; }
.faelle { display: grid; grid-template-columns: var(--spalten); gap: 24px; }
.fall { display: flex; flex-direction: column; gap: 16px; background: var(--petrol); padding: clamp(28px, 3vw, 36px); }
.fall h3 { font-size: 26px; line-height: 1.2; }
.fall > p:last-child { color: var(--text-dunkel); }

/* Ablauf */
.zeitleiste { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 24px; }
.schritt { display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 2.5vw, 32px); background: var(--weiss); border-top: 6px solid var(--petrol-schwarz); }
@media (max-width: 1279px) { .schritt { hyphens: auto; } }
.schritt-start { border-top-color: var(--orange); }
.schritt h3 { font-size: 24px; }
.schritt > p:last-child { color: var(--text-hell); }
.zeitpunkt { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.4; color: var(--text-leise); }

/* Fragen */
.faq { display: flex; flex-direction: column; border-bottom: 1px solid var(--linie-hell); }
.frage { padding-block: 24px; border-top: 1px solid var(--linie-hell); }
.frage:first-child { border-top: 2px solid var(--petrol-schwarz); }
.frage h3 { margin-bottom: 8px; font-size: 20px; line-height: 1.3; }
.frage p { color: var(--text-hell); }

/* Kontakt */
.kontakt-text { display: flex; flex-direction: column; gap: 20px; }
.kontakt-text > p { font-size: 19px; }
.kontakt-text .knopfreihe { gap: 16px; }
.textlink { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.person { display: flex; align-items: center; gap: 16px; padding-top: 20px; border-top: 1px solid rgba(15, 35, 38, 0.35); }
.person p { font-size: 16px; }
.foto {
  flex: 0 0 64px; height: 64px; display: flex; align-items: center; justify-content: center;
  background: var(--petrol-schwarz); color: var(--weiss); font-size: 12px;
}

/* Fuß */
.fuss { color: var(--text-dunkel-leise); font-size: 14px; }
.fuss-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-block: 32px; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.fuss-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-dunkel); }
.fuss-links a:hover { color: var(--weiss); }

/* Unterseiten */
.unterseite { padding-block: var(--abstand); min-height: 50vh; color: var(--text-hell); }
.unterseite h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); margin-bottom: 24px; }
.unterseite p { max-width: 64ch; }
/* Rechtstexte aus dem Compliance Hub (Karte #472): Absätze, „## “-Überschriften, Listen, Links. */
.unterseite h2 { font-size: clamp(22px, 1.1rem + 0.8vw, 28px); line-height: 1.2; max-width: 40ch; margin-top: 40px; margin-bottom: 12px; }
.unterseite h1 + h2 { margin-top: 0; }
.unterseite :is(p, ul) + :is(p, ul) { margin-top: 16px; }
.unterseite ul { max-width: 64ch; padding-left: 1.25em; list-style: disc; }
.unterseite li + li { margin-top: 4px; }
.unterseite li::marker { color: var(--petrol-schwarz); }
.unterseite :is(p, li) a { color: var(--petrol-schwarz); text-decoration: underline; overflow-wrap: anywhere; }
.unterseite .zurueck { display: inline-flex; margin-top: 32px; min-height: 48px; align-items: center; font-weight: 700; color: var(--petrol-schwarz); }
