/* =============================================================
   Pipeline Partner – flach, hell, klar strukturiert.
   Keine Verläufe. Jeder Abschnitt: links Nummer + Titel,
   rechts der Inhalt, getrennt durch feine Linien.
   ============================================================= */

@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-var-latin.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Sans Ersatz"; src: local("Segoe UI"), local("Arial"), local("Helvetica"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; }

:root {
  --bg: #f7f7f4;
  --flaeche: #ffffff;
  --flaeche-2: #f0f0ec;
  --linie: #e3e3dd;
  --linie-2: #cfcfc7;
  --tinte: #0b0b0f;
  --tinte-2: #3d4250;
  --tinte-3: #6b7080;
  --akzent: #0d6b75;
  --akzent-hell: #e2f1f2;
  --sans: "Inter", "Sans Ersatz", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --gut: clamp(16px, 4vw, 40px);
  --weich: cubic-bezier(.25, .1, .25, 1);
  --kopf-breite: 220px;

  /* Werte für Dashboard, Admin und Rechtsseiten */
  --txt: var(--tinte);
  --mut: var(--tinte-3);
  --dim: var(--tinte-3);
  --acc: var(--akzent);
  --line: var(--linie);
  --line2: var(--linie-2);
  --card: var(--flaeche);
  --card2: var(--flaeche-2);
  --red: #b4233f;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--tinte); font-family: var(--sans); font-size: 1rem; line-height: 1.55; letter-spacing: -.011em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--akzent-hell); }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Grundgerüst ---------- */
.wrap { width: 100%; max-width: calc(1180px + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
main { counter-reset: abschnitt; }
.sec { border-top: 1px solid var(--linie); padding-block: clamp(56px, 7vw, 96px); scroll-margin-top: 64px; }
.sec.eng { padding-block: clamp(40px, 5vw, 64px); }
.raster { display: grid; grid-template-columns: var(--kopf-breite) 1fr; gap: clamp(24px, 4vw, 56px); }
.sec-kopf { counter-increment: abschnitt; font-family: var(--mono); font-size: .8125rem; color: var(--tinte-3); text-transform: uppercase; padding-top: 6px; }
.sec-kopf::before { content: counter(abschnitt, decimal-leading-zero); display: block; color: var(--akzent); margin-bottom: 6px; }
.sec-inhalt { min-width: 0; }

.h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.02; margin: 0; text-wrap: balance; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; margin: 0; text-wrap: balance; max-width: 24ch; }
.h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; margin: 0; }
.h1 span, .h2 span { color: var(--tinte-3); }
.sub { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.5; color: var(--tinte-2); max-width: 54ch; margin: 16px 0 0; }
.klein { font-size: .875rem; color: var(--tinte-3); }
.hinweis { font-size: .8125rem; color: var(--tinte-3); margin: 20px 0 0; }

/* ---------- Kopfzeile ---------- */
.kopf { position: sticky; top: 0; z-index: 30; background: rgba(247, 247, 244, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linie); }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.marke { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.0625rem; letter-spacing: -.02em; }
.marke img { width: 26px; height: 26px; border-radius: 6px; }
.marke em { font-style: normal; font-weight: 400; color: var(--tinte-3); }
.menue { display: flex; align-items: center; gap: 26px; font-size: .9375rem; color: var(--tinte-2); }
.menue a:not(.btn):hover { color: var(--tinte); }

/* ---------- Knöpfe ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 8px; border: 1px solid var(--tinte); cursor: pointer;
  background: var(--tinte); color: #fff; font-weight: 500; font-size: .9375rem; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.btn:hover { background: #26262d; border-color: #26262d; }
.btn.klein { height: 36px; padding: 0 14px; font-size: .875rem; }
.btn.voll { width: 100%; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-text { border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 4px; font-size: .9375rem; font-weight: 500; color: var(--tinte); }
.btn-text::after { content: "→"; transition: transform .2s var(--weich); }
.btn-text:hover::after { transform: translateX(3px); }
.knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }

/* ---------- Hero ---------- */
.hero { border-top: 0; padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6vw, 80px); }
.hero-raster { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.hero .klein { margin-top: 16px; }
.pfad { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: .75rem; text-transform: uppercase; color: var(--tinte-3); margin-bottom: 22px; }
.pfad a:hover { color: var(--tinte); }
.fakten { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 6vw, 72px); border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); }
.fakten > div { padding: 18px 20px; border-right: 1px solid var(--linie); }
.fakten > div:last-child { border-right: 0; }
.fakten b { display: block; font-size: 1.75rem; font-weight: 600; letter-spacing: -.035em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.fakten span { font-size: .8125rem; color: var(--tinte-3); }

/* ---------- Karten ---------- */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: clamp(20px, 2.4vw, 28px); }

