/* Stromanbieter-Stadt – Design-System (Prototyp, später Basis für das neue Theme)
   Prinzipien: vertrauenswürdig, datengetrieben, mobil zuerst, wenig Ablenkung.
   Farbrollen: Navy = Marke/Vertrauen · Grün = Ersparnis/Haupt-CTA · Gelb = Energie-Akzent (sparsam) */

:root {
  --navy-900: #0b2233;
  --navy-800: #10324a;
  --navy-700: #174566;
  --navy-100: #e6eef4;
  --navy-50:  #f3f7fa;
  --green-600: #0c8a4e;
  --green-700: #0a7442;
  --green-100: #e2f5ea;
  --yellow-400: #ffc82e;
  --yellow-100: #fff6d6;
  --red-600: #c2410c;
  --red-100: #fdeee6;
  --ink: #142433;
  --ink-soft: #4a5b6b;
  --ink-mute: #6f7f8e;
  --line: #dde5ec;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --card: #ffffff;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 20px;
  --shadow: 0 1px 2px rgba(16, 50, 74, .06), 0 4px 16px rgba(16, 50, 74, .06);
  --shadow-l: 0 2px 4px rgba(16, 50, 74, .06), 0 12px 32px rgba(16, 50, 74, .10);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --gutter: 16px;

  /* Diagrammfarben je Anbieter */
  --serie-1: #174566;
  --serie-2: #0c8a4e;
  --serie-3: #d97706;
  --serie-avg: #142433;

  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-700); text-underline-offset: 2px; }
a:hover { color: var(--navy-900); }
h1, h2, h3 { line-height: 1.2; color: var(--navy-900); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); font-weight: 750; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); font-weight: 720; }
h3 { font-size: 1.1rem; font-weight: 680; }
p { margin: 0 0 1em; }
.num { font-variant-numeric: tabular-nums; }
.mute { color: var(--ink-mute); }
.soft { color: var(--ink-soft); }
.small { font-size: .875rem; }
.xsmall { font-size: .78rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 48px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 760px; margin-bottom: 24px; }
.section__head p { color: var(--ink-soft); margin: 0; }

/* ---------- Kopfbereich ---------- */
.topbar { background: var(--navy-900); color: #cfdbe6; font-size: .8rem; }
.topbar .wrap { display: flex; gap: 20px; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }
.topbar span { white-space: nowrap; }
@media (max-width: 640px) { .topbar .hide-m { display: none; } }

.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { white-space: nowrap; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-900); font-weight: 780; font-size: 1.12rem; letter-spacing: -.02em; }
.logo__mark { width: 34px; height: 34px; border-radius: 10px; background: var(--navy-800); display: grid; place-items: center; }
.logo__mark svg { width: 18px; height: 18px; }
.logo small { display: block; font-weight: 500; font-size: .7rem; color: var(--ink-mute); letter-spacing: 0; margin-top: -2px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--ink-soft); font-weight: 560; padding: 8px 12px; border-radius: var(--radius-s); font-size: .95rem; }
.nav a:hover, .nav a[aria-current] { background: var(--navy-50); color: var(--navy-900); }
.header__cta { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 10px; font: inherit; }
@media (max-width: 1100px) {
  .nav, .header .header__cta { display: none; }
  .menu-btn { display: inline-flex; }
  .nav.is-open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 64px; background: #fff; padding: 8px var(--gutter) 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
}

