/* ============================================
   BOOK BAU GmbH — Design System
   High-End Architecture Editorial Style
   Mobile-First | No Bootstrap
   ============================================ */

/* --- Custom Properties --- */
:root {
  /* Colors */
  --brand-red: #DC2C2C;
  --brand-red-dark: #B82424;
  --brand-red-light: #F04040;
  --charcoal: #2D2D2D;
  --charcoal-light: #3D3D3D;
  --creme: #FAF8F5;
  --warm-gray: #E8E4DF;
  --warm-gray-dark: #B0AAA2;
  --text-primary: #2D2D2D;
  --text-secondary: #6B6560;
  --text-light: #9A948D;
  --white: #FFFFFF;
  --dark-bg: #1A1A1A;
  --dark-bg-light: #242424;
  --dark-card: #2A2A2A;
  --overlay-dark: rgba(26, 26, 26, 0.7);
  --overlay-brand: rgba(220, 44, 44, 0.9);

  /* Typography */
  --font-display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 960px;
  --container-padding: 1.25rem;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --shadow-xl: 0 30px 80px rgba(0,0,0,0.18);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.06);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-base: 0.4s var(--ease-out);
  --transition-slow: 0.6s var(--ease-out);

  /* Brand Shadows */
  --shadow-brand-sm: 0 2px 8px rgba(220, 44, 44, 0.15);
  --shadow-brand-md: 0 8px 25px rgba(220, 44, 44, 0.25);
  --shadow-brand-lg: 0 12px 35px rgba(220, 44, 44, 0.35);

  /* Brand Red Alpha */
  --brand-red-08: rgba(220, 44, 44, 0.08);
  --brand-red-12: rgba(220, 44, 44, 0.12);

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--creme);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol { list-style: none; }

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

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

.container--narrow {
  max-width: var(--container-narrow);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--charcoal);
}

.heading-xl {
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.heading-lg {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

.heading-md {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.heading-sm {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-red);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-sm);
}

.section-label::before {
  content: '';
  width: 2rem;
  height: 2px;
  background: var(--brand-red);
}

.section-label::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--brand-red);
  border-radius: 50%;
}

.text-accent { color: var(--brand-red); }
.text-light-color { color: var(--text-secondary); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  min-height: 48px;
  min-width: 48px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--brand-red);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--brand-red-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-brand-lg);
}
.btn--primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-brand-sm);
  transition-duration: 0.1s;
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}
.btn--outline:active {
  transform: scale(0.98);
  transition-duration: 0.1s;
}

.btn--outline-dark {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
}
.btn--outline-dark:hover {
  background: var(--charcoal);
  color: var(--white);
}
.btn--outline-dark:active {
  transform: scale(0.98);
  transition-duration: 0.1s;
}

.btn--ghost {
  background: transparent;
  color: var(--brand-red);
  padding: 0.5rem 0;
  text-transform: none;
  letter-spacing: 0;
}
.btn--ghost::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-red);
  transition: width var(--transition-base);
}
.btn--ghost:hover::before {
  width: 100%;
}
.btn--ghost::after {
  content: '→';
  transition: transform var(--transition-fast);
}
.btn--ghost:hover::after {
  transform: translateX(4px);
}

/* --- Scroll Reveal --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-reveal="left"] {
  transform: translateX(-40px);
}

[data-reveal="right"] {
  transform: translateX(40px);
}

[data-reveal="scale"] {
  transform: scale(0.95);
}

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

/* Stagger delays */
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }

/* ============================================
   1. NAVIGATION
   ============================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition-base);
}

.site-nav--transparent {
  background: transparent;
}

.site-nav--scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.6rem 0;
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.site-nav--solid {
  background: var(--white);
  padding: 0.6rem 0;
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav__logo {
  height: 40px;
  width: auto;
  transition: opacity var(--transition-fast);
}

.site-nav__logo:hover { opacity: 0.8; }

.site-nav__logo--white { display: block; }
.site-nav__logo--dark { display: none; }

.site-nav--scrolled .site-nav__logo--white,
.site-nav--solid .site-nav__logo--white { display: none; }
.site-nav--scrolled .site-nav__logo--dark,
.site-nav--solid .site-nav__logo--dark { display: block; }

/* Desktop nav links — hidden on mobile */
.site-nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.site-nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--white);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-red);
  transition: width var(--transition-base);
}
.site-nav__link:hover::after { width: 100%; }

.site-nav--scrolled .site-nav__link,
.site-nav--solid .site-nav__link { color: var(--charcoal); }

.site-nav__cta {
  font-size: 0.85rem;
  padding: 0.6rem 1.4rem;
}

.site-nav--scrolled .site-nav__cta {
  background: var(--brand-red);
  color: var(--white);
}

/* Mobile hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 12px;
  z-index: 1100;
}

.nav-toggle__bar {
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-base);
  border-radius: 1px;
}

.site-nav--scrolled .nav-toggle__bar,
.site-nav--solid .nav-toggle__bar {
  background: var(--charcoal);
}

.nav-toggle.active .nav-toggle__bar:nth-child(1) {
  transform: rotate(45deg) translateY(5.5px) translateX(5.5px);
  background: var(--white);
}
.nav-toggle.active .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .nav-toggle__bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-5.5px) translateX(5.5px);
  background: var(--white);
}

/* Mobile fullscreen overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--brand-red);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease;
}

.mobile-menu.open .mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.open .mobile-menu__link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu__link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu__link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu__link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-menu__link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.open .mobile-menu__link:nth-child(6) { transition-delay: 0.35s; }

.mobile-menu__link:hover { color: rgba(255,255,255,0.7); }

@media (min-width: 768px) {
  .site-nav__links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none; }
  .site-nav__logo { height: 45px; }
}

/* ============================================
   2. HERO
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Noise overlay */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  z-index: 2;
  pointer-events: none;
}

/* Gradient overlay */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.80) 0%,
    rgba(0,0,0,0.45) 40%,
    rgba(0,0,0,0.25) 70%,
    rgba(0,0,0,0.15) 100%
  );
  z-index: 1;
}

/* Red accent diagonal */
.hero__accent {
  position: absolute;
  bottom: 0;
  right: -10%;
  width: 35%;
  height: 60%;
  background: var(--brand-red);
  opacity: 0.08;
  transform: skewX(-12deg);
  z-index: 2;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 10;
  padding: 0 var(--container-padding) var(--space-3xl);
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.hero__title .accent {
  color: var(--brand-red);
  display: block;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollBounce 2s infinite;
}

.hero__scroll-indicator svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255,255,255,0.5);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
    gap: var(--space-md);
  }
  .hero__content {
    padding-bottom: var(--space-3xl);
  }
}

