/* ==========================================================================
   pages.css: Unterseiten (Leistungen, Rechner, Termin, Ratgeber)
   Baut auf style.css auf. Die Inhalte nutzen die vorhandenen sp-*-Klassen,
   das Design ist komplett neu (Grün/Gold/Warmweiß, Outfit).
   ========================================================================== */

/* ---------- Brücke für Altvariablen der Rechner ---------- */
:root {
  --color-brand-primary: var(--green-700);
  --color-brand-accent: var(--gold-500);
  --color-beige: var(--bone-100);
  --color-text: var(--ink);
  --color-text-muted: var(--ink-mute);
  --color-border: var(--bone-200);
  --nav-height: var(--nav-h);
  --space-4: 16px;
  --space-8: 32px;
  --space-12: 48px;
}

/* ---------- Alte Button-Klassen auf das neue System ---------- */
.btn-accent { background: var(--gold-500); color: var(--green-950); box-shadow: 0 10px 30px -12px rgba(211, 175, 60, 0.7); }
.btn-accent:hover { background: var(--gold-400); box-shadow: 0 14px 34px -12px rgba(211, 175, 60, 0.9); transform: translateY(-2px); }
.btn.btn-ghost { background: rgba(250, 248, 243, 0.06); color: var(--bone-50); border-color: rgba(250, 248, 243, 0.35); }
.btn.btn-ghost:hover { background: rgba(250, 248, 243, 0.14); border-color: rgba(250, 248, 243, 0.7); transform: translateY(-2px); }
.btn-lg { padding: 18px 32px; font-size: 17px; }
.btn-leistung { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--green-700); font-size: 15px; }
.btn-leistung:hover { color: var(--green-900); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Seitenkopf / Hero ---------- */
.sp-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(120% 90% at 80% 20%, #163a30 0%, var(--green-900) 45%, var(--green-950) 100%);
  color: var(--bone-50);
  padding-top: var(--nav-h);
}
.sp-hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center; opacity: .22;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.35), #000 55%); mask-image: linear-gradient(90deg, rgba(0,0,0,.35), #000 55%);
}
.sp-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 31, 25, 0.1) 0%, rgba(11, 31, 25, 0.55) 100%);
}
.sp-hero-video { display: none; }
.sp-breadcrumb { width: min(100% - 2 * var(--gutter), var(--container)); margin: 0 auto; padding: 18px 0 0; font-size: 13.5px; }
.sp-breadcrumb-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: rgba(250, 248, 243, 0.6); }
.sp-breadcrumb a { color: rgba(250, 248, 243, 0.75); }
.sp-breadcrumb a:hover { color: var(--gold-400); }
.sp-bc-current { color: var(--bone-50); }
.sp-hero-content { padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); max-width: 100%; }
.sp-hero-eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-400); font-weight: 600; margin-bottom: 18px; }
.sp-hero h1 { font-size: clamp(36px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -0.03em; max-width: 16ch; color: var(--bone-50); }
.sp-hero-content > p:not(.sp-hero-eyebrow) { margin-top: 22px; max-width: 58ch; font-size: clamp(17px, 1.3vw, 19px); color: rgba(250, 248, 243, 0.8); }
.sp-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
@media (max-width: 640px) { .sp-hero-actions .btn { flex: 1 1 auto; } }

/* Kompakter Kopf für Seiten ohne Hero (z. B. Nutzen-Rechner) */
.sp-topbar { background: var(--green-950); color: var(--bone-50); padding-top: var(--nav-h); }
.sp-topbar .sp-breadcrumb { padding: 16px 0; }

/* ---------- Sektionen ---------- */
.sp-section { padding: clamp(64px, 8vw, 112px) 0; }
.sp-section--compact { padding: clamp(28px, 4vw, 48px) 0; }
.sp-section--snug { padding: clamp(24px, 3vw, 40px) 0; }
.sp-section--beige { background: var(--bone-100); }
.sp-section--dark { background: var(--green-950); color: var(--bone-100); }
.sp-section--dark .sp-section-header h2 { color: var(--bone-50); }
.sp-section--dark .sp-section-header p { color: rgba(250, 248, 243, 0.75); }
.sp-section--dark a:not(.btn) { color: var(--gold-400); }

.sp-section-header { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }
.sp-section-header h2 { font-size: clamp(30px, 4vw, 48px); color: var(--green-900); }
.sp-section-header p { margin-top: 14px; font-size: 18px; color: var(--ink-soft); }
.sp-section-header .sp-eyebrow { display: none; }
.sp-eyebrow { display: inline-block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .13em; color: var(--gold-600); font-weight: 600; }
.sp-section-header--center { margin-inline: auto; text-align: center; }

/* ---------- Kennzahlen ---------- */
.sp-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding: 26px 0; border-top: 1px solid var(--bone-200); border-bottom: 1px solid var(--bone-200);
}
.sp-stat-number { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; color: var(--green-800); letter-spacing: -0.02em; line-height: 1.1; }
.sp-stat-label { font-size: 14.5px; color: var(--ink-mute); margin-top: 6px; }
@media (max-width: 720px) { .sp-stats { grid-template-columns: 1fr 1fr; gap: 20px 16px; } }