/* ---------- Rechner-Karte ---------- */
.demo { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; }
.demo-kopf { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--linie); font-family: var(--mono); font-size: .75rem; text-transform: uppercase; color: var(--tinte-3); }
.demo .zeile { padding: 16px 20px; border-bottom: 1px solid var(--linie); display: grid; gap: 10px; }
.demo .label { font-size: .875rem; color: var(--tinte-2); }
.segment { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 3px; border-radius: 8px; background: var(--flaeche-2); border: 1px solid var(--linie); }
.segment button { border: 0; background: transparent; min-height: 34px; padding: 6px 4px; line-height: 1.25; border-radius: 6px; cursor: pointer; font-size: .875rem; font-weight: 500; color: var(--tinte-2); transition: background-color .15s; }
.segment button:hover { color: var(--tinte); }
.segment button[aria-pressed="true"] { background: var(--flaeche); color: var(--tinte); box-shadow: 0 1px 2px rgba(11, 11, 15, .12), 0 0 0 1px var(--linie); }
.demo .ergebnis { padding: 20px; background: var(--flaeche-2); }
.demo .ergebnis .label { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; color: var(--tinte-3); }
.demo .betrag { font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.05; margin-top: 6px; font-variant-numeric: tabular-nums; }
.demo .unter { margin: 8px 0 0; font-size: .875rem; color: var(--tinte-2); }
.demo .ergebnis .klein { margin: 10px 0 0; font-size: .75rem; }

/* ---------- Schritte ---------- */
.schritte { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); counter-reset: s; }
.schritte li { padding: 22px; border-right: 1px solid var(--linie); counter-increment: s; }
.schritte li:last-child { border-right: 0; }
.schritte li::before { content: "Schritt " counter(s); display: block; font-family: var(--mono); font-size: .75rem; text-transform: uppercase; color: var(--akzent); margin-bottom: 14px; }
.schritte h3 { margin: 0 0 6px; font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; }
.schritte p { margin: 0; color: var(--tinte-2); font-size: .9375rem; }

/* ---------- Zahlen ---------- */
.zahlen { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 32px; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); }
.zahlen > div { padding: 24px; border-right: 1px solid var(--linie); }
.zahlen > div:last-child { border-right: 0; }
.zahlen b { display: block; font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; color: var(--akzent); font-variant-numeric: tabular-nums; }
.zahlen h3 { margin: 14px 0 4px; font-size: 1.0625rem; font-weight: 600; }
.zahlen p { margin: 0; color: var(--tinte-2); font-size: .9375rem; }

/* ---------- Stufen-Vergleich ---------- */
.vergleich-wrap { margin-top: 32px; overflow-x: auto; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); }
.vergleich { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.vergleich th, .vergleich td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--linie); font-weight: 400; }
.vergleich tr:last-child td { border-bottom: 0; }
.vergleich td:first-child { color: var(--tinte-3); width: 30%; }
.vergleich td + td, .vergleich th + th { border-left: 1px solid var(--linie); }
.vergleich thead th { background: var(--flaeche-2); font-weight: 600; font-size: 1rem; }
.vergleich thead .leise { display: block; font-weight: 400; font-size: .8125rem; color: var(--tinte-3); }
.vergleich td.gross { font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.boni { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); }
.boni > div { padding: 16px 18px; border-right: 1px solid var(--linie); }
.boni > div:last-child { border-right: 0; }
.boni b { display: block; font-size: 1.375rem; font-weight: 600; letter-spacing: -.03em; }