/* ============================================
   3. ABOUT / UBER UNS
   ============================================ */
.about {
  padding: var(--space-3xl) 0;
  background: var(--creme);
  overflow: hidden;
}

/* About — zentriertes Layout */
.about__centered {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about__centered p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
  line-height: 1.8;
}

.about__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* Mitarbeiter-Zitate */
.about__employees {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--warm-gray);
}

.quote-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.quote-card__photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: var(--space-md);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-md);
}

.quote-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-card__text {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 360px;
  padding-top: var(--space-sm);
  border-top: 2px solid var(--brand-red);
}

.value-card {
  padding: var(--space-md);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border-bottom: 2px solid transparent;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-bottom-color var(--transition-base);
  text-align: center;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--brand-red);
}

.value-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-sm);
  transition: transform var(--transition-base);
}

.value-card:hover .value-card__icon {
  transform: scale(1.1);
}

.value-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.value-card__title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Team / Geschäftsführer */
.about__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--warm-gray);
}

.about__team-photo {
  max-width: 560px;
  width: 100%;
}

.about__team-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about__team-names {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xl);
  justify-content: center;
}

.team-member {
  text-align: center;
}

.team-member__photo-wrap {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-sm);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-md);
}

.team-member__photo {
  width: 100%;
  height: auto;
  display: block;
  transform: translateX(18%);
}

.team-member__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-member__role {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.team-member__bio {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-top: var(--space-sm);
  max-width: 360px;
}

@media (min-width: 768px) {
  .about__centered {
    max-width: 800px;
  }
  .about__values {
    grid-template-columns: repeat(4, 1fr);
  }
  .about__employees {
    grid-template-columns: 1fr 1fr;
  }
  .team-member__photo-wrap {
    width: 180px;
    height: 180px;
  }
}

/* ============================================
   STATS COUNTER
   ============================================ */
.stats {
  position: relative;
  padding: var(--space-3xl) 0;
  background: var(--dark-bg);
  overflow: hidden;
  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* Dot-Grid background */
.stats__dotgrid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px),
    radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(220,44,44,0.06) 0%, transparent 50%);
  background-size: 24px 24px, 100% 100%;
  pointer-events: none;
}

.stats__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  text-align: center;
}

.stats__item {
  position: relative;
  flex: 1;
  max-width: 240px;
  padding: var(--space-lg) var(--space-sm);
}

/* Glow rings */
.stats__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid var(--brand-red);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stats__glow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid var(--brand-red);
  opacity: 0.8;
}

.stats__item.revealed .stats__glow {
  opacity: 0.12;
  transform: translate(-50%, -50%) scale(1);
  animation: statsPulse 3s ease-in-out infinite;
}

@keyframes statsPulse {
  0%, 100% { opacity: 0.08; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.18; transform: translate(-50%, -50%) scale(1.05); }
}

.stats__value {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stats__label {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Glowing divider lines */
.stats__divider {
  width: 1px;
  height: 0;
  background: linear-gradient(to bottom, transparent, var(--brand-red), transparent);
  box-shadow: 0 0 8px rgba(220, 44, 44, 0.3);
  transition: height 0.8s var(--ease-out);
  align-self: center;
}

.stats__divider.revealed {
  height: 80px;
}

@media (max-width: 768px) {
  .stats__grid {
    flex-direction: column;
    gap: var(--space-lg);
  }
  .stats__divider {
    width: 60px;
    height: 1px !important;
    background: linear-gradient(to right, transparent, var(--brand-red), transparent);
  }
  .stats__divider.revealed {
    height: 1px;
  }
  .stats__item {
    max-width: 100%;
  }
}

/* ============================================
   4. LEISTUNGEN / SERVICES
   ============================================ */
.services {
  padding: var(--space-3xl) 0;
  background: var(--white);
}

.services__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.service-card {
  position: relative;
  padding: var(--space-xl) var(--space-lg);
  background: var(--creme);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-red-light));
  transition: width var(--transition-slow);
}

.service-card:hover::after {
  width: 100%;
}

.service-card__number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: var(--brand-red);
  opacity: 0.08;
  line-height: 1;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  transition: opacity var(--transition-base);
}

.service-card:hover .service-card__number {
  opacity: 0.15;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.service-card__desc {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
  .services__grid .service-card:nth-child(even) {
    margin-top: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .service-card__number {
    font-size: 6rem;
  }
}

/* ============================================
   4b. BAUQUALITAET / SO BAUEN WIR
   ============================================ */
.bauqualitaet {
  padding: var(--space-3xl) 0;
  background: var(--creme);
}

.bauqualitaet__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* Desktop: Grid cards */
.bq-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  padding: var(--space-sm) 0 var(--space-md);
}

.bq-card {
  height: 360px;
  perspective: 800px;
  cursor: pointer;
}

.bq-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s var(--ease-out);
  transform-style: preserve-3d;
}

.bq-card.flipped .bq-card__inner {
  transform: rotateY(180deg);
}

.bq-card__front,
.bq-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
}

.bq-card__front {
  background: var(--charcoal);
  color: var(--white);
  justify-content: flex-end;
  transition: box-shadow var(--transition-base);
}

.bq-card:not(.flipped):hover .bq-card__front {
  box-shadow: inset 0 0 0 2px var(--brand-red-12), inset 0 0 20px var(--brand-red-08);
}

.bq-card__back {
  background: var(--white);
  color: var(--charcoal);
  transform: rotateY(180deg);
  justify-content: center;
  border: 2px solid var(--warm-gray);
}

.bq-card__number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--brand-red);
  opacity: 0.3;
  line-height: 1;
  position: absolute;
  top: 1rem;
  right: 1.25rem;
}

.bq-card__back .bq-card__number {
  opacity: 0.12;
}

.bq-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  color: var(--brand-red-light);
}

.bq-card__icon svg {
  width: 100%;
  height: 100%;
}

.bq-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: inherit;
}

.bq-card__highlight {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.bq-card__detail {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Mobile accordion — hidden on desktop */
.bq-accordion {
  display: none;
}

@media (max-width: 1024px) {
  .bq-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 639px) {
  .bq-cards { display: none; }
  .bq-accordion { display: flex; flex-direction: column; gap: 0.5rem; }
}

.bq-accordion__item {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--warm-gray);
  transition: border-color var(--transition-fast);
}

.bq-accordion__item.open {
  border-color: var(--brand-red);
}

.bq-accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  min-height: 48px;
}

