/* ═══════════════════════════════════════════════
   AIDEALAB — Redesign v2.0
   Dark → Light Toggle | Apple-inspired
   Fonts: Lora (Display) + DM Sans (Body)
   Primary: Teal #498C8C
   ═══════════════════════════════════════════════ */

/* ── CSS Variables: Dark Theme (Default) ── */
:root {
  /* Core palette */
  --teal-600: #498C8C;
  --teal-500: #5AA0A0;
  --teal-400: #6FB8B8;
  --teal-300: #8ECECE;
  --teal-200: #B5DEDE;
  --teal-100: #D6EDED;
  --teal-50:  #EAF6F6;
  --teal-700: #3A7474;
  --teal-800: #2B5A5A;
  --teal-900: #1C4040;

  --accent-warm:  #D4956B;
  --accent-coral: #C7705A;
  --accent-sage:  #7A9E82;
  --accent-sand:  #E8DDD0;

  /* Dark theme tokens (default) */
  --bg-base:       #08080C;
  --bg-elevated:   #111118;
  --bg-surface:    #1A1A24;
  --bg-card:       #16161F;
  --text-primary:  #F0F0F5;
  --text-secondary: #9999AA;
  --text-muted:    #666677;
  --border-color:  rgba(255,255,255,0.08);
  --border-hover:  rgba(255,255,255,0.15);

  /* Navbar */
  --nav-bg: rgba(18,18,26,0.85);
  --nav-text: #CCCCDD;
  --nav-active-bg: rgba(73,140,140,0.2);
  --nav-active-text: #6FB8B8;

  /* Typography */
  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.25);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 40px rgba(73,140,140,0.15);

  /* Layout */
  --max-width: 1200px;
  --content-width: 800px;

  /* Transition */
  --theme-transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Light Theme ── */
[data-theme="light"] {
  --bg-base:       #FAFAF8;
  --bg-elevated:   #FFFFFF;
  --bg-surface:    #F4F2EE;
  --bg-card:       #FFFFFF;
  --text-primary:  #1A1A1A;
  --text-secondary: #636363;
  --text-muted:    #8A8A8A;
  --border-color:  rgba(0,0,0,0.06);
  --border-hover:  rgba(0,0,0,0.12);

  --nav-bg: rgba(255,255,255,0.55);
  --nav-text: #3A3A44;
  --nav-active-bg: rgba(73,140,140,0.12);
  --nav-active-text: var(--teal-700);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 40px rgba(73,140,140,0.08);
}

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--theme-transition), color var(--theme-transition);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--teal-500);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--teal-400); }
[data-theme="light"] a { color: var(--teal-600); }
[data-theme="light"] a:hover { color: var(--teal-700); }

/* ── Container ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: var(--content-width); margin: 0 auto; padding: 0 2rem; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

/* ═══════════════════════════════════════════════
   NAVIGATION — Floating Dark Bar (adbaker-style)
   ═══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 3rem);
  max-width: 1200px;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  padding: 0 1rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--theme-transition), border-color var(--theme-transition), box-shadow 0.5s, backdrop-filter 0.5s;
}
.navbar:hover {
  box-shadow: var(--shadow-md);
}
/* Liquid glass effect in light mode */
[data-theme="light"] .navbar {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 4px 30px rgba(0,0,0,0.06),
              inset 0 1px 0 rgba(255,255,255,0.8),
              inset 0 -1px 0 rgba(255,255,255,0.3);
}
[data-theme="light"] .navbar:hover {
  background: rgba(255,255,255,0.7);
  box-shadow: 0 8px 40px rgba(0,0,0,0.08),
              inset 0 1px 0 rgba(255,255,255,0.9),
              inset 0 -1px 0 rgba(255,255,255,0.4);
}

/* Left nav links */
.nav-left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  padding-left: 0.75rem;
}

