/* ============================================================
   HUUS-VERSTAND DESIGN SYSTEM
   "Architectural Editorial" — Apple-like Animations
   Dark Mode default, Light Mode toggle
   ============================================================ */

/* ---------- Local Fonts (DSGVO-konform) ---------- */
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 100 700;
  font-display: block;
  src: url('/assets/fonts/material-symbols-outlined.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
  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: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin-ext.woff2') format('woff2');
  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;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  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: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  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;
}

/* ---------- CSS Custom Properties: Dark Mode (default) ---------- */
:root {
  /* Surface System */
  --bg: #0f0f0f;
  --surface-0: #0f0f0f;
  --surface-1: #1a1a1a;
  --surface-2: #222222;
  --surface-card: #1a1a1a;

  /* Text */
  --on-bg: #e8e8e8;
  --on-surface: #e8e8e8;
  --on-surface-variant: #b0b0b0;
  --muted: #888888;
  --muted-soft: #444444;

  /* Accent: Green (from Visitenkarte) */
  --green: #4fa028;
  --green-dark: #2e7a18;
  --green-soft: rgba(79, 160, 40, 0.12);
  --green-hover: #3d8820;
  --on-green: #ffffff;

  /* Accent: Gold (from Visitenkarte) */
  --gold: #cc9418;
  --gold-dark: #a87010;
  --gold-soft: rgba(204, 148, 24, 0.10);
  --on-gold: #ffffff;

  /* Accent: Terracotta (from Visitenkarte) */
  --terra: #a84018;
  --terra-dark: #7e2a0e;
  --terra-soft: rgba(168, 64, 24, 0.10);

  /* Utility */
  --line: rgba(255, 255, 255, 0.06);
  --line-ghost: rgba(255, 255, 255, 0.03);
  --overlay-nav: rgba(15, 15, 15, 0.82);
  --overlay-mobile: rgba(15, 15, 15, 0.95);
  --overlay-dark: rgba(0, 0, 0, 0.65);

  /* Effects */
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.3);
  --shadow-float: 0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-ambient: 0 1px 3px rgba(0, 0, 0, 0.2);

  /* Layout */
  --max: 1200px;
  --max-wide: 1400px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Typography */
  --font-headline: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;

  /* Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-overshoot: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.8s;
  --duration-fast: 0.4s;
  --duration-micro: 0.2s;

  color-scheme: dark;
}

/* ---------- Light Mode ---------- */
[data-theme="light"] {
  --bg: #f9f9f9;
  --surface-0: #f9f9f9;
  --surface-1: #f2f4f4;
  --surface-2: #eaeced;
  --surface-card: #ffffff;

  --on-bg: #111111;
  --on-surface: #111111;
  --on-surface-variant: #555555;
  --muted: #888888;
  --muted-soft: #cccccc;

  --green: #2e7a18;
  --green-dark: #1f5a10;
  --green-soft: rgba(46, 122, 24, 0.08);
  --green-hover: #256d14;
  --on-green: #ffffff;

  --gold: #a87010;
  --gold-dark: #8a5c0d;
  --gold-soft: rgba(168, 112, 16, 0.07);
  --on-gold: #ffffff;

  --terra: #7e2a0e;
  --terra-dark: #5e1e08;
  --terra-soft: rgba(126, 42, 14, 0.06);

  --line: rgba(0, 0, 0, 0.07);
  --line-ghost: rgba(0, 0, 0, 0.03);
  --overlay-nav: rgba(249, 249, 249, 0.85);
  --overlay-mobile: rgba(249, 249, 249, 0.97);
  --overlay-dark: rgba(0, 0, 0, 0.55);

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.05);
  --shadow-float: 0 16px 48px rgba(0, 0, 0, 0.08);
  --shadow-ambient: 0 1px 3px rgba(0, 0, 0, 0.06);

  color-scheme: light;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--on-bg);
  line-height: 1.7;
  font-size: 1rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

:focus:not(:focus-visible) { outline: none; }

::selection {
  background: var(--green);
  color: var(--on-green);
}

/* ---------- Skip Navigation ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: var(--green);
  color: var(--on-green);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Grain Overlay ---------- */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  will-change: auto;
  isolation: isolate;
}
[data-theme="light"] .grain-overlay { opacity: 0.012; }

/* ---------- Container ---------- */
.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