/* ---------- Leistungs-Kacheln ---------- */
.sp-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.sp-feature-box {
  background: var(--bone-50); border: 1px solid var(--bone-200); border-radius: var(--r-tile); padding: 30px 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.sp-section:not(.sp-section--beige) .sp-feature-box { background: #fff; }
.sp-feature-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-tile); border-color: transparent; }
.sp-feature-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--green-700); color: var(--gold-400); margin-bottom: 6px; }
.sp-feature-box h3 { font-size: 21px; color: var(--green-900); line-height: 1.2; }
.sp-feature-box p { color: var(--ink-soft); font-size: 15.5px; }
.sp-feature-box .sp-eyebrow { order: -1; font-size: 12px !important; }

/* ---------- Vorteile ---------- */
.sp-benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px 40px; }
.sp-benefit-item { padding-top: 22px; border-top: 2px solid var(--gold-500); }
.sp-benefit-icon { color: var(--green-700); margin-bottom: 16px; }
.sp-benefit-item h3 { font-size: 21px; color: var(--green-900); margin-bottom: 10px; }
.sp-benefit-item p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Prozess ---------- */
.sp-process { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; position: relative; }
.sp-process-step { position: relative; padding: 0 8px; }
.sp-process-num {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-500); color: var(--green-950); font-weight: 600; font-size: 20px; margin-bottom: 18px;
}
.sp-process-step h3 { font-size: 21px; color: var(--green-900); margin-bottom: 10px; }
.sp-process-step p { color: var(--ink-soft); font-size: 15.5px; }
@media (min-width: 900px) {
  .sp-process::before { content: ""; position: absolute; left: 36px; right: 36px; top: 28px; height: 2px; background: var(--bone-200); z-index: 0; }
  .sp-process-num { position: relative; z-index: 1; box-shadow: 0 0 0 8px var(--bone-100); }
  .sp-section:not(.sp-section--beige) .sp-process-num { box-shadow: 0 0 0 8px var(--bone-50); }
}

/* ---------- CTA-Band ---------- */
.sp-cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--green-900); color: var(--bone-50); padding: clamp(64px, 8vw, 112px) 0; }
.sp-cta-band-bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: .16; }
.sp-cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 50% 100%, rgba(211, 175, 60, 0.18), transparent 70%); }
.sp-cta-band-inner { max-width: 62ch; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.sp-cta-band h2 { font-size: clamp(30px, 4vw, 48px); color: var(--bone-50); }
.sp-cta-band p { font-size: 18px; color: rgba(250, 248, 243, 0.78); }
.sp-cta-band .btn { margin-top: 8px; }

/* ---------- FAQ ---------- */
.sp-faq-list { max-width: 820px; border-top: 1px solid var(--bone-200); }
.sp-faq-item { border-bottom: 1px solid var(--bone-200); }
.sp-faq-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left;
  padding: 22px 0; background: none; border: 0; cursor: pointer; font-size: 18px; font-weight: 600; color: var(--green-900); line-height: 1.35;
}
.sp-faq-trigger:hover { color: var(--green-700); }
.sp-faq-icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--gold-600); transition: transform .35s var(--ease); }
.sp-faq-trigger[aria-expanded="true"] .sp-faq-icon { transform: rotate(180deg); }
.sp-faq-panel { height: 0; overflow: hidden; }
.sp-faq-panel-inner { padding: 0 0 24px; max-width: 65ch; color: var(--ink-soft); font-size: 16.5px;
  opacity: 0; transform: translateY(-6px); transition: opacity .3s var(--ease), transform .35s var(--ease); }
.sp-faq-trigger[aria-expanded="true"] + .sp-faq-panel .sp-faq-panel-inner { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .sp-faq-panel-inner { transition: none; } }