/* Center logo */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 0 1.5rem;
  flex-shrink: 0;
}
.nav-logo img {
  height: 42px;
  width: auto;
  display: block;
  transition: opacity 0.3s;
}
/* In light mode, hide the light logo and show the dark one */
.nav-logo .logo-dark { display: none; }
[data-theme="light"] .nav-logo .logo-light { display: none; }
[data-theme="light"] .nav-logo .logo-dark { display: block; }
/* Fallback text logo if no image */
.nav-logo-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F0F0F5 !important;
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo-text span {
  font-weight: 400;
  opacity: 0.5;
}

/* Right nav links */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  justify-content: flex-end;
  padding-right: 0.5rem;
}

/* Nav links (pill style) */
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--nav-text);
  text-decoration: none;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  transition: all 0.25s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.nav-link:hover {
  color: #F0F0F5;
  background: rgba(255,255,255,0.08);
}
[data-theme="light"] .nav-link:hover {
  color: var(--teal-700);
  background: rgba(73,140,140,0.08);
}
[data-theme="light"] .nav-link.active {
  color: var(--teal-700);
  background: rgba(73,140,140,0.12);
}
.nav-link.active {
  color: var(--nav-active-text);
  background: var(--nav-active-bg);
  font-weight: 600;
}

/* CTA button in navbar */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: white !important;
  background: var(--teal-600);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  transition: all 0.3s;
  white-space: nowrap;
  text-decoration: none;
}
.nav-cta:hover {
  background: var(--teal-500);
  box-shadow: 0 0 20px rgba(73,140,140,0.3);
  color: white !important;
  transform: scale(1.02);
}
.nav-cta .cta-icon {
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  line-height: 1;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile menu — HIDDEN on desktop */
.nav-mobile-menu {
  display: none;
}

@media (max-width: 900px) {
  .nav-left, .nav-right { display: none; }
  .nav-toggle { display: flex; }
  .navbar { padding: 0 1rem; }
  .nav-mobile-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    flex-direction: column;
    gap: 0.25rem;
  }
  .nav-mobile-menu.open { display: flex; }
  .nav-mobile-menu .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
  .nav-mobile-menu .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.82rem; }

.btn-primary {
  background: var(--teal-600);
  color: white !important;
}
.btn-primary:hover {
  background: var(--teal-500);
  color: white !important;
  box-shadow: 0 0 30px rgba(73,140,140,0.25);
  transform: translateY(-1px);
}
[data-theme="light"] .btn-primary {
  background: var(--teal-700);
}
[data-theme="light"] .btn-primary:hover {
  background: var(--teal-600);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-hover);
}
.btn-secondary:hover {
  border-color: var(--teal-500);
  color: var(--teal-500);
  background: rgba(73,140,140,0.05);
}
[data-theme="light"] .btn-secondary {
  border-color: rgba(0,0,0,0.15);
  color: var(--teal-700);
}
[data-theme="light"] .btn-secondary:hover {
  border-color: var(--teal-600);
  color: var(--teal-600);
  background: rgba(73,140,140,0.04);
}