/* ---------- Bilder ---------- */
.bilder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 32px; }
.bild { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--linie); background: var(--flaeche-2); }
.bild img { width: 100%; height: 100%; object-fit: cover; }
.bild span { display: none; }
.bild-unter { margin: 8px 0 0; font-size: .8125rem; color: var(--tinte-2); }
.hero-bild { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--linie); }
.hero-bild img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Leistungen als Raster ---------- */
.leistungen { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 32px; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); overflow: hidden; }
.leistung { padding: 24px; border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.leistung:nth-child(2n) { border-right: 0; }
.leistung:nth-last-child(-n+2):nth-child(odd), .leistung:last-child { border-bottom: 0; }
.leistung h3 { margin: 0 0 8px; font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; }
.leistung p { margin: 0; color: var(--tinte-2); font-size: .9375rem; }
.leistung ul { margin: 14px 0 0; padding: 14px 0 0; list-style: none; border-top: 1px dashed var(--linie-2); display: grid; gap: 6px; font-size: .9375rem; }
.leistung li { position: relative; padding-left: 18px; }
.leistung li::before { content: "–"; position: absolute; left: 0; color: var(--akzent); }
.leistungen.einspaltig { grid-template-columns: 1fr; }
.leistungen.einspaltig .leistung { border-right: 0; display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; border-bottom: 1px solid var(--linie); }
.leistungen.einspaltig .leistung:last-child { border-bottom: 0; }
.leistungen.einspaltig .leistung h3 { margin: 0; }

/* ---------- Zwei Spalten & Satzlisten ---------- */
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.saetze { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--linie); counter-reset: satz; }
.saetze li { padding: 16px 0 16px 40px; border-bottom: 1px solid var(--linie); position: relative; font-size: 1.0625rem; letter-spacing: -.015em; counter-increment: satz; }
.saetze li::before { content: counter(satz, decimal-leading-zero); position: absolute; left: 0; top: 19px; font-family: var(--mono); font-size: .75rem; color: var(--akzent); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 16px; margin-top: 32px; }
.team figure { margin: 0; }
.team img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; border: 1px solid var(--linie); }
.team figcaption { margin-top: 10px; font-weight: 600; font-size: .9375rem; }
.team small { display: block; font-weight: 400; color: var(--tinte-3); }

/* ---------- Linklisten ---------- */
.linkliste { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 32px; border-top: 1px solid var(--linie); }
.linkliste a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px; padding: 14px 20px 14px 4px; border-bottom: 1px solid var(--linie); }
.linkliste a:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--linie); }
.linkliste a::after { content: "→"; grid-row: 1 / span 2; grid-column: 2; color: var(--tinte-3); transition: transform .2s var(--weich), color .2s; }
.linkliste a:hover::after { transform: translateX(3px); color: var(--akzent); }
.linkliste b { font-weight: 600; font-size: .9375rem; }
.linkliste small { color: var(--tinte-3); font-size: .8125rem; line-height: 1.35; }
.orte-liste { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; padding: 0; list-style: none; }
.orte-liste li { padding: 5px 10px; border: 1px solid var(--linie); border-radius: 6px; background: var(--flaeche); font-size: .8125rem; color: var(--tinte-2); }

/* ---------- FAQ ---------- */
.faq { margin-top: 28px; border-top: 1px solid var(--linie); }
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-weight: 400; font-size: 1.1rem; color: var(--tinte-3); }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 0 18px; color: var(--tinte-2); max-width: 64ch; }
.faq .ans p { margin: 0; }