.bq-accordion__trigger .bq-card__number {
  position: static;
  font-size: 1.1rem;
  opacity: 1;
  color: var(--brand-red);
  flex-shrink: 0;
  min-width: 2rem;
}

.bq-accordion__title {
  flex: 1;
}

.bq-accordion__badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brand-red);
  background: var(--brand-red-08);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.bq-accordion__arrow {
  font-size: 1.25rem;
  color: var(--text-light);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.bq-accordion__item.open .bq-accordion__arrow {
  transform: rotate(45deg);
}

.bq-accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease-out);
}

.bq-accordion__item.open .bq-accordion__content {
  max-height: 200px;
}

.bq-accordion__content p {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   PARALLAX DIVIDER
   ============================================ */
.parallax-divider {
  position: relative;
  height: 60vh;
  min-height: 400px;
  max-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.parallax-divider__img-wrap {
  position: absolute;
  inset: -40px;
  overflow: hidden;
}

.parallax-divider__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 20s ease-in-out forwards;
  will-change: transform;
}

@keyframes kenBurns {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.12); }
}

.parallax-divider__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.65);
}

/* Noise texture */
.parallax-divider__noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
}

.parallax-divider__noise::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* Light-leak overlay */
.parallax-divider__light-leak {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(220, 80, 40, 0.12) 0%, transparent 70%);
  animation: lightLeakDrift 15s ease-in-out alternate infinite;
  pointer-events: none;
}

@keyframes lightLeakDrift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-5%, 10%) rotate(5deg); }
}

/* Shimmer lines top/bottom */
.parallax-divider::before,
.parallax-divider::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-red), var(--brand-red-light), var(--brand-red), transparent);
  background-size: 200% 100%;
  animation: shimmerLine 4s linear infinite;
  z-index: 2;
}

.parallax-divider::before { top: 0; }
.parallax-divider::after { bottom: 0; }

@keyframes shimmerLine {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.parallax-divider__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 var(--container-padding);
}

.parallax-divider__accent {
  width: 3rem;
  height: 3px;
  background: var(--brand-red);
  margin: 0 auto var(--space-md);
}

.parallax-divider__quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  font-style: normal;
}

.parallax-divider__cite {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .parallax-divider {
    height: 50vh;
    min-height: 320px;
  }
  .parallax-divider__img {
    animation-name: kenBurnsMobile;
  }
  @keyframes kenBurnsMobile {
    0% { transform: scale(1.0); }
    100% { transform: scale(1.06); }
  }
}

/* ============================================
   4c. BAUABLAUF / TIMELINE
   ============================================ */
.bauablauf {
  padding: var(--space-3xl) 0;
  background: var(--charcoal);
  overflow: hidden;
}

.bauablauf .section-label { color: var(--brand-red-light); }
.bauablauf .heading-lg { color: var(--white); }

.bauablauf__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

/* 4. Watermark-Nummern (CSS Counter) */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-md) 0;
  counter-reset: timeline-phase;
}

.timeline__line {
  position: absolute;
  left: 1.25rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

/* 5. Scroll-Partikel */
.timeline__progress {
  position: relative;
  width: 100%;
  height: 0%;
  background: var(--brand-red);
  border-radius: 2px;
  transition: height 0.1s linear;
}

.timeline__progress::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-red-light);
  box-shadow: 0 0 6px 2px rgba(220,44,44,0.6), 0 0 12px 4px rgba(220,44,44,0.3);
  animation: particlePulse 1.5s ease-in-out infinite;
}

@keyframes particlePulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
  50% { transform: translateX(-50%) scale(1.2); opacity: 0.8; }
}

.timeline__phase {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: var(--space-xl);
  counter-increment: timeline-phase;
}

/* 2. Directional Card Reveals (rotation for timeline phases) */
.timeline__phase[data-reveal="left"] {
  transform: translateX(-40px) rotate(-0.5deg);
  opacity: 0;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.timeline__phase[data-reveal="right"] {
  transform: translateX(40px) rotate(0.5deg);
  opacity: 0;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* 1. Dot-Glow-Activation */
.timeline__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--charcoal-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--charcoal), 0 0 0 6px rgba(255,255,255,0.08);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.timeline__dot--active {
  background: var(--brand-red);
  box-shadow: 0 0 0 4px var(--charcoal), 0 0 0 6px rgba(220,44,44,0.3), 0 0 16px rgba(220,44,44,0.4);
  animation: dotPulse 0.6s var(--ease-out);
}

@keyframes dotPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.timeline__dot span {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--white);
}

/* Watermark number + card base */
.timeline__card {
  position: relative;
  overflow: hidden;
  background: var(--dark-card);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.timeline__card::after {
  content: "0" counter(timeline-phase);
  position: absolute;
  bottom: -0.1em;
  right: 0.15em;
  font-family: var(--font-display);
  font-size: clamp(3rem, 4vw, 5rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
}

/* 3. Card Hover Depth */
.timeline__card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  border-color: rgba(220,44,44,0.3);
  border-left: 2px solid var(--brand-red);
}

.timeline__phase:hover .timeline__dot--active {
  box-shadow: 0 0 0 4px var(--charcoal), 0 0 0 6px rgba(220,44,44,0.4), 0 0 24px rgba(220,44,44,0.6);
}

/* 6. Duration-Balken */
.timeline__duration-bar {
  position: relative;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin-top: 0.75rem;
  overflow: hidden;
}

.timeline__duration-bar__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-red-light));
  border-radius: 2px;
  transition: width 1s var(--ease-out);
}

.timeline__phase.revealed .timeline__duration-bar__fill {
  width: var(--duration-pct);
}