.btn-white {
  background: white;
  color: var(--teal-700);
}
.btn-white:hover {
  background: #F0F0F0;
  color: var(--teal-800);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: white;
  color: white;
  background: rgba(255,255,255,0.05);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

/* ═══════════════════════════════════════════════
   HERO — Dark with Toggle Switch
   ═══════════════════════════════════════════════ */
.hero {
  padding: 10rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
/* Hero Background Video */
.hero-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(8,8,12,0.92) 0%,
    rgba(8,8,12,0.85) 40%,
    rgba(8,8,12,0.90) 100%
  );
  transition: background var(--theme-transition);
}
[data-theme="light"] .hero-video-overlay {
  background: linear-gradient(
    180deg,
    rgba(250,250,248,0.92) 0%,
    rgba(250,250,248,0.85) 40%,
    rgba(250,250,248,0.90) 100%
  );
}
/* Video starts paused, only plays after toggle */
.hero-video {
  opacity: 0.4;
  transition: opacity 1.5s ease;
}
.hero-video.playing {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 150%;
  background: radial-gradient(ellipse at 30% 20%, rgba(73,140,140,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(73,140,140,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
  transition: opacity var(--theme-transition);
}
[data-theme="light"] .hero::before {
  background: radial-gradient(ellipse at 30% 20%, rgba(73,140,140,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(212,149,107,0.04) 0%, transparent 50%);
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 1.5rem;
  transition: color var(--theme-transition);
}
[data-theme="light"] .hero-label { color: var(--teal-600); }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.02em;
  transition: color var(--theme-transition);
}
.hero h1 em {
  font-style: italic;
  color: var(--teal-400);
  transition: color var(--theme-transition);
}
[data-theme="light"] .hero h1 em { color: var(--teal-600); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  transition: color var(--theme-transition);
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

/* ── Theme Toggle Switch (privatverkaufen-style) ── */
.toggle-wrapper {
  margin-top: 3rem;
  text-align: center;
}
.toggle-labels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}
.toggle-label {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  transition: all 0.5s ease;
  color: var(--text-muted);
  background: transparent;
  white-space: nowrap;
}
.toggle-label.active {
  color: var(--text-primary);
}
.toggle-label--off.active {
  background: rgba(192,57,43,0.12);
  color: #c0392b;
}
[data-theme="light"] .toggle-label--off.active {
  background: transparent;
  color: var(--text-muted);
}
.toggle-label--on.active {
  background: rgba(73,140,140,0.15);
  color: var(--teal-500);
}
[data-theme="light"] .toggle-label--on.active {
  color: var(--teal-700);
}
.toggle__hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  opacity: 0.7;
  letter-spacing: 0.02em;
  animation: hintPulse 2.5s ease-in-out infinite;
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Toggle track */
.toggle-switch {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggle__track {
  position: relative;
  width: 88px;
  height: 44px;
  background: #1E1E2A;
  border: 2px solid rgba(192,57,43,0.3);
  border-radius: 22px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Thumb */
.toggle__thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 34px;
  height: 34px;
  background: #c0392b;
  border-radius: 50%;
  z-index: 2;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 16px rgba(192,57,43,0.5), 0 2px 8px rgba(0,0,0,0.3);
}

/* Pulse ring */
.toggle__pulse {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(192,57,43,0.5);
  z-index: 1;
  animation: togglePulse 2s ease-out infinite;
}

@keyframes togglePulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Checked state (light mode) */
.toggle-switch input:checked + .toggle__track {
  background: var(--teal-100, #D6EDED);
  border-color: var(--teal-400, #6FB8B8);
}
.toggle-switch input:checked + .toggle__track .toggle__thumb {
  transform: translateX(44px);
  background: var(--teal-600, #498C8C);
  box-shadow: 0 0 16px rgba(73,140,140,0.5), 0 2px 8px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle__track .toggle__pulse {
  transform: translateX(44px);
  border-color: rgba(73,140,140,0.4);
  animation: togglePulseGreen 2s ease-out infinite;
}
@keyframes togglePulseGreen {
  0% { transform: translateX(44px) scale(1); opacity: 0.6; }
  100% { transform: translateX(44px) scale(2.2); opacity: 0; }
}

/* Active press */
.toggle-switch:active .toggle__thumb {
  transform: scale(0.9);
}
.toggle-switch input:checked:active + .toggle__track .toggle__thumb {
  transform: translateX(44px) scale(0.9);
}

/* Hero text switching */
.hero-text-dark, .hero-text-light {
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-theme="light"] .hero-text-dark { display: none !important; }
[data-theme="light"] .hero-text-light { display: inline !important; }
[data-theme="dark"] .hero-text-dark { display: inline; }
[data-theme="dark"] .hero-text-light { display: none !important; }

/* Full-page flash overlay on theme change */
.theme-flash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
}
.theme-flash.flash-light {
  background: radial-gradient(circle at 50% 60%, rgba(250,250,248,0.6) 0%, rgba(250,250,248,0.1) 70%, transparent 100%);
  animation: themeFlash 0.9s ease-out forwards;
}
.theme-flash.flash-dark {
  background: radial-gradient(circle at 50% 60%, rgba(8,8,12,0.6) 0%, rgba(8,8,12,0.1) 70%, transparent 100%);
  animation: themeFlash 0.9s ease-out forwards;
}
@keyframes themeFlash {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; }
  100% { opacity: 0; }
}

/* Ripple ring from toggle */
.theme-ripple {
  position: fixed;
  z-index: 9998;
  pointer-events: none;
  width: 0;
  height: 0;
  border-radius: 50%;
  border: 3px solid var(--teal-400);
  transform: translate(-50%, -50%);
  animation: rippleExpand 1.1s ease-out forwards;
}
@keyframes rippleExpand {
  0% { width: 0; height: 0; opacity: 0.8; border-width: 3px; }
  100% { width: 300vmax; height: 300vmax; opacity: 0; border-width: 1px; }
}

/* ── Social Proof ── */
.hero-proof {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2rem;
  transition: color var(--theme-transition);
}
.hero-proof strong { color: var(--text-secondary); font-weight: 600; }

/* ═══════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════ */
.stats-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  transition: border-color var(--theme-transition);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.4rem;
  transition: color var(--theme-transition);
}
[data-theme="light"] .stat-number { color: #2A2A2A; }
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--theme-transition);
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════
   SECTION HELPERS
   ═══════════════════════════════════════════════ */
.section {
  padding: 6rem 0;
  transition: background var(--theme-transition);
}
.section-sm { padding: 3.5rem 0; }
.section-lg { padding: 8rem 0; }
.section-alt {
  background: var(--bg-elevated);
  transition: background var(--theme-transition);
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 0.75rem;
  transition: color var(--theme-transition);
}
[data-theme="light"] .section-label { color: var(--teal-700); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  transition: color var(--theme-transition);
}
.section-title em { font-style: italic; color: var(--teal-400); }
[data-theme="light"] .section-title { color: #2A2A2A; }
[data-theme="light"] .section-title em { color: var(--teal-700); }

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  transition: color var(--theme-transition);
}

.section-header {
  margin-bottom: 3.5rem;
  text-align: center;
}
.section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════════════
   SECTION BACKGROUNDS — Subtle photo overlays
   ═══════════════════════════════════════════════ */
.section-bg-wohnhaus {
  position: relative;
}
.section-bg-wohnhaus::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/bg-wohnhaus.png') center/cover no-repeat;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] .section-bg-wohnhaus::before {
  opacity: 0.06;
}
.section-bg-wohnhaus > * {
  position: relative;
  z-index: 1;
}

.page-hero-bg {
  position: relative;
  overflow: hidden;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/bg-hausreihe.png') center/cover no-repeat;
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}
[data-theme="light"] .page-hero-bg::after {
  opacity: 0.08;
}
.page-hero-bg > * {
  position: relative;
  z-index: 2;
}

/* ═══════════════════════════════════════════════
   USP GRID — Feature Cards
   ═══════════════════════════════════════════════ */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.usp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.35s ease;
}
.usp-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.usp-icon {
  width: 48px;
  height: 48px;
  background: rgba(73,140,140,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-400);
  margin-bottom: 1.25rem;
  transition: background var(--theme-transition), color var(--theme-transition);
}
[data-theme="light"] .usp-icon { background: var(--teal-50); color: var(--teal-700); }

.usp-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.usp-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

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

/* ═══════════════════════════════════════════════
   BENTO GRID — Products
   ═══════════════════════════════════════════════ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(240px, auto);
  gap: 1rem;
}
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.bento-card:hover {
  border-color: var(--teal-500);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  color: inherit;
}
.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(73,140,140,0.03) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
}
.bento-card:hover::after { opacity: 1; }

/* Bento card sizes */
.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; }
.bento-featured {
  border-color: rgba(73,140,140,0.12);
}

/* Bento card image area */
.bento-image {
  width: 100%;
  height: 220px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  overflow: hidden;
  transition: background var(--theme-transition);
}
.bento-wide .bento-image { height: 280px; }
.bento-tall .bento-image { height: 340px; flex: 1; }
.bento-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Subtle gradient backgrounds per category (light mode) */
[data-theme="light"] .bento-card:has(.cat-web) .bento-image {
  background: linear-gradient(145deg, #E8E4DF 0%, #DDD8D0 100%);
}
[data-theme="light"] .bento-card:has(.cat-ai) .bento-image {
  background: linear-gradient(145deg, #E0EAEA 0%, #D2E1E1 100%);
}
[data-theme="light"] .bento-card:has(.cat-brand) .bento-image {
  background: linear-gradient(145deg, #EDE6DC 0%, #E3D9CC 100%);
}
[data-theme="light"] .bento-card:has(.cat-check) .bento-image {
  background: linear-gradient(145deg, #E4E8DF 0%, #D8DDD0 100%);
}

/* Subtle card backgrounds (light mode) — warm tones */
[data-theme="light"] .bento-card:has(.cat-web) {
  background: linear-gradient(160deg, #FFFFFF 0%, #F8F6F3 100%);
}
[data-theme="light"] .bento-card:has(.cat-ai) {
  background: linear-gradient(160deg, #FFFFFF 0%, #F3F8F8 100%);
}
[data-theme="light"] .bento-card:has(.cat-brand) {
  background: linear-gradient(160deg, #FFFFFF 0%, #FAF6F1 100%);
}
[data-theme="light"] .bento-card:has(.cat-check) {
  background: linear-gradient(160deg, #FFFFFF 0%, #F5F8F2 100%);
}

/* Bento card content */
.bento-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
[data-theme="light"] .bento-tag { color: #636363; }

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  line-height: 1.25;
  color: var(--text-primary);
}
[data-theme="light"] .bento-card h3 { color: #2A2A2A; }
.bento-card .bento-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.bento-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}
.bento-price .price-amount {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}
[data-theme="light"] .bento-price .price-amount { color: #2A2A2A; }
.bento-price .price-type {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.bento-price .price-recurring {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-sage);
  margin-left: auto;
}
.bento-arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: all 0.3s;
}
.bento-card:hover .bento-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

@media (max-width: 900px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
}

/* ═══════════════════════════════════════════════
   CTA SECTION — Teal gradient
   ═══════════════════════════════════════════════ */
.cta-section {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-700) 50%, var(--teal-600) 100%);
  color: white;
  border-radius: var(--radius-xl);
  margin: 0 2rem;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -25%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 1rem;
  position: relative;
}
.cta-section p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  color: var(--teal-200);
  position: relative;
}
.cta-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ═══════════════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════════════ */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border-color);
  transition: border-color var(--theme-transition);
}
.faq-item summary {
  padding: 1.25rem 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  transition: color 0.2s;
}
.faq-item summary:hover { color: var(--teal-500); }
[data-theme="light"] .faq-item summary:hover { color: var(--teal-600); }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.3s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  padding: 0 0 1.25rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
  background: #08080C;
  color: #888899;
  padding: 5rem 0 2rem;
  margin-top: 4rem;
  transition: background var(--theme-transition);
}
[data-theme="light"] .footer {
  background: #1A1A22;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.footer-brand span { font-weight: 400; opacity: 0.5; }
.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 300px;
  color: #777788;
}
.footer h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999AA;
  margin-bottom: 1rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  font-size: 0.88rem;
  color: #777788;
  transition: color 0.2s;
  text-decoration: none;
}
.footer-links a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #555566;
}
.footer-legal a { color: #555566; margin-left: 1.5rem; text-decoration: none; }
.footer-legal a:hover { color: #AAAABB; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   PRODUCT DETAIL PAGES
   ═══════════════════════════════════════════════ */
.page-container {
  padding-top: 6rem;
  padding-bottom: 4rem;
}
.product-hero { padding: 6rem 0 3rem; }
.product-hero .breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.product-hero .breadcrumb a { color: var(--text-muted); text-decoration: none; }
.product-hero .breadcrumb a:hover { color: var(--teal-500); }
[data-theme="light"] .product-hero .breadcrumb a:hover { color: var(--teal-600); }

.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}
.product-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.product-hero .product-short {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Pricing sidebar */
.pricing-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: sticky;
  top: 5rem;
  transition: all var(--theme-transition);
}
.pricing-box:hover { border-color: var(--teal-500); box-shadow: var(--shadow-glow); }
.pricing-box .price-main {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--teal-400);
  line-height: 1;
}
[data-theme="light"] .pricing-box .price-main { color: var(--teal-700); }
.pricing-box .price-type {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.pricing-box .price-recurring-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-sage);
  background: rgba(122,158,130,0.1);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}
.pricing-box .btn { width: 100%; margin-bottom: 0.75rem; }
.pricing-box .price-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 768px) {
  .product-hero-grid { grid-template-columns: 1fr; }
  .pricing-box { position: static; }
}

