/* ============================================
   PV Sofortangebot – Design System
   modern | minimalist | seriös | energiebranche
   ============================================ */

:root {
  --color-primary: #0F3D5E;
  --color-secondary: #2FA36B;
  --color-background: #F7F9FB;
  --color-text: #1B2430;
  --color-muted: #6B7280;
  --color-white: #ffffff;
  --max-width: 1200px;
  --radius-card: 12px;
  --radius-btn: 8px;
  --shadow-soft: 0 4px 20px rgba(15, 61, 94, 0.08);
  --shadow-hover: 0 8px 30px rgba(15, 61, 94, 0.12);
  --font-family: 'Inter', system-ui, Arial, sans-serif;
  --transition: 0.2s ease;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-background);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary);
}

/* ========== Layout ========== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

.section--alt {
  background: var(--color-white);
}

/* ========== Header (Sticky) ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(15, 61, 94, 0.08);
  border-bottom: 1px solid rgba(15, 61, 94, 0.06);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.header--scrolled {
  box-shadow: 0 12px 32px rgba(15, 61, 94, 0.12);
  border-bottom-color: rgba(15, 61, 94, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  transition: padding 0.25s ease;
}

.header--scrolled .header__inner {
  padding: 12px 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.header__logo:hover {
  color: var(--color-primary);
}

.header__logo img {
  display: block;
  height: 58px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  transition: opacity 0.2s ease, height 0.25s ease;
}

.header--scrolled .header__logo img {
  height: 50px;
}

.header__logo:hover img {
  opacity: 0.88;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.header__link {
  padding: 10px 14px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-btn);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.header__link:hover {
  color: var(--color-secondary);
  background: rgba(47, 163, 107, 0.08);
}

.header__link:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

.header__cta {
  flex-shrink: 0;
}

.header__cta .btn {
  padding: 14px 28px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(47, 163, 107, 0.25);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.header__cta .btn:hover {
  box-shadow: 0 6px 20px rgba(47, 163, 107, 0.35);
  transform: translateY(-1px);
}

.header__cta .btn:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Mobile menu trigger */
.header__menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  color: var(--color-primary);
  border-radius: var(--radius-btn);
  transition: background 0.2s ease;
}

.header__menu-btn:hover {
  background: rgba(15, 61, 94, 0.06);
}

@media (max-width: 900px) {
  .header__inner {
    padding: 14px 20px;
  }
  .header--scrolled .header__inner {
    padding: 10px 20px;
  }
  .header__nav {
    display: none;
  }
  .header__logo img {
    height: 44px;
  }
  .header--scrolled .header__logo img {
    height: 40px;
  }
  .header__nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 16px 20px;
    box-shadow: 0 12px 32px rgba(15, 61, 94, 0.12);
    border-bottom: 1px solid rgba(15, 61, 94, 0.06);
  }
  .header__nav.is-open .header__link {
    padding: 12px 16px;
  }
  .header__menu-btn {
    display: block;
  }
  .header__cta {
    margin-left: auto;
  }
  .header__cta .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn--primary {
  background: var(--color-secondary);
  color: var(--color-white);
}

.btn--primary:hover {
  background: #3db878;
  box-shadow: var(--shadow-hover);
}

.btn--primary:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