.timeline__card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.timeline__card-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.timeline__duration {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-red-light);
  background: var(--brand-red-12);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.timeline__card-summary {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.timeline__toggle {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-red-light);
  cursor: pointer;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

.timeline__toggle:hover { color: var(--brand-red); }

.timeline__detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.timeline__phase.open .timeline__detail {
  max-height: 400px;
}

.timeline__phase.open .timeline__toggle {
  display: none;
}

.timeline__detail ul {
  margin-top: var(--space-sm);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.timeline__detail li {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  padding-left: 1rem;
  position: relative;
}

.timeline__detail li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  background: var(--brand-red);
  border-radius: 50%;
}

.timeline__detail li strong {
  color: rgba(255,255,255,0.8);
}

/* Desktop: alternating left/right layout */
@media (min-width: 768px) {
  .timeline__line {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline__phase {
    width: 50%;
    padding-left: 0;
  }

  .timeline__phase--left {
    padding-right: calc(1.25rem + var(--space-lg));
    text-align: right;
  }

  .timeline__phase--right {
    margin-left: 50%;
    padding-left: calc(1.25rem + var(--space-lg));
  }

  .timeline__phase--left .timeline__dot {
    left: auto;
    right: 0;
    transform: translateX(50%);
  }

  .timeline__phase--right .timeline__dot {
    left: 0;
    transform: translateX(-50%);
  }

  /* Desktop dot pulse needs to preserve translateX */
  .timeline__phase--left .timeline__dot--active {
    animation: dotPulseLeft 0.6s var(--ease-out);
  }

  .timeline__phase--right .timeline__dot--active {
    animation: dotPulseRight 0.6s var(--ease-out);
  }

  @keyframes dotPulseLeft {
    0% { transform: translateX(50%) scale(1); }
    50% { transform: translateX(50%) scale(1.15); }
    100% { transform: translateX(50%) scale(1); }
  }

  @keyframes dotPulseRight {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.15); }
    100% { transform: translateX(-50%) scale(1); }
  }

  .timeline__phase--left .timeline__card-header {
    flex-direction: row-reverse;
  }

  /* Card hover: right border accent for left-aligned cards */
  .timeline__phase--left .timeline__card:hover {
    border-left: 1px solid rgba(220,44,44,0.3);
    border-right: 2px solid var(--brand-red);
  }

  /* Watermark on left cards: bottom-left */
  .timeline__phase--left .timeline__card::after {
    right: auto;
    left: 0.15em;
  }

  /* Duration bar: fill from right for left-aligned cards */
  .timeline__phase--left .timeline__duration-bar__fill {
    left: auto;
    right: 0;
  }
}

/* Mobile timeline: all cards slide from left */
@media (max-width: 767px) {
  .timeline__phase[data-reveal="right"] {
    transform: translateX(-40px) rotate(-0.5deg);
  }
}

/* ============================================
   5. PROJEKTE / GALLERY
   ============================================ */
.gallery {
  padding: var(--space-3xl) 0;
  background: var(--dark-bg);
}

.gallery .section-label { color: var(--brand-red-light); }
.gallery .heading-lg { color: var(--white); }

.gallery__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.gallery__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: var(--space-xl);
}

.gallery__filter-btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  min-height: 48px;
  cursor: pointer;
}

.gallery__filter-btn:hover,
.gallery__filter-btn.active {
  color: var(--white);
  background: var(--brand-red);
  border-color: var(--brand-red);
}

.gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery__item--featured {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.gallery__item:hover .gallery__item-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery__item-category {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-red-light);
  margin-bottom: 0.25rem;
}

.gallery__item-title {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
}

.gallery__item.hidden {
  display: none;
}

.gallery__more {
  text-align: center;
  margin-top: var(--space-xl);
}

.gallery__more .btn--outline {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}
.gallery__more .btn--outline:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--white);
}

@media (min-width: 640px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
}

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

/* ============================================
   6. BAUKOSTENRECHNER / CALCULATOR
   ============================================ */
.calculator {
  padding: var(--space-3xl) 0;
  background: var(--creme);
}

.calculator__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.calculator__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
}

/* Progress bar */
.calc-progress {
  display: flex;
  padding: var(--space-md) var(--space-lg);
  background: var(--creme);
  gap: 0.5rem;
}

.calc-progress__step {
  flex: 1;
  height: 4px;
  background: var(--warm-gray);
  border-radius: 2px;
  transition: background var(--transition-base);
}

.calc-progress__step.active {
  background: var(--brand-red);
}

/* Steps */
.calc-step {
  display: none;
  padding: var(--space-xl) var(--space-lg);
}

.calc-step.active {
  display: block;
  animation: fadeInUp 0.4s var(--ease-out);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.calc-step__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.calc-step__subtitle {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.calc-step__included {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 500;
  margin-top: calc(-1 * var(--space-sm));
  margin-bottom: var(--space-lg);
}

/* Option cards */
.calc-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.calc-option {
  padding: var(--space-md);
  border: 2px solid var(--warm-gray);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.calc-option:hover {
  border-color: var(--brand-red);
}

.calc-option.selected {
  border-color: var(--brand-red);
  background: rgba(220, 44, 44, 0.05);
}

.calc-option__icon {
  font-size: 2rem;
  width: 40px;
  height: 40px;
  color: var(--brand-red);
}

.calc-option__icon svg {
  width: 100%;
  height: 100%;
}

.calc-option.selected .calc-option__icon {
  color: var(--brand-red-dark);
}

.calc-option__label {
  font-weight: 600;
  font-size: 0.9rem;
}

.calc-option__desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Slider */
.calc-slider-wrap {
  padding: var(--space-md) 0;
}

.calc-slider-value {
  text-align: center;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--brand-red);
  margin-bottom: var(--space-sm);
}

.calc-slider-value span {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--warm-gray);
  outline: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-red);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(220,44,44,0.35);
  border: 3px solid var(--white);
}

.calc-slider::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-red);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(220,44,44,0.35);
  border: 3px solid var(--white);
}

.calc-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* Extras checkboxes */
.calc-extras {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.calc-extra {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  border: 2px solid var(--warm-gray);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 48px;
}

.calc-extra:hover { border-color: var(--brand-red); }

.calc-extra.selected {
  border-color: var(--brand-red);
  background: rgba(220,44,44,0.05);
}

.calc-extra__check {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--warm-gray-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.calc-extra.selected .calc-extra__check {
  background: var(--brand-red);
  border-color: var(--brand-red);
}

.calc-extra.selected .calc-extra__check::after {
  content: '✓';
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
}

.calc-extra__info {
  flex: 1;
}

.calc-extra__label {
  font-weight: 600;
  font-size: 0.95rem;
}

.calc-extra__price {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Navigation buttons */
.calc-nav {
  display: flex;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  gap: var(--space-sm);
}

.calc-nav .btn {
  flex: 1;
  max-width: 200px;
}

/* Result */
.calc-result {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
}

.calc-result__label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.calc-result__price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  color: var(--brand-red);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.calc-result__note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
}

.calc-result__summary {
  text-align: left;
  background: var(--creme);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}

.calc-result__summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--warm-gray);
}

.calc-result__summary-row:last-child {
  border-bottom: none;
}