.container-wide {
  width: min(var(--max-wide), calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ---------- Material Symbols ---------- */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* ---------- Section Spacing ---------- */
.section {
  padding: 3.5rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}
.section-surface1 { background: var(--surface-1); }
.section-dark {
  background: #111111;
  color: #e8e8e8;
}
[data-theme="light"] .section-dark {
  background: #111111;
  color: #e8e8e8;
}

/* ---------- Label (Meta) ---------- */
.label-meta {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  display: block;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-headline);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--on-surface);
  margin: 0;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
}

.lead {
  font-size: 1.15rem;
  color: var(--on-surface-variant);
  line-height: 1.7;
  max-width: 600px;
}

/* ---------- Accent Text ---------- */
.accent-green { color: var(--green); }
.accent-gold { color: var(--gold); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--overlay-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: background var(--duration-fast) ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

/* Brand */
.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Text-Block mit fester Höhe, damit Logo exakt bündig passt */
.brand > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 32px;
}

.brand-logo {
  height: 32px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.brand strong {
  display: block;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--on-surface);
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1;
}

/* Desktop Menu */
.menu {
  display: flex;
  gap: 0.15rem;
  align-items: center;
}

.menu a {
  padding: 0.5rem 0.85rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--on-surface-variant);
  border-radius: var(--radius);
  transition: color var(--duration-fast) ease, background var(--duration-fast) ease;
}

.menu a:hover,
.menu a.active {
  color: var(--on-surface);
  background: var(--line);
}

.menu .cta {
  margin-left: 0.75rem;
  padding: 0.6rem 1.4rem;
  background: var(--green);
  color: var(--on-green);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius);
  transition: background var(--duration-fast) ease, transform var(--duration-micro) ease;
}

.menu .cta:hover {
  background: var(--green-hover);
  color: var(--on-green);
  transform: translateY(-1px);
}

.menu .cta:active {
  transform: translateY(0) scale(0.98);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--radius);
  transition: color var(--duration-fast) ease, background var(--duration-fast) ease;
  padding: 0;
}

.theme-toggle:hover {
  color: var(--on-surface);
  background: var(--line);
}

.icon-moon { display: inline-block; }
.icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: inline-block; }

/* Submenus (Desktop) */
@media (min-width: 861px) {
  .has-submenu {
    position: relative;
    display: inline-block;
  }
  .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
    z-index: 1000;
    flex-direction: column;
    padding: 0.5rem;
    margin-top: 8px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .has-submenu:hover .submenu,
  .has-submenu.is-open .submenu {
    display: flex;
  }
  .submenu a {
    display: block;
    width: 100%;
    border-radius: var(--radius);
    padding: 0.7rem 1rem !important;
    font-size: 0.85rem;
  }
  .submenu a:hover {
    background: var(--green-soft);
    color: var(--green);
  }
}

/* Burger & Mobile Menu */
.burger { display: none; }
.mobile {
  display: none;
  padding: 0.5rem 0 1.5rem;
}

@media (max-width: 860px) {
  .menu { display: none; }
  .burger {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: transparent;
    color: var(--on-surface);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--duration-fast) ease;
  }
  .burger:hover { background: var(--line); }
  .mobile.show { display: block; }
  .mobile a {
    display: block;
    padding: 0.8rem 0.2rem;
    color: var(--on-surface);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
  }
  .mobile a:hover { color: var(--green); }
  .mobile a.cta {
    color: var(--on-green);
    background: var(--green);
    border-radius: var(--radius);
    text-align: center;
    padding: 0.75rem;
    margin-top: 0.5rem;
    font-weight: 600;
  }

  .mobile-submenu {
    display: none;
    flex-direction: column;
    padding-left: 1.2rem;
    margin: 0.25rem 0;
  }
  .mobile-has-submenu.is-open .mobile-submenu {
    display: flex;
  }
  .mobile-has-submenu.is-open > a {
    color: var(--green);
  }
}