.btn--secondary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--secondary:hover {
  background: #0d3450;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 60px 0;
  background: var(--color-primary);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-text {
  /* Text-Spalte: bestehende .hero__content-Styles greifen */
}

.hero-image {
  position: relative;
  max-width: 760px;
  justify-self: end;
  animation: heroFloat 6s ease-in-out infinite;
}

.hero-image img {
  width: 100%;
  max-width: 760px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  display: block;
}

/* Legacy: nicht mehr im Markup */
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__content {
  max-width: 520px;
  margin-left: 0;
}

.hero__content h1 {
  margin: 0 0 20px;
  font-size: clamp(2.5rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero__subheadline {
  margin: 0 0 24px;
  max-width: 520px;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.hero__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.hero__bullets li {
  padding: 6px 0;
  padding-left: 28px;
  position: relative;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.hero__bullets li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 700;
}

.hero__cta {
  padding: 14px 28px;
  font-weight: 600;
  border-radius: 10px;
  background: var(--color-secondary);
  color: var(--color-white);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 14px rgba(47, 163, 107, 0.35);
}

.cta-primary {
  padding: 16px 34px;
  font-size: 17px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.hero__cta:hover {
  background: #289a5c;
  box-shadow: 0 6px 20px rgba(47, 163, 107, 0.45);
  transform: translateY(-1px);
}

.hero__cta:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

.hero__trustline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-trust {
  font-size: 15px;
  opacity: 0.9;
  margin-top: 12px;
}

.hero__trustline span {
  white-space: nowrap;
}

@keyframes heroFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Hero: Mobile – einspaltig, Bild unter Text */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-text {
    order: 1;
  }

  .hero-image {
    order: 2;
    max-width: 100%;
    justify-self: stretch;
  }

  .hero-image img {
    max-height: 320px;
    object-fit: cover;
  }
}

.trust-bar {
  text-align: center;
  padding: 28px 20px;
  background: #f7f9fb;
}

.stars {
  color: #f5c518;
  font-size: 18px;
  margin-right: 8px;
}

.trust-bar p {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.5;
}

.trust-points {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 10px;
  font-size: 14px;
  color: #4c5a67;
}

@media (max-width: 768px) {
  .hero {
    min-height: 0;
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .hero__content {
    padding: 0;
  }

  .hero__content h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .hero__subheadline {
    font-size: 1rem;
  }

  .hero__cta {
    width: 100%;
    font-size: 16px;
    padding: 16px;
    text-align: center;
    box-sizing: border-box;
  }

  .cta-primary {
    width: 100%;
    font-size: 16px;
    padding: 16px;
  }

  .header__cta {
    display: none !important;
  }

  .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    padding: 14px 20px;
  }

  .header__logo {
    display: block;
  }

  .header__logo img {
    display: block;
    width: auto;
    max-height: 38px;
    height: auto;
  }

  .header__menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    flex-shrink: 0;
  }

  body {
    padding-bottom: 90px;
  }

  .trust-points {
    flex-direction: column;
    gap: 6px;
  }

  .mobile-sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    z-index: 9999;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0));
    pointer-events: none;
  }

  .mobile-sticky-cta__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    border-radius: 14px;
    background: #35a86b;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    pointer-events: auto;
    padding: 0 18px;
    transition: all 0.2s ease;
    box-sizing: border-box;
  }

  .mobile-sticky-cta__button:hover,
  .mobile-sticky-cta__button:active {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  }
}

@media (min-width: 769px) {
  .mobile-sticky-cta {
    display: none !important;
  }
}

/* ========== Sections – Typography ========== */
.section__title {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-primary);
}

.section__lead {
  margin: 0 0 32px;
  font-size: 1.125rem;
  color: var(--color-muted);
  max-width: 720px;
}

/* ========== Vorteile Cards ========== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--color-white);
  padding: 28px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-benefit {
  transition: all 0.25s ease;
}

.card-benefit:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.card__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* ========== Vorher/Nachher Slider ========== */
.vorher-nachher__wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

/* PV-Slider (Vorher/Nachher Bilder) */
.pv-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  background: var(--color-background);
}

.pv-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: transparent;
}

.pv-slider-before,
.pv-slider-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.pv-slider-before {
  z-index: 1;
  background: #6b7c8a;
}

.pv-slider-after {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  background: #2d5a3d;
}

.pv-slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

/* Sichtbarer Slider-Griff (Trennlinie + Griff) */
.pv-slider-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pv-value, 50%);
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pv-slider-divider__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.pv-slider-divider__grip {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: -2px;
}

.vorher-nachher__track {
  position: relative;
  width: 100%;
  max-height: 520px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  background: var(--color-background);
}