/* ═══════════════════════════════════════════════
   TAGS
   ═══════════════════════════════════════════════ */
.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}
.tag-teal { background: rgba(73,140,140,0.15); color: var(--teal-400); }
[data-theme="light"] .tag-teal { background: var(--teal-50); color: var(--teal-700); }
.tag-warm { background: rgba(212,149,107,0.15); color: var(--accent-warm); }
.tag-sage { background: rgba(122,158,130,0.15); color: var(--accent-sage); }

/* Category tags */
.cat-web { color: var(--teal-400); }
.cat-brand { color: var(--accent-warm); }
.cat-ai { color: var(--accent-sage); }
.cat-check { color: var(--text-muted); }
.cat-consult { color: #A082C4; }
[data-theme="light"] .cat-web { color: var(--teal-600); }

/* ═══════════════════════════════════════════════
   LEGAL PAGES
   ═══════════════════════════════════════════════ */
.legal-section {
  margin-bottom: 2rem;
}
.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.legal-section h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
}
.legal-section p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}
.legal-section a { color: var(--teal-500); }
[data-theme="light"] .legal-section a { color: var(--teal-600); }

/* ═══════════════════════════════════════════════
   PRODUCT GRID (Leistungen overview)
   ═══════════════════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.35s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.product-card:hover {
  border-color: var(--teal-500);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
  color: inherit;
}
.product-card.featured {
  border-color: rgba(73,140,140,0.25);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(73,140,140,0.04) 100%);
}
.product-card .card-cat {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.product-card .card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}
.product-card .card-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}
.product-card .price-amount {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--teal-400);
}
[data-theme="light"] .product-card .price-amount { color: var(--teal-700); }
.product-card .price-type { font-size: 0.78rem; color: var(--text-muted); }
.product-card .price-recurring {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-sage);
  margin-left: auto;
}

/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children */
.stagger-in > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-in.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-in.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-in.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-in.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-in.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-in.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-in.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* Products overview heading fix */
.includes-list { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.includes-list .tag { margin-bottom: 0.25rem; }

/* ═══════════════════════════════════════════════
   ALL LINKS LINK
   ═══════════════════════════════════════════════ */
.view-all-link {
  text-align: center;
  margin-top: 2.5rem;
}
.view-all-link a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--teal-400);
  transition: all 0.25s;
}
.view-all-link a:hover { color: var(--teal-300); }
[data-theme="light"] .view-all-link a { color: var(--teal-600); }
[data-theme="light"] .view-all-link a:hover { color: var(--teal-700); }

/* ═══════════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════════ */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(73,140,140,0.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* ═══════════════════════════════════════════════
   BACKWARDS COMPAT: old class names from subpages
   ═══════════════════════════════════════════════ */
.navbar-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.navbar-logo a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.navbar-logo a span { font-weight: 400; opacity: 0.6; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-menu .nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--nav-text);
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  transition: all 0.25s;
}
.nav-menu .nav-link:hover {
  color: #F0F0F5;
  background: rgba(255,255,255,0.08);
}
[data-theme="light"] .nav-menu .nav-link:hover {
  color: #F0F0F5;
  background: rgba(255,255,255,0.08);
}
.nav-menu .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: white !important;
  background: var(--teal-600);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  transition: all 0.3s;
  text-decoration: none;
}
.nav-menu .nav-cta:hover {
  background: var(--teal-500);
  color: white !important;
}

/* Old footer structure compat */
.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-section h3 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999AA;
  margin-bottom: 1rem;
}
.footer-section p {
  font-size: 0.88rem;
  color: #777788;
  line-height: 1.7;
}
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section ul a {
  font-size: 0.88rem;
  color: #777788;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-section ul a:hover { color: white; }
