/* West-Labs-Design-Kit · Version 1 (2026-10-19)
   Basis für alle Venture-Websites (Kern K4a). Nicht verändern – eigene Anpassungen nur in
   site/assets/marke.css über die Variablen unten. Schriften liegen selbst gehostet in fonts/.

   Einbinden (Reihenfolge wichtig):
     <link rel="preload" href="/assets/kit/fonts/inter.woff2" as="font" type="font/woff2" crossorigin>
     <link rel="stylesheet" href="/assets/kit/kit.css">
     <link rel="stylesheet" href="/assets/marke.css">
   Stil wählen:  <html lang="de" class="stil-klar">   (stil-klar | stil-redaktion | stil-warm | stil-technik | stil-lernen)
*/

/* ---------- Schriften (SIL OFL, selbst gehostet, keine externen Server) ---------- */
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

/* ---------- Variablen: Marke (in marke.css überschreiben) ---------- */
:root {
  --marke: #1f5f8b;          /* Hauptfarbe: Knöpfe, Links, Akzente – Kontrast zu Weiß ≥ 4,5:1 */
  --marke-dunkel: #164466;   /* Hover/aktiv */
  --marke-hell: #e8f1f8;     /* Flächen, Badges */
  --akzent: #e0a526;         /* sparsam: Hervorhebungen, nie für Text auf Weiß */
  --grund: #ffffff;
  --flaeche: #f6f7f9;        /* abgesetzte Abschnitte */
  --text: #16202a;
  --text-leise: #4a5563;     /* Nebentext – noch AA auf --grund und --flaeche */
  --linie: #dfe3e8;
  --erfolg: #1d7a46; --warnung: #9a5b00; --fehler: #b42318;

  --schrift-kopf: "Inter", system-ui, sans-serif;
  --schrift-text: "Inter", system-ui, sans-serif;
  --schrift-mono: "JetBrains Mono", ui-monospace, monospace;
  --kopf-gewicht: 700;
  --kopf-sperrung: -0.02em;

  --radius: 12px; --radius-klein: 8px;
  --schatten: 0 1px 2px rgb(16 24 40 / .06), 0 8px 24px rgb(16 24 40 / .08);
  --breite: 1120px;          /* Seitenraster */
  --lesebreite: 68ch;        /* Fließtext */
  --abstand: clamp(3.5rem, 7vw, 6.5rem); /* zwischen Abschnitten */
}

/* ---------- Stile (Schriftpaare) ---------- */
.stil-klar      { --schrift-kopf: "Inter", system-ui, sans-serif; }
.stil-redaktion { --schrift-kopf: "Source Serif 4", Georgia, serif; --kopf-gewicht: 650; --kopf-sperrung: -0.01em; }
.stil-warm      { --schrift-kopf: "Fraunces", Georgia, serif; --kopf-gewicht: 600; --kopf-sperrung: -0.015em; }
.stil-technik   { --schrift-kopf: "Space Grotesk", system-ui, sans-serif; --kopf-sperrung: -0.025em; }
.stil-lernen    { --schrift-kopf: "Atkinson Hyperlegible", system-ui, sans-serif; --schrift-text: "Atkinson Hyperlegible", system-ui, sans-serif; --kopf-sperrung: 0; }

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--grund); color: var(--text); font-family: var(--schrift-text);
  font-size: 1.0625rem; line-height: 1.65; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--marke); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--marke-dunkel); }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--marke-hell); }

h1, h2, h3, h4 { font-family: var(--schrift-kopf); font-weight: var(--kopf-gewicht); letter-spacing: var(--kopf-sperrung);
  line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; color: var(--text); }
h1 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }
p, ul, ol { margin: 0 0 1em; max-width: var(--lesebreite); }
.lead { font-size: clamp(1.125rem, 1rem + .5vw, 1.3rem); color: var(--text-leise); line-height: 1.55; }
.klein { font-size: .9rem; color: var(--text-leise); }
.oberzeile { font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--marke); margin-bottom: .75rem; }
code, kbd { font-family: var(--schrift-mono); font-size: .92em; }

/* ---------- Raster ---------- */
.wrap { width: min(100% - 2.5rem, var(--breite)); margin-inline: auto; }
.abschnitt { padding-block: var(--abstand); }
.abschnitt-flaeche { background: var(--flaeche); }
.abschnitt-kopf { max-width: 44rem; margin-bottom: 2.5rem; }
.raster { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.raster-2 { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: center; }

/* ---------- Kopf und Fuß ---------- */
.kopf { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--grund) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--linie); }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.logo { display: flex; align-items: center; gap: .55rem; font-family: var(--schrift-kopf); font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.logo img, .logo svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 1.5rem; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav a:hover { color: var(--marke); }
.nav a.btn-haupt, .nav a.btn-haupt:hover { color: #fff; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

.fuss { border-top: 1px solid var(--linie); padding-block: 2.5rem; color: var(--text-leise); font-size: .92rem; }
.fuss .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.fuss a { color: var(--text-leise); }

/* ---------- Startbereich (Hero) mit Produktvorschau ---------- */
.hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem); }
.hero .raster-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.hero h1 { margin-bottom: .4em; }
.hero .lead { margin-bottom: 1.75rem; }
.hero-vertrauen { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.25rem; font-size: .92rem; color: var(--text-leise); padding: 0; list-style: none; }
.hero-vertrauen li::before { content: "✓"; color: var(--erfolg); font-weight: 700; margin-right: .4rem; }