/* ---------- Kontakt-Mini ---------- */
.sp-contact-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; max-width: 900px; }
.sp-contact-card { background: #fff; border: 1px solid var(--bone-200); border-radius: var(--r-tile); padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
@media (hover: hover) { .sp-contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-tile); border-color: transparent; } }
.sp-section--dark .sp-contact-card { background: rgba(250, 248, 243, 0.06); border-color: rgba(250, 248, 243, 0.12); }
.sp-contact-card h3 { font-size: 21px; color: var(--green-900); }
.sp-section--dark .sp-contact-card h3 { color: var(--bone-50); }
.sp-contact-card p { color: var(--ink-soft); font-size: 15.5px; }
.sp-section--dark .sp-contact-card p { color: rgba(250, 248, 243, 0.75); }
.sp-contact-card a { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--green-700); }
.sp-section--dark .sp-contact-card a { color: var(--gold-400); }
.sp-contact-card a:hover svg { transform: translateX(4px); }
.sp-contact-card svg { transition: transform .3s var(--ease); }

/* ---------- Zwei Spalten / Listen ---------- */
.sp-two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .sp-two-col { grid-template-columns: 1fr; } }
.sp-col-label { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .13em; color: var(--gold-600); font-weight: 600; margin-bottom: 18px; }
.sp-icon-list { display: grid; gap: 14px; }
.sp-icon-list-item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 18px; background: #fff; border-radius: 16px; border: 1px solid var(--bone-200); }
.sp-icon-list-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--green-700); color: var(--gold-400); }
.sp-icon-list-text h3, .sp-icon-list-text h4 { font-size: 17px; color: var(--green-900); margin-bottom: 4px; }
.sp-icon-list-text p { font-size: 15px; color: var(--ink-soft); }
.sp-check-list { display: grid; gap: 14px; }
.sp-check-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 16px; color: var(--ink-soft); }
.sp-check-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-500); color: var(--green-950); margin-top: 1px; }

/* ---------- Kundenstimme ---------- */
.sp-testimonial { padding: clamp(64px, 8vw, 112px) 0; background: var(--bone-100); }
.sp-testimonial-inner { max-width: 820px; }
.sp-testimonial-quote-mark { display: none; }
.sp-testimonial blockquote { margin: 0; padding: 28px 32px; border-left: 3px solid var(--gold-500); background: #fff; border-radius: 0 var(--r-tile) var(--r-tile) 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--green-900); font-weight: 500; }
.sp-testimonial cite { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; font-style: normal; font-size: 15px; color: var(--ink-mute); }
.sp-testimonial cite strong { color: var(--green-900); font-weight: 600; }

/* ---------- Varianten (Beratung & Technik) ---------- */
.variant-intro { max-width: 62ch; }
.variant-intro .section-label { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .13em; color: var(--gold-600); font-weight: 600; margin-bottom: 14px; }
.variant-intro h2 { font-size: clamp(30px, 4vw, 48px); color: var(--green-900); }
.variant-intro p { margin-top: 14px; font-size: 18px; color: var(--ink-soft); }
.variant-stack { background: var(--green-950); color: var(--bone-100); }
.variant-bg { display: none; }
.section-variant { padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid rgba(250, 248, 243, 0.08); }
.variant-inner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .variant-inner { grid-template-columns: 1fr; } }
.section-header-light .section-label { display: inline-block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .13em; color: var(--gold-400); font-weight: 600; margin-bottom: 14px; }
.section-header-light h2 { font-size: clamp(28px, 3.4vw, 42px); color: var(--bone-50); }
.section-header-light p { margin-top: 12px; color: rgba(250, 248, 243, 0.75); font-size: 17px; }
.variant-features { display: grid; gap: 12px; }
.variant-features li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 16px 18px; border-radius: 14px; background: rgba(250, 248, 243, 0.06); border: 1px solid rgba(250, 248, 243, 0.1); }
.variant-features svg { color: var(--gold-400); margin-top: 2px; }
.variant-features strong { display: block; color: var(--bone-50); font-weight: 600; font-size: 16px; }
.variant-features span { display: block; color: rgba(250, 248, 243, 0.7); font-size: 14.5px; margin-top: 2px; }
.variant-note { grid-column: 2; margin-top: 16px; font-size: 14px; color: rgba(250, 248, 243, 0.6); }
.variant-callout { grid-column: 2; margin-top: 18px; padding: 20px 22px; border-left: 3px solid var(--gold-500); background: rgba(211, 175, 60, 0.08); border-radius: 0 14px 14px 0; }
.variant-callout strong { color: var(--gold-400); display: block; margin-bottom: 8px; }
.variant-callout p { color: rgba(250, 248, 243, 0.8); font-size: 15px; }
.variant-cta { grid-column: 2; margin-top: 24px; }
.variant-cta .btn { white-space: normal; text-align: center; }
@media (max-width: 900px) { .variant-note, .variant-callout, .variant-cta { grid-column: 1; } }

