/* Bebel XII Gemeinsam — Produktions-Stylesheet (abgeleitet vom Modernist-Designsystem) */
/* Schrift: Archivo lokal einbinden — Dateien nach produktion/fonts/ legen.
   Fehlen die Dateien, greift automatisch die Systemschrift. */
@font-face { font-family: "Archivo"; src: url("fonts/archivo-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #f5f6f7;
  --surface: #eceef0;
  --text: #201e1d;
  --muted: rgba(32, 30, 29, 0.72);
  --muted2: rgba(32, 30, 29, 0.6);
  --divider: rgba(32, 30, 29, 0.4);
  --blau: #24466b;
  --blau-600: #1d3a59;
  --blau-700: #16304b;
  --blau-100: #eef2f7;
  --blau-200: #dbe4ee;
  --blau-300: #bccddf;
  --blau-400: #7f9cbd;
  --gruen: #4e7a5e;
  --gruen-700: #315340;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 28px; text-wrap: pretty; }
a { color: var(--blau-700); text-underline-offset: 3px; }
a:hover { color: var(--blau); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--blau); outline-offset: 2px; }
::selection { background: rgba(36, 70, 107, 0.25); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 72px); }
.wrap-schmal { max-width: 820px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 72px) 64px; }
.rule2 { height: 2px; border: 0; background: var(--divider); margin: 0; }

/* Navigation */
.nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; row-gap: 8px; border-bottom: 2px solid var(--divider); padding: 14px clamp(20px, 5vw, 72px); padding-inline: max(clamp(20px, 5vw, 72px), calc((100% - 1160px) / 2 + clamp(20px, 5vw, 72px))); }
.nav-brand { font-weight: 800; letter-spacing: -0.01em; margin-right: auto; white-space: nowrap; }
.nav a { text-decoration: none; font-size: 15px; white-space: nowrap; }
.nav a:hover { color: var(--blau); text-decoration: underline; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: flex-start; text-align: left; font: inherit; font-size: 15px; font-weight: 600; padding: 10px 18px; border: 0; border-radius: 0; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--blau); color: var(--bg); }
.btn-primary:hover { background: var(--blau-600); }
.btn-primary:active { background: var(--blau-700); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--divider); }
.btn-secondary:hover { background: rgba(32, 30, 29, 0.07); }
.btn-ghost-invert { background: transparent; color: var(--bg); border: 2px solid var(--bg); }
.btn-ghost-invert:hover { background: rgba(245, 246, 247, 0.12); }

/* Typografie */
.kicker { display: block; font-size: 13px; line-height: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blau-700); margin: 0 0 18px; }
.display { font-weight: 800; font-size: clamp(38px, 5.6vw, 72px); line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 28px; margin-left: -0.05em; max-width: 18ch; }
.display span { display: block; }
h2.titel { font-weight: 800; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 20px; max-width: 26ch; }
.copy { font-size: 16px; line-height: 28px; color: rgba(32, 30, 29, 0.85); max-width: 62ch; margin: 0 0 0; }

