/* Klimarechnung website. Tokens match the brand guide (/marke/). */
:root {
  --page: #FFFFFF; --panel: #F3F5F9; --panel-2: #E9EDF4; --card: #FFFFFF;
  --ink: #13203B; --ink-2: #586480; --line: #E2E6EE; --line-2: #D3D9E4;
  --btn: #13203B; --on-btn: #FFFFFF;
  --stage: #FFD9C4; --stage-ink: #5A2410; --stage-2: #CFEFDF; --stage-2-ink: #0B4D37;
  --orange: #FB8B5B; --orange-ink: #B4380B;
  --shop-bg: #FFE7DB; --shop: #C2410C; --ins-bg: #E1EDFF; --ins: #1D4ED8;
  --tax-bg: #EDE7FF; --tax: #6D28D9; --heat-bg: #FFF2C7; --heat: #8A4B00;
  --save-bg: #DDF5EA; --save: #0B6B4B;
  --shadow-app: 0 40px 80px -30px rgba(19, 32, 59, .45), 0 0 0 1px rgba(19, 32, 59, .08);
  --shadow-chip: 0 14px 30px -12px rgba(19, 32, 59, .35), 0 0 0 1px rgba(19, 32, 59, .06);
  --sans: "Manrope", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --gut: 24px; --max: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --page: #0D1426; --panel: #151E34; --panel-2: #1D2843; --card: #18223B;
  --ink: #EEF1F7; --ink-2: #A7B0C4; --line: #263252; --line-2: #34416A;
  --btn: #EEF1F7; --on-btn: #0D1426;
  --stage: #4A2618; --stage-ink: #FFD9C4; --stage-2: #123A2C; --stage-2-ink: #CFEFDF;
  --orange-ink: #FFA27A;
  --shop-bg: #43231A; --shop: #FFB08F; --ins-bg: #1B2C52; --ins: #9DBBFF;
  --tax-bg: #2D2450; --tax: #C7B4FF; --heat-bg: #3F3212; --heat: #F6CE6E;
  --save-bg: #12392B; --save: #7DDBB2;
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --page: #0D1426; --panel: #151E34; --panel-2: #1D2843; --card: #18223B;
  --ink: #EEF1F7; --ink-2: #A7B0C4; --line: #263252; --line-2: #34416A;
  --btn: #EEF1F7; --on-btn: #0D1426;
  --stage: #4A2618; --stage-ink: #FFD9C4; --stage-2: #123A2C; --stage-2-ink: #CFEFDF;
  --orange-ink: #FFA27A;
  --shop-bg: #43231A; --shop: #FFB08F; --ins-bg: #1B2C52; --ins: #9DBBFF;
  --tax-bg: #2D2450; --tax: #C7B4FF; --heat-bg: #3F3212; --heat: #F6CE6E;
  --save-bg: #12392B; --save: #7DDBB2;
  color-scheme: dark;
}
@media (max-width: 640px) { :root { --gut: 16px; } }

* { box-sizing: border-box; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }
.tiles > *, .steps > *, .cards > *, .method > *, .split > *, .grid2 > *, .grid3 > *, .words > *, .ex > * { min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 500 17px/1.6 var(--sans); overflow-x: hidden; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ins); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.tnum { font-variant-numeric: tabular-nums; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--page) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand svg { height: 30px; width: auto; }
.nav { display: flex; gap: 4px; margin: 0 auto; }
.nav a { white-space: nowrap; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); background: var(--panel); }
.top .btn { height: 42px; font-size: 15px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--panel); color: var(--ink); align-items: center; justify-content: center; }
@media (max-width: 900px) {
  .nav, .top .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .top.open .nav { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 68px; margin: 0; padding: 8px var(--gut) 16px;
    background: var(--page); border-bottom: 1px solid var(--line); }
  .top.open .nav a { padding: 12px; font-size: 17px; }
}

/* Buttons and pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--btn); background: var(--btn); color: var(--on-btn); font: 700 16px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.15); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--panel); filter: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2);
  font-weight: 700; font-size: 14px; color: var(--ink); background: var(--page); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-weight: 700; font-size: 13px; }

/* Hero */
.hero { text-align: center; padding-top: 72px; padding-bottom: 48px; }
.hero h1 { margin: 22px auto 0; max-width: 13ch; font-weight: 800; font-size: clamp(44px, 7.4vw, 84px); line-height: .98; letter-spacing: -.045em; }
.hero h1 em { font-style: normal; color: var(--orange-ink); }
.hero .sub { max-width: 620px; margin: 24px auto 0; font-size: 19px; color: var(--ink-2); }
.plz { display: flex; gap: 8px; max-width: 460px; margin: 32px auto 0; padding: 6px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); }
.plz input { flex: 1; min-width: 0; height: 48px; border: 0; padding: 0 18px; background: transparent; color: var(--ink); font: 700 18px var(--sans); letter-spacing: .04em; }
.plz input::placeholder { color: var(--ink-2); font-weight: 600; letter-spacing: 0; }
.plz input:focus { outline: none; }
.plz:focus-within { border-color: var(--ink); }
.hero .alt { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.hero .alt a { font-weight: 700; color: var(--ink); }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 26px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 17px; height: 17px; color: var(--save); }