/* ---------- Formulare ---------- */
.formkarte { margin-top: 32px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: clamp(20px, 3vw, 32px); max-width: 720px; }
.form { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inp { display: grid; gap: 6px; }
.inp label { font-size: .8125rem; font-weight: 500; color: var(--tinte-2); }
.inp input, .inp select, .inp textarea { width: 100%; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--linie-2); background: var(--flaeche); outline: none; transition: border-color .15s, box-shadow .15s; }
.inp textarea { min-height: 100px; resize: vertical; }
.inp select { appearance: none; background: var(--flaeche) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%233d4250' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center; }
.inp input:focus, .inp select:focus, .inp textarea:focus { border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-hell); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; color: var(--tinte-2); cursor: pointer; }
.check a { text-decoration: underline; text-underline-offset: 2px; }
.check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--tinte); flex: none; }
.form-msg { min-height: 18px; font-size: .875rem; color: var(--red); }
.success { display: none; }
.success.show { display: block; }
.success .big-check { font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; }
.success .sub { margin-top: 6px; }
.copybox { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 5px 5px 5px 14px; border-radius: 8px; border: 1px solid var(--linie-2); background: var(--flaeche-2); }
.copybox code { flex: 1; font-family: var(--mono); font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 16px 0 0; font-size: .875rem; }
.kv dt { color: var(--tinte-3); } .kv dd { margin: 0; font-family: var(--mono); }
.hint { font-size: .8125rem; color: var(--tinte-3); margin: 0; }
.hint a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Kontakt ---------- */
.kontakt-knopf { position: fixed; right: 18px; bottom: 18px; z-index: 45; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 4px 16px 4px 4px; border-radius: 10px; cursor: pointer;
  color: var(--tinte); font-weight: 500; font-size: .875rem; background: var(--flaeche); border: 1px solid var(--linie-2); box-shadow: 0 6px 20px -8px rgba(11, 11, 15, .25); }
.kontakt-knopf:hover { border-color: var(--tinte); }
.kontakt-knopf .gesichter { display: flex; }
.kontakt-knopf img { width: 38px; height: 38px; border-radius: 7px; object-fit: cover; border: 2px solid var(--flaeche); }
.kontakt-knopf .online { margin-left: -10px; }
.kontakt-box { position: fixed; right: 18px; bottom: 76px; z-index: 46; width: min(320px, calc(100vw - 36px)); padding: 18px; border-radius: 12px; background: var(--flaeche); border: 1px solid var(--linie-2);
  box-shadow: 0 16px 40px -16px rgba(11, 11, 15, .3); opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .2s, transform .25s var(--weich); }
.kontakt-box.offen { opacity: 1; transform: none; pointer-events: auto; }
.kontakt-box p { margin: 0 0 10px; color: var(--tinte-2); font-size: .875rem; }
.kontakt-box a { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--linie); font-size: .9375rem; font-weight: 500; }
.kontakt-box a::after { content: "→"; color: var(--tinte-3); }

/* ---------- Fußzeile ---------- */
.fuss { border-top: 1px solid var(--linie); background: var(--flaeche); padding: 48px 0 32px; font-size: .875rem; }
.fuss-oben { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--linie); }
.fuss-oben p { margin: 10px 0 0; color: var(--tinte-2); max-width: 40ch; }
.fuss-spalten { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; padding-top: 28px; }
.fuss-spalten h4 { margin: 0 0 10px; font-family: var(--mono); font-size: .75rem; font-weight: 400; text-transform: uppercase; color: var(--tinte-3); }
.fuss-spalten a { display: block; margin-bottom: 7px; color: var(--tinte-2); }
.fuss-spalten a:hover { color: var(--tinte); }
.fuss-unten { margin: 28px 0 0; font-size: .8125rem; color: var(--tinte-3); }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 48px var(--gut) 96px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; margin: 0 0 8px; }
.legal h2 { font-size: 1.125rem; font-weight: 600; margin: 32px 0 8px; letter-spacing: -.02em; }
.legal p, .legal li { color: var(--tinte-2); }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal .stand { color: var(--tinte-3); font-size: .875rem; }