/* Hero */
.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 7vw, 84px); }
.hero .sub { font-size: 17px; line-height: 28px; max-width: 58ch; margin: 0 0 20px; }
.hero .hinweis { font-size: 14px; line-height: 22px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gruen-700); margin: 0 0 32px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Kennzahlen */
.stats { padding: clamp(40px, 6vw, 70px) 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.stat-num { font-weight: 800; font-size: clamp(34px, 3.4vw, 48px); line-height: 1.1; color: var(--blau); margin: 0 0 10px; }
.stat-num.gruen { color: #3f6650; }
.stat-label { font-size: 13px; line-height: 20px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0; }

/* Abschnitte */
.abschnitt { padding: clamp(48px, 7vw, 84px) 0; }

/* Dashboard */
.balken { max-width: 780px; height: 14px; background: var(--blau-200); margin: 0 0 12px; }
.balken > div { height: 14px; background: var(--gruen); }
.legende { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; line-height: 20px; color: var(--muted); margin: 0 0 32px; max-width: 780px; }
.legende span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.legende i { width: 12px; height: 12px; display: inline-block; }
.wr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.wr { display: block; text-decoration: none; border: 2px solid var(--blau-300); background: var(--bg); color: var(--blau-700); padding: 10px 12px; }
.wr:hover { background: var(--blau-100); color: var(--blau-700); }
.wr.bekannt { border-color: var(--gruen); background: var(--gruen); color: var(--bg); pointer-events: none; }
.wr b { display: block; font-weight: 800; font-size: 17px; line-height: 22px; }
.wr small { display: block; font-size: 11px; line-height: 16px; letter-spacing: 0.05em; text-transform: uppercase; }
.fussnote { font-size: 13px; line-height: 22px; color: var(--muted); margin: 24px 0 0; max-width: 62ch; }

/* Drei Spalten */
.spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0; margin-top: 44px; }
.spalte { border-top: 2px solid var(--divider); padding: 22px 28px 8px 0; }
.spalte h3 { font-weight: 800; font-size: 20px; line-height: 26px; letter-spacing: -0.01em; margin: 0 0 10px; }
.spalte p { font-size: 15.5px; line-height: 26px; color: rgba(32, 30, 29, 0.85); margin: 0; max-width: 44ch; }
.hinweis-box { font-size: 14px; line-height: 24px; color: var(--muted); border-left: 2px solid #83ab8f; padding-left: 16px; margin: 40px 0 0; max-width: 62ch; }

/* Anlage */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px clamp(24px, 5vw, 96px); align-items: center; padding: 0 0 clamp(48px, 7vw, 84px); }
dl.daten { margin: 0; font-size: 15.5px; line-height: 26px; }
dl.daten > div { display: flex; gap: 16px; border-top: 1px solid var(--divider); padding: 10px 0; }
dl.daten > div:last-child { border-bottom: 1px solid var(--divider); }
dl.daten dt { width: 130px; flex-shrink: 0; color: var(--muted); }
dl.daten dd { margin: 0; overflow-wrap: anywhere; }
.quelle { font-size: 13px; line-height: 20px; color: var(--muted); margin: 10px 0 0; }
.illu { margin: 0; }
.illu svg { display: block; width: 100%; height: auto; }

/* Schritte */
.schritt { display: grid; grid-template-columns: minmax(56px, 120px) minmax(0, 1fr); gap: 12px clamp(20px, 4vw, 64px); align-items: baseline; border-top: 2px solid var(--divider); padding: 26px 0; }
.schritt .num { font-weight: 800; font-size: 15px; line-height: 26px; margin: 0; font-variant-numeric: tabular-nums; }
.schritt h3 { font-weight: 800; font-size: 22px; line-height: 28px; letter-spacing: -0.01em; margin: 0 0 8px; }
.schritt p { font-size: 15.5px; line-height: 26px; color: rgba(32, 30, 29, 0.85); margin: 0; max-width: 60ch; }
@media (max-width: 640px) { .schritt { grid-template-columns: 1fr; gap: 4px; } }

/* FAQ */
.faq-liste { max-width: 780px; }
.faq-liste details { border-top: 1px solid var(--divider); }
.faq-liste details:last-of-type { border-bottom: 1px solid var(--divider); }
.faq-liste summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: baseline; font-weight: 800; font-size: 17px; line-height: 26px; padding: 18px 0; }
.faq-liste summary::-webkit-details-marker { display: none; }
.faq-liste summary .plus { color: var(--blau); flex-shrink: 0; }
.faq-liste details[open] summary .plus::before { content: "–"; }
.faq-liste details:not([open]) summary .plus::before { content: "+"; }
.faq-liste details p { font-size: 15.5px; line-height: 26px; color: rgba(32, 30, 29, 0.85); margin: 0; padding: 0 0 22px; max-width: 62ch; }

/* Kontakt */
.kontakt { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px clamp(32px, 6vw, 110px); padding-bottom: clamp(56px, 8vw, 96px); }
.kontakt .klein { font-size: 14px; line-height: 24px; color: var(--muted); max-width: 48ch; }
form { display: grid; gap: 18px; align-content: start; }
.field { display: block; font-size: 14px; }
.field > span { display: block; margin-bottom: 6px; font-weight: 600; }
.input { width: 100%; min-height: 40px; padding: 8px 10px; font: inherit; font-size: 15px; color: var(--text); caret-color: var(--blau); background: var(--surface); border: 1px solid var(--divider); border-radius: 0; }
.input:hover { border-color: rgba(32, 30, 29, 0.55); }
.input:focus-visible { border-color: var(--blau); outline-offset: 0; }
textarea.input { min-height: 100px; resize: vertical; }
.radios { display: flex; gap: 20px; flex-wrap: wrap; }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.radio input { accent-color: var(--blau); width: 16px; height: 16px; }
.checkzeile { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 22px; color: rgba(32, 30, 29, 0.85); cursor: pointer; }
.checkzeile input { margin-top: 3px; accent-color: var(--blau); width: 16px; height: 16px; flex-shrink: 0; }
.form-hinweis { font-size: 13px; line-height: 20px; color: var(--muted); margin: 0; }

/* Blaues Abschluss-Banner */
.close { background: var(--blau); color: var(--bg); }
.close .inner { max-width: 1160px; margin: 0 auto; padding: clamp(56px, 8vw, 90px) clamp(20px, 5vw, 72px); }
.close h2 { font-weight: 800; font-size: clamp(32px, 4vw, 54px); line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 32px; margin-left: -0.05em; max-width: 22ch; }
.close h2 span { display: block; }

/* Fußzeile */
footer { max-width: 1160px; margin: 0 auto; padding: 40px clamp(20px, 5vw, 72px) 48px; }
footer p { font-size: 13px; line-height: 22px; color: var(--muted); margin: 0 0 12px; max-width: 78ch; }
footer .links { display: flex; gap: 24px; font-size: 13px; line-height: 22px; }

/* Rechtsseiten */
.recht h1 { font-weight: 800; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 40px; margin-left: -0.05em; }
.recht h2 { font-weight: 800; font-size: 22px; line-height: 28px; letter-spacing: -0.01em; border-top: 2px solid var(--divider); padding-top: 24px; margin: 0 0 12px; }
.recht h3 { font-weight: 800; font-size: 17px; line-height: 26px; margin: 0 0 8px; }
.recht p, .recht ul { font-size: 16px; line-height: 28px; margin: 0 0 32px; }
.recht ul { padding-left: 22px; margin-bottom: 20px; }
.recht .stand { font-size: 14px; line-height: 24px; color: var(--muted); margin: 0 0 40px; }
.recht footer { max-width: 820px; border-top: 2px solid var(--divider); padding-top: 24px; }