/* ============================================================
   HERO — Editorial Split
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 1.25rem 4rem;
  background: var(--bg);
  min-height: 0;
}

@media (min-width: 900px) {
  .hero:not(.hero-page) {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    padding: 0;
    padding-top: 5.5rem;
    min-height: calc(100vh - 2rem);
    width: min(var(--max), calc(100% - 3rem));
    margin: 0 auto;
  }
}

.hero-text {
  max-width: 620px;
  position: relative;
  z-index: 2;
}

@media (min-width: 900px) {
  .hero-text {
    padding: 4rem 0;
  }
}

.hero-text .label-meta {
  margin-bottom: 1.5rem;
}

.hero-text h1 {
  margin-bottom: 1.25rem;
}

.hero-text .subtitle {
  font-size: 1.2rem;
  color: var(--on-surface-variant);
  line-height: 1.6;
  margin: 0 0 1rem;
  font-weight: 400;
}

.hero-text .hero-body {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 2.5rem;
  max-width: 520px;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

@media (max-width: 899px) {
  .hero-visual {
    height: 45vh;
    max-height: 480px;
    margin-top: 2.5rem;
    border-radius: var(--radius-lg);
  }
}

@media (min-width: 900px) {
  .hero-visual {
    height: calc(100vh - 7.5rem);
    max-height: 720px;
    align-self: center;
  }
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) brightness(0.9);
  transition: filter 0.6s var(--ease-out-expo);
}

.hero-visual:hover img {
  filter: grayscale(0) brightness(1);
}

/* Energy Bars (Visitenkarte-style) */
.energy-bars {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 3;
}

.energy-bar {
  width: 6px;
  height: 80px;
  border-radius: 3px;
}

.energy-bar--green {
  background: linear-gradient(to bottom, var(--green-dark), var(--green));
}
.energy-bar--gold {
  background: linear-gradient(to bottom, var(--gold-dark), var(--gold));
}
.energy-bar--terra {
  background: linear-gradient(to bottom, var(--terra-dark), var(--terra));
}

/* ============================================================
   BUTTONS
   ============================================================ */
.actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out-expo);
  text-decoration: none;
}

.btn.primary {
  background: var(--green);
  color: var(--on-green);
}
.btn.primary:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 160, 40, 0.2);
}
.btn.primary:active {
  transform: translateY(0) scale(0.98);
}

.btn.secondary {
  background: var(--surface-2);
  color: var(--on-surface);
}
.btn.secondary:hover {
  background: var(--surface-card);
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: var(--on-surface);
  border: 1px solid var(--line);
}
.btn.ghost:hover {
  background: var(--line);
  border-color: transparent;
}

.btn.large {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

/* Section-dark buttons */
.section-dark .btn.primary {
  background: var(--green);
  color: var(--on-green);
}

/* Link Arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green);
  transition: gap var(--duration-fast) ease;
}
.link-arrow:hover {
  gap: 0.6rem;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 0;
}

@media (min-width: 768px) {
  .trust-bar {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.trust-item {
  text-align: center;
}

.trust-number {
  font-family: var(--font-headline);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--on-surface);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.trust-label {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================================
   SERVICE CARDS — Editorial Stagger
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.service-card {
  display: block;
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: transform var(--duration-fast) var(--ease-out-expo), box-shadow var(--duration-fast) ease;
}

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

/* Staggered heights on desktop */
@media (min-width: 1024px) {
  .service-card:nth-child(2) { margin-top: 2rem; }
  .service-card:nth-child(3) { margin-top: 4rem; }
  .service-card:nth-child(4) { margin-top: 6rem; }
}

.service-card-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(0.5) brightness(0.85);
  transition: filter 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.service-card:hover .service-card-img {
  filter: grayscale(0) brightness(1);
  transform: scale(1.03);
}

.service-card-body {
  padding: 1.5rem;
}

.service-card-body h3 {
  margin-bottom: 0.5rem;
}

.service-card-body p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 1rem;
}

.service-card-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

/* ============================================================
   ENERGY CHECK CTA (Dark Section)
   ============================================================ */
.energy-check {
  position: relative;
  text-align: center;
  padding: 5rem 1rem;
}

.energy-check h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.energy-check p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Efficiency Meter */
.efficiency-meter {
  width: min(400px, 80%);
  height: 6px;
  border-radius: 3px;
  margin: 0 auto 3rem;
  background: linear-gradient(to right, var(--terra), var(--gold), var(--green));
  position: relative;
  overflow: hidden;
}

.efficiency-meter-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--terra), var(--gold), var(--green));
  border-radius: 3px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.5s var(--ease-out-expo);
}

.efficiency-meter-fill.animated {
  transform: scaleX(1);
}