/* Included extras badge */
.calc-extra--included {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.calc-extra__check--included {
  background: #22c55e;
  border-color: #22c55e;
}

.calc-extra__check--included::after {
  content: '✓';
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
}

.calc-extra__price--included {
  color: #22c55e;
  font-weight: 600;
}

/* Progress labels */
.calc-progress__label {
  display: none;
  font-size: 0.65rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 0.35rem;
  font-weight: 500;
}

@media (min-width: 640px) {
  .calc-progress {
    flex-wrap: nowrap;
  }
  .calc-progress__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    background: none;
  }
  .calc-progress__step.active {
    background: none;
  }
  .calc-progress__step::before {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background: var(--warm-gray);
    border-radius: 2px;
    transition: background var(--transition-base);
  }
  .calc-progress__step.active::before {
    background: var(--brand-red);
  }
  .calc-progress__label {
    display: block;
  }
  .calc-progress__step.active .calc-progress__label {
    color: var(--brand-red);
  }
}

/* Detail option toggles (Step 3) */
.calc-detail-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.calc-detail-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 0.75rem 1rem;
  background: var(--creme);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.calc-detail-option__info {
  flex: 1;
  min-width: 120px;
}

.calc-detail-option__label {
  font-weight: 600;
  font-size: 0.9rem;
}

.calc-detail-option__desc {
  font-size: 0.75rem;
  color: var(--text-light);
}

.calc-detail-toggle {
  display: flex;
  gap: 0.25rem;
  background: var(--warm-gray);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.calc-detail-toggle__btn {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.3;
  min-height: 40px;
  justify-content: center;
}

.calc-detail-toggle__btn span {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-light);
}

.calc-detail-toggle__btn.selected {
  background: var(--white);
  color: var(--charcoal);
  box-shadow: var(--shadow-sm);
}

.calc-detail-toggle__btn.selected span {
  color: var(--brand-red);
}

/* Nebenkosten (Step 5) */
.calc-nebenkost {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.calc-nebenkost__item {
  padding: 0.75rem 1rem;
  background: var(--creme);
  border-radius: var(--radius-md);
}

.calc-nebenkost__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.calc-nebenkost__toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
}

.calc-nebenkost__toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.calc-nebenkost__toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--warm-gray-dark);
  border-radius: 11px;
  transition: background var(--transition-fast);
}

.calc-nebenkost__toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

.calc-nebenkost__toggle input:checked + .calc-nebenkost__toggle-slider {
  background: var(--brand-red);
}

.calc-nebenkost__toggle input:checked + .calc-nebenkost__toggle-slider::before {
  transform: translateX(18px);
}

.calc-nebenkost__info {
  flex: 1;
}

.calc-nebenkost__label {
  font-size: 0.85rem;
  font-weight: 600;
}

.calc-nebenkost__auto {
  font-size: 0.7rem;
  color: var(--text-light);
  display: block;
}

.calc-nebenkost__input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-left: calc(40px + 0.75rem);
}

.calc-nebenkost__input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--warm-gray);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  max-width: 200px;
  min-height: 40px;
}

.calc-nebenkost__input:focus {
  outline: none;
  border-color: var(--brand-red);
}

.calc-nebenkost__unit {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Summary overview (Step 6) */
.calc-summary {
  background: var(--creme);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.calc-summary__group {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--warm-gray);
}

.calc-summary__group:last-child {
  border-bottom: none;
}

.calc-summary__group-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-red);
  margin-bottom: 0.4rem;
}

.calc-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.2rem 0;
  color: var(--text-secondary);
}

.calc-summary__row span:last-child {
  font-weight: 600;
  color: var(--charcoal);
}

/* Result section enhancements */
.calc-result__section {
  margin-bottom: var(--space-md);
}

.calc-result__section--sub .calc-result__price--sub {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--text-secondary);
}

.calc-result__section--total {
  padding-top: var(--space-md);
  border-top: 2px solid var(--warm-gray);
}

.calc-result__price--total {
  font-size: clamp(2.5rem, 7vw, 4rem) !important;
  color: var(--brand-red) !important;
}

.calc-result__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.calc-result__actions .btn {
  width: 100%;
  white-space: normal;
  text-align: center;
}

@media (min-width: 480px) {
  .calc-result__actions {
    flex-direction: row;
  }
  .calc-result__actions .btn {
    flex: 1;
    width: auto;
  }
}

/* Cost chart */
.calc-result__chart {
  margin: var(--space-md) 0;
}