/* ---------- Dashboard & Admin ---------- */
.app { padding-top: 40px; padding-bottom: 96px; min-height: calc(100svh - 64px); }
.app-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.app-head .h2 { margin-top: 4px; max-width: none; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { padding: 18px 20px; }
.kpi small { display: block; font-family: var(--mono); font-size: .75rem; text-transform: uppercase; color: var(--tinte-3); }
.kpi b { display: block; margin-top: 6px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: .8125rem; color: var(--tinte-3); margin: 4px 0 0; }
.panel { padding: 20px; }
.panel h3 { margin: 0 0 14px; font-size: 1rem; font-weight: 600; }
.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-top: 12px; }
.table-wrap { overflow-x: auto; }
table.daten { width: 100%; border-collapse: collapse; font-size: .875rem; }
table.daten th { text-align: left; font-family: var(--mono); font-weight: 400; color: var(--tinte-3); font-size: .75rem; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--linie); }
table.daten td { padding: 11px 10px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
table.daten .num { text-align: right; font-variant-numeric: tabular-nums; }
table.daten tr:last-child td { border-bottom: 0; }
.status { display: inline-block; padding: 2px 8px; border-radius: 5px; font-size: .75rem; font-weight: 600; background: var(--flaeche-2); border: 1px solid var(--linie); }
.status.qualified { background: #fff6dc; border-color: #f0dc9a; color: #7a5600; }
.status.customer { background: var(--akzent-hell); border-color: #bfdfe1; color: var(--akzent); }
.status.lost { color: var(--tinte-3); }
.progress { height: 6px; border-radius: 3px; background: var(--flaeche-2); overflow: hidden; margin-top: 12px; border: 1px solid var(--linie); }
.progress i { display: block; height: 100%; background: var(--akzent); transition: width .8s var(--weich); }
.rates { display: flex; gap: 28px; margin-top: 8px; }
.rates b { font-size: 1.75rem; font-weight: 600; letter-spacing: -.04em; }
.rates div div { font-size: .8125rem; color: var(--tinte-3); }
.empty { padding: 22px; text-align: center; color: var(--tinte-3); font-size: .875rem; }
.login { max-width: 440px; margin: 28px 0 0; }
.mini-input, .mini-select { padding: 7px 9px; border-radius: 6px; border: 1px solid var(--linie-2); background: var(--flaeche); }
.mini-input { width: 110px; }
.tpl { padding: 16px; border-radius: 10px; border: 1px solid var(--linie); background: var(--flaeche-2); display: grid; gap: 10px; }
.tpl p { margin: 0; white-space: pre-line; color: var(--tinte-2); font-size: .875rem; }
.tpl .btn { justify-self: start; }
.snack { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 100px); z-index: 90; padding: 10px 16px; border-radius: 8px; background: var(--tinte); color: #fff; font-weight: 500; font-size: .875rem; transition: transform .3s var(--weich); }
.snack.show { transform: translate(-50%, 0); }

/* ---------- Mobil ---------- */
@media (max-width: 960px) {
  .raster { grid-template-columns: 1fr; gap: 18px; }
  .sec-kopf { display: flex; gap: 10px; padding-top: 0; }
  .sec-kopf::before { margin: 0; }
  .hero-raster, .zwei { grid-template-columns: 1fr; }
  .menue a:not(.btn) { display: none; }
  .bilder { grid-template-columns: repeat(3, 1fr); }
  .bilder > :nth-child(n+4) { display: none; }
  .fuss-spalten { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: 1fr 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .hero-bild { aspect-ratio: 16 / 10; }
}
@media (max-width: 680px) {
  .fakten { grid-template-columns: 1fr 1fr; }
  .fakten > div:nth-child(2) { border-right: 0; }
  .fakten > div:nth-child(-n+2) { border-bottom: 1px solid var(--linie); }
  .schritte, .zahlen, .leistungen, .boni { grid-template-columns: 1fr; }
  .schritte li, .zahlen > div, .boni > div { border-right: 0; border-bottom: 1px solid var(--linie); }
  .schritte li:last-child, .zahlen > div:last-child, .boni > div:last-child { border-bottom: 0; }
  .leistung { border-right: 0 !important; border-bottom: 1px solid var(--linie) !important; }
  .leistung:last-child { border-bottom: 0 !important; }
  .leistungen.einspaltig .leistung { grid-template-columns: 1fr; gap: 8px; }
  .linkliste { grid-template-columns: 1fr; }
  .linkliste a:nth-child(n) { padding: 14px 4px; border-left: 0; }
  .row2 { grid-template-columns: 1fr; }
  .bilder { grid-template-columns: repeat(2, 1fr); }
  .bilder > :nth-child(n+3) { display: none; }
  .vergleich { font-size: .8125rem; }
  .vergleich th, .vergleich td { padding: 10px 8px; }
  .vergleich td.gross { font-size: 1.15rem; }
  .kontakt-knopf .txt { display: none; }
  .kontakt-knopf { padding-right: 4px; }
}

/* ---------- Orts-Seiten: Altersstruktur ---------- */
.alter { margin-top: 28px; max-width: 760px; }
.alter-balken { display: flex; height: 14px; border-radius: 7px; overflow: hidden; border: 1px solid var(--linie); background: var(--flaeche); }
.alter-balken i { display: block; height: 100%; }
.alter-balken i:nth-child(1) { background: #9bc4c9; }
.alter-balken i:nth-child(2) { background: var(--akzent); }
.alter-balken i:nth-child(3) { background: var(--tinte); }
.alter-legende { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.alter-legende li { font-size: .875rem; color: var(--tinte-2); }
.alter-legende b { display: block; font-size: 1.25rem; letter-spacing: -.03em; color: var(--tinte); }
.alter-legende span { display: block; font-size: .8125rem; color: var(--tinte-3); }
.alter + .sub { margin-top: 22px; }
@media (max-width: 680px) { .alter-legende { grid-template-columns: 1fr; } }

/* ---------- Mitmachen: zwei Wege ---------- */
.mitmachen { margin-top: 32px; max-width: 720px; }
.mitmachen .formkarte { margin-top: 12px; }
.segment.tabs { max-width: 460px; }
.segment.tabs button { min-height: 40px; }
.segment.tabs button[aria-selected="true"] { background: var(--flaeche); color: var(--tinte); box-shadow: 0 1px 2px rgba(11, 11, 15, .12), 0 0 0 1px var(--linie); }
.mehr { border: 1px dashed var(--linie-2); border-radius: 10px; padding: 12px 14px; }
.mehr summary { cursor: pointer; font-size: .875rem; font-weight: 500; color: var(--tinte-2); list-style: none; }
.mehr summary::-webkit-details-marker { display: none; }
.mehr summary::before { content: "+"; display: inline-block; width: 18px; font-family: var(--mono); color: var(--akzent); }
.mehr[open] summary::before { content: "–"; }
.mehr summary span { color: var(--tinte-3); font-weight: 400; }
.teilen { display: flex; flex-wrap: wrap; gap: 8px; }
.btn.klein[data-share] { background: var(--flaeche); color: var(--tinte); border-color: var(--linie-2); cursor: pointer; }
.btn.klein[data-share]:hover { border-color: var(--tinte); background: var(--flaeche); }

/* Spalten dürfen schmaler werden als ihr Inhalt (verhindert 2–3 px Überlauf auf dem Handy) */
.hero-raster > *, .zwei > *, .raster > * { min-width: 0; }
@media (max-width: 960px) { .hero-raster, .zwei { grid-template-columns: minmax(0, 1fr); } }