.efficiency-meter-marker {
  position: absolute;
  top: -4px;
  left: 72%;
  width: 2px;
  height: 14px;
  background: #ffffff;
  border-radius: 1px;
}

/* ============================================================
   PROCESS / TIMELINE
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.process-step {
  text-align: center;
  position: relative;
}

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--on-surface);
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
}

.process-step:last-child .process-number {
  background: var(--green);
  color: var(--on-green);
}

.process-step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Process line (desktop) */
@media (min-width: 768px) {
  .process-line {
    position: absolute;
    top: 28px;
    left: 12.5%;
    width: 75%;
    height: 2px;
    background: var(--line);
    z-index: 1;
  }
  .process-line-fill {
    height: 100%;
    background: var(--green);
    border-radius: 1px;
    width: 0%;
    transition: width 1.5s var(--ease-out-expo);
  }
  .process-line-fill.animated {
    width: 100%;
  }
}

/* ============================================================
   ABOUT SECTION — Editorial Split
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(0.3) brightness(0.9);
  transition: filter 0.6s var(--ease-out-expo);
}

.about-image:hover img {
  filter: grayscale(0) brightness(1);
}

.about-stat {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  color: #ffffff;
}

[data-theme="light"] .about-stat {
  background: rgba(255, 255, 255, 0.85);
  color: var(--on-surface);
}

.about-stat-number {
  font-family: var(--font-headline);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.about-stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
}

[data-theme="light"] .about-stat-label {
  color: var(--muted);
}

.about-text .label-meta {
  margin-bottom: 0.75rem;
}

.about-text h2 {
  margin-bottom: 1.25rem;
}

.about-text .about-bio {
  color: var(--on-surface-variant);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.about-signature {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* ============================================================
   REGION SECTION
   ============================================================ */
.region {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.region-bg {
  position: absolute;
  inset: 0;
}

.region-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.region-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
}

.region-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  text-align: center;
  width: 100%;
  padding: 5rem 1rem;
}

.region-content h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.region-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.region-tags {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.region-tag {
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================================
   CTA BLOCK (Final)
   ============================================================ */
.cta-block {
  text-align: center;
  padding: 4rem 1rem;
  background: var(--surface-1);
  border-radius: var(--radius-xl);
}

.cta-block h2 {
  margin-bottom: 1rem;
}

.cta-block p {
  color: var(--on-surface-variant);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cta-block .actions {
  justify-content: center;
}

.trust-badges {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.trust-badge .material-symbols-outlined {
  font-size: 20px;
  opacity: 0.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--surface-1);
  padding: 3.5rem 0 2rem;
  position: relative;
}

/* Energy bar accent top */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--green) 33%, var(--gold) 33% 66%, var(--terra) 66%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.5rem;
  margin-bottom: 2.5rem;
}

/* Mobile: brand spans full width, 3 link columns share a row */
.footer-grid > .footer-brand {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .footer-grid > .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 3rem;
  }
  .footer-grid > .footer-brand {
    grid-column: auto;
  }
}

.footer-brand strong {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--on-surface);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 320px;
  margin: 0;
}

.footer h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.footer a {
  display: block;
  color: var(--on-surface-variant);
  font-size: 0.88rem;
  padding: 0.25rem 0;
  transition: color var(--duration-fast) ease;
}

.footer a:hover {
  color: var(--green);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-copy {
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-contact {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.8;
}

@media (min-width: 640px) {
  .footer-contact {
    text-align: right;
  }
}

.footer-contact a {
  display: inline;
  font-size: inherit;
  padding: 0;
}

/* ============================================================
   STICKY MOBILE CTA
   ============================================================ */
.sticky-mobile {
  display: flex;
  gap: 0.5rem;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: var(--overlay-mobile);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 40;
}

.sticky-mobile .btn {
  flex: 1;
  justify-content: center;
  font-size: 0.85rem;
  padding: 0.75rem;
}

@media (max-width: 860px) {
  .footer { padding-bottom: 5rem; }
}

@media (min-width: 861px) {
  .sticky-mobile { display: none; }
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration) var(--ease-out-expo),
              transform var(--duration) var(--ease-out-expo);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-left] {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--duration) var(--ease-out-expo),
              transform var(--duration) var(--ease-out-expo);
}