/* ---------- Rechner-Einbettungen ---------- */
.section-rechner { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 112px); background: var(--bone-100); }
.solarisator-frame-wrapper { max-width: 1024px; margin: 0 auto; }
.embed-consent-placeholder {
  background: #fff; border: 1px solid var(--bone-200); border-radius: var(--r-tile); padding: clamp(24px, 4vw, 40px);
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
}
.embed-consent-text { color: var(--ink-soft); font-size: 15.5px; max-width: 70ch; }
.embed-consent-text a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
#solarisator-embed iframe { width: 100%; max-width: 1024px; height: 660px; border: 0; border-radius: var(--r-tile); background: #fff; }
.solarisator-source { max-width: 1024px; margin: 14px auto 0; font-size: 13.5px; color: var(--ink-mute); }
.solarisator-source a { color: var(--green-700); }
.ec-cta-card { max-width: 1024px; margin: 32px auto 0; background: var(--green-900); color: var(--bone-50); border-radius: var(--r-tile); padding: clamp(28px, 4vw, 44px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ec-cta-card h2 { font-size: clamp(24px, 2.8vw, 34px); color: var(--bone-50); }
.ec-cta-card p { color: rgba(250, 248, 243, 0.78); max-width: 56ch; }
.btn-calc-cta { display: inline-flex; align-items: center; justify-content: center; padding: 16px 30px; border-radius: 999px; background: var(--gold-500); color: var(--green-950); font-weight: 600; margin-top: 8px; transition: transform .25s var(--ease), background-color .25s; }
.btn-calc-cta:hover { background: var(--gold-400); transform: translateY(-2px); }

.spotpreis-chart-wrap { position: relative; height: 340px; margin-top: 24px; background: #fff; border: 1px solid var(--bone-200); border-radius: var(--r-tile); padding: 20px; }
.spotpreis-fallback { display: none; margin-top: 24px; padding: 20px; border-radius: var(--r-input); background: #f8e3e3; color: #7a2323; }
.spotpreis-disclaimer { margin-top: 18px; font-size: 13.5px; color: var(--ink-mute); max-width: 80ch; }
.spotpreis-disclaimer a { color: var(--green-700); }
@media (max-width: 640px) { .spotpreis-chart-wrap { height: 260px; padding: 12px; } }

/* ---------- Termin ---------- */
.termin-header-section { background: radial-gradient(120% 90% at 80% 20%, #163a30 0%, var(--green-900) 45%, var(--green-950) 100%); color: var(--bone-50); padding: calc(var(--nav-h) + clamp(48px, 7vw, 88px)) 0 clamp(40px, 5vw, 64px); }
.termin-header-section .section-header { max-width: 62ch; }
.termin-header-section .section-label { display: inline-block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .13em; color: var(--gold-400); font-weight: 600; margin-bottom: 16px; }
.termin-header-section h1 { font-size: clamp(36px, 5.2vw, 64px); color: var(--bone-50); }
.termin-header-section p { margin-top: 18px; font-size: 18px; color: rgba(250, 248, 243, 0.8); }
.termin-hinweis { font-size: 15px !important; color: rgba(250, 248, 243, 0.62) !important; }
.termin-trust-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.termin-trust-item { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: rgba(250, 248, 243, 0.08); border: 1px solid rgba(250, 248, 243, 0.14); font-size: 14.5px; font-weight: 500; }
.termin-trust-item svg { color: var(--gold-400); }
.termin-booking-section { padding: clamp(40px, 5vw, 64px) 0; }
.booking-fallback { font-size: 14px; color: var(--ink-mute); margin-bottom: 14px; }
.booking-fallback a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
.booking-embed { background: #fff; border: 1px solid var(--bone-200); border-radius: var(--r-tile); overflow: hidden; box-shadow: 0 30px 60px -40px rgba(15, 42, 35, 0.25); }
.booking-embed iframe { display: block; width: 100%; height: 1100px; border: 0; }
.termin-alt-section { padding: 0 0 clamp(72px, 9vw, 120px); }
.termin-alt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.termin-alt-card { background: var(--bone-100); border-radius: var(--r-tile); padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.termin-alt-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--green-700); color: var(--gold-400); margin-bottom: 8px; }
.termin-alt-card h3 { font-size: 20px; color: var(--green-900); }
.termin-alt-card p { color: var(--ink-soft); font-size: 15.5px; }
.termin-alt-link { margin-top: 6px; font-weight: 600; color: var(--green-700); }

/* ---------- Ratgeber / Legal ---------- */
.sp-cta-box { background: var(--green-900); color: var(--bone-50); border-radius: var(--r-tile); padding: clamp(32px, 5vw, 56px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sp-cta-box h2 { font-size: clamp(26px, 3.2vw, 40px); color: var(--bone-50); }
.sp-cta-box p { color: rgba(250, 248, 243, 0.78); max-width: 56ch; font-size: 17px; }
.sp-cta-box .btn { margin-top: 8px; }

/* ---------- Ratgeber-Artikel ---------- */
.sp-article-body { max-width: 72ch; }
.sp-article-body > div + div { margin-top: clamp(32px, 4vw, 52px); }
.sp-article-body h2 { font-size: clamp(24px, 2.8vw, 34px); color: var(--green-900); margin-bottom: 16px; }
.sp-article-body h3 { font-size: 19px; color: var(--green-800); margin: 26px 0 8px; }
.sp-article-body p { margin-bottom: 14px; color: var(--ink-soft); font-size: 17px; line-height: 1.65; }
.sp-article-body p strong { color: var(--green-900); font-weight: 600; }
.sp-article-body ul { display: grid; gap: 10px; margin: 14px 0 18px; }
.sp-article-body ul li {
  position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 17px; line-height: 1.6;
}
.sp-article-body ul li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500);
}
.sp-article-body a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
.sp-article-body a:hover { color: var(--green-900); }

/* Vergleichstabelle im Artikel */
.sp-table-wrap { overflow-x: auto; margin: 20px 0 8px; border-radius: var(--r-tile); border: 1px solid var(--bone-200); background: #fff; }
.sp-table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 620px; }
.sp-table th, .sp-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--bone-200); }
.sp-table thead th { background: var(--green-800); color: var(--bone-50); font-weight: 600; font-size: 14.5px; border-bottom: 0; }
.sp-table tbody th { font-weight: 600; color: var(--green-900); }
.sp-table tbody td { color: var(--ink-soft); }
.sp-table tbody tr:last-child th, .sp-table tbody tr:last-child td { border-bottom: 0; }
.sp-table tbody tr:nth-child(even) th, .sp-table tbody tr:nth-child(even) td { background: var(--bone-100); }

/* Dunkle Variante der CTA-Box (Spotpreis-Hinweis im Artikel) */
.sp-cta-box--dark { background: var(--green-950); }
.sp-cta-box--dark h2 { color: var(--gold-400); }

/* ---------- Impressum & Datenschutz ---------- */
.legal-page { padding: 0 0 clamp(72px, 9vw, 120px); }
.legal-header {
  background: radial-gradient(120% 90% at 80% 20%, #163a30 0%, var(--green-900) 45%, var(--green-950) 100%);
  color: var(--bone-50); margin-inline: calc(50% - 50vw); padding-inline: max(var(--gutter), calc(50vw - var(--container) / 2));
  padding-top: var(--nav-h); padding-bottom: clamp(40px, 5vw, 64px);
}
.legal-header .sp-breadcrumb { width: auto; padding: 18px 0 clamp(28px, 4vw, 48px); }
.legal-header h1 { font-size: clamp(34px, 4.6vw, 56px); color: var(--bone-50); }
.legal-meta { margin-top: 14px; font-size: 15px; color: rgba(250, 248, 243, 0.7); }
.legal-body { max-width: 74ch; padding-top: clamp(40px, 5vw, 64px); }
.legal-body h2 { font-size: clamp(21px, 2.2vw, 27px); color: var(--green-900); margin: 36px 0 14px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 17.5px; color: var(--green-800); margin: 24px 0 8px; }
.legal-body p { margin-bottom: 14px; color: var(--ink-soft); font-size: 16.5px; line-height: 1.7; }
.legal-body p strong { color: var(--green-900); font-weight: 600; }
.legal-body ul { display: grid; gap: 9px; margin: 12px 0 18px; }
.legal-body ul li { position: relative; padding-left: 24px; color: var(--ink-soft); font-size: 16.5px; line-height: 1.6; }
.legal-body ul li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }
.legal-body a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.legal-body a:hover { color: var(--green-900); }
.legal-divider { border: 0; border-top: 1px solid var(--bone-200); margin: 34px 0; }
.legal-timestamp { margin-top: 32px; font-size: 14px; color: var(--ink-mute); }
.fairness-badge { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px; background: var(--bone-100); border-radius: var(--r-tile); }
.fairness-badge img { width: 72px; height: 72px; object-fit: contain; }
.fairness-badge-text { display: flex; flex-direction: column; gap: 4px; }
.fairness-badge-text strong { color: var(--green-900); font-weight: 600; }
.fairness-badge-text a { color: var(--green-700); font-size: 15px; }

/* ---------- Nutzen-Rechner: eigenes Ergebnis-Dock statt Kontaktleiste ---------- */
.page--nutzen .dock { display: none !important; }
@media (max-width: 899px) { .page--nutzen .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* ---------- Reveal-Basis ---------- */
.reveal { will-change: transform, opacity; }

/* ---------- Druck: Kopf/Fuß/Dock ausblenden ---------- */
@media print {
  .nav, .dock, .footer, .ergebnis-dock { display: none !important; }
  /* Scroll-Einblendungen im Druck aufheben, sonst fehlen ungescrollte Abschnitte */
  .reveal, [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Batteriespeicher & Energiehandel ---------- */
.bs-hero-chart {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(200deg, #000 0%, rgba(0,0,0,.5) 55%, transparent 80%);
          mask-image: linear-gradient(200deg, #000 0%, rgba(0,0,0,.5) 55%, transparent 80%);
}
.bs-hero-chart svg { position: absolute; top: 12%; right: -4%; width: min(56%, 720px); height: auto; opacity: .55; }

.bs-models { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; margin-bottom: clamp(28px, 4vw, 44px); }
.bs-model {
  background: #fff; border: 1px solid var(--bone-200); border-radius: var(--r-tile);
  padding: clamp(26px, 3vw, 38px); display: flex; flex-direction: column; gap: 14px;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.sp-section--beige .bs-model { background: var(--bone-50); }
.bs-model:hover { transform: translateY(-4px); box-shadow: var(--shadow-tile); border-color: transparent; }
.bs-model-tag {
  align-self: flex-start; padding: 6px 13px; border-radius: 999px;
  background: var(--green-700); color: var(--gold-400);
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.bs-model h3 { font-size: clamp(22px, 2.4vw, 28px); color: var(--green-900); }
.bs-model-lead { color: var(--ink-soft); font-size: 17px; line-height: 1.6; }
.bs-model .sp-check-list { margin-top: 4px; }
.bs-model-note {
  margin-top: auto; padding: 16px 18px; border-radius: 14px;
  background: var(--bone-100); border-left: 3px solid var(--gold-500);
  font-size: 15.5px; line-height: 1.6; color: var(--ink-soft);
}
.sp-section--beige .bs-model-note { background: #fff; }
.bs-model-note strong { color: var(--green-900); }
.bs-tradingday { margin-top: clamp(32px, 4vw, 48px); }

@media (max-width: 860px) {
  .bs-hero-chart svg { width: 92%; right: -10%; top: auto; bottom: -4%; opacity: .3; }
}

/* Preisspreizung 2016 / 2026 / 2030 */
.bs-spread-chart {
  background: #fff; border: 1px solid var(--bone-200); border-radius: var(--r-tile);
  padding: clamp(18px, 3vw, 34px); margin-bottom: clamp(28px, 4vw, 44px);
}
.sp-section--beige .bs-spread-chart { background: var(--bone-50); }
.bs-spread-chart svg { display: block; width: 100%; height: auto; }
.bs-grid { stroke: var(--bone-200); stroke-width: 1; }
.bs-zero { stroke: var(--green-800); stroke-width: 1.5; stroke-dasharray: 5 4; }
.bs-axis text { fill: var(--ink-soft); font-size: 13px; font-weight: 500; }
.bs-minus { fill: #B24A30; font-size: 12.5px; font-weight: 600; letter-spacing: .03em; }
.bs-bar { fill: var(--gold-500); }

.bs-spread { fill: var(--green-900); font-size: 19px; font-weight: 700; }
.bs-year { fill: var(--green-900); font-size: 17px; font-weight: 600; }
.bs-sub { fill: var(--ink-soft); font-size: 12.5px; }
.bs-source { font-size: 14.5px !important; color: var(--ink-soft); opacity: .85; margin-top: 8px; }
.bs-source a { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 560px) {
  .bs-axis text { font-size: 15px; }
  .bs-sub { font-size: 14px; }
  .bs-spread { font-size: 22px; }
  .bs-year { font-size: 20px; }
  .bs-minus { font-size: 15px; }
}
.bs-bar--goal { fill: var(--green-700); }
.bs-now { fill: var(--gold-600, #B8952F); font-size: 12.5px; font-weight: 600; }

/* Handelsrechner auf Basis echter Börsenpreise */
.hd-tool { background: #fff; border: 1px solid var(--bone-200); border-radius: var(--r-tile); padding: clamp(20px, 3vw, 34px); margin-bottom: clamp(28px, 4vw, 44px); }
.sp-section--beige .hd-tool { background: var(--bone-50); }
.hd-head { display: grid; grid-template-columns: 1fr auto; gap: clamp(20px, 3vw, 40px); align-items: end; margin-bottom: 26px; }
.hd-label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--green-700); margin-bottom: 12px; }
.hd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hd-chip {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--bone-200); background: transparent;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--ink-soft); cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.hd-chip:hover { border-color: var(--green-700); color: var(--green-900); }
.hd-chip.is-on { background: var(--green-700); border-color: var(--green-700); color: var(--bone-50); }
.hd-results { display: flex; gap: clamp(18px, 3vw, 34px); }
.hd-result { display: flex; flex-direction: column; gap: 4px; }
.hd-result-num { font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; letter-spacing: -.02em; color: var(--green-900); line-height: 1.05; }
.hd-result--accent .hd-result-num { color: var(--gold-600, #B8952F); }
.hd-result-lbl { font-size: 13.5px; color: var(--ink-soft); max-width: 22ch; }
.hd-chart-wrap { position: relative; height: 340px; }
.hd-table { margin-top: 22px; }
.hd-table summary { cursor: pointer; font-weight: 600; color: var(--green-700); font-size: 15.5px; padding: 6px 0; }
.hd-table summary:hover { color: var(--green-900); }
.hd-table .sp-table small { font-weight: 400; color: var(--ink-soft); }
@media (max-width: 780px) {
  .hd-head { grid-template-columns: 1fr; align-items: start; }
  .hd-results { flex-wrap: wrap; }
  .hd-chart-wrap { height: 320px; }
}
.hd-note { margin-top: 10px; font-size: 13.5px; color: var(--ink-soft); opacity: .85; }

/* Kaufimpuls: Anschlüsse direkt an der Zahl */
.sp-hero-note { margin-top: 16px !important; font-size: 14.5px !important; color: rgba(250,248,243,.62) !important; }
.hd-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 22px; padding: 18px 20px; border-radius: 16px;
  background: var(--bone-100); border: 1px solid var(--bone-200);
}
.sp-section--beige .hd-cta { background: #fff; }
.hd-cta > span { font-size: 16px; color: var(--green-900); font-weight: 500; max-width: 46ch; }
.hd-cta .btn { flex: 0 0 auto; }
.bs-timing {
  margin-top: clamp(28px, 4vw, 44px); padding: clamp(24px, 3vw, 34px);
  border-radius: var(--r-tile); background: #fff; border: 1px solid var(--bone-200);
  border-left: 4px solid var(--gold-500);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.sp-section--beige .bs-timing { background: var(--bone-50); }
.bs-timing p { margin: 0; color: var(--ink-soft); font-size: 16.5px; line-height: 1.6; max-width: 62ch; }
.bs-timing strong { color: var(--green-900); }
.sp-cta-band-note { margin-top: 14px; font-size: 14px; color: rgba(250,248,243,.6); }
@media (max-width: 640px) {
  .hd-cta, .bs-timing { flex-direction: column; align-items: stretch; }
  .hd-cta .btn, .bs-timing .btn { text-align: center; }
}
/* Sprungziele nicht unter die fixierte Navigation schieben */
.sp-section[id], [id^="modelle"] { scroll-margin-top: calc(var(--nav-h) + 20px); }

/* Rechner als Investorenwerkzeug */
.hd-inputs { display: grid; grid-template-columns: 1fr auto; gap: clamp(20px, 3vw, 40px); align-items: start; margin-bottom: 24px; }
.hd-controls--cost { min-width: 200px; }
.hd-field { display: flex; align-items: center; gap: 8px; }
.hd-field input {
  width: 110px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--bone-200);
  background: #fff; font: inherit; font-size: 17px; font-weight: 600; color: var(--green-900);
}
.hd-field input:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 1px; border-color: var(--gold-500); }
.hd-unit { font-size: 15px; color: var(--ink-soft); font-weight: 500; }
.hd-hint { margin-top: 8px; font-size: 13px; color: var(--ink-soft); opacity: .85; max-width: 24ch; }
.hd-results {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: clamp(16px, 2.4vw, 30px);
  padding: 22px 0 26px; border-top: 1px solid var(--bone-200); border-bottom: 1px solid var(--bone-200); margin-bottom: 26px;
}
.hd-result--soft .hd-result-num { color: var(--ink-soft); font-weight: 500; }
.hd-cta > span { max-width: 52ch; }

/* Anschlussleistung als Hebel */
.an-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; margin-bottom: clamp(30px, 4vw, 48px); }
.an-item { padding: 26px 24px; border-radius: var(--r-tile); background: rgba(250, 248, 243, 0.06); border: 1px solid rgba(250, 248, 243, 0.12); }
.an-num {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold-500); color: var(--green-950); font-weight: 700; font-size: 15px; margin-bottom: 14px;
}
.an-item h3 { font-size: 19px; color: var(--bone-50); margin-bottom: 8px; }
.an-item p { font-size: 15.5px; line-height: 1.6; color: rgba(250, 248, 243, 0.78); }
.sp-section--dark .sp-eyebrow { color: var(--gold-400); }

@media (max-width: 780px) {
  .hd-inputs { grid-template-columns: 1fr; }
  .hd-results { grid-template-columns: repeat(2, 1fr); }
}
.hd-result--wide { grid-column: span 2; }
@media (max-width: 780px) { .hd-result--wide { grid-column: span 2; } }

/* 3D-Ertragsbühne im Rechner */
.er-stage {
  position: relative; height: clamp(280px, 34vw, 420px); margin-bottom: 18px;
  border-radius: var(--r-tile); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 105%, rgba(36,81,69,.16), transparent 68%);
  touch-action: pan-y;
}
.er-stage.has-3d { cursor: grab; }
.er-stage--zieht { cursor: grabbing; }
.er-stage canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .7s ease; }
.er-stage.has-3d canvas { opacity: 1; }
.er-stage--kein-3d { display: none; }
.er-hint {
  position: absolute; left: 0; right: 0; bottom: 8px; text-align: center;
  font-size: 12.5px; color: var(--ink-soft); opacity: .65; margin: 0; pointer-events: none;
}
.er-stage:not(.has-3d) .er-hint { display: none; }
.er-tip {
  position: absolute; z-index: 2; pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
  background: var(--green-950); color: var(--bone-50);
  padding: 10px 14px; border-radius: 12px; box-shadow: 0 10px 30px rgba(11,31,25,.35);
  display: grid; gap: 2px; white-space: nowrap; font-size: 13.5px; line-height: 1.45;
}
.er-tip strong { font-size: 14.5px; }
.er-tip span { color: rgba(250,248,243,.72); }
.er-tip em { font-style: normal; font-weight: 600; color: var(--gold-400); margin-top: 3px; }
@media (prefers-reduced-motion: reduce) { .er-stage canvas { transition: none; } }
.bs-intro { font-size: clamp(18px, 1.9vw, 21px) !important; line-height: 1.6 !important; color: var(--green-800) !important; max-width: 62ch; }

/* Zahlen in Tabellen, Kennzahlen und Ergebnissen gleich breit */
.sp-stat-number, .sp-table td, .sp-table th[scope="row"], .hd-result-num, .hd-chip, .er-tip, .bs-spread-chart text { font-variant-numeric: tabular-nums; }
.hd-cta > span, .bs-timing p { min-width: 0; }
/* Beim Drehen der 3D-Bühne keinen Text markieren */
.er-stage { -webkit-user-select: none; user-select: none; }

/* Rechner-Eingaben: sichtbarer Fokusersatz, wo die Rechner-Styles outline entfernen */
.page--nutzen .er-input:focus-visible, .page--nutzen .er-select:focus-visible,
.page--unabhaengigkeit .dr-input:focus-visible, .page--unabhaengigkeit .dr-select:focus-visible,
.page--heizkosten .ec-calc-wrap input:focus-visible, .page--heizkosten .ec-calc-wrap select:focus-visible {
  outline: 3px solid var(--gold-500); outline-offset: 2px;
}
/* Kopf des Expertenmodus ist jetzt eine echte Schaltfläche */
button.accord-hdr { width: 100%; border: 0; font-family: inherit; line-height: inherit; text-align: left; }

/* Konfigurationswahl: Energieinhalt × Wechselrichterleistung */
.hd-inputs { grid-template-columns: auto 1fr; row-gap: 18px; }
.hd-inputs > .hd-controls:first-child,
.hd-inputs > .hd-konfig,
.hd-inputs > .hd-hint { grid-column: 1 / -1; }
.hd-inputs > .hd-hint { max-width: 72ch; margin-top: 0; text-wrap: pretty; }
.hd-konfig {
  margin: 0; padding: 14px 18px; border-radius: 14px;
  background: var(--bone-50); border: 1px solid var(--bone-200); border-left: 4px solid var(--gold-500);
  font-size: 15px; line-height: 1.55; color: var(--ink-soft); font-variant-numeric: tabular-nums;
}
.sp-section--beige .hd-konfig { background: #fff; }
.hd-konfig strong { color: var(--green-900); font-size: 16px; }
.hd-konfig-last { display: block; margin-top: 2px; color: var(--green-800, var(--green-900)); font-weight: 500; }
@media (max-width: 780px) { .hd-inputs { grid-template-columns: 1fr; } }
.hd-konfig-hinweis {
  display: block; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px dashed var(--bone-200);
  color: var(--green-900); font-weight: 600;
}
.hd-konfig-markt { font-weight: 400; color: var(--ink-soft); }