.vorher-nachher__caption {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  padding: 20px 22px;
  border-radius: var(--radius-btn);
  max-width: 240px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.vorher-nachher__wrapper.vn-state-left .vorher-nachher__caption--alt {
  opacity: 1;
  transform: translateY(-50%) scale(1.02);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.vorher-nachher__wrapper.vn-state-left .vorher-nachher__caption--neu {
  opacity: 0.78;
  transform: translateY(-50%) scale(0.98);
}

.vorher-nachher__wrapper.vn-state-right .vorher-nachher__caption--alt {
  opacity: 0.78;
  transform: translateY(-50%) scale(0.98);
}

.vorher-nachher__wrapper.vn-state-right .vorher-nachher__caption--neu {
  opacity: 1;
  transform: translateY(-50%) scale(1.02);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.vorher-nachher__caption--alt {
  left: 20px;
}

.vorher-nachher__caption--neu {
  right: 20px;
  left: auto;
}

.vorher-nachher__caption-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}

.vorher-nachher__caption--alt .vorher-nachher__caption-title {
  color: #7a5f1a;
}

.vorher-nachher__caption--neu .vorher-nachher__caption-title {
  color: var(--color-secondary);
}

.vorher-nachher__list {
  margin: 0 0 14px;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-text);
}

.vorher-nachher__list li {
  margin-bottom: 4px;
}

.vorher-nachher__hint {
  margin: 0 0 12px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--color-text);
  opacity: 0.65;
  transition: opacity 0.35s ease;
}

.vorher-nachher__wrapper.vn-state-left .vorher-nachher__caption--alt .vorher-nachher__hint,
.vorher-nachher__wrapper.vn-state-right .vorher-nachher__caption--neu .vorher-nachher__hint {
  opacity: 1;
}

.vorher-nachher__wrapper.vn-state-left .vorher-nachher__caption--neu .vorher-nachher__hint,
.vorher-nachher__wrapper.vn-state-right .vorher-nachher__caption--alt .vorher-nachher__hint {
  opacity: 0.5;
}

.vorher-nachher__cost {
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: block;
}

.vorher-nachher__cost-label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text);
  margin-bottom: 4px;
}

.vorher-nachher__cost-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: #7a5f1a;
  transition: opacity 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.vorher-nachher__wrapper.vn-state-left .vorher-nachher__caption--alt .vorher-nachher__cost-value {
  opacity: 1;
  color: #6b5014;
}

.vorher-nachher__wrapper.vn-state-left .vorher-nachher__caption--neu .vorher-nachher__cost-value,
.vorher-nachher__wrapper.vn-state-left .vorher-nachher__caption--neu .vorher-nachher__badge {
  opacity: 0.75;
}

.vorher-nachher__wrapper.vn-state-right .vorher-nachher__caption--neu .vorher-nachher__cost-value,
.vorher-nachher__wrapper.vn-state-right .vorher-nachher__caption--neu .vorher-nachher__badge {
  opacity: 1;
}

.vorher-nachher__wrapper.vn-state-right .vorher-nachher__caption--alt .vorher-nachher__cost-value,
.vorher-nachher__wrapper.vn-state-right .vorher-nachher__caption--alt .vorher-nachher__badge {
  opacity: 0.75;
}

.vorher-nachher__cost-value--neu {
  color: var(--color-secondary);
}

.vorher-nachher__badge {
  margin: 12px 0 0;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-secondary);
  border-radius: 6px;
  text-align: center;
  line-height: 1.3;
  transition: opacity 0.35s ease, background-color 0.35s ease;
}

.vorher-nachher__intro {
  max-width: 1100px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
}

.vorher-nachher__cta-wrap {
  max-width: 1100px;
  margin: 20px auto 0;
  text-align: center;
}

.vorher-nachher__cta {
  display: inline-block;
}