[data-reveal-left].revealed {
  opacity: 1;
  transform: translateX(0);
}

[data-reveal-right] {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--duration) var(--ease-out-expo),
              transform var(--duration) var(--ease-out-expo);
}

[data-reveal-right].revealed {
  opacity: 1;
  transform: translateX(0);
}

[data-reveal-scale] {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity var(--duration) var(--ease-out-expo),
              transform var(--duration) var(--ease-out-expo);
}

[data-reveal-scale].revealed {
  opacity: 1;
  transform: scale(1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal-left],
  [data-reveal-right],
  [data-reveal-scale] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .efficiency-meter-fill,
  .process-line-fill {
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   PHOTO STRIP (kept from original)
   ============================================================ */
.photo-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .photo-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.photo-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  filter: grayscale(0.6) brightness(0.85);
  transition: filter 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.photo-strip img:hover {
  filter: grayscale(0) brightness(1);
  transform: scale(1.02);
}

/* ============================================================
   BENTO GRID (legacy support for subpages)
   ============================================================ */
.bento {
  display: grid;
  gap: 1.5rem;
}

.card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--duration-fast) var(--ease-out-expo), box-shadow var(--duration-fast) ease;
}

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

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--on-surface-variant);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.card .icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-soft);
  color: var(--green);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 100px;
}

.stat-number {
  font-family: var(--font-headline);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.card-green {
  background: var(--green);
  color: var(--on-green);
}
.card-green .stat-number,
.card-green .stat-label {
  color: var(--on-green);
}

/* Card highlight */
.card-highlight {
  background: var(--surface-1);
}

.card-highlight img {
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* ============================================================
   SPLIT LAYOUT (for subpages)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* ============================================================
   STEPS (subpage format)
   ============================================================ */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--green);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-soft);
  border-radius: 50%;
}

.step strong {
  display: block;
  font-family: var(--font-headline);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.step .help {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ============================================================
   SUBPAGE HERO
   ============================================================ */
.hero-page {
  padding: 8rem 0 3rem;
  background: var(--bg);
}



.hero-split.split,
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .hero-split.split,
  .hero-split {
    grid-template-columns: 1.4fr 0.6fr;
    gap: 3rem;
  }
}

.hero-page h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-page p {
  color: var(--on-surface-variant);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.hero-page .actions { margin-top: 1.5rem; }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.note {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Hero media card */
.hero-media {
  overflow: hidden;
}

.hero-media__img {
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -2rem -2rem 1.25rem;
}

.hero-media__img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: grayscale(0.3) brightness(0.9);
  transition: filter 0.6s var(--ease-out-expo);
}

.hero-media:hover .hero-media__img img {
  filter: grayscale(0) brightness(1);
}

.hero-media__body h3 { margin-bottom: 0.4rem; }
.hero-media__body p { margin: 0; font-size: 0.9rem; }

/* Hero aside */
.hero-aside {
  position: sticky;
  top: 6rem;
}

/* ============================================================
   GRID HELPERS
   ============================================================ */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   SECTION ALT (legacy compat)
   ============================================================ */
.section-alt {
  padding: 6rem 0;
  background: var(--surface-1);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { gap: 0; }

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: 1.25rem 0;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--on-surface);
  transition: color var(--duration-fast) ease;
}

.faq summary:hover { color: var(--green); }

.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform var(--duration-fast) var(--ease-out-expo);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary::-webkit-details-marker { display: none; }

.faq details p {
  padding: 0 0 1.25rem;
  color: var(--on-surface-variant);
  line-height: 1.7;
  max-width: 700px;
}

/* ============================================================
   TIMELINE (Ablauf page)
   ============================================================ */
.timeline {
  display: grid;
  gap: 0;
  margin: 2rem 0;
  counter-reset: timeline;
}

.timeline-item {
  counter-increment: timeline;
  padding: 1.5rem 0 1.5rem 4rem;
  position: relative;
  border-left: 2px solid var(--line);
}

.timeline-item:last-child { border-left-color: transparent; }

.timeline-item::before {
  content: attr(data-step);
  position: absolute;
  left: -18px;
  top: 1.5rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--on-surface);
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-item:last-child::before {
  background: var(--green);
  color: var(--on-green);
}

.timeline-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

/* ============================================================
   PRICING CARDS
   ============================================================ */
.pricing-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--duration-fast) var(--ease-out-expo), box-shadow var(--duration-fast) ease;
}

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