/* ---------- Buttons & Formular ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 12px 20px; font: inherit; font-weight: 680; text-decoration: none; cursor: pointer; transition: background .15s, transform .05s; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green-600); color: #fff; }
.btn--primary:hover { background: var(--green-700); color: #fff; }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-900); color: #fff; }
.btn--ghost { background: #fff; color: var(--navy-800); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--navy-700); color: var(--navy-900); }
.btn--block { width: 100%; }
.btn--lg { padding: 15px 24px; font-size: 1.05rem; }
.btn svg { width: 18px; height: 18px; }

.ad-note { display: inline-block; font-size: .72rem; color: var(--ink-mute); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; line-height: 1.5; vertical-align: middle; }

label.field { display: block; font-size: .85rem; font-weight: 620; color: var(--ink-soft); margin-bottom: 6px; }
.input { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #c9d5df; border-radius: 10px; background: #fff; color: var(--ink); }
.input:focus { outline: 3px solid rgba(23, 69, 102, .18); border-color: var(--navy-700); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #c9d5df; background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .9rem; cursor: pointer; color: var(--ink-soft); }
.chip[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.chip small { opacity: .75; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .85rem; color: var(--ink-mute); padding: 14px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: #a6b4c0; }
.crumbs a { color: var(--ink-mute); text-decoration: none; }
.crumbs a:hover { color: var(--navy-800); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--navy-50) 0%, #fff 100%); padding: 20px 0 40px; }
.hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: start; padding-top: 20px; }
.hero__lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 600px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; color: var(--ink-soft); margin: 14px 0 0; padding: 0; list-style: none; }
.meta li { display: flex; align-items: center; gap: 6px; }
.meta svg { width: 16px; height: 16px; color: var(--navy-700); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--green-600); box-shadow: 0 0 0 4px var(--green-100); }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; gap: 24px; } }

.calc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-l); padding: 22px; }
.calc h2 { font-size: 1.15rem; margin-bottom: 14px; }
.calc__row { margin-bottom: 14px; }
.calc__kwh { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.calc__kwh .input { max-width: 140px; }
.offers-kwh { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 18px; }
.offers-kwh .calc__kwh { margin-top: 0; }
.offers-kwh .field { font-size: .85rem; font-weight: 620; color: var(--ink-soft); }
.calc__foot { margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; font-size: .78rem; color: var(--ink-mute); line-height: 1.45; }
.calc__foot svg { flex: none; width: 15px; height: 15px; margin-top: 1px; }

/* ---------- Kennzahlen ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi__label { font-size: .82rem; color: var(--ink-mute); font-weight: 600; }
.kpi__value { font-size: 1.65rem; font-weight: 760; color: var(--navy-900); line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi__value small { font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.kpi__sub { font-size: .82rem; color: var(--ink-soft); margin-top: 4px; }
.kpi--save .kpi__value { color: var(--green-700); }
.trend { display: inline-flex; align-items: center; gap: 3px; font-weight: 680; font-size: .8rem; border-radius: 999px; padding: 1px 8px; }
.trend--up { background: var(--red-100); color: var(--red-600); }
.trend--down { background: var(--green-100); color: var(--green-700); }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .kpi__value { font-size: 1.35rem; } }

/* ---------- Inhaltsverzeichnis ---------- */
.toc { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 2px; scrollbar-width: thin; }
.toc a { flex: none; text-decoration: none; font-size: .88rem; font-weight: 600; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.toc a:hover { color: var(--navy-900); border-color: var(--navy-700); }
.toc-bar { border-bottom: 1px solid var(--line); background: #fff; padding: 10px 0; }

/* ---------- Tarifkarten ---------- */
.offers { display: grid; gap: 16px; }
.offer { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); position: relative; }
.offer--best { border: 2px solid var(--green-600); }
.offer__flag { position: absolute; top: -12px; left: 18px; background: var(--green-600); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.offer__brand { display: flex; gap: 14px; align-items: center; }
.brand-badge { width: 52px; height: 52px; flex: none; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: .95rem; letter-spacing: -.02em; }
.offer__name { font-weight: 720; color: var(--navy-900); line-height: 1.25; }
.offer__tarif { font-size: .9rem; color: var(--ink-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: .74rem; font-weight: 650; padding: 2px 8px; border-radius: 6px; background: var(--navy-50); color: var(--navy-700); white-space: nowrap; }
.tag--green { background: var(--green-100); color: var(--green-700); }
.tag--yellow { background: var(--yellow-100); color: #7a5a00; }
.offer__prices { font-size: .9rem; color: var(--ink-soft); line-height: 1.7; }
.offer__prices b { color: var(--ink); font-variant-numeric: tabular-nums; }
.offer__prices span { display: block; white-space: nowrap; }
.offer__cost { text-align: right; }
.offer__cost .big { font-size: 1.6rem; font-weight: 780; color: var(--navy-900); font-variant-numeric: tabular-nums; line-height: 1.1; }
.offer__cost .big small { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.offer__cta { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 170px; text-align: center; }
.offer__stand { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: 10px; margin-top: -4px; font-size: .78rem; color: var(--ink-mute); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
@media (max-width: 900px) {
  .offer { grid-template-columns: 1fr 1fr; }
  .offer__brand { grid-column: 1 / -1; }
  .offer__cost { text-align: left; }
  .offer__cta { grid-column: 1 / -1; }
}

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-mute); background: var(--bg-soft); font-weight: 680; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.r, table.data th.r { text-align: right; }
table.data tr.is-best td { background: #f2fbf6; }
table.data .best-val { color: var(--green-700); font-weight: 720; }

/* ---------- Chart ---------- */
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 10px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: var(--ink-soft); margin-bottom: 8px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.chart-tabs { display: flex; gap: 6px; margin-left: auto; }
.chart-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.chart svg text { font-family: var(--font); }

/* ---------- Zwei-Spalten-Infoblöcke ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card h3 svg { width: 22px; height: 22px; color: var(--navy-700); flex: none; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: .93rem; }
.dl dt { color: var(--ink-mute); }
.dl dd { margin: 0; font-weight: 600; }

/* Preisbestandteile */
.stack { display: flex; height: 34px; border-radius: 8px; overflow: hidden; margin: 10px 0 12px; }
.stack > div { display: grid; place-items: center; color: #fff; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.legend-list { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.legend-list li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.legend-list i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.legend-list b { margin-left: auto; font-variant-numeric: tabular-nums; }

/* Energiewende-Kacheln */
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat__icon { width: 36px; height: 36px; border-radius: 10px; background: var(--yellow-100); display: grid; place-items: center; margin-bottom: 10px; }
.stat__icon svg { width: 20px; height: 20px; color: #9a6b00; }
.stat__v { font-size: 1.45rem; font-weight: 760; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.stat__l { font-size: .85rem; color: var(--ink-soft); }

.demo-note { display: inline-flex; gap: 6px; align-items: center; font-size: .78rem; font-weight: 650; color: #7a5a00; background: var(--yellow-100); border-radius: 6px; padding: 2px 8px; }

/* Vergleichsbalken Nachbarorte */
.bar-cell { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.bar { flex: 1; height: 8px; background: var(--navy-100); border-radius: 4px; position: relative; overflow: hidden; }
.bar > span { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--navy-700); }
.diff { font-weight: 680; font-size: .85rem; }
.diff--up { color: var(--red-600); }
.diff--down { color: var(--green-700); }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 650; color: var(--navy-900); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--navy-700); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 16px; color: var(--ink-soft); }

/* ---------- Transparenz & Preisalarm ---------- */
.trust { display: grid; grid-template-columns: auto 1fr; gap: 16px; background: var(--navy-50); border: 1px solid var(--navy-100); border-radius: var(--radius); padding: 20px; }
.trust svg { width: 28px; height: 28px; color: var(--navy-700); }
.trust p { margin: 0 0 .5em; font-size: .93rem; color: var(--ink-soft); }
.alarm { background: var(--navy-800); color: #dbe6ef; border-radius: var(--radius-l); padding: 28px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
.alarm h2 { color: #fff; }
.alarm form { display: flex; gap: 8px; flex-wrap: wrap; }
.alarm .input { flex: 1 1 220px; border-color: transparent; }
.alarm .xsmall { color: #a9bccb; margin-top: 8px; }
@media (max-width: 900px) { .alarm { grid-template-columns: 1fr; padding: 22px; } }

/* ---------- Startseite ---------- */
.home-hero { background: var(--navy-900); color: #d7e3ec; padding: 56px 0 64px; position: relative; overflow: hidden; }
.home-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 46, .22), transparent 65%); pointer-events: none; }
.home-hero h1 { color: #fff; max-width: 760px; }
.home-hero .lead { font-size: 1.15rem; max-width: 640px; color: #c3d3e0; }
.search { background: #fff; border-radius: 16px; padding: 8px; display: flex; gap: 8px; max-width: 680px; margin-top: 26px; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); position: relative; }
.search .input { border: 0; font-size: 1.05rem; }
.search .input:focus { outline: none; }
.search-wrap { position: relative; max-width: 680px; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border-radius: 12px; box-shadow: var(--shadow-l); list-style: none; margin: 0; padding: 6px; z-index: 5; display: none; }
.suggest.is-open { display: block; }
.suggest a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.suggest a:hover, .suggest a.is-active { background: var(--navy-50); }
.suggest small { color: var(--ink-mute); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 16px; font-size: .9rem; }
.link-light { color: #fff; background: none; border: 0; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.link-light svg { width: 16px; height: 16px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 32px; margin-top: 40px; justify-content: start; }
.hero-stats b { display: block; font-size: 1.6rem; color: #fff; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: .85rem; color: #a9bccb; }
@media (max-width: 640px) { .hero-stats { grid-template-columns: 1fr 1fr; gap: 18px; } .search { flex-direction: column; } }

.states { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.state { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--ink); }
.state:hover { border-color: var(--navy-700); box-shadow: var(--shadow); }
.state b { font-weight: 640; font-size: .95rem; }
.state span { white-space: nowrap; flex: none; font-variant-numeric: tabular-nums; font-size: .88rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
@media (max-width: 900px) { .states { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .states { grid-template-columns: 1fr; } }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy-800); color: #fff; font-weight: 750; margin-bottom: 12px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rank li:last-child { border-bottom: 0; }
.rank .pos { width: 26px; height: 26px; border-radius: 50%; background: var(--navy-50); display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--navy-700); flex: none; }
.rank a { font-weight: 620; text-decoration: none; }
.rank .v { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; }

.article-card { display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.article-card:hover { box-shadow: var(--shadow-l); }
.article-card__img { aspect-ratio: 16 / 8; background: var(--navy-100); display: grid; place-items: center; }
.article-card__img svg { width: 48px; height: 48px; color: var(--navy-700); opacity: .6; }
.article-card__body { padding: 16px 18px; }
.article-card__body h3 { margin-bottom: 6px; }
.article-card__body p { font-size: .9rem; color: var(--ink-soft); margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #a9bccb; padding: 40px 0 24px; font-size: .9rem; margin-top: 48px; }
.footer a { color: #d7e3ec; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { color: #fff; font-size: .95rem; margin: 0 0 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; line-height: 2; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 28px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .8rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* Mobile: fixierter Vergleichs-Button unten */
.sticky-cta { display: none; }
@media (max-width: 640px) {
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding: 10px var(--gutter); gap: 10px; align-items: center; box-shadow: 0 -4px 16px rgba(16, 50, 74, .08); }
  .sticky-cta .btn { flex: 1; min-width: 0; padding: 12px 14px; }
  body.has-sticky { padding-bottom: 72px; }
}

:focus-visible { outline: 3px solid rgba(23, 69, 102, .35); outline-offset: 2px; }

@media (max-width: 640px) {
  .offer { grid-template-columns: 1fr; gap: 14px; padding: 18px 16px; }
  .offer__cost { text-align: left; }
  .offer__prices { display: flex; flex-wrap: wrap; gap: 2px 14px; }
  .section { padding: 36px 0; }
  .calc { padding: 18px; }
}

/* Anbieter-Logo in der Tarifkarte */
.brand-badge--logo { width: 84px; height: 56px; background: #fff; border: 1px solid var(--line); padding: 4px; color: var(--navy-800); font-size: .8rem; }
.brand-badge--logo img { width: 100%; height: 100%; object-fit: contain; }
.hero .meta li svg { flex: none; }
body.sas { background: var(--bg); }

/* Fremd-Ausgaben von Astra, wpDiscuz und Ivory Search im neuen Layout ausblenden (deren CSS wird nicht geladen) */
#ast-scroll-top, #is-popup-wrapper, .lity-hide, [data-wpd-lity],
#wpd-editor-source-code-wrapper, #wpd-editor-source-code-wrapper-bg, #wpdUserContentInfo { display: none !important; }
.screen-reader-text, .is-screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 8px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }
th[aria-sort="ascending"]::after { content: " ▲"; font-size: .7em; }
th[aria-sort="descending"]::after { content: " ▼"; font-size: .7em; }
@media (max-width: 640px) {
  table.data .m-weg { display: none; }
  table.data th, table.data td { padding: 10px; }
  .bar-cell { min-width: 120px; }
}

/* ---------- Inhaltsseiten (WordPress-Editor, Spectra-Blöcke) ---------- */
:root {
  /* Astra-Farbvariablen auf unsere Palette abbilden, damit bestehende Blöcke passen */
  --ast-global-color-0: #174566; --ast-global-color-1: #10324a; --ast-global-color-2: #0b2233;
  --ast-global-color-3: #4a5b6b; --ast-global-color-4: #f3f7fa; --ast-global-color-5: #ffffff;
  --ast-global-color-6: #e6eef4; --ast-global-color-7: #142433; --ast-global-color-8: #6f7f8e;
}
.has-ast-global-color-0-color { color: var(--ast-global-color-0) !important; }
.has-ast-global-color-1-color { color: var(--ast-global-color-1) !important; }
.has-ast-global-color-2-color { color: var(--ast-global-color-2) !important; }
.has-ast-global-color-3-color { color: var(--ast-global-color-3) !important; }
.has-ast-global-color-5-color { color: var(--ast-global-color-5) !important; }
.has-ast-global-color-0-background-color { background-color: var(--ast-global-color-0) !important; }
.has-ast-global-color-1-background-color { background-color: var(--ast-global-color-1) !important; }
.has-ast-global-color-4-background-color { background-color: var(--ast-global-color-4) !important; }
.hero--seite { padding-bottom: 24px; }
.wrap--text { max-width: 860px; }
.prose { padding: 32px 0 48px; color: var(--ink); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose img { height: auto; border-radius: var(--radius-s); }
.prose figure { margin: 1.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.prose table th, .prose table td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose table thead th { background: var(--bg-soft); color: var(--ink-mute); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.prose .wp-block-table { overflow-x: auto; }
.prose blockquote { border-left: 4px solid var(--yellow-400); margin-left: 0; padding: 4px 0 4px 18px; color: var(--ink-soft); }
.prose a { color: var(--navy-700); }
.prose .alignfull, .prose .alignwide { width: auto; max-width: 100%; margin-left: 0; margin-right: 0; }
.prose .wp-block-button__link, .prose .uagb-buttons-repeater { border-radius: 10px; }
.prose iframe { max-width: 100%; }
.prose .wp-block-embed iframe { width: 100%; }
.sas-rechner-inline { max-width: 520px; margin: 1.5em 0; }
.hero-actions .link-light + .link-light { margin-left: 18px; }

/* WordPress-Emoji-Bilder (wp-emoji ersetzt z. B. ⚡ durch <img class="emoji">) auf Schriftgröße begrenzen */
img.wp-smiley, img.emoji {
  display: inline !important; border: none !important; box-shadow: none !important;
  height: 1em !important; width: 1em !important; max-width: 1em !important;
  margin: 0 .07em !important; vertical-align: -0.1em !important;
  background: none !important; padding: 0 !important;
}
.kpi__value .diff { font-size: 1.35rem; }
@media (max-width: 640px) {
  .spv-laender .bar { display: none; }
  .spv-laender .bar-cell { min-width: 0; }
  .spv-laender th, .spv-laender td { padding: 10px 8px; font-size: .9rem; white-space: nowrap; }
  .spv-laender td:first-child { white-space: normal; }
}
@media (max-width: 640px) { .search.search--hell { flex-direction: row; box-shadow: none; } }