/* Rahmen für Produktvorschau: Browser, Handy, Papier/PDF */
.vorschau { position: relative; }
.rahmen-browser { border-radius: var(--radius); background: #fff; box-shadow: var(--schatten), 0 0 0 1px var(--linie); overflow: hidden; }
.rahmen-browser::before { content: ""; display: block; height: 28px; background:
  radial-gradient(circle at 16px 14px, #ff5f57 5px, transparent 5.5px),
  radial-gradient(circle at 34px 14px, #febc2e 5px, transparent 5.5px),
  radial-gradient(circle at 52px 14px, #28c840 5px, transparent 5.5px), var(--flaeche);
  border-bottom: 1px solid var(--linie); }
.rahmen-handy { width: min(300px, 80%); margin-inline: auto; border-radius: 36px; padding: 10px; background: #111;
  box-shadow: var(--schatten); }
.rahmen-handy > * { border-radius: 28px; overflow: hidden; }
.rahmen-papier { background: #fff; box-shadow: var(--schatten), 0 0 0 1px var(--linie); transform: rotate(-1.5deg); }
.rahmen-papier + .rahmen-papier { position: absolute; inset: 8% -6% auto auto; width: 70%; transform: rotate(3deg); }

/* ---------- Knöpfe ---------- */
.knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.35rem;
  border-radius: var(--radius-klein); border: 2px solid transparent; font: inherit; font-weight: 650; font-size: 1rem;
  line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.btn-haupt { background: var(--marke); color: #fff; }
.btn-haupt:hover { background: var(--marke-dunkel); color: #fff; transform: translateY(-1px); }
.btn-neben { background: transparent; color: var(--text); border-color: var(--linie); }
.btn-neben:hover { border-color: var(--text); color: var(--text); }
.btn-gross { min-height: 56px; padding-inline: 1.75rem; font-size: 1.08rem; }

/* ---------- Bausteine ---------- */
.badge { display: inline-block; padding: .3rem .7rem; border-radius: 999px; background: var(--marke-hell); color: var(--marke-dunkel); font-size: .85rem; font-weight: 600; }
.karte { background: var(--grund); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.5rem; }
.abschnitt-flaeche .karte { border-color: transparent; box-shadow: 0 1px 2px rgb(16 24 40 / .05); }
.karte h3 { margin-bottom: .35rem; }
.karte p:last-child { margin-bottom: 0; }
.karte-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--marke-hell); color: var(--marke); margin-bottom: 1rem; }

.schritte { counter-reset: s; max-width: none; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); padding: 0; list-style: none; }
.schritte li { counter-increment: s; position: relative; padding-top: 3.25rem; max-width: none; }
.schritte li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--marke); color: #fff; font-weight: 700; font-family: var(--schrift-kopf); }

.preis-karte { position: relative; display: flex; flex-direction: column; gap: .75rem; }
.preis-karte.empfohlen { border: 2px solid var(--marke); box-shadow: var(--schatten); }
.preis-karte.empfohlen::before { content: "Empfohlen"; position: absolute; top: -.8rem; left: 1.5rem; background: var(--marke); color: #fff;
  font-size: .78rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.preis { font-family: var(--schrift-kopf); font-size: 2.4rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.preis-zusatz { font-size: .88rem; color: var(--text-leise); }
.preis-karte ul { padding-left: 1.1rem; margin: 0; }
.preis-karte .btn { margin-top: auto; }

.hinweis { border-left: 4px solid var(--marke); background: var(--marke-hell); padding: 1rem 1.25rem; border-radius: 0 var(--radius-klein) var(--radius-klein) 0; max-width: var(--lesebreite); }
.hinweis-warnung { border-color: var(--warnung); background: #fff6e5; }

.faq details { border-bottom: 1px solid var(--linie); padding: 1.1rem 0; max-width: 48rem; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--marke); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: .75rem; }

table { border-collapse: collapse; width: 100%; font-size: .97rem; }
th, td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-weight: 650; background: var(--flaeche); }
.tabelle-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

input, select, textarea { font: inherit; width: 100%; min-height: 48px; padding: .65rem .8rem; border: 1.5px solid var(--linie); border-radius: var(--radius-klein); background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { border-color: var(--marke); outline: none; box-shadow: 0 0 0 3px var(--marke-hell); }
label { display: block; font-weight: 600; margin-bottom: .35rem; }

/* Abschluss-Band mit Handlungsaufforderung */
.band { background: var(--marke); color: #fff; border-radius: calc(var(--radius) * 1.5); padding: clamp(2rem, 5vw, 3.5rem); }
.band h2, .band p { color: #fff; }
.band .btn-haupt { background: #fff; color: var(--marke-dunkel); }
.band .btn-neben { color: #fff; border-color: rgb(255 255 255 / .5); }

/* Bewegung nur wenn erwünscht */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .kopf, .fuss, .knoepfe { display: none; } body { font-size: 11pt; } }