.pricing-card .material-symbols-outlined {
  font-size: 32px;
  color: var(--green);
  margin-bottom: 1rem;
}

.pricing-card h3 {
  margin-bottom: 0.75rem;
}

.pricing-card .price {
  font-family: var(--font-headline);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--on-surface);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.pricing-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--on-surface-variant);
}

.pricing-card li .material-symbols-outlined {
  font-size: 18px;
  color: var(--green);
  margin: 0;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* Featured pricing card */
.pricing-card.featured {
  background: var(--green);
  color: var(--on-green);
}

.pricing-card.featured .material-symbols-outlined,
.pricing-card.featured h3,
.pricing-card.featured .price,
.pricing-card.featured li,
.pricing-card.featured li .material-symbols-outlined {
  color: var(--on-green);
}

.pricing-card.featured .btn {
  background: #ffffff;
  color: var(--green-dark);
}

.pricing-card.featured .btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.badge-featured {
  position: absolute;
  top: -10px;
  right: 1.5rem;
  background: var(--gold);
  color: var(--on-gold);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ============================================================
   FORMS
   ============================================================ */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: 0.4rem;
}

.input input,
.input select,
.input textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface-1);
  border: none;
  border-bottom: 2px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--duration-fast) ease, background var(--duration-fast) ease;
}

.input input:focus,
.input select:focus,
.input textarea:focus {
  outline: none;
  border-bottom-color: var(--green);
  background: var(--surface-2);
}

.input textarea {
  min-height: 120px;
  resize: vertical;
}

.input select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.input .help {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Alert */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.alert.ok {
  background: var(--green-soft);
  color: var(--green);
}

.alert.err {
  background: var(--terra-soft);
  color: var(--terra);
}

.hidden { display: none !important; }

/* ============================================================
   META INFO
   ============================================================ */
.meta {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-top: 0.75rem;
}

/* ============================================================
   COLS (legacy footer compat)
   ============================================================ */
.cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .cols {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
  }
}

.cols h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.cols a {
  display: inline;
  color: var(--on-surface-variant);
  font-size: 0.9rem;
  transition: color var(--duration-fast) ease;
}

.cols a:hover { color: var(--green); }

.brand-footer {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--on-surface);
  display: block;
  margin-bottom: 0.75rem;
}

.copy {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

/* ============================================================
   LINK COLORS (legacy amber → green)
   ============================================================ */
a[style*="color: var(--amber)"] {
  color: var(--green) !important;
}

/* ============================================================
   WIZARD — Energie-Check (/check)
   ============================================================ */
.wizard-hero {
  padding: 7rem 0 2rem;
  background: var(--bg);
  text-align: center;
}

@media (min-width: 768px) {
  .wizard-hero { padding: 8rem 0 3rem; }
}

.wizard-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.wizard-hero .lead {
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--on-surface-variant);
}

/* Variant cards (Intro phase) */
.variants-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .variants-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.variant-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-fast) var(--ease-out-expo),
              border-color var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
  font-family: inherit;
  color: inherit;
  position: relative;
}

.variant-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
  border-color: var(--green-soft);
}

.variant-card.recommended {
  border-color: var(--green);
}

.variant-card .variant-badge {
  position: absolute;
  top: -10px;
  left: 1.5rem;
  background: var(--green);
  color: var(--on-green);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.variant-card .variant-time {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.variant-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.variant-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  flex: 1;
}

.variant-card .variant-cta {
  font-weight: 600;
  color: var(--green);
  font-size: 0.9rem;
}

/* Wizard main container */
.wizard {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem;
}

/* Progress bar (Visitenkarten-Gradient) */
.wizard-progress {
  position: relative;
  width: 100%;
  height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.wizard-progress-fill {
  position: absolute;
  inset: 0;
  right: auto;
  background: linear-gradient(to right, var(--terra), var(--gold), var(--green));
  border-radius: 3px;
  transition: width 0.6s var(--ease-out-expo);
}

.wizard-progress-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* Wizard steps */
.wizard-step {
  display: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s var(--ease-out-expo),
              transform 0.4s var(--ease-out-expo);
}

.wizard-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.wizard-question {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--on-surface);
}

.wizard-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* Option cards (radio-like) */
.wizard-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .wizard-options.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.option-card {
  background: var(--surface-card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: border-color var(--duration-fast) ease,
              background var(--duration-fast) ease,
              transform var(--duration-micro) ease;
  font-family: inherit;
  color: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  font-size: 0.95rem;
}

.option-card:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.option-card.selected {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--on-surface);
}

.option-card::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--muted-soft);
  flex-shrink: 0;
  transition: all var(--duration-fast) ease;
  background: transparent;
}