.vorher-nachher__cta-hint {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .vorher-nachher__track {
    aspect-ratio: auto;
    max-height: none;
    position: static;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: var(--radius-card);
    overflow: visible;
    box-shadow: none;
    background: transparent;
  }

  .pv-slider {
    order: 1;
    border-radius: 14px;
    overflow: hidden;
  }

  .vorher-nachher__caption--alt {
    order: 2;
    border-left: 4px solid #b4532a;
  }

  .vorher-nachher__caption--neu {
    order: 3;
    border-left: 4px solid var(--color-secondary);
  }

  .vorher-nachher__caption {
    position: static !important;
    max-width: none;
    width: 100%;
    padding: 24px 20px;
    border-radius: var(--radius-card);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: #fff;
    opacity: 1;
    transform: none !important;
    pointer-events: auto;
  }

  .vorher-nachher__caption-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .vorher-nachher__list {
    font-size: 0.9375rem;
    padding-left: 1.25rem;
    margin-bottom: 12px;
  }

  .vorher-nachher__hint {
    font-size: 0.875rem;
    margin-bottom: 12px;
  }

  .vorher-nachher__cost-label {
    font-size: 0.875rem;
  }

  .vorher-nachher__cost-value {
    font-size: 1.125rem;
  }

  .vorher-nachher__badge {
    font-size: 0.875rem;
    padding: 8px 12px;
    margin-top: 12px;
  }

  .vorher-nachher__intro {
    margin-top: 20px;
    font-size: 0.95rem;
    padding: 0 8px;
  }

  .vorher-nachher__cta-wrap {
    margin-top: 16px;
    padding: 0 8px;
  }

  .vorher-nachher__cta {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .vorher-nachher__cta-hint {
    font-size: 0.85rem;
  }
}

/* ========== Funktionsweise ========== */
.funktionsweise__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-weight: 600;
}

/* ========== Anfrage Ablauf ========== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  background: var(--color-white);
  padding: 32px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  text-align: center;
  position: relative;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-secondary);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 50%;
  margin: 0 auto 16px;
}

.step__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
}

@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ========== SEO Links Section ========== */
.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.seo-links a {
  display: inline-block;
  padding: 10px 18px;
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: var(--radius-btn);
  font-weight: 500;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 61, 94, 0.1);
}

.seo-links a:hover {
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: transparent;
}

/* ========== Form (Lead Section) ========== */
.form-section {
  background: radial-gradient(circle at 30% 30%, #1d4b6b, #0e2e47);
  color: #fff;
  padding: 64px 0 72px;
}

.form-section__container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.lead-form {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 48px 56px;
  align-items: start;
}

.lead-form__left {
  padding-top: 8px;
}

.lead-form__eyebrow {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-secondary);
}

.lead-form__title {
  margin: 0 0 20px;
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.lead-form__text {
  margin: 0 0 24px;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.lead-form__benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.lead-form__benefits li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.lead-form__benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 1rem;
}

.lead-counter {
  display: flex;
  flex-direction: column;
  gap: 2px 0;
  margin: 0 0 0;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
}

.counter-label {
  font-size: 13px;
  opacity: 0.7;
  color: #fff;
}

.counter-number {
  font-size: 36px;
  font-weight: 700;
  color: #2f9e64;
  line-height: 1.1;
}

.counter-text {
  font-size: 14px;
  opacity: 0.8;
  color: #fff;
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.9;
  color: #fff;
}

.trust-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 4px;
}

.trust-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 700;
}