.cost-chart__bar-wrap {
  display: flex;
  height: 32px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.cost-chart__bar {
  height: 100%;
  transition: width 1s var(--ease-out);
  min-width: 2px;
}

.cost-chart__bar--rohbau { background: var(--brand-red); }
.cost-chart__bar--ausstattung { background: var(--brand-red-dark); }
.cost-chart__bar--extras { background: var(--charcoal); }
.cost-chart__bar--neben { background: var(--warm-gray-dark); }

.cost-chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cost-chart__legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.cost-chart__legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Print styles — one-page summary */
@media print {
  /* Hide everything completely */
  body > *:not(.calculator) {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .calculator {
    padding: 0;
    background: #fff;
  }

  /* Hide chrome that isn't content */
  .calc-nav,
  .calc-progress,
  .calc-result__actions,
  .calculator__header,
  #calcComputeBtn,
  .calc-step__subtitle { display: none !important; }

  .calc-result__note {
    font-size: 0.7rem;
    color: #666;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    border-top: 1px solid #ddd;
    padding-top: 0.5rem;
  }

  /* Hide all steps except 6 (summary) and 7 (result) */
  .calc-step { display: none !important; }
  .calc-step[data-calc-step="6"],
  .calc-step[data-calc-step="7"] { display: block !important; }

  /* Print header */
  .calc-step[data-calc-step="7"]::before {
    content: 'Book Bau GmbH — Kostenschätzung';
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #DC2C2C;
  }

  /* Compact layout for single page */
  .calculator__card {
    box-shadow: none;
    max-width: 100%;
  }

  .calc-step[data-calc-step="6"],
  .calc-step[data-calc-step="7"] {
    padding: 0.5rem 1rem !important;
  }

  .calc-step__title {
    font-size: 1rem !important;
    margin-bottom: 0.25rem !important;
  }

  .calc-summary__group {
    padding: 0.35rem 0.75rem;
  }

  .calc-summary__row {
    font-size: 0.8rem;
    padding: 0.15rem 0;
  }

  .calc-summary__group-title {
    font-size: 0.65rem;
  }

  .calc-result {
    padding: 0.5rem 0 !important;
    text-align: center;
  }

  .calc-result__section {
    margin-bottom: 0.35rem !important;
  }

  .calc-result__price {
    font-size: 1.5rem !important;
  }

  .calc-result__price--total {
    font-size: 2rem !important;
  }

  .calc-result__price--sub {
    font-size: 1rem !important;
  }

  .calc-result__label {
    font-size: 0.75rem;
    margin-bottom: 0.15rem;
  }

  .calc-result__chart {
    margin: 0.5rem 0;
  }

  .cost-chart__bar-wrap {
    height: 20px;
  }

  .calc-result__summary {
    font-size: 0.75rem;
    margin-bottom: 0;
    padding: 0.35rem 0.5rem;
  }

  .calc-result__summary-row {
    font-size: 0.75rem;
    padding: 0.1rem 0;
  }
}

@media (min-width: 640px) {
  .calc-extras {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   CTA-BANNER
   ============================================ */
.cta-banner {
  position: relative;
  padding: var(--space-3xl) 0 var(--space-2xl);
  background: linear-gradient(135deg, #1A1A1A 0%, #242424 25%, #1E1E1E 50%, #222222 75%, #1A1A1A 100%);
  background-size: 400% 400%;
  animation: ctaGradientShift 12s ease infinite;
  overflow: hidden;
  text-align: center;
  color: var(--white);
}

@keyframes ctaGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Skewed top edge */
.cta-banner__skew {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--creme);
  transform: skewY(-2deg);
  transform-origin: top left;
}

/* Corner accents */
.cta-banner__corner {
  position: absolute;
  width: 80px;
  height: 80px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.cta-banner__corner.revealed {
  opacity: 1;
  transform: scale(1);
}

.cta-banner__corner--tl {
  top: 100px;
  left: 40px;
  border-top: 1px solid var(--brand-red);
  border-left: 1px solid var(--brand-red);
}

.cta-banner__corner--br {
  bottom: 40px;
  right: 40px;
  border-bottom: 1px solid var(--brand-red);
  border-right: 1px solid var(--brand-red);
}

.cta-banner__content {
  position: relative;
  z-index: 1;
  padding-top: var(--space-xl);
}

.cta-banner__title {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.cta-banner__text {
  color: rgba(255,255,255,0.65);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto var(--space-lg);
}

.cta-banner__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* Pulsing primary CTA button */
.cta-banner__btn-primary {
  position: relative;
  animation: ctaPulse 2.5s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(220, 44, 44, 0.3); }
  50% { box-shadow: 0 8px 25px rgba(220, 44, 44, 0.5); }
}

.cta-banner__btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--brand-red);
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.cta-banner__btn-primary:hover {
  animation: none;
  box-shadow: 0 8px 30px rgba(220, 44, 44, 0.6);
  transform: translateY(-4px);
}

.cta-banner__btn-primary:hover::before {
  opacity: 0.4;
  transform: scale(1.12);
}

.cta-banner__btn-secondary {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}

.cta-banner__btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

@media (max-width: 640px) {
  .cta-banner__corner { display: none; }
  .cta-banner__skew { height: 50px; }
  .cta-banner__content { padding-top: var(--space-lg); }
}

/* ============================================
   7. GOOGLE BEWERTUNGEN / REVIEWS
   ============================================ */
.reviews {
  padding: var(--space-3xl) 0;
  background: var(--white);
}

.reviews__header {
  text-align: center;
  margin-bottom: var(--space-sm);
}

.reviews__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.reviews__stars {
  display: flex;
  gap: 2px;
}

.reviews__star {
  color: #FBBC04;
  font-size: 1.5rem;
}

.reviews__score {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--charcoal);
}

.reviews__count {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Carousel */
.reviews__carousel {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: var(--space-sm) var(--container-padding);
  margin: 0 calc(-1 * var(--container-padding));
}

.reviews__carousel::-webkit-scrollbar { display: none; }

.review-card {
  flex: 0 0 85%;
  max-width: 400px;
  scroll-snap-align: center;
  background: var(--creme);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  position: relative;
  border-left: 3px solid transparent;
  transition: border-left-color var(--transition-base), box-shadow var(--transition-base);
}

.review-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 4rem;
  font-family: var(--font-display);
  color: var(--brand-red);
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
}

.review-card:hover {
  border-left-color: var(--brand-red);
  box-shadow: var(--shadow-md);
}

.review-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-sm);
}

.review-card__star {
  color: #FBBC04;
  font-size: 1.1rem;
}

.review-card__text {
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

.review-card__author {
  font-weight: 600;
  font-size: 0.9rem;
}

.review-card__date {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Google link */
.reviews__google-link {
  text-align: center;
  margin-top: var(--space-xl);
}

.reviews__google-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.reviews__google-link a:hover { color: var(--brand-red); }

@media (min-width: 640px) {
  .review-card {
    flex: 0 0 48%;
  }
}

@media (min-width: 1024px) {
  .review-card {
    flex: 0 0 32%;
  }
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq {
  padding: var(--space-3xl) 0;
  background: var(--creme);
}

.faq__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq__item {
  border-bottom: 1px solid var(--warm-gray);
  border-left: 3px solid transparent;
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.faq__item.open {
  border-left-color: var(--brand-red);
  box-shadow: -4px 0 12px rgba(220, 44, 44, 0.06);
}

.faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-sm);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
}

/* Numbered circle badge */
.faq__badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--brand-red);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-red);
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out), transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.faq__item.open .faq__badge {
  background: var(--brand-red);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 2px 12px rgba(220, 44, 44, 0.3);
}

.faq__question {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--charcoal);
}

/* Plus → Minus morph icon */
.faq__icon {
  flex-shrink: 0;
  position: relative;
  width: 20px;
  height: 20px;
}

.faq__icon span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: var(--charcoal);
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease-out), background 0.4s var(--ease-out);
}

.faq__icon span:last-child {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item.open .faq__icon span:last-child {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq__item.open .faq__icon span {
  background: var(--brand-red);
}

/* Answer panel */
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
  opacity: 0;
}

.faq__item.open .faq__answer {
  opacity: 1;
}

.faq__answer p {
  padding: 0 var(--space-sm) var(--space-md);
  padding-left: calc(36px + var(--space-sm) + var(--space-sm));
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 640px) {
  .faq__trigger {
    gap: 0.75rem;
    padding: var(--space-sm) 0.75rem;
  }
  .faq__answer p {
    padding-left: calc(36px + 0.75rem + 0.75rem);
    font-size: 0.925rem;
  }
}

/* ============================================
   8. INSTAGRAM FEED
   ============================================ */
.instagram {
  padding: var(--space-3xl) 0;
  background: var(--white);
}

.instagram__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.instagram__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.instagram__item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.instagram__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.instagram__item:hover img {
  transform: scale(1.06);
}

.instagram__item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(220, 44, 44, 0.85), rgba(184, 36, 36, 0.75));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.instagram__item:hover .instagram__item-overlay {
  opacity: 1;
}