.option-card.selected::before {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 3px var(--surface-card);
}

.option-card-label {
  flex: 1;
}

.option-card-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
  line-height: 1.4;
}

/* Wizard navigation buttons */
.wizard-nav {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
}

.wizard-nav .btn-back {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--radius);
  transition: color var(--duration-fast) ease, background var(--duration-fast) ease;
}

.wizard-nav .btn-back:hover {
  color: var(--on-surface);
  background: var(--surface-2);
}

.wizard-nav .btn-back:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.wizard-nav .btn-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Results section */
.result-hero {
  text-align: center;
  padding: 7rem 0 2rem;
  background: var(--bg);
}

@media (min-width: 768px) {
  .result-hero { padding: 8rem 0 3rem; }
}

.result-label {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1rem;
  display: block;
}

.result-class-huge {
  font-family: var(--font-headline);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 0.5rem 0;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--green);
}

.result-class-huge[data-tier="poor"] {
  background: linear-gradient(135deg, var(--terra), var(--terra-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--terra);
}

.result-class-huge[data-tier="mid"] {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
}

.result-headline {
  font-family: var(--font-headline);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.result-subtext {
  color: var(--on-surface-variant);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 2rem;
}

/* Result efficiency meter — stylized A-H scale */
.result-scale {
  max-width: 600px;
  margin: 2rem auto 2.5rem;
  position: relative;
}

.result-scale-bar {
  display: flex;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-ambient);
}

.result-scale-segment {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.85rem;
  color: #ffffff;
  letter-spacing: 0.05em;
  opacity: 0.45;
  position: relative;
  transition: opacity 0.6s var(--ease-out-expo),
              transform 0.6s var(--ease-out-expo),
              box-shadow 0.6s var(--ease-out-expo);
}

.result-scale-segment.active {
  opacity: 1;
  transform: translateY(-6px);
  z-index: 2;
  font-size: 1.05rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  outline: 3px solid var(--bg);
  border-radius: 6px;
}

.result-scale-segment:nth-child(1) { background: #2e7a18; }
.result-scale-segment:nth-child(2) { background: #4fa028; }
.result-scale-segment:nth-child(3) { background: #86ad18; }
.result-scale-segment:nth-child(4) { background: #cc9418; }
.result-scale-segment:nth-child(5) { background: #d98018; }
.result-scale-segment:nth-child(6) { background: #c76018; }
.result-scale-segment:nth-child(7) { background: #a84018; }
.result-scale-segment:nth-child(8) { background: #7e2a0e; }

/* Funding cards */
.funding-section {
  padding: 4rem 0;
  background: var(--surface-1);
}

.funding-section h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.funding-section .section-intro {
  text-align: center;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.funding-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .funding-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .funding-grid .funding-card.full-width {
    grid-column: 1 / -1;
  }
}

.funding-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--line);
}

.funding-card.highlight {
  border-color: var(--green);
  background: linear-gradient(135deg, var(--surface-card), var(--green-soft));
}

.funding-card .funding-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.funding-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.funding-card .funding-rate {
  font-family: var(--font-headline);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0.5rem 0;
}

.funding-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

.funding-card ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.funding-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.25rem 0;
  font-size: 0.85rem;
  color: var(--on-surface-variant);
}

.funding-card li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* Result CTA block */
.result-cta {
  text-align: center;
  padding: 5rem 1rem;
}

.result-cta h2 {
  margin-bottom: 1rem;
}

.result-cta p {
  color: var(--on-surface-variant);
  max-width: 520px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.result-cta .actions {
  justify-content: center;
}

.result-disclaimer {
  max-width: 640px;
  margin: 3rem auto 0;
  padding: 1.25rem 1.5rem;
  background: var(--surface-1);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: center;
}

.result-disclaimer a {
  color: var(--green);
  text-decoration: underline;
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mt-4 { margin-top: 2rem; }