.anfragen-counter--compact {
  max-width: none;
  margin: 0 0 28px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.anfragen-counter--compact .anfragen-counter__label {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
}

.anfragen-counter--compact .anfragen-counter__number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.anfragen-counter--compact .anfragen-counter__text {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
}

.anfragen-counter--compact .anfragen-counter__trust {
  display: none;
}

.lead-form__für-wen {
  margin-bottom: 20px;
}

.lead-form__subtitle {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.lead-form__subtext {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
}

.lead-form__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 28px;
}

.lead-form__chip {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lead-form__trust-block {
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lead-form__trust-title {
  margin: 0 0 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.lead-form__trust-list {
  margin: 0;
  padding-left: 20px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.lead-form__trust-list li {
  margin-bottom: 4px;
}

.form-section__below {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.form-section__below .lead-form__für-wen {
  margin-bottom: 0;
}

.form-section__below .lead-form__trust-block {
  padding: 0;
  border-top: none;
}

.form-card {
  background: #fff;
  padding: 36px 40px 40px;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
  color: var(--color-text);
}

.form-card__badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-secondary);
  background: rgba(47, 163, 107, 0.12);
  border-radius: 999px;
}

.form-card__title {
  margin: 0 0 8px;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}

.form-card__lead {
  margin: 0 0 28px;
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.45;
}

.form-card .form-group {
  margin-bottom: 24px;
}

.form-card .form-group label {
  margin-bottom: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-card .form-group input[type="text"],
.form-card .form-group input[type="email"],
.form-card .form-group input[type="tel"],
.form-card .form-group input[type="number"],
.form-card .form-group select,
.form-card .form-textarea {
  min-height: 48px;
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.form-card .form-textarea {
  min-height: 88px;
  padding: 12px 16px;
}

.form-card .form-group--checkbox {
  margin-bottom: 24px;
}

.form-card .btn--form-cta {
  width: 100%;
  margin-top: 8px;
  margin-bottom: 12px;
  padding: 16px 24px;
  min-height: 54px;
  font-size: 1.0625rem;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(47, 163, 107, 0.3);
  transition: all 0.2s ease;
}

.form-card .btn--form-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.form-card__hint {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
  text-align: center;
  line-height: 1.4;
}

.form-section .form-error-global {
  margin-bottom: 18px !important;
  padding: 12px 16px;
  background: #fef2f2;
  border-radius: 10px;
  font-size: 0.9rem;
}

.form-header {
  text-align: center;
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.form-header__title {
  margin: 0 0 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.form-header__lead {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
}

.form-trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.form-trust-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
}

.anfragen-counter {
  max-width: 480px;
  margin: 0 auto 28px;
  padding: 24px 28px;
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  text-align: center;
}

.anfragen-counter__label {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: none;
  letter-spacing: 0.01em;
}

.anfragen-counter__number-wrap {
  margin: 0 0 8px;
  line-height: 1;
}

.anfragen-counter__number {
  display: inline-block;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--color-secondary);
  font-variant-numeric: tabular-nums;
}

.anfragen-counter__text {
  margin: 0 0 16px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.anfragen-counter__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--color-secondary);
  line-height: 1.4;
}

.anfragen-counter__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.anfragen-counter__trust-icon {
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 0.9em;
}

@media (max-width: 768px) {
  .anfragen-counter:not(.anfragen-counter--compact) {
    margin-bottom: 24px;
    padding: 20px;
  }
  .anfragen-counter__number {
    font-size: 2.25rem;
  }
  .anfragen-counter__trust {
    gap: 12px 20px;
  }
}

.form-box {
  max-width: 520px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 28px 26px 24px;
  border-radius: var(--radius-card);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  color: var(--color-text);
}

.form-error-global {
  margin-bottom: 14px !important;
  padding: 10px 14px;
  background: #fef2f2;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.form-label-optional {
  font-weight: 400;
  color: var(--color-muted);
}

.form-group__hint {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.35;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.4;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-btn);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-textarea {
  background-image: none;
  padding-right: 14px;
}

.form-textarea {
  min-height: 80px;
  resize: vertical;
  padding: 10px 14px;
}

.form-group select {
  cursor: pointer;
}

.form-group input::placeholder,
.form-textarea::placeholder {
  color: #9ca3af;
}

.form-group input:focus,
.form-group select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(45, 157, 120, 0.15);
}

/* ========== Rechner / Calculator ========== */
.calculator-box {
  background: var(--color-background);
  padding: 32px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  margin-bottom: 40px;
}

.calculator-box h2 {
  margin: 0 0 24px;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-primary);
}

.rechner-form .form-group {
  margin-bottom: 20px;
}

.rechner-form .form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--color-text);
}

.rechner-form .btn {
  margin-top: 8px;
}

.rechner-ergebnis {
  margin-top: 28px;
  padding: 24px;
  background: var(--color-white);
  border-radius: var(--radius-card);
  border-left: 4px solid var(--color-secondary);
}

.rechner-ergebnis h3 {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
}

.rechner-ergebnis__wert {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin: 0 0 12px;
}

.rechner-ergebnis__hinweis {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* PV-Rechner Section (photovoltaik-rechner.html) */
.pv-calc-section__title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.pv-calc-section__intro {
  margin: 0 0 28px;
  font-size: 1.0625rem;
  color: var(--color-text);
  max-width: 640px;
}

.pv-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.pv-calc-form-wrap .rechner-form {
  margin-top: 0;
}

.pv-calc-result-wrap {
  position: sticky;
  top: 100px;
}

.pv-calc-result__title {
  margin: 0 0 16px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
}

.pv-calc-result__list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.pv-calc-result__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pv-calc-result__row:last-of-type {
  border-bottom: none;
}

.pv-calc-result__row dt {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
}

.pv-calc-result__row dd {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.pv-calc-result__hinweis {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.pv-calc-result__cta {
  margin: 0;
}

.pv-calc-result__cta .btn {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

@media (max-width: 900px) {
  .pv-calc-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pv-calc-result-wrap {
    position: static;
  }

  .pv-calc-result__cta .btn {
    width: 100%;
  }
}

.form-group--checkbox {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 16px;
}

.form-group--checkbox input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  min-width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-secondary);
  flex-shrink: 0;
}

.form-group--checkbox label {
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text);
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

.form-group--checkbox label a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-group--checkbox label a:hover {
  color: var(--color-secondary);
}

.form-checkbox-trust {
  width: 100%;
  margin: 4px 0 0 0;
  padding-left: 30px;
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.4;
}

.form-box .btn--form-cta {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 6px;
  padding: 14px 20px;
  font-weight: 600;
  min-height: 50px;
  font-size: 1rem;
}

.form-box .btn--form-cta:hover {
  box-shadow: 0 4px 14px rgba(45, 157, 120, 0.35);
}

.form-box .btn--form-cta:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

.form-box .btn {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 6px;
  padding: 14px 20px;
  min-height: 50px;
}

.form-post-cta-hint {
  margin: 0 0 4px 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
  text-align: center;
  line-height: 1.4;
}

.form-trust {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 0.9rem;
  color: var(--color-muted);
}
.form-section .form-trust {
  color: rgba(255,255,255,0.85);
  border-top-color: rgba(255,255,255,0.2);
}
.form-datenschutz-hinweis {
  margin-top: 6px;
  margin-bottom: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.form-section .form-datenschutz-hinweis {
  color: rgba(255,255,255,0.75);
}

.form-trust-block {
  max-width: 520px;
  margin: 24px auto 0 auto;
  padding: 16px 20px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-btn);
  border: 1px solid rgba(255,255,255,0.15);
}

.form-trust-block__title {
  margin: 0 0 10px 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
}

.form-trust-block__list {
  margin: 0;
  padding-left: 20px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}

.form-trust-block__list li {
  margin-bottom: 4px;
}

.form-trust-block__list li:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .lead-form {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .form-section__below {
    grid-template-columns: 1fr;
    margin-top: 40px;
    padding-top: 32px;
  }
}

@media (max-width: 560px) {
  .form-section {
    padding: 48px 0 56px;
  }
  .form-section__container {
    padding: 0 20px;
  }
  .form-section__below {
    margin-top: 36px;
    padding-top: 28px;
    gap: 28px;
  }
  .lead-form {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .lead-form__left {
    padding-top: 0;
  }
  .lead-form__title {
    font-size: 1.35rem;
  }
  .form-card {
    padding: 28px 24px 32px;
    border-radius: 16px;
  }
  .form-card__title {
    font-size: 1.2rem;
  }
  .form-box {
    padding: 24px 20px 22px;
  }
  .form-header__title {
    font-size: 1.35rem;
  }
  .form-trust-badges {
    gap: 8px;
  }
  .form-trust-badge {
    padding: 5px 12px;
    font-size: 0.75rem;
  }
  .form-checkbox-trust {
    padding-left: 0;
  }
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 720px;
}

.faq-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h3 {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
}

.faq-item p {
  margin: 0 0 12px;
  color: var(--color-text);
}

.faq-item a {
  font-weight: 500;
}

/* ========== Footer ========== */
.footer {
  background: #0c2d45;
  color: #fff;
  padding: 56px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand {
  max-width: 360px;
}

.footer__title {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.footer__title a {
  color: inherit;
  text-decoration: none;
}

.footer__title a:hover {
  color: var(--color-secondary);
}

.footer__text {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.footer__trust {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}

.footer__heading {
  margin: 0 0 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__list li {
  margin-bottom: 12px;
}

.footer__list a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__list a:hover {
  color: var(--color-secondary);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0 32px;
}

.footer__copyright {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer__tagline-bottom {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
  .footer__brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .footer {
    padding-top: 40px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
  }
  .footer__brand {
    grid-column: 1;
  }
  .footer__title {
    font-size: 1.2rem;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
    padding: 20px 0 28px;
  }
  .footer__copyright,
  .footer__tagline-bottom {
    text-align: center;
  }
}

/* Legacy footer classes (for pages still using old markup) */
.footer__brand .footer__logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 16px;
  transition: color 0.2s ease;
}
.footer__brand .footer__logo:hover {
  color: var(--color-secondary);
}
.footer__tagline {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 360px;
}
.footer__links h4,
.footer__legal-block h4 {
  margin: 0 0 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
}
.footer__links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer__links li {
  margin-bottom: 12px;
}
.footer__links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}
.footer__links a:hover {
  color: var(--color-secondary);
}
.footer__legal {
  display: flex;
  gap: 24px;
}
.footer__legal a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}
.footer__legal a:hover {
  color: var(--color-secondary);
}



/* ========== Page content (Unterseiten) ========== */
.page-hero {
  padding: 48px 0 32px;
  background: var(--color-white);
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-primary);
}

.page-hero__lead {
  margin: 0;
  font-size: 1.125rem;
  color: var(--color-muted);
  max-width: 720px;
}

.page-hero__lead p {
  margin: 0 0 12px;
}

.page-hero__lead p:last-child {
  margin-bottom: 0;
}

.content-block {
  margin-bottom: 40px;
}

.content-block h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
}

.content-block p {
  margin: 0 0 16px;
  color: var(--color-text);
}

.content-block ul,
.content-block ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.hub-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 16px;
}

.hub-list li {
  margin-bottom: 8px;
  padding-left: 0;
}

.hub-list li::before {
  content: '→ ';
  color: var(--color-secondary);
  font-weight: 600;
}

.hub-list a {
  font-weight: 500;
}

.content-block li {
  margin-bottom: 8px;
}

.cta-block {
  background: var(--color-secondary);
  color: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-card);
  text-align: center;
  margin: 48px 0;
}

.cta-block h2 {
  margin: 0 0 12px;
  color: var(--color-white);
  font-size: 1.5rem;
}

.cta-block p {
  margin: 0 0 24px;
  opacity: 0.95;
}

.cta-block .btn--primary {
  background: var(--color-white);
  color: var(--color-secondary);
}

.cta-block .btn--primary:hover {
  background: var(--color-background);
}

/* ========== Breadcrumbs ========== */
.breadcrumbs {
  padding: 12px 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.breadcrumbs a {
  color: var(--color-muted);
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs__sep {
  margin: 0 6px;
  opacity: 0.6;
}

.breadcrumbs__current {
  color: var(--color-text);
}

/* ========== Cookie Banner ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 20px 24px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-banner__content {
  flex: 1;
  min-width: 260px;
}

.cookie-banner__title {
  margin: 0 0 6px 0;
  font-size: 1rem;
  font-weight: 700;
}

.cookie-banner__text {
  flex: 1;
  min-width: 260px;
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.95;
}

.cookie-banner__link {
  margin: 8px 0 0 0;
  font-size: 0.9rem;
}

.cookie-banner__text a {
  color: var(--color-white);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner .btn--primary {
  background: var(--color-secondary);
}

.cookie-banner .btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.7);
}

.cookie-banner .btn--outline:hover {
  background: rgba(255,255,255,0.15);
}

/* ========== Cookie Modal (Einstellungen) ========== */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}

.cookie-modal[hidden] {
  display: none;
}

.cookie-modal.is-open {
  pointer-events: auto;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  cursor: pointer;
}

.cookie-modal__box {
  position: relative;
  background: var(--color-white);
  color: var(--color-text);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  border-radius: var(--radius-card);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.cookie-modal__title {
  margin: 0 0 12px 0;
  font-size: 1.25rem;
}

.cookie-modal__intro {
  margin: 0 0 20px 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.cookie-modal__categories {
  margin-bottom: 20px;
}

.cookie-modal__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.cookie-modal__row:last-child {
  border-bottom: none;
}

.cookie-modal__row strong {
  display: block;
  margin-bottom: 4px;
}

.cookie-modal__row p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.cookie-modal__row input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-modal__row--necessary input {
  cursor: not-allowed;
}

.cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.cookie-modal__privacy {
  margin: 0;
  font-size: 0.875rem;
}

.cookie-modal__privacy a {
  color: var(--color-primary);
}

@media (max-width: 480px) {
  .cookie-modal__box {
    padding: 20px;
  }
  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ========== Form Validation & Success ========== */
.form-group.is-error input,
.form-group.is-error select {
  border-color: #dc2626;
}

.form-group__error {
  font-size: 0.875rem;
  color: #dc2626;
  margin-top: 4px;
}

.form-box.form-success .beratung-form,
.form-card.form-success .beratung-form {
  display: none;
}

.form-box .form-success-message,
.form-card .form-success-message {
  display: none;
  padding: 24px;
  text-align: center;
  background: #ecfdf5;
  border-radius: var(--radius-card);
  color: var(--color-primary);
}

.form-box.form-success .form-success-message,
.form-card.form-success .form-success-message {
  display: block;
}

/* ========== Mobile: Touch targets ========== */
@media (max-width: 768px) {
  .btn {
    min-height: 48px;
    padding: 14px 20px;
  }
  .header__link {
    padding: 12px 16px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ========== Lazy loading image placeholder ========== */
img[loading="lazy"] {
  background: var(--color-background);
}

/* ========== Trust Icons ========== */
.trust-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.trust-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px;
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.trust-icon__symbol {
  width: 48px;
  height: 48px;
  background: var(--color-secondary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.trust-icon__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* ========== Trust Section (Warum Hausbesitzer umsteigen) ========== */
.trust-section {
  padding: 48px 0;
  background: var(--color-white);
}

.trust-section .section__title {
  margin-bottom: 24px;
}

.trust-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.trust-section li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--color-text);
}

.trust-section li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 700;
}

/* ========== Deutschland-Abschnitt (Zwischenlösung ohne Karte) ========== */
.de-region-block {
  margin-top: 24px;
  padding: 24px 20px;
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.de-region-block__text {
  margin: 0 0 16px;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.6;
}

.de-region-block__hint {
  margin: 0 0 24px;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.de-region-block__cta {
  margin: 0;
  text-align: center;
}

/* ========== Danke-Seite: Bonus-Sektion (Conversion) ========== */
.bonus-section {
  text-align: center;
  margin: 40px 0;
}

.bonus-section h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
}

.bonus-section p {
  margin: 0 0 12px;
  color: var(--color-text);
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.bonus-card {
  display: block;
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #1b2430;
  transition: transform 0.2s;
}

.bonus-card:hover {
  transform: translateY(-4px);
}

.bonus-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.bonus-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.bonus-card span {
  display: inline-block;
  margin-top: 12px;
  background: #ff7a00;
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 600;
}

/* ========== Danke-Seite: Bonus-Popup (nach 3 Sekunden) ========== */
.bonus-popup {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(360px, calc(100vw - 32px));
  background: #ffffff;
  color: #1b2430;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  padding: 20px 20px 18px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.bonus-popup.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bonus-popup__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.bonus-popup__close:hover {
  color: #1b2430;
}

.bonus-popup__eyebrow {
  margin: 0 0 6px;
  font-weight: 700;
  color: #0F3D5E;
}

.bonus-popup h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
  color: #0F3D5E;
}

.bonus-popup p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.5;
}

.bonus-popup__btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  background: #ff7a00;
  color: #ffffff;
  font-weight: 700;
  padding: 13px 16px;
  border-radius: 10px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.bonus-popup__btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

@media (max-width: 640px) {
  .bonus-popup {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    padding: 18px 18px 16px;
  }

  .bonus-popup h3 {
    font-size: 21px;
  }
}