/* Stage: the coloured panel that holds the live app */
.stage { position: relative; max-width: var(--max); margin: 0 auto; border-radius: 32px; background: var(--stage); padding: 64px 24px 0; overflow: hidden; }
.stage.mint { background: var(--stage-2); }
.phone { position: relative; z-index: 1; width: 390px; height: 700px; margin: 0 auto; border-radius: 44px 44px 0 0; overflow: hidden; box-shadow: var(--shadow-app); background: #F3F5F9; }
.phone iframe { width: 390px; height: 844px; border: 0; pointer-events: none; }
.phone-link { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 28px; text-decoration: none; }
.phone-link .btn { box-shadow: var(--shadow-chip); }
.float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-chip); font-size: 14px; line-height: 1.3; text-align: left; }
.float b { display: block; font-size: 15px; }
.float .ico { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.float .ico svg { width: 21px; height: 21px; }
.float .amt { font-weight: 800; color: var(--orange-ink); white-space: nowrap; }
.f1 { left: max(24px, calc(50% - 470px)); top: 120px; }
.f2 { right: max(24px, calc(50% - 470px)); top: 230px; }
.f3 { left: max(24px, calc(50% - 440px)); top: 420px; }
.f4 { right: max(24px, calc(50% - 450px)); top: 520px; }
@media (max-width: 980px) { .float { display: none; } }
@media (max-width: 480px) { .stage { padding: 32px 16px 0; border-radius: 24px; } .phone { width: 312px; height: 560px; } .phone iframe { transform: scale(.8); transform-origin: 0 0; } }
@media (max-width: 360px) { .phone { width: 254px; height: 456px; border-radius: 32px 32px 0 0; } .phone iframe { transform: scale(.65); } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 56px auto 0; }
.stat { padding: 8px 24px; border-left: 1px solid var(--line); text-align: center; }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(34px, 4vw, 48px); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.stat span { display: block; margin-top: 6px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.stat a { font-size: 13px; color: var(--ink-2); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; row-gap: 28px; } .stat { padding: 8px 12px; } .stat:nth-child(3) { border-left: 0; } .stat b { font-size: 30px; } }

/* Sections */
.sec { padding-top: 112px; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-ink); }
.sec h2 { margin: 12px 0 0; font-weight: 800; font-size: clamp(34px, 5vw, 54px); line-height: 1.02; letter-spacing: -.04em; }
.sec-head p { margin: 18px auto 0; font-size: 18px; color: var(--ink-2); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { padding: 24px; border-radius: 24px; background: var(--panel); display: flex; flex-direction: column; gap: 12px; }
.tile .ico { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.tile .ico svg { width: 24px; height: 24px; }
.tile h3 { margin: 6px 0 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.tile p { margin: 0; color: var(--ink-2); font-size: 16px; }
.tile .src { margin-top: auto; font-size: 13px; color: var(--ink-2); }
@media (max-width: 980px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 28px; border-radius: 24px; border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--page); font-weight: 800; }
.step h3 { margin: 18px 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 56px; }
.split h2 { margin: 0; font-weight: 800; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.04; letter-spacing: -.04em; color: var(--stage-2-ink); }
.split p { color: var(--stage-2-ink); font-size: 18px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--card); box-shadow: 0 1px 0 rgba(19, 32, 59, .04); }
.row .ico { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--save-bg); color: var(--save); }
.row .ico svg { width: 20px; height: 20px; }
.row div { flex: 1; min-width: 0; line-height: 1.35; }
.row b { display: block; font-size: 16px; }
.row small { font-size: 14px; color: var(--ink-2); }
.row .amt { font-weight: 800; color: var(--save); white-space: nowrap; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; padding: 32px 20px; gap: 28px; } }

.method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.method div { padding: 24px; border-radius: 24px; background: var(--panel); }
.method h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
.method p { margin: 0; color: var(--ink-2); font-size: 16px; }
.receipt { font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .method { grid-template-columns: 1fr; } }