.instagram__item-overlay svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
}

.instagram__cta {
  text-align: center;
  margin-top: var(--space-xl);
}

@media (min-width: 640px) {
  .instagram__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .instagram__grid {
    gap: 1rem;
  }
}

/* ============================================
   8b. JOB-BANNER
   ============================================ */
.job-banner {
  padding: var(--space-3xl) 0;
  background: var(--creme);
}

.job-banner__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.job-banner__content {
  text-align: left;
}

.job-banner__text {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.job-banner__benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.job-banner__benefits li {
  position: relative;
  padding-left: 1.6em;
  color: var(--text-primary);
  font-weight: 500;
}

.job-banner__benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 0.9em;
  height: 0.9em;
  background: var(--brand-red);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 8l3 3 5-5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
}

.job-banner__visual {
  text-align: center;
}

.job-banner__link {
  display: inline-block;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border-radius: var(--radius-lg);
}

.job-banner__link:hover {
  transform: translateY(-4px);
}

.job-banner__image {
  display: block;
  max-width: 340px;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-base);
}

.job-banner__link:hover .job-banner__image {
  box-shadow: var(--shadow-lg);
}

/* ============================================
   9. KONTAKT / CONTACT
   ============================================ */
.contact {
  padding: var(--space-3xl) 0;
  background: var(--dark-bg);
  color: var(--white);
}

.contact .section-label { color: var(--brand-red-light); }
.contact .heading-lg { color: var(--white); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.9rem 1rem;
  background: var(--dark-bg-light);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 1rem;
  min-height: 48px;
  transition: border-color var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px var(--brand-red-08);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

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

.form-group select option {
  background: var(--dark-bg);
  color: var(--white);
}

/* Honeypot */
.form-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Checkbox */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  accent-color: var(--brand-red);
  cursor: pointer;
}

.form-check__label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.form-check__label a {
  color: var(--brand-red-light);
  text-decoration: underline;
}

.form-group .form-error {
  font-size: 0.8rem;
  color: var(--brand-red-light);
  display: none;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: var(--brand-red);
}

.form-group.error .form-error {
  display: block;
}

/* Right column: Info + Map */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.contact__info-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-red-12);
  border-radius: var(--radius-sm);
  color: var(--brand-red-light);
}

.contact__info-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.contact__info-text h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact__info-text p,
.contact__info-text a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.contact__info-text a:hover { color: var(--brand-red-light); }

.contact__map {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 260px;
  margin-top: var(--space-sm);
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.4);
}

@media (min-width: 768px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

/* ============================================
   10. FOOTER
   ============================================ */
.site-footer {
  background: #111111;
  color: rgba(255,255,255,0.6);
  padding: var(--space-2xl) 0 0;
  border-top: 3px solid var(--brand-red);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col__logo {
  height: 40px;
  width: auto;
  margin-bottom: var(--space-sm);
}

.footer-col__tagline {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer-col__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col__links a {
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-col__links a:hover { color: var(--brand-red-light); }

.footer-col__contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.footer-col__contact-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--brand-red-light);
  fill: none;
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--brand-red);
  color: var(--white);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Footer bottom */
.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: var(--space-md) 0;
  font-size: 0.8rem;
}

.site-footer__bottom-links {
  display: flex;
  gap: 1.5rem;
}

.site-footer__bottom-links a:hover { color: var(--brand-red-light); }

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ============================================
   11. LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  z-index: 2010;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.lightbox__close:hover { background: rgba(255,255,255,0.2); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: background var(--transition-fast);
  z-index: 2010;
}

.lightbox__nav:hover { background: rgba(255,255,255,0.2); }

.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

/* ============================================
   12. LEGAL PAGES (Impressum, Datenschutz)
   ============================================ */
.legal-page {
  padding-top: 100px;
  padding-bottom: var(--space-3xl);
  background: var(--creme);
  min-height: 100vh;
}

.legal-page__header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid var(--brand-red);
}

.legal-page__header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.legal-content h2 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--charcoal);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.legal-content h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

.legal-content a {
  color: var(--brand-red);
  text-decoration: underline;
}

.legal-content a:hover { color: var(--brand-red-dark); }

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: var(--space-sm);
}

.legal-content ul li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

/* ============================================
   13. SUCCESS PAGE
   ============================================ */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--container-padding);
  background: var(--creme);
}

.success-check {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  animation: checkPop 0.6s var(--ease-out);
}

.success-check svg {
  width: 40px;
  height: 40px;
  stroke: var(--white);
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes checkPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.success-page h1 {
  margin-bottom: var(--space-sm);
}

.success-page p {
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: var(--space-lg);
  font-size: 1.05rem;
}

/* ============================================
   14. SECTION SPACING HELPERS
   ============================================ */
.section-padding {
  padding: var(--space-3xl) 0;
}

@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --container-padding: 2.5rem;
  }
}

/* ============================================
   15. MOBILE OPTIMIERUNG (max-width: 480px)
   Smartphones: iPhone SE (375px), Galaxy (360px), iPhone 14 (390px)
   ============================================ */
