/* Energieberatung Mehlan – Stylesheet
   Schrift und Bibliotheken liegen lokal (DSGVO): keine Google Fonts, kein CDN. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800; font-style: normal; font-display: swap;
  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: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800; font-style: normal; font-display: swap;
  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 {
  /* Palette „Wald & Sonne“ */
  --forest-950: #0a1f19;
  --forest-900: #0e2a22;
  --forest-800: #143829;
  --forest-700: #1d4a37;
  --sage-50: #f6f8f4;
  --sage-100: #eef2ec;
  --sage-200: #e1e8df;
  --sage-300: #c9d5c6;
  --leaf: #1f9d63;        /* dekorativ, große Flächen */
  --leaf-strong: #15784b; /* Buttons/Text – Kontrast ≥ 4.5:1 */
  --leaf-soft: #dcefe3;
  --sun: #f4b63f;
  --sun-soft: #fdf1d6;
  --sky: #6fb7c9;
  --ink: #13211b;
  --ink-muted: #4c5c54;
  --line: rgba(14, 42, 34, .1);
  --card: #ffffff;
  --glass: rgba(255, 255, 255, .1);
  --glass-line: rgba(255, 255, 255, .18);

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(14, 42, 34, .05), 0 12px 32px -12px rgba(14, 42, 34, .18);
  --max: 1240px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--sage-100); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--leaf-strong); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.025em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 600; }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section__head { max-width: 720px; margin-bottom: 44px; }
.section__head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section__head--split > div { max-width: 640px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--leaf-strong); margin-bottom: 14px; }
.kicker::before { content: ""; width: 18px; height: 2px; background: var(--leaf); border-radius: 2px; }
.lead { font-size: 1.15rem; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Platzhalter – markiert Stellen, die noch ausgefüllt werden müssen */
.ph { background: var(--sun-soft); outline: 1px dashed #d9a234; border-radius: 4px; padding: 0 4px; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--leaf-strong); color: #fff; }
.btn--primary:hover { background: #0f6640; }
.btn--sun { background: var(--sun); color: var(--forest-950); }
.btn--sun:hover { background: #ffc552; }
.btn--ghost { border-color: rgba(14, 42, 34, .2); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: rgba(255, 255, 255, .6); }
.btn--glass { background: var(--glass); border-color: var(--glass-line); color: #fff; backdrop-filter: blur(12px); }
.btn--glass:hover { background: rgba(255, 255, 255, .18); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; padding: 12px 0; }
.header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(246, 248, 244, .78); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 18px; box-shadow: var(--shadow);
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--forest-900); flex-shrink: 0; --logo-bg: #f2f5f0; }
.logo svg { width: 38px; height: 38px; }
/* Wortmarke wie im Original-Logo: ENERGIEBERATUNG / MEHLAN in Versalien */
.logo__word { display: flex; flex-direction: column; align-items: center; text-transform: uppercase; font-weight: 600; font-size: .92rem; letter-spacing: .1em; line-height: 1.1; }
.logo__word small { font-size: .74rem; font-weight: 600; letter-spacing: .14em; color: var(--leaf-strong); margin-top: 2px; }
.cta .logo-mark, .tile--hero .logo-mark { --logo-bg: var(--forest-900); color: #fff; }
.logo__text { font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; line-height: 1.1; }
.logo__text small { display: block; font-weight: 500; font-size: .74rem; color: var(--ink-muted); letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 4px; background: var(--sage-200); padding: 4px; border-radius: 999px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; padding: 8px 16px; border-radius: 999px; font-size: .94rem; transition: background .2s var(--ease); }
.nav a:hover { background: rgba(255, 255, 255, .7); }
.nav a[aria-current="page"] { background: var(--forest-900); color: #fff; }
.header__cta { padding: 10px 20px; min-height: 44px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--forest-900); color: #fff; border: 0; cursor: pointer; place-items: center; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav__mobile-cta { display: none; }

@media (max-width: 980px) {
  .nav-toggle { display: grid; }
  .header__cta { display: none; }
  .nav {
    display: none; position: absolute; top: calc(100% - 4px); left: 20px; right: 20px;
    flex-direction: column; align-items: stretch; border-radius: var(--r-md); padding: 10px;
    background: var(--sage-50); border: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 16px; }
  .nav__mobile-cta { display: flex; margin-top: 6px; }
  .nav a.nav__mobile-cta { background: var(--leaf-strong); color: #fff; justify-content: center; }
}

/* ---------- Bühne (3D-Haus) ---------- */
.stage {
  position: relative; margin: 0 12px; border-radius: var(--r-lg); overflow: hidden; color: #fff;
  background:
    radial-gradient(ellipse 60% 55% at 64% 58%, rgba(111, 183, 201, .22), transparent 70%),
    radial-gradient(ellipse 80% 70% at 70% 100%, rgba(31, 157, 99, .35), transparent 70%),
    linear-gradient(180deg, var(--forest-900) 0%, var(--forest-950) 100%);
  min-height: clamp(640px, 90vh, 860px);
  isolation: isolate;
}
.stage__canvas { position: absolute; inset: 0; z-index: 0; }
.stage__canvas canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; touch-action: pan-y; }
.stage__canvas canvas:active { cursor: grabbing; }
.stage__overlay { position: relative; z-index: 1; pointer-events: none; min-height: inherit; display: flex; flex-direction: column; justify-content: space-between; padding-top: 56px; padding-bottom: 28px; }
.stage__overlay > * { pointer-events: auto; }
.stage__copy { max-width: 560px; }
.stage__copy h1 { color: #fff; }
.stage__copy h1 em { font-style: normal; color: var(--sun); }
.stage__copy .lead { color: rgba(255, 255, 255, .78); max-width: 480px; }
.stage__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.stage__loading { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .6); z-index: 0; }
.stage__hint {
  display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: rgba(255, 255, 255, .85);
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(12px);
  border-radius: 999px; padding: 8px 14px; margin-top: 28px; pointer-events: none;
}
.stage__hint .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(244, 182, 63, .25); }

.tip {
  position: absolute; z-index: 3; pointer-events: none; background: rgba(10, 31, 25, .9); color: #fff;
  border: 1px solid var(--glass-line); border-radius: var(--r-sm); padding: 8px 12px; font-size: .85rem; line-height: 1.35;
  backdrop-filter: blur(8px);
}
.tip strong { display: block; font-size: .95rem; }
.tip span { color: var(--sun); }

/* Glas-Kennzahlen */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric {
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(16px) saturate(1.3);
  border-radius: var(--r-md); padding: 18px 20px; color: #fff;
}
.metric__label { font-size: .86rem; color: rgba(255, 255, 255, .72); display: flex; justify-content: space-between; gap: 8px; }
.metric__value { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-top: 10px; }
.metric__value small { font-size: .95rem; font-weight: 500; color: rgba(255, 255, 255, .7); margin-left: 4px; letter-spacing: 0; }
.metric__bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .14); margin-top: 12px; overflow: hidden; }
.metric__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--leaf), var(--sun)); }
.metric--accent { background: rgba(244, 182, 63, .16); border-color: rgba(244, 182, 63, .4); }