/* Post cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 24px; border: 1px solid var(--line); text-decoration: none; background: var(--card); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.card h3 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.25; letter-spacing: -.015em; }
.card p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.card .chip { align-self: flex-start; }
.card p { hyphens: auto; overflow-wrap: break-word; }
.card .meta { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
@media (max-width: 980px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.c-Lebensmittel { background: var(--shop-bg); color: var(--shop); }
.c-Versicherung { background: var(--ins-bg); color: var(--ins); }
.c-Hitze { background: var(--heat-bg); color: var(--heat); }
.c-Unwetter { background: var(--ins-bg); color: var(--ins); }
.c-Energie { background: var(--tax-bg); color: var(--tax); }
.c-Geld { background: var(--save-bg); color: var(--save); }
.c-Wohnort { background: var(--panel-2); color: var(--ink); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 19px; font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--ink-2); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 22px; color: var(--ink-2); }

.cta { margin-top: 112px; padding: 72px 24px; border-radius: 32px; background: var(--ink); color: var(--page); text-align: center; }
.cta h2 { margin: 0 auto; max-width: 16ch; font-weight: 800; font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -.04em; }
.cta p { margin: 18px auto 28px; max-width: 520px; color: color-mix(in srgb, var(--page) 72%, transparent); font-size: 18px; }
.cta .btn { background: var(--page); color: var(--ink); border-color: var(--page); }

/* Footer */
.foot { margin-top: 96px; padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--ink); }
.foot svg { height: 26px; width: auto; margin-bottom: 10px; }

/* Ratgeber index */
.page-head { padding: 64px 0 40px; }
.page-head h1 { margin: 14px 0 0; font-weight: 800; font-size: clamp(42px, 6vw, 72px); line-height: 1; letter-spacing: -.045em; }
.page-head p { max-width: 640px; margin: 18px 0 0; font-size: 19px; color: var(--ink-2); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.filters a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 700; font-size: 15px; text-decoration: none; }
.filters a:hover { background: var(--panel); }
.cluster { padding-top: 40px; }
.cluster h2 { margin: 0 0 18px; font-size: 28px; font-weight: 800; letter-spacing: -.03em; }

/* Article */
.crumbs { padding-top: 32px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.article { max-width: 720px; margin: 0 auto; }
.article h1 { margin: 16px 0 0; font-weight: 800; font-size: clamp(34px, 5vw, 52px); line-height: 1.06; letter-spacing: -.04em; }
.article .byline { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.prose { hyphens: auto; overflow-wrap: break-word; margin-top: 32px; font-size: 18px; line-height: 1.7; }
.prose .lead { font-size: 21px; line-height: 1.55; font-weight: 600; }
.prose h2 { margin: 48px 0 12px; font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -.025em; }
.prose h3 { margin: 32px 0 8px; font-size: 21px; font-weight: 800; }
.prose a { color: var(--ins); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--orange); font-weight: 600; }
.prose .tbl { margin: 28px 0; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.prose caption { caption-side: top; text-align: left; padding: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-weight: 800; background: var(--panel); }
.prose aside.money { margin: 40px 0; padding: 24px 28px; border-radius: 24px; background: var(--save-bg); color: var(--ink); }
.prose aside.money h2 { margin: 0 0 8px; font-size: 21px; color: var(--save); }
.prose aside.money ul { margin: 0; }
.prose aside.kurz { margin: 32px 0 8px; padding: 22px 28px; border-radius: 24px; border: 1px solid var(--line-2); font-size: 17px; }
.prose aside.kurz h2 { margin: 0 0 6px; font-size: 17px; letter-spacing: 0; }
.prose aside.kurz ul { margin: 0; }
.prose aside.beispiel { margin: 32px 0; padding: 22px 28px; border-radius: 24px; background: var(--panel); font-size: 17px; }
.prose aside.beispiel h3 { margin: 0 0 6px; font-size: 18px; }
.prose aside.beispiel > :last-child { margin-bottom: 0; }
.prose aside.beispiel .tbl { margin: 16px 0 0; }
.prose .faq h3 { margin: 24px 0 4px; font-size: 19px; }
.prose .faq p { margin: 0; }
@media (max-width: 560px) { .prose aside.kurz, .prose aside.money, .prose aside.beispiel { padding: 20px; } }
.app-box { display: flex; align-items: center; gap: 20px; margin: 48px 0 0; padding: 24px; border-radius: 24px; background: var(--stage); color: var(--stage-ink); }
.app-box p { margin: 0; flex: 1; font-weight: 700; font-size: 18px; line-height: 1.4; }
@media (max-width: 560px) { .app-box { flex-direction: column; align-items: stretch; text-align: center; } }
.sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; }
.sources h2 { margin: 0 0 10px; font-size: 17px; font-weight: 800; }
.sources ol { margin: 0; padding-left: 1.3em; color: var(--ink-2); }
.sources li { margin: 6px 0; overflow-wrap: anywhere; }
.related { margin-top: 64px; }
.related h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