@media (max-width: 480px) {

  /* Spacing verkleinern */
  :root {
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 5rem;
  }

  /* Headings kleiner */
  .heading-lg {
    font-size: 1.75rem;
  }

  /* Hero: weniger Padding, Text lesbar */
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    align-items: center;
  }
  .hero__bg img {
    object-position: center 25%;
  }
  .hero__content {
    padding: 0 var(--container-padding) 6rem;
  }
  .hero__title {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
  }
  .hero__subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  .hero__actions {
    gap: 0.75rem;
  }
  .hero__actions .btn {
    width: 100%;
    text-align: center;
    padding: 0.85rem 1.5rem;
    font-size: 0.85rem;
  }

  /* About: kein Overflow, Text-Wrap */
  .about__centered p {
    font-size: 0.95rem;
    word-break: break-word;
  }
  .about__values {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .value-card {
    padding: var(--space-sm);
  }
  .value-card__icon {
    width: 36px;
    height: 36px;
  }
  .value-card__title {
    font-size: 0.75rem;
  }
  .quote-card__photo {
    width: 160px;
    height: 160px;
  }
  .quote-card__text {
    font-size: 0.9rem;
  }
  .job-banner__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .job-banner__content {
    text-align: center;
    order: 2;
  }
  .job-banner__visual {
    order: 1;
  }
  .job-banner__benefits {
    align-items: center;
  }
  .job-banner__image {
    max-width: 260px;
  }

  /* Team-Fotos: kleiner */
  .about__team {
    gap: var(--space-sm);
  }
  .team-member__photo-wrap {
    width: 110px;
    height: 110px;
  }
  .team-member__name {
    font-size: 0.95rem;
  }
  .team-member__role {
    font-size: 0.8rem;
  }
  .team-member__bio {
    font-size: 0.85rem;
    max-width: 100%;
  }

  /* Services: 1 Spalte */
  .services__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .services__grid .service-card:nth-child(even) {
    margin-top: 0;
  }
  .service-card {
    padding: var(--space-lg) var(--space-md);
  }
  .service-card__title {
    font-size: 1.25rem;
  }
  .service-card__desc {
    font-size: 0.9rem;
  }
  .service-card__number {
    font-size: 3rem;
  }

  /* Gallery: 2-Spalten mit kleinem Gap */
  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
  .gallery__item--featured {
    grid-column: span 2;
    grid-row: span 1;
  }
  .gallery__filters {
    gap: 0.35rem;
  }
  .gallery__filter-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
    min-height: 40px;
  }

  /* Bauqualitaet: kompakter */
  .bauqualitaet {
    padding: var(--space-2xl) 0;
  }
  .bq-accordion__trigger {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
  .bq-accordion__badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
  }

  /* Bauablauf: kompakter */
  .bauablauf {
    padding: var(--space-2xl) 0;
  }
  .timeline__card {
    padding: var(--space-md);
  }
  .timeline__card-header h3 {
    font-size: 1rem;
  }
  .timeline__card-summary {
    font-size: 0.8rem;
  }
  .timeline__dot {
    width: 2rem;
    height: 2rem;
  }
  .timeline__dot span {
    font-size: 0.75rem;
  }
  .timeline__phase {
    padding-left: 3rem;
  }
  .timeline__duration-bar {
    margin-top: 0.5rem;
  }

  /* Baukostenrechner: kompakter */
  .calc-step {
    padding: var(--space-lg) var(--space-md);
  }
  .calc-progress {
    padding: var(--space-sm) var(--space-md);
  }
  .calc-step__title {
    font-size: 1.2rem;
  }
  .calc-options {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .calc-option {
    padding: 0.75rem;
  }
  .calc-option__icon {
    font-size: 1.5rem;
  }
  .calc-option__label {
    font-size: 0.8rem;
  }
  .calc-option__desc {
    font-size: 0.7rem;
  }
  .calc-slider-value {
    font-size: 2.25rem;
  }
  .calc-nav {
    padding: var(--space-sm) var(--space-md) var(--space-md);
  }
  .calc-nav .btn {
    font-size: 0.8rem;
    padding: 0.75rem 1rem;
  }
  .calc-result__price {
    font-size: 1.75rem;
  }
  .calc-result__summary-row {
    font-size: 0.8rem;
  }
  .calc-extras {
    grid-template-columns: 1fr;
  }
  .calc-detail-option {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .calc-detail-toggle {
    width: 100%;
  }
  .calc-detail-toggle__btn {
    flex: 1;
    font-size: 0.7rem;
    padding: 0.35rem 0.5rem;
  }
  .calc-nebenkost__label {
    font-size: 0.8rem;
  }
  .calc-nebenkost__auto {
    font-size: 0.65rem;
  }
  .calc-nebenkost__input-wrap {
    padding-left: 0;
  }
  .calc-result__actions {
    flex-direction: column;
  }
  .calc-result__actions .btn {
    min-width: 0;
    width: 100%;
  }

  /* Reviews: schmalere Karten */
  .review-card {
    flex: 0 0 88%;
    padding: var(--space-md);
  }
  .review-card__text {
    font-size: 0.875rem;
    line-height: 1.6;
  }
  .reviews__rating {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .reviews__score {
    font-size: 1.5rem;
  }
  .reviews__star {
    font-size: 1.2rem;
  }

  /* Instagram: 2 Spalten */
  .instagram__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  /* Kontakt: alles 1-spaltig, Formular voll breit */
  .contact__grid {
    gap: var(--space-lg);
  }
  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px; /* verhindert iOS-Zoom */
  }
  .contact__map {
    height: 200px;
  }

  /* Footer: kompakter */
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .site-footer__bottom {
    text-align: center;
    font-size: 0.75rem;
  }

  /* Buttons: volle Breite auf kleinen Screens */
  .btn {
    font-size: 0.85rem;
    padding: 0.8rem 1.5rem;
  }

  /* Legal Pages */
  .legal-page {
    padding-top: 80px;
  }
  .legal-page__header h1 {
    font-size: 1.75rem;
  }
  .legal-content p,
  .legal-content ul li {
    font-size: 0.9rem;
    line-height: 1.7;
    word-break: break-word;
  }

  /* Overflow überall verhindern */
  section, .container {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
}

/* ============================================
   ACCESSIBILITY: prefers-reduced-motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  /* Disable all decorative animations */
  .cta-banner { animation: none; }
  .cta-banner__btn-primary { animation: none; }
  .stats__item.revealed .stats__glow { animation: none; }
  .parallax-divider__img { animation: none; }
  .parallax-divider::before,
  .parallax-divider::after { animation: none; }
  .parallax-divider__light-leak { animation: none; }
  .ctaGradientShift { animation: none; }

  /* Timeline: Dot-Pulse off, all dots visible */
  .timeline__dot--active { animation: none; }
  .timeline__dot {
    background: var(--brand-red);
    box-shadow: 0 0 0 4px var(--charcoal), 0 0 0 6px rgba(220,44,44,0.3);
  }

  /* Scroll-Partikel: static glow, no pulse */
  .timeline__progress::after { animation: none; }

  /* Card hover: no transform, only border feedback */
  .timeline__card:hover {
    transform: none;
  }

  /* Directional reveals: no slide, fast fade only */
  .timeline__phase[data-reveal="left"],
  .timeline__phase[data-reveal="right"] {
    transform: none;
    transition: opacity 0.3s ease;
  }

  /* Duration-Bars: instant fill */
  .timeline__duration-bar__fill { transition: none; }

  /* Keep functional transitions (FAQ open/close) intact */
}