/* Panel nach Klick auf ein Bauteil */
.drawer {
  position: absolute; z-index: 2; top: 24px; right: 24px; bottom: 24px; width: min(380px, calc(100% - 48px));
  background: rgba(10, 31, 25, .72); border: 1px solid var(--glass-line); backdrop-filter: blur(20px) saturate(1.4);
  border-radius: var(--r-md); padding: 22px; overflow-y: auto; color: #fff;
  transform: translateX(calc(100% + 32px)); transition: transform .35s var(--ease); visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--glass-line);
  background: var(--glass); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.drawer__close svg { width: 18px; height: 18px; }
.drawer h3 { font-size: 1.5rem; margin: 4px 48px 6px 0; }
.drawer p { color: rgba(255, 255, 255, .75); font-size: .95rem; }
.drawer__label { font-size: .84rem; color: var(--sun); font-weight: 600; }
.mini { border-top: 1px solid var(--glass-line); padding: 14px 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
.mini strong { font-size: .98rem; font-weight: 600; }
.mini b { font-size: 1.3rem; color: var(--sun); white-space: nowrap; }
.mini span { grid-column: 1 / -1; font-size: .82rem; color: rgba(255, 255, 255, .65); }
@media (min-width: 981px) {
  .stage.has-drawer .metrics { margin-right: 396px; }
  .stage.has-drawer .metric__value { font-size: 1.5rem; }
  .stage.has-drawer .metric__value small { font-size: .8rem; }
}
.mini .tag { justify-self: start; display: inline-block; margin-top: 4px; font-size: .74rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: rgba(31, 157, 99, .3); color: #b8f0d0; }
.mini .tag--sun { background: rgba(244, 182, 63, .22); color: #ffe3a6; }
.drawer .btn { width: 100%; margin-top: 10px; }

@media (max-width: 980px) {
  /* Reihenfolge auf dem Handy: Text → Haus → Kennzahlen → Panel */
  .stage { min-height: 0; margin: 0 8px; display: flex; flex-direction: column; }
  .stage__overlay { display: contents; }
  .stage__copy { order: 1; padding: 36px 20px 0; position: relative; z-index: 1; }
  .stage__canvas { order: 2; position: relative; inset: auto; height: 400px; }
  .metrics { order: 3; padding: 0 20px 20px; position: relative; z-index: 1; }
  .drawer { order: 4; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .drawer { position: relative; top: auto; right: auto; bottom: auto; width: auto; margin: 0 20px 20px; transform: none; display: none; }
  .drawer.is-open { display: block; }
  .stage__hint { margin-top: 18px; }
}
@media (max-width: 520px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric { padding: 14px; min-width: 0; }
  .metric__label { flex-direction: column; gap: 0; }
  .metric__value { font-size: 1.45rem; }
  .metric__value small { display: block; margin: 2px 0 0; font-size: .8rem; }
  .stage__canvas { height: 340px; }
}

/* ---------- Trust ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.trust__item { display: flex; gap: 12px; align-items: center; background: var(--sage-50); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px; font-weight: 600; font-size: .94rem; line-height: 1.35; }
.trust__item svg { width: 26px; height: 26px; color: var(--leaf-strong); flex-shrink: 0; }
.trust__item small { display: block; font-weight: 400; color: var(--ink-muted); font-size: .82rem; }
@media (max-width: 980px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust { grid-template-columns: 1fr; } }

/* ---------- Leistungen (Bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.tile h3 { font-size: 1.25rem; }
.tile p { color: var(--ink-muted); margin: 0; }
.tile__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--leaf-soft); color: var(--leaf-strong); display: grid; place-items: center; margin-bottom: 20px; }
.tile__icon svg { width: 24px; height: 24px; }
.tile--hero { grid-column: span 3; grid-row: span 2; background: var(--forest-900); color: #fff; border: 0; }
.tile--hero p { color: rgba(255, 255, 255, .75); }
.tile--hero .tile__icon { background: rgba(244, 182, 63, .18); color: var(--sun); }
.tile--hero h3 { font-size: 1.7rem; }
.tile--wide { grid-column: span 3; }
.tile--third { grid-column: span 2; }
.tile--full { grid-column: 1 / -1; }
.tile__perks { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 10px; padding-top: 28px; }
.tile__perks li { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .95rem; }
.tile__perks b { color: var(--sun); font-weight: 700; white-space: nowrap; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile--hero, .tile--wide { grid-column: span 2; grid-row: auto; } .tile--third { grid-column: span 1; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .tile--hero, .tile--wide, .tile--third { grid-column: auto; } }

/* ---------- Rechner (Dashboard) ---------- */
.calc { display: grid; grid-template-columns: 360px 1fr; gap: 16px; align-items: start; }
@media (max-width: 1020px) { .calc { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.panel h3 { font-size: 1.05rem; margin-bottom: 16px; }
.field { margin-bottom: 20px; }
.field > label, .field > .field__label { display: flex; justify-content: space-between; font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.field output { color: var(--leaf-strong); font-weight: 700; }
.field select {
  width: 100%; min-height: 48px; font: inherit; font-size: 1rem; padding: 10px 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--sage-300); background: var(--sage-50); color: var(--ink); cursor: pointer;
}
.field input[type="range"] { width: 100%; accent-color: var(--leaf-strong); height: 28px; cursor: pointer; }
.field__hint { font-size: .8rem; color: var(--ink-muted); margin-top: 4px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--sage-100); border-radius: var(--r-sm); padding: 4px; gap: 4px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 10px 8px; border-radius: 9px; font-size: .9rem; font-weight: 500; cursor: pointer; transition: background .2s var(--ease); }
.seg input:checked + span { background: #fff; box-shadow: 0 1px 3px rgba(14, 42, 34, .15); font-weight: 600; }
.seg input:focus-visible + span { outline: 3px solid var(--sun); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin-bottom: 12px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--leaf-strong); flex-shrink: 0; cursor: pointer; }

.dash { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.dash .panel { display: flex; flex-direction: column; }
.dash__gauge { grid-column: span 3; }
.dash__money { grid-column: span 3; }
.dash__small { grid-column: span 2; }
@media (max-width: 700px) { .dash { grid-template-columns: 1fr; } .dash > * { grid-column: auto !important; } }
.panel__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.panel__top h3 { margin: 0; }
.pill { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--sage-100); color: var(--ink-muted); }
.big { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.big small { font-size: 1rem; font-weight: 500; color: var(--ink-muted); letter-spacing: 0; margin-left: 4px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-muted); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.gauge { position: relative; margin: 8px auto 0; width: 100%; max-width: 320px; }
.gauge svg { width: 100%; height: auto; overflow: visible; }
.gauge__value { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; }
.gauge__value .big { display: block; }
.stack { height: 14px; border-radius: 99px; background: var(--sage-200); overflow: hidden; display: flex; margin: 18px 0 12px; }
.stack i { display: block; height: 100%; transition: width .5s var(--ease); }
.bars { display: flex; align-items: end; gap: 18px; height: 120px; margin-top: 16px; padding: 0 6px; border-bottom: 1px solid var(--line); }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: end; height: 100%; gap: 6px; }
.bars i { display: block; width: 100%; max-width: 64px; border-radius: 8px 8px 2px 2px; transition: height .5s var(--ease); }
.bars span { font-size: .8rem; color: var(--ink-muted); }
.bars-labels { display: flex; gap: 18px; padding: 8px 6px 0; font-size: .82rem; color: var(--ink-muted); }
.bars-labels span { flex: 1; text-align: center; }
.note { font-size: .82rem; color: var(--ink-muted); margin-top: 14px; }
.panel--dark { background: var(--forest-900); color: #fff; border: 0; }
.panel--dark .pill { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .8); }
.panel--dark .big small, .panel--dark .note { color: rgba(255, 255, 255, .7); }

/* ---------- Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; position: relative; }
.steps li::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  display: block; font-size: 2.6rem; font-weight: 700; letter-spacing: -.04em; color: var(--leaf); line-height: 1; margin-bottom: 22px;
}
.steps p { color: var(--ink-muted); font-size: .96rem; margin: 0; }
.steps li:last-child { background: var(--leaf-soft); border-color: transparent; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Referenzen ---------- */
.refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 980px) { .refs { grid-template-columns: 1fr; } }
.ref { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; }
.ref__img {
  aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--sage-200), var(--sage-300));
  display: grid; place-items: center; color: var(--ink-muted); font-size: .88rem; text-align: center; padding: 16px; position: relative;
}
.ref__badge { position: absolute; top: 14px; left: 14px; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--sun); color: var(--forest-950); }
.ref__body { padding: 22px; }
.ref__body h3 { margin-bottom: 4px; }
.ref__meta { font-size: .88rem; color: var(--ink-muted); margin-bottom: 16px; }
.classes { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.cls { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; }
.cls--bad { background: #d9534f; }
.cls--mid { background: #f0a43a; }
.cls--good { background: #3aa765; }
.classes svg { width: 22px; height: 22px; color: var(--ink-muted); }
.ref__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ref__nums div { background: var(--sage-100); border-radius: var(--r-sm); padding: 10px 12px; }
.ref__nums b { display: block; font-size: 1.15rem; letter-spacing: -.02em; }
.ref__nums span { font-size: .78rem; color: var(--ink-muted); }

/* ---------- Kundenstimmen ---------- */
.quotes { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
@media (max-width: 980px) { .quotes { grid-template-columns: 1fr; } }
.quote { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; display: flex; flex-direction: column; gap: 16px; margin: 0; }
.quote:first-child { background: var(--forest-900); color: #fff; border: 0; }
.quote blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.quote:first-child blockquote { font-size: 1.3rem; }
.quote figcaption { margin-top: auto; font-size: .9rem; color: var(--ink-muted); }
.quote:first-child figcaption { color: rgba(255, 255, 255, .7); }
.stars { display: flex; gap: 2px; color: var(--sun); }
.stars svg { width: 18px; height: 18px; }

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center; }
.about__photo {
  aspect-ratio: 4 / 5; border-radius: var(--r-lg); background: linear-gradient(160deg, var(--sage-200), var(--sage-300));
  display: grid; place-items: center; color: var(--ink-muted); text-align: center; font-size: .9rem; padding: 24px; position: relative;
}
.about__badge {
  position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(10px);
  border-radius: var(--r-sm); padding: 12px 14px; text-align: left; font-size: .85rem; color: var(--ink);
}
.about__badge b { display: block; font-size: .95rem; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--leaf-strong); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 32px; } .about__photo { max-width: 320px; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; gap: 0; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 22px 0; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; border-right: 2px solid var(--leaf-strong); border-bottom: 2px solid var(--leaf-strong); transform: rotate(45deg); transition: transform .2s var(--ease); flex-shrink: 0; margin-right: 6px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > div { padding: 0 0 22px; color: var(--ink-muted); max-width: 680px; }

/* ---------- Kontakt ---------- */
.cta {
  margin: 0 12px; border-radius: var(--r-lg); color: #fff; padding: 72px 0;
  background: radial-gradient(ellipse 70% 80% at 85% 100%, rgba(31, 157, 99, .45), transparent 70%), var(--forest-900);
}
.cta h2 { color: #fff; }
.cta .lead { color: rgba(255, 255, 255, .75); }
.cta__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .cta__grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 14px; align-items: center; background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r-sm); padding: 14px 16px; }
.contact-list svg { width: 22px; height: 22px; color: var(--sun); flex-shrink: 0; }
.contact-list small { display: block; color: rgba(255, 255, 255, .65); font-size: .8rem; }
.cta .ph { color: var(--ink); }

/* ---------- Footer ---------- */
.footer { padding: 36px 0 44px; font-size: .9rem; color: var(--ink-muted); }
.footer__inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer nav { display: flex; gap: 20px; }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- Förder-Seite ---------- */
.page-head { padding: 48px 0 32px; }
.finder3d { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; }
.finder3d__left { position: sticky; top: 100px; }
@media (max-width: 1020px) { .finder3d { grid-template-columns: 1fr; } .finder3d__left { position: static; } }
.mini-stage { position: relative; height: min(560px, 66vh); min-height: 360px; border-radius: var(--r-lg); overflow: hidden; margin: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 60%, rgba(111, 183, 201, .2), transparent 70%), radial-gradient(ellipse 80% 60% at 50% 100%, rgba(31, 157, 99, .35), transparent 70%), linear-gradient(180deg, var(--forest-900), var(--forest-950)); }
.mini-stage .stage__canvas { position: absolute; inset: 0; height: auto; margin: 0; }
.mini-stage .stage__hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; white-space: nowrap; }
@media (max-width: 520px) { .mini-stage .stage__hint { white-space: normal; width: calc(100% - 24px); justify-content: center; text-align: center; } }
.part-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.part-buttons button {
  font: inherit; font-size: .92rem; min-height: 44px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); transition: all .2s var(--ease);
}
.part-buttons button:hover { border-color: var(--leaf); }
.part-buttons button[aria-pressed="true"] { background: var(--forest-900); border-color: var(--forest-900); color: #fff; }
.part-buttons__sep { font-size: .88rem; color: var(--ink-muted); margin: 0 4px; }
.situation .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; cursor: pointer; background: var(--sage-50); transition: all .2s var(--ease); }
.chip input:checked + span { background: var(--forest-900); border-color: var(--forest-900); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.situation fieldset { border: 0; padding: 0; margin: 0; }
.results__intro { margin: 20px 0 16px; }
.results__intro h2 { font-size: 1.8rem; margin-bottom: 6px; }

.program { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; margin-bottom: 14px; }
.program__top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.program__title h3 { margin-bottom: 8px; }
.program__badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.badge--provider { background: var(--sage-100); color: var(--ink-muted); }
.badge--pflicht { background: var(--forest-900); color: #fff; }
.badge--empfohlen { background: var(--sun-soft); color: #7a5500; }
.badge--leistung { background: var(--leaf-soft); color: var(--leaf-strong); }
.program__amount { text-align: right; }
.program__amount strong { display: block; font-size: 2rem; color: var(--leaf-strong); line-height: 1.05; letter-spacing: -.03em; }
.program__amount span { font-size: .85rem; color: var(--ink-muted); }
@media (max-width: 560px) { .program__amount { text-align: left; } }
.program ul { margin: 14px 0 0; padding-left: 20px; color: var(--ink-muted); font-size: .95rem; }
.program ul li { margin-bottom: 4px; }
.program__example { margin-top: 14px; background: var(--leaf-soft); border-radius: var(--r-sm); padding: 12px 16px; font-size: .93rem; }
.program__example b { color: var(--leaf-strong); }
.program__advisor { margin-top: 12px; font-size: .9rem; display: flex; gap: 8px; align-items: flex-start; }
.program__advisor svg { width: 18px; height: 18px; color: var(--leaf-strong); flex-shrink: 0; margin-top: 3px; }
.callout { border-radius: var(--r-sm); padding: 16px 20px; margin-bottom: 14px; font-size: .95rem; }
.callout--sun { background: var(--sun-soft); border: 1px solid #f1d58a; }
.callout strong { display: block; margin-bottom: 4px; }
.disclaimer { font-size: .85rem; color: var(--ink-muted); margin-top: 20px; }

/* Rechtstexte */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
.legal p { white-space: pre-line; }
.legal blockquote { margin: 0 0 24px; background: var(--sun-soft); border: 1px solid #f1d58a; border-radius: var(--r-sm); padding: 14px 18px; }
.legal blockquote p { margin: 0; }
