/* managementsystem.at – Conve Design-System (Tokens von conve.at) */

/* Inter lokal (variable Schrift, keine Übermittlung an Google – DSGVO) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  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;
}

:root {
  --primary: #007DA9;
  --primary-dark: #005f82;
  --accent: #009BCC;
  --accent-soft: #84CDE8;
  --accent-softest: #C8E8FB;
  --accent-bg: rgba(0, 155, 204, .07);
  --bg: #F8F9FA;
  --panel: #f0f8fc;
  --dark: #0a2540;
  --text: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #5d6b80; /* abgedunkelt für WCAG AA (4,5:1 auf --bg) */
  --border: #e2e6ec;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 125, 169, .06);
  --shadow-md: 0 4px 20px rgba(0, 125, 169, .08);
  --shadow-lg: 0 8px 40px rgba(0, 125, 169, .10);
  --shadow-xl: 0 16px 60px rgba(0, 125, 169, .12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 2px; }

img, svg { max-width: 100%; height: auto; }

a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- Typografie ---------- */

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: clamp(1.55rem, 3vw, 2.125rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
h3 { font-size: 1.125rem; font-weight: 700; }

.kicker {
  font-size: .875rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--primary-dark); margin-bottom: .875rem;
}

.lead { font-size: 1.125rem; color: var(--text-secondary); text-wrap: pretty; }
.muted { color: var(--text-muted); font-size: .8125rem; line-height: 1.5; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font); font-size: 1rem; font-weight: 600; line-height: 1.2;
  padding: .9375rem 1.75rem; border-radius: 10px; border: none; cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s; text-align: center;
  min-height: 48px;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 20px rgba(0, 125, 169, .18); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-inverse { background: #fff; color: var(--primary); }
.btn-inverse:hover { background: var(--accent-softest); color: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--primary-dark); font-weight: 500; }
.btn-ghost:hover { color: var(--primary); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-sm { padding: .625rem 1.25rem; font-size: .9375rem; min-height: 44px; }

/* ---------- Header ---------- */

.site-header {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: .875rem; padding-bottom: .875rem;
}
.brand { display: flex; align-items: baseline; gap: .625rem; flex-wrap: wrap; }
.brand-name { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.brand-name .tld { color: var(--accent); }
.brand-sub { font-size: .8125rem; color: var(--text-muted); }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a { font-size: .9375rem; font-weight: 500; color: var(--text-secondary); }
.site-nav a:hover { color: var(--primary); }
.site-nav a.btn-primary, .site-nav a.btn-primary:hover { color: #fff; }

@media (max-width: 760px) {
  .site-nav a:not(.btn):not(.nav-zurueck) { display: none; }
  .brand-sub { display: none; }
}
@media (max-width: 520px) {
  .site-header .container { flex-wrap: wrap; justify-content: center; row-gap: .5rem; }
  .brand-name { font-size: 1.05rem; }
}

/* ---------- Sektionen ---------- */

.section { padding: 5rem 0; }
.section-white { background: #fff; }
.section-dark { background: var(--dark); color: #fff; }
.section-primary { background: var(--primary-dark); color: #fff; }
.section-head { max-width: 46rem; margin-bottom: 2.75rem; }
.section-head p { margin-top: .875rem; }

@media (max-width: 760px) { .section { padding: 3.25rem 0; } }

/* ---------- Grids & Karten ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
}
.card-soft { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2.25rem; }
.card h3 { margin: .75rem 0 .5rem; }
.card p { font-size: .9375rem; color: var(--text-secondary); }
.card .icon { color: var(--accent); }

.checklist { list-style: none; display: flex; flex-direction: column; gap: .625rem; margin-top: .875rem; }
.checklist li { display: flex; align-items: flex-start; gap: .625rem; font-size: .9375rem; color: var(--text); }
.checklist svg { flex-shrink: 0; margin-top: .3rem; }

/* ---------- Hero ---------- */

.hero { background: #fff; padding: 4.5rem 0 5rem; }
.hero .container { display: flex; align-items: center; gap: 3.5rem; }
.hero-copy { max-width: 38.75rem; }
.hero-copy .lead { margin: 1.375rem 0 1.75rem; font-size: 1.1875rem; }
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero-diagram {
  background: var(--panel); border: 1px solid var(--accent-softest);
  border-radius: var(--radius-xl); padding: 1.75rem; flex-shrink: 0; width: 460px;
}
@media (max-width: 1020px) {
  .hero .container { flex-direction: column; align-items: flex-start; }
  .hero-diagram { width: 100%; max-width: 460px; align-self: center; }
}

/* ---------- Dunkles Normen-Band ---------- */

.norm-band .container { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.norm-band p { color: var(--accent-soft); font-size: .9375rem; max-width: 30rem; }
.norm-chips { display: flex; gap: 1rem; flex-wrap: wrap; }
.norm-chip {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(132, 205, 232, .35);
  border-radius: var(--radius-md); padding: 1rem 1.5rem;
}
.norm-chip strong { display: block; color: #fff; font-size: 1rem; }
.norm-chip span { font-size: .8125rem; color: var(--accent-soft); }

/* ---------- Nummerierte Schritte ---------- */

.step-nr {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent-softest);
  font-size: 1.0625rem; font-weight: 800; color: var(--primary-dark);
}

/* ---------- Kalkulator-Teaser ---------- */

.teaser { background: var(--panel); border-top: 1px solid var(--accent-softest); border-bottom: 1px solid var(--accent-softest); }
.teaser .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-top: 3.25rem; padding-bottom: 3.25rem; }
.teaser h2 { max-width: 34rem; }
.teaser p { color: var(--text-secondary); margin-top: .625rem; max-width: 34rem; }

/* ---------- CTA-Band ---------- */

.cta-band { text-align: center; }
.cta-band h2 { color: #fff; max-width: 45rem; margin: 0 auto; }
.cta-band p { color: var(--accent-softest); max-width: 38.75rem; margin: 1.25rem auto 1.75rem; font-size: 1.0625rem; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .kontaktzeile { color: #fff; font-weight: 500; }

/* ---------- Ratgeber-Artikel ---------- */

.artikel { max-width: 46rem; margin: 0 auto; padding: 3rem 20px 5rem; }
.artikel .kicker { margin-bottom: .625rem; }
.artikel h1 { font-size: clamp(1.85rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
.artikel .stand { font-size: .8125rem; color: var(--text-muted); margin-bottom: 2rem; }
.artikel h2 { font-size: 1.375rem; margin: 2.25rem 0 .75rem; }
.artikel h3 { font-size: 1.0625rem; margin: 1.5rem 0 .5rem; }
.artikel p, .artikel li { color: var(--text-secondary); }
.artikel p { margin-bottom: .875rem; }
.artikel ul, .artikel ol { margin: 0 0 .875rem 1.25rem; }
.artikel li { margin-bottom: .375rem; }
.artikel table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.25rem; font-size: .9375rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.artikel th, .artikel td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
.artikel tr:last-child td { border-bottom: none; }
.artikel thead th { background: var(--bg); font-size: .875rem; }
.artikel .tabellen-scroll { overflow-x: auto; }
.artikel-cta {
  background: var(--panel); border: 1px solid var(--accent-softest); border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem; margin: 2rem 0; display: flex; align-items: center;
  justify-content: space-between; gap: 1.25rem; flex-wrap: wrap;
}
.artikel-cta p { margin: 0; font-weight: 600; color: var(--text); }
.weiterlesen { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.weiterlesen p { font-size: .875rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.weiterlesen a { display: block; margin-top: .5rem; font-weight: 500; }

/* Dezente Ratgeber-Zeile unter den FAQ auf der Startseite */
.ratgeber-zeile { margin-top: 2rem; font-size: .9375rem; color: var(--text-secondary); }
.ratgeber-zeile a { white-space: nowrap; }

/* ---------- Logo & Zertifikats-Badges ---------- */

.conve-logo { height: 40px; width: auto; display: block; margin-bottom: 1rem; }
.badges-zeile { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.badges { display: flex; align-items: center; gap: 2.25rem; flex-wrap: wrap; margin-top: 1rem; }
.badges img { height: 64px; width: auto; }
@media (max-width: 640px) {
  .badges { gap: 1.5rem; }
  .badges img { height: 52px; }
}

/* ---------- Kontakt-Band mit Formular ---------- */

.kontakt-grid { display: flex; gap: 3rem; flex-wrap: wrap; align-items: flex-start; }
.kontakt-info { flex: 1 1 320px; max-width: 34rem; }
.kontakt-info h2 { color: #fff; }
.kontakt-info > p { color: var(--accent-softest); margin-top: 1.125rem; }
.kontakt-wege { display: flex; flex-direction: column; gap: .625rem; margin-top: 1.5rem; }
.kontakt-wege a { display: inline-flex; align-items: center; gap: .625rem; color: #fff; font-weight: 600; font-size: 1.0625rem; }
.kontakt-wege a:hover { color: var(--accent-softest); }
.kontakt-tipp { font-size: .875rem; color: var(--accent-softest); margin-top: 1.5rem; }
.kontakt-tipp a { color: #fff; text-decoration: underline; }
.kontakt-karte {
  flex: 1 1 360px; max-width: 34rem; background: #fff; border-radius: var(--radius-xl);
  padding: 2rem; display: flex; flex-direction: column; gap: .875rem; box-shadow: var(--shadow-lg);
  color: var(--text); /* nicht das Weiß des blauen Bands erben */
}
.kontakt-karte h3 { color: var(--text); }
.kontakt-karte .feld { margin-top: 0; }
.kontakt-karte textarea {
  width: 100%; font-family: var(--font); font-size: 1rem; color: var(--text);
  padding: .875rem 1rem; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; min-height: 110px; resize: vertical;
}
.kontakt-karte textarea:focus { outline: 3px solid var(--primary-dark); outline-offset: 1px; border-color: var(--primary); }

/* ---------- Fragebogen zur Angebotsvorbereitung (fragebogen.html) ---------- */

.fb-karte {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 2rem; margin-top: 1.75rem; box-shadow: var(--shadow-lg);
}
.fb-karte h2 { font-size: 1.125rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.fb-karte h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.fb-karte .feld { margin-top: 1rem; }
.fb-karte textarea {
  width: 100%; font-family: var(--font); font-size: 1rem; color: var(--text);
  padding: .875rem 1rem; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; min-height: 90px; resize: vertical;
}
.fb-karte textarea:focus { outline: 3px solid var(--primary-dark); outline-offset: 1px; border-color: var(--primary); }
.fb-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 640px) { .fb-zeile { grid-template-columns: 1fr; } }

/* ---------- Datenschutz-Schnellcheck (datenschutz-check.html) ---------- */

.lade-karte { text-align: center; }
.lade-balken { height: 6px; border-radius: 99px; background: var(--accent-softest); overflow: hidden; }
.lade-fueller {
  height: 100%; width: 40%; border-radius: 99px; background: var(--accent);
  animation: lade-lauf 1.6s ease-in-out infinite;
}
@keyframes lade-lauf {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.ampel-badge {
  display: inline-block; margin-top: .875rem; padding: .375rem .875rem;
  border-radius: 99px; font-weight: 700; font-size: .9375rem; color: #fff;
}
.ampel-gruen { background: #2e7d32; }
.ampel-gelb { background: #b26a00; }
.ampel-rot { background: #c0392b; }

.ds-kats { display: grid; grid-template-columns: 1fr 1fr; gap: .875rem; margin-top: 1.25rem; }
@media (max-width: 720px) { .ds-kats { grid-template-columns: 1fr; } }
.ds-kat {
  border: 1px solid var(--border); border-left-width: 4px; border-radius: 10px;
  padding: .875rem 1rem; background: var(--bg);
}
.ds-kat p { font-size: .875rem; color: var(--text-secondary); margin-top: .375rem; }
.ds-kat-kopf { display: flex; align-items: center; gap: .5rem; }
.ds-kat-kopf strong { font-size: .9375rem; flex: 1; }
.ds-punkt { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ds-status { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.ds-ok { border-left-color: #2e7d32; }
.ds-ok .ds-punkt { background: #2e7d32; }
.ds-ok .ds-status { color: #2e7d32; }
.ds-hinweis { border-left-color: #b26a00; }
.ds-hinweis .ds-punkt { background: #b26a00; }
.ds-hinweis .ds-status { color: #b26a00; }
.ds-mangel { border-left-color: #c0392b; }
.ds-mangel .ds-punkt { background: #c0392b; }
.ds-mangel .ds-status { color: #c0392b; }
.kontakt-erfolg {
  background: #e8f7ee; border: 1px solid #9fd8b4; color: #1d5c38;
  border-radius: 10px; padding: 1rem 1.25rem; font-size: .9375rem;
}

/* ---------- Footer ---------- */

.site-footer { background: var(--dark); padding: 2rem 0; }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer, .site-footer a { color: var(--accent-soft); font-size: .875rem; }
.site-footer a:hover { color: #fff; }
.site-footer nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }

/* =========================================================
   Kalkulator
   ========================================================= */

.kalk-main { max-width: 800px; margin: 0 auto; padding: 3rem 20px 5rem; }
.kalk-head { text-align: center; margin-bottom: 2rem; }
.kalk-head h1 { font-size: clamp(1.75rem, 3.5vw, 2.375rem); }
.kalk-head .kicker { margin-bottom: .625rem; }

.progress { margin-bottom: 1.75rem; }
.progress-meta { display: flex; justify-content: space-between; font-size: .8125rem; margin-bottom: .5rem; }
.progress-meta .step-label { color: var(--primary-dark); font-weight: 600; }
.progress-meta .step-name { color: var(--text-muted); }
.progress-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.progress-bar > div { height: 100%; background: var(--accent); border-radius: 3px; transition: width .25s; }

.frage-typ {
  display: inline-flex; align-items: center; gap: .375rem;
  font-size: .8125rem; font-weight: 600; color: var(--primary-dark);
  background: var(--accent-softest); border-radius: 999px;
  padding: .3125rem .875rem; margin-bottom: .875rem;
}
.frage-typ.mehrfach { background: #dff3e6; color: #1d5c38; }

.options { display: flex; flex-direction: column; gap: .875rem; }
.option {
  display: flex; align-items: flex-start; gap: 1.125rem; text-align: left;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 1.25rem 1.375rem; cursor: pointer; font-family: var(--font);
  transition: border-color .12s, background .12s, box-shadow .12s; width: 100%;
}
.option:hover { border-color: var(--accent-soft); }
.option[aria-pressed="true"] {
  background: var(--panel); border: 2px solid var(--accent);
  padding: calc(1.25rem - 1px) calc(1.375rem - 1px);
  box-shadow: var(--shadow-md);
}
.option .radio {
  width: 22px; height: 22px; border: 2px solid #c5ccd8; border-radius: 50%;
  flex-shrink: 0; margin-top: .125rem; display: flex; align-items: center; justify-content: center;
  transition: background .12s, border-color .12s;
}
.option.multi .radio { border-radius: 6px; }
.option[aria-pressed="true"] .radio { background: var(--accent); border-color: var(--accent); }
.option .radio svg { opacity: 0; }
.option[aria-pressed="true"] .radio svg { opacity: 1; }
.option strong { display: block; font-size: 1rem; color: var(--text); }
.option span { display: block; font-size: .875rem; color: var(--text-secondary); margin-top: .1875rem; }

.subfrage {
  margin-top: 1.25rem; background: var(--panel); border: 1px solid var(--accent-softest);
  border-radius: 14px; padding: 1.25rem 1.375rem;
}
.subfrage h3 { font-size: .9375rem; margin-bottom: .75rem; }
.subfrage .options { gap: .625rem; }
.subfrage .option { padding: .875rem 1rem; }
.subfrage .option[aria-pressed="true"] { padding: calc(.875rem - 1px) calc(1rem - 1px); }

.feld { margin-top: 1.25rem; }
.feld label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .4375rem; }
.feld select, .feld input[type="email"], .feld input[type="text"] {
  width: 100%; font-family: var(--font); font-size: 1rem; color: var(--text);
  padding: .875rem 1rem; border: 1px solid var(--border); border-radius: 10px; background: #fff;
}
.feld select:focus, .feld input:focus { outline: 3px solid var(--primary-dark); outline-offset: 1px; border-color: var(--primary); }

.kalk-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 1.75rem; }
.trustline { display: flex; align-items: center; gap: .5rem; justify-content: center; margin-top: 1.75rem; color: var(--text-muted); font-size: .8125rem; }

.fehler {
  background: #fdf2f2; border: 1px solid #f2c4c4; color: #9b3535;
  border-radius: 10px; padding: .875rem 1.125rem; font-size: .9rem; margin-bottom: 1.25rem;
}

/* ---------- Ergebnis ---------- */

.ergebnis { display: none; }
.ergebnis.aktiv { display: block; }
.schritte.versteckt { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: .625rem; margin: 1.25rem 0 1.75rem; }
.chip {
  font-size: .8125rem; font-weight: 500; color: var(--primary-dark);
  background: var(--accent-softest); border-radius: 999px; padding: .5rem 1rem;
}
.chip-edit { background: transparent; border: 1px dashed var(--accent-soft); color: var(--primary); cursor: pointer; font-family: var(--font); }

.preiskarte {
  background: var(--primary-dark); color: #fff; border-radius: var(--radius-xl);
  padding: 2.25rem; box-shadow: var(--shadow-lg);
}
.preiskarte .kicker { color: var(--accent-softest); margin-bottom: .5rem; }
.preis-typisch { font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.preis-spanne { font-size: 1rem; color: var(--accent-softest); margin-top: .375rem; }
.preiskarte .hinweis { font-size: .875rem; color: var(--accent-softest); margin-top: 1rem; line-height: 1.55; }
.abo-liste { list-style: none; display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
.abo-liste li { display: flex; align-items: flex-start; gap: .625rem; font-size: .9375rem; color: #e8f4fa; }
.abo-liste svg { flex-shrink: 0; margin-top: .3rem; }

.kennzahlen { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem; margin-top: 1.5rem; }
@media (max-width: 640px) { .kennzahlen { grid-template-columns: 1fr; } }
.kennzahl { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.375rem 1.5rem; }
.kennzahl .wert { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.kennzahl .label { font-size: .875rem; color: var(--text-secondary); margin-top: .1875rem; }

.zeilen { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); margin-top: 1.5rem; overflow: hidden; }
.zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); font-size: .9375rem; }
.zeile:last-child { border-bottom: none; }
.zeile .betrag { font-weight: 700; white-space: nowrap; }
.zeile-ersparnis { color: #1d7a4f; }
.zeile-ersparnis .betrag { color: #1d7a4f; }

.schalter-gruppe { margin-top: 2.25rem; }
.schalter-gruppe h3 { margin-bottom: .75rem; }
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.tab {
  font-family: var(--font); font-size: .875rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border); background: #fff; color: var(--text-secondary);
  border-radius: 999px; padding: .625rem 1.125rem; transition: all .12s; min-height: 44px;
}
.tab[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.tab-hinweis { font-size: .875rem; color: var(--text-secondary); margin-top: .75rem; }

.timeline { margin-top: 1.25rem; display: flex; flex-direction: column; }
.phase { display: flex; gap: 1.25rem; }
.phase-marker { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.phase-punkt {
  width: 38px; height: 38px; border-radius: 50%; background: var(--primary);
  color: #fff; font-weight: 800; font-size: .9375rem;
  display: flex; align-items: center; justify-content: center;
}
.phase:last-child .phase-punkt { background: var(--dark); }
.phase-linie { width: 2px; flex-grow: 1; background: var(--accent-softest); }
.phase:last-child .phase-linie { display: none; }
.phase-inhalt { padding-bottom: 1.625rem; }
.phase-inhalt .zeitraum { font-size: .8125rem; font-weight: 600; color: var(--primary-dark); margin-left: .625rem; }
.phase-inhalt h3 { display: inline; font-size: 1.0625rem; }
.phase-inhalt p { font-size: .9375rem; color: var(--text-secondary); margin-top: .25rem; }

.infobox {
  background: var(--panel); border: 1px solid var(--accent-softest);
  border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; margin-top: 1.5rem;
}
.infobox h3 { margin-bottom: .5rem; }
.infobox p { font-size: .9375rem; color: var(--text-secondary); }
.infobox p + p { margin-top: .625rem; }

.drittkosten { border-style: dashed; background: #fff; }

/* ---------- Akkordeons (Ergebnis-Details) ---------- */

.akkordeon { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); margin-top: .875rem; }
.akkordeon summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; padding: 1.125rem 1.5rem;
  font-weight: 700; color: var(--text); border-radius: var(--radius-lg);
}
.akkordeon summary::-webkit-details-marker { display: none; }
.akkordeon summary::after { content: '+'; font-size: 1.375rem; font-weight: 600; color: var(--primary-dark); line-height: 1; }
.akkordeon[open] summary::after { content: '–'; }
.akkordeon summary:hover { color: var(--primary-dark); }
.akkordeon-inhalt { padding: 0 1.5rem 1.5rem; }
.akkordeon-inhalt > :first-child { margin-top: .25rem; }
.akkordeon .zeilen, .akkordeon .infobox { margin-top: 1rem; }
.akkordeon .schalter-gruppe { margin-top: 1rem; }
.akkordeon .timeline { margin-top: .5rem; }

.gate-trenner { height: 1px; background: rgba(132, 205, 232, .3); margin: 1.375rem 0 1.125rem; }
.pdf-gate .tel-link { color: #fff; font-weight: 700; }
.pdf-gate .tel-link:hover { color: var(--accent-softest); }

.pdf-gate {
  background: var(--dark); color: #fff; border-radius: var(--radius-xl);
  padding: 2.25rem; margin-top: 2.5rem;
}
.pdf-gate h2 { color: #fff; font-size: 1.5rem; }
.pdf-gate .beschreibung { color: var(--accent-soft); font-size: .9375rem; margin: .75rem 0 1.25rem; }
.pdf-gate ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.375rem; }
.pdf-gate ul li { display: flex; gap: .625rem; align-items: flex-start; font-size: .9375rem; color: #e8f4fa; }
.pdf-gate ul svg { flex-shrink: 0; margin-top: .3rem; }
.gate-form { display: flex; gap: .75rem; flex-wrap: wrap; }
.gate-felder { flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.gate-form input[type="email"], .gate-form input[type="text"]:not(.hp-feld), .gate-form input[type="tel"] {
  font-family: var(--font); font-size: 1rem;
  padding: .875rem 1.125rem; border-radius: 10px; border: 1px solid rgba(132,205,232,.4);
  background: rgba(255,255,255,.08); color: #fff; min-height: 48px; width: 100%;
}
.gate-form input::placeholder { color: rgba(200,232,251,.6); }
.gate-form input:focus { outline: 3px solid var(--accent-soft); outline-offset: 1px; }

/* Wahl des Wegs zum Angebot (Assessment vs. Fragebogen) */
.gate-zwischentitel { color: #fff; font-size: 1.0625rem; margin: 1.375rem 0 .875rem; }
.wahl-karten { display: grid; grid-template-columns: 1fr 1fr; gap: .875rem; margin-bottom: 1.25rem; }
.wahl-karte {
  position: relative; text-align: left; cursor: pointer; font-family: var(--font);
  background: rgba(255,255,255,.05); border: 2px solid rgba(132,205,232,.35);
  border-radius: 12px; padding: 1.125rem 1.25rem; color: #e8f4fa;
}
.wahl-karte:hover { border-color: var(--accent-soft); }
.wahl-karte[aria-pressed="true"] { border-color: #fff; background: rgba(255,255,255,.12); }
.wahl-karte:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.wahl-karte strong { display: block; font-size: .9375rem; color: #fff; padding-right: .5rem; }
.wahl-karte span:not(.wahl-badge) { display: block; font-size: .8125rem; color: var(--accent-soft); margin-top: .375rem; line-height: 1.5; }
.wahl-badge {
  position: absolute; top: -11px; right: 14px; background: var(--accent); color: #fff;
  font-size: .6875rem; font-weight: 700; letter-spacing: .02em;
  padding: .1875rem .625rem; border-radius: 99px;
}
@media (max-width: 640px) {
  .wahl-karten, .gate-felder { grid-template-columns: 1fr; }
}
.optin { display: flex; gap: .625rem; align-items: flex-start; margin-top: 1rem; font-size: .8125rem; color: var(--accent-soft); }
.optin input { margin-top: .25rem; width: 16px; height: 16px; flex-shrink: 0; }
.gate-rechtlich { font-size: .75rem; color: rgba(200,232,251,.65); margin-top: .875rem; line-height: 1.5; }
.gate-erfolg { display: none; background: rgba(74, 222, 128, .12); border: 1px solid rgba(74,222,128,.4); border-radius: 10px; padding: 1.125rem 1.375rem; color: #d9f7e5; font-size: .9375rem; }

.hp-feld { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Einordnung (Vergleichstabelle) ---------- */

.vergleich { margin-top: 1.5rem; overflow-x: auto; }
.vergleich table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; font-size: .875rem; }
.vergleich th, .vergleich td { text-align: left; padding: .875rem 1.125rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.vergleich tr:last-child td { border-bottom: none; }
.vergleich thead th { background: var(--bg); font-size: .8125rem; }
.vergleich .wir { background: var(--panel); }
.vergleich td { color: var(--text-secondary); }
.vergleich td strong { color: var(--text); }

/* ---------- Rückruf-Formular ---------- */

.rueckruf-form { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; margin-top: 1.125rem; }
.rueckruf-form input[type="tel"] {
  flex: 1 1 200px; max-width: 260px; font-family: var(--font); font-size: 1rem;
  padding: .875rem 1.125rem; border-radius: 10px; border: 1px solid rgba(132,205,232,.4);
  background: rgba(255,255,255,.1); color: #fff; min-height: 48px;
}
.rueckruf-form input[type="tel"]::placeholder { color: rgba(200,232,251,.65); }
.rueckruf-form input[type="tel"]:focus { outline: 3px solid var(--accent-soft); outline-offset: 1px; }

@media print {
  .site-header, .site-footer, .pdf-gate, .kalk-nav, .tabs, .chip-edit, .trustline, .schalter-gruppe { display: none; }
  .preiskarte { background: none !important; color: var(--text); border: 1.5px solid var(--text); box-shadow: none; }
  .preiskarte .kicker, .preis-spanne, .preiskarte .hinweis { color: var(--text-secondary) !important; }
  .phase-punkt { background: none !important; color: var(--text); border: 2px solid var(--text); }
  .kennzahl, .zeilen, .infobox { break-inside: avoid; }
}
