/* ============================================
   BAUWERKSBUCH WEBSITE
   ============================================ */

/* Local Fonts - GDPR Compliance */
/* Merriweather */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/merriweather-v30-latin-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/merriweather-v30-latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('assets/fonts/merriweather-v30-latin-900.woff2') format('woff2');
}

/* Noto Sans */
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/noto-sans-v42-latin-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/noto-sans-v42-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/noto-sans-v42-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/noto-sans-v42-latin-700.woff2') format('woff2');
}

/* CSS Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette */
  --bg-primary: #ffffff;
  --bg-secondary: #fff6ed;
  --bg-tertiary: #ffffff;

  --primary-orange: #f15a12;
  --primary-orange-hover: #d14a0f;
  --primary-orange-soft: #fff3e6;

  --text-main: #3e3f3f;
  --text-muted: #666666;
  --text-white: #ffffff;

  --border-color: #f1f1f1;

  /* Spacing System - More "Breathable" */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5rem;
  --space-3xl: 8rem;

  /* Typography */
  --font-serif: 'Merriweather', serif;
  --font-sans: 'Noto Sans', sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2.25rem;
  --font-size-4xl: 3rem;
  --font-size-5xl: 4rem;

  /* Rounded Corners - Modern App Style */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows - Floating Style */
  --shadow-btn: rgba(63, 63, 63, 0.08) 0px 4px 12px 0px;
  --shadow-card: rgba(0, 0, 0, 0.06) 0px 8px 24px 0px;

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
}

/* Base Styles */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--text-main);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Header */
.header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2000;
}

.logo {
  font-family: system-ui, sans-serif;
  font-size: var(--font-size-xl);
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2010;
}

.logo-accent {
  color: var(--primary-orange);
}

.logo-bold {
  color: var(--primary-orange);
  font-weight: 700;
}

/* Desktop Navigation Overlay (Restored header layout) */
.nav-container {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(3.5rem + 1px);
  /* Matches exact header height */
  z-index: 1005;
  /* Above sticky header */
  pointer-events: none;
  /* Let logo clicks pass through to header */
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
  width: 100%;
  max-width: 1280px;
  /* Match body container max-width */
  padding: 0 var(--space-lg);
  justify-content: flex-end;
  /* Align links to the right */
  align-items: center;
  pointer-events: none;
  /* Let clicks pass through the empty left space to the logo */
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  pointer-events: auto;
  /* Make ONLY the actual links themselves clickable */
}

.nav-links a:hover {
  color: var(--primary-orange);
}

.nav-link-portal {
  border: 1.5px solid rgba(0, 0, 0, 0.2);
  border-radius: 2rem;
  padding: 0.25rem 0.9rem;
  white-space: nowrap;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.nav-link-portal:hover {
  color: var(--primary-orange) !important;
  border-color: var(--primary-orange);
}

/* Hide mobile-specific elements on desktop */
.nav-close-btn {
  display: none;
}

/* Hero Section */
.hero {
  /* Ensure hero fills viewport cleanly - subtract approximate header height */
  min-height: calc(100vh - 65px);
  /* Flexbox for vertical centering */
  display: flex;
  align-items: center;
  justify-content: center;
  /* Add bottom padding to lift the visual center upwards (approx 20% higher visually) */
  padding: 0 0 15vh 0;
  text-align: center;
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  width: 100%;
  padding-top: var(--space-3xl);
  padding-bottom: calc(var(--space-3xl) + 0.85rem);
  /* Allows images to hang off bottom if needed, but outer clip handles it */
  overflow: visible;
}


.hero-content {
  position: relative;
  z-index: 10;
  /* Shift text, CTA, and badges up by 20px without affecting the height of .hero-inner, perfectly preserving the absolute positioning of the background buildings */
  transform: translateY(-20px);
}

.hero-building {
  position: absolute;
  bottom: -65px;
  width: 1188px;
  opacity: 0.7;
  filter: grayscale(50%);
  z-index: 0;
  pointer-events: none;
  line-height: 0;
  max-width: 100vw;
  /* Prevent overflow */
  overflow: hidden;
}

.hero-building img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.hero-building-left {
  left: -585px;
  bottom: -90px;
}

.hero-building-right {
  right: -530px;
}

.hero h1 {
  font-size: var(--font-size-5xl);
  color: var(--primary-orange);
  margin-bottom: var(--space-lg);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 span {
  color: var(--text-main);
}

.hero-subtext {
  font-family: var(--font-serif);
  font-size: var(--font-size-2xl);
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin-bottom: 2.55rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.hero-checkmarks {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  margin-bottom: calc(3.5rem - 10px);
}

.checkmark-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 500;
  background: transparent;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  white-space: nowrap;
  transition: all var(--transition-base);
  cursor: default;
}

/* Micro-interaction: morph to premium floating Glass Chip on hover */
.checkmark-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* White border to catch light on glass surface */
  border-color: #ffffff;
  /* Smooth drop shadow separating it from canvas */
  box-shadow: 0 4px 12px rgba(241, 90, 18, 0.08);
}

.checkmark-icon {
  color: var(--primary-orange);
  font-size: 0.8em;
  margin-top: -1px;
}

.cta-button {
  display: inline-block;
  padding: 1.125rem 2.75rem;
  background-color: var(--primary-orange);
  color: var(--text-white);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--font-size-base);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-btn);
  transition: all var(--transition-base);

  border: 2px solid var(--primary-orange);
}

.cta-button:hover {
  background-color: var(--primary-orange-hover);
  border-color: var(--primary-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(241, 90, 18, 0.4);
}

.hero-trust-symbols {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  margin-top: 2rem;
}

.trust-badge-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: help;
  /* Ensure a hit box larger than just the lines of the SVG */
  padding: 4px;
}

/* Base State: Graded out opacity */
.trust-symbol,
.trust-symbol-svg {
  opacity: 0.8;
  transition: all var(--transition-base);
}

.trust-symbol {
  height: 53px;
  width: auto;
  object-fit: contain;
}

.trust-symbol-svg {
  height: 42px;
  width: auto;
  stroke: var(--text-main);
  stroke-width: 1.5;
}

/* Hover/Active State: Only this item becomes fully opaque and "darker" */
.trust-badge-wrapper:hover .trust-symbol,
.trust-badge-wrapper:hover .trust-symbol-svg,
.trust-badge-wrapper.active .trust-symbol,
.trust-badge-wrapper.active .trust-symbol-svg {
  opacity: 1;
  /* Making it slightly darker by shifting it towards black */
  filter: brightness(0.85);
}

/* The Custom Tooltip Component */
.trust-badge-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  /* spacing below the icon */
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  /* perfectly matching the existing tooltip color */
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  /* Fast fade-out (100ms) with no delay when moving mouse away */
  transition: opacity 100ms ease, visibility 100ms ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Tooltip Show State */
.trust-badge-wrapper:hover .trust-badge-tooltip,
.trust-badge-wrapper.active .trust-badge-tooltip {
  opacity: 1;
  visibility: visible;
  /* Faster fade-in (150ms) with a shorter delay (150ms) when hovering */
  transition: opacity 150ms ease 150ms, visibility 150ms ease 150ms;
}

svg.trust-symbol-svg[aria-label="DSGVO Konform"] {
  height: 53px;
}

@media (max-width: 768px) {
  .hero-trust-symbols {
    gap: var(--space-md);
  }

  .trust-symbol {
    height: 42px;
  }

  .trust-symbol-svg {
    height: 33px;
  }

  svg.trust-symbol-svg[aria-label="DSGVO Konform"] {
    height: 42px;
  }
}

/* Sections */
.section {
  padding: var(--space-3xl) 0;
}

.bg-secondary {
  background-color: var(--bg-secondary);
}

.section-title {
  text-align: center;
  font-size: var(--font-size-4xl);
  margin-bottom: 4rem;
}

/* Standard section spacing */
#preis-kalkulator {
  padding-top: 5.6rem;
  /* reduced from 8rem for better CTA visibility */
}

/* Desktop only: tighter Preise heading-to-subtitle spacing */
@media (min-width: 769px) {
  #preis-kalkulator .section-title {
    margin-bottom: 1.176rem;
    /* 30% less than 2.4rem */
  }
}

#ablauf-bauwerksbuch {
  padding-top: calc(var(--space-3xl) * 0.75);
}

#haeufige-fragen {
  padding-top: calc(var(--space-3xl) * 0.8);
}

/* Layout for Leistungen + Calculator */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* Calculator Card */
.calculator-card {
  background-color: var(--bg-tertiary);
  padding: 1.96rem var(--space-xl) 2.625rem var(--space-xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  margin: 0 auto;
  max-width: 600px;
}

.calculator-card h3 {
  font-family: var(--font-serif);
  font-size: var(--font-size-2xl);
  margin-bottom: 0.9rem;
  color: var(--primary-orange);
}

.calculator-card p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}

.slider-container {
  margin-bottom: 2.1rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
  font-weight: 700;
  color: var(--text-main);
}

.value-display {
  color: var(--primary-orange);
  font-size: var(--font-size-xl);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

#m2-input {
  width: 100px;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary-orange);
  background: var(--bg-primary);
  text-align: right;
  transition: all var(--transition-fast);
}

#m2-input:focus {
  outline: none;
  border-color: var(--primary-orange);
  background-color: var(--bg-secondary);
}

/* Hide arrows for Chrome, Safari, Edge, Opera */
#m2-input::-webkit-outer-spin-button,
#m2-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

/* Hide arrows for Firefox */
#m2-input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Range Input Styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--primary-orange);
  cursor: pointer;
  border-radius: var(--radius-full);
  border: 4px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-fast);
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--primary-orange);
  cursor: pointer;
  border-radius: var(--radius-full);
  border: 4px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.1);
}

.price-box {
  background-color: var(--bg-secondary);
  padding: 1.2rem var(--space-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  margin-bottom: calc(var(--space-lg) - 5px);
  /* Moved CTA 5px closer */
}

.price-label {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.price-value {
  display: block;
  font-size: var(--font-size-3xl);
  font-weight: 900;
  color: var(--text-main);
  font-family: var(--font-serif);
}

.price-subtext {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.price-original-wrapper {
  margin-top: var(--space-xs);
  margin-bottom: 0;
}

#price-original {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #A9A9A9;
  text-decoration: line-through;
  font-weight: 500;
}

.price-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xs);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0 4px;
}

.info-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  cursor: help;
  vertical-align: middle;
}

.info-icon {
  width: 16px;
  height: 16px;
  background: var(--border-color);
  color: var(--text-muted);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.info-icon-wrapper:hover .info-icon {
  background: var(--primary-orange);
  color: white;
}

.tooltip {
  position: absolute;
  bottom: 150%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #333;
  color: white;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  width: 240px;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 1000;
  box-shadow: var(--shadow-card);
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.info-icon-wrapper:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.calculator-card .cta-button {
  width: 100%;
  text-align: center;
}

@media (max-width: 1024px) {
  .calculator-card {
    margin-bottom: var(--space-xl);
  }
}

.benefit-card {
  background-color: var(--bg-tertiary);
  padding: 2.8rem var(--space-xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-orange), #ff8a5c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
  z-index: 2;
}

.benefit-card:hover::before {
  transform: scaleX(1);
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.12);
  border-color: rgba(241, 90, 18, 0.2);
}

.process-icon-container {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary-orange-soft), #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(241, 90, 18, 0.08);
  border: 1px solid rgba(241, 90, 18, 0.1);
  transition: all var(--transition-base);
}

.benefit-card:hover .process-icon-container {
  transform: scale(1.05);
  background: var(--primary-orange);
  box-shadow: 0 8px 24px rgba(241, 90, 18, 0.25);
  border-color: var(--primary-orange);
}

.process-icon-svg {
  width: 40px;
  height: 40px;
  stroke: var(--primary-orange);
  stroke-width: 1.5;
  fill: none;
  transition: all var(--transition-base);
}

.benefit-card:hover .process-icon-svg {
  stroke: #ffffff;
}

.benefit-card h3 {
  font-size: var(--font-size-xl);
  margin-top: 0;
  margin-bottom: var(--space-sm);
  color: var(--text-main);
  transition: color var(--transition-base);
}

.benefit-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

p.benefit-card-target {
  margin-top: auto;
  /* Pushes the target to the bottom */
  padding-top: 1.5rem;
  font-weight: 700;
  color: var(--primary-orange);
  position: relative;
  display: inline-block;
  transition: all var(--transition-base);
}

p.benefit-card-target::after {
  content: '→';
  position: absolute;
  right: -24px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-base);
}

.benefit-card:hover p.benefit-card-target::after {
  opacity: 1;
  transform: translateX(0);
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================
   GOOGLE RATINGS SECTION
   ============================================ */
#customer-ratings {
  padding-top: calc(var(--space-3xl) * 0.6);
  /* 40% less than default 8rem → 4.8rem */
  padding-bottom: calc(var(--space-3xl) * 0.7);
  /* 30% less than default 8rem → 5.6rem */
}

.google-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--text-main);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.google-trust-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.google-trust-badge svg {
  width: 20px;
  height: 20px;
}

.star-rating-total {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.star-rating-total .stars {
  color: #ffb400;
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.star-rating-total .rating-text {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.ratings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  transition: opacity 0.3s ease;
}

.ratings-grid[style*="visibility: hidden"] {
  opacity: 0;
}

.ratings-grid[style*="visibility: visible"] {
  opacity: 1;
}

.rating-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.rating-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
  border-color: rgba(241, 90, 18, 0.3);
}

.rating-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.avatar-blue {
  background-color: #4285f4;
}

.avatar-green {
  background-color: #34a853;
}

.avatar-yellow {
  background-color: #fbbc05;
}

.avatar-red {
  background-color: #ea4335;
}

.avatar-purple {
  background-color: #a142f4;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 700;
  color: var(--text-main);
  font-size: var(--font-size-base);
}

.rating-card .stars {
  color: #ffb400;
  font-size: 1rem;
  letter-spacing: 2px;
}

.rating-card .rating-text {
  font-size: var(--font-size-base);
  line-height: 1.65;
  color: var(--text-muted);
}

.rating-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 600;
  padding-top: 0.5rem;
}

.verified-icon {
  background: #34a853;
  color: white;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

@media (max-width: 768px) {
  .ratings-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .rating-card {
    padding: 1.5rem;
  }
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-md);
  overflow: hidden;
  background: var(--bg-tertiary);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.faq-item:last-child {
  margin-bottom: 0;
}

html,
body {
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
  overscroll-behavior-x: none;
  /* Prevents Safari "unlocking" bounce */
}

body {
  width: 100%;
  position: relative;
  /* Compensate for fixed header */
}

/* Verhindert Chrome/Android "Pull to Refresh" Ruckeln beim Hochscrollen */
@media (max-width: 768px) {
  body {
    overscroll-behavior-y: none;
  }
}

.faq-question {
  width: 100%;
  padding: calc(var(--space-md) * 0.9) calc(var(--space-xl) * 0.65);
  background: none;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: var(--font-size-lg);
  font-family: var(--font-serif);
  color: var(--text-main);
}

.faq-icon {
  color: var(--primary-orange);
  font-size: 1.5rem;
  transition: transform var(--transition-base);
}

.faq-item.active {
  border-color: var(--primary-orange-soft);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-base);
  padding: 0 calc(var(--space-xl) * 0.65);
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 800px;
  padding: 0 calc(var(--space-xl) * 0.65) calc(var(--space-xl) * 0.65);
}

/* Footer (unique properties not covered by Footer Styles block below) */
.footer-logo {
  font-family: system-ui, sans-serif !important;
  font-size: var(--font-size-xl) !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em;
}

.footer-section p,
.footer-links a,
.footer-links li {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: var(--font-size-3xl);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .sticky-cta.mobile-only {
    display: block;
  }

  .hero {
    /* Fill viewport on mobile, using svh to account for browser chrome */
    min-height: calc(100svh - 65px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 10vh 0;
  }

  .hero-inner {
    padding: var(--space-2xl) 0;
  }

  /* Reduce opacity of decorative buildings on small screens to prevent text collision while keeping the vibe */
  .hero-building {
    display: block;
    opacity: 0.05;
  }



  .hero-checkmarks {
    display: none;
  }

  .hero-subtext {
    font-size: var(--font-size-base);
  }

  .hero h1 {
    font-size: var(--font-size-3xl);
  }

  /* Reduce Ablauf and FAQ section titles by 25% on mobile */
  #ablauf-bauwerksbuch .section-title,
  #haeufige-fragen .section-title {
    font-size: 2.25rem;
    /* 75% of 3rem */
  }
}


/* Info Box (Restored) */
.info-box {
  background-color: #fff6ed !important;
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  border: 2px solid #ffffff !important;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}

.info-box h2 {
  font-size: var(--font-size-3xl);
}

/* Blog & Insights Styles */
.filter-chips {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.filter-chip {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: white;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip.active,
.filter-chip:hover {
  background: var(--primary-orange);
  color: white;
  border-color: var(--primary-orange);
}

.featured-post {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
}

.featured-image {
  background-color: #eee;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  position: relative;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-content {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.blog-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-base);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-image {
  height: 220px;
  background-color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Specific styling for category icons to prevent stretching */
.blog-image .category-icon {
  width: auto;
  height: 100px;
  /* Fixed height for consistency */
  object-fit: contain;
}

/* Specific adjustment for Fristen icon to match visual weight of others */
.blog-image img[src*="fristen"] {
  transform: scale(1.25);
}

.blog-content {
  padding: var(--space-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.blog-category {
  color: var(--primary-orange);
  font-weight: 700;
  text-transform: uppercase;
}

.blog-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
  color: var(--text-main);
  line-height: 1.3;
}

.blog-teaser {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-md);
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-link {
  color: var(--primary-orange);
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
  margin-top: auto;
}

.blog-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-image {
    min-height: 200px;
  }
}

/* Blog Article Modal */
.blog-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  overflow-y: auto;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.blog-modal.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  opacity: 1;
}

.blog-modal-content {
  background: white;
  border-radius: var(--radius-xl);
  max-width: 800px;
  width: 100%;
  position: relative;
  margin: var(--space-xl) auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform var(--transition-base);
}

.blog-modal.active .blog-modal-content {
  transform: translateY(0);
}

.blog-modal-header {
  padding: var(--space-xl);
  border-bottom: 1px solid var(--border-color);
  background: white;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.blog-modal-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: var(--bg-secondary);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.blog-modal-close:hover {
  background: var(--primary-orange);
  color: white;
  transform: rotate(90deg);
}

.blog-modal-body {
  padding: var(--space-xl);
  line-height: 1.8;
}

.blog-modal-body h2 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
  color: var(--text-main);
}

.blog-modal-body h3 {
  font-size: var(--font-size-xl);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--primary-orange);
}

.blog-modal-body p {
  margin-bottom: var(--space-md);
  color: var(--text-main);
}

.blog-modal-body strong {
  font-weight: 700;
  color: var(--text-main);
}

.blog-modal-body ul {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.blog-modal-body li {
  margin-bottom: var(--space-xs);
}

@media (max-width: 768px) {
  .blog-modal.active {
    padding: 0;
  }

  .blog-modal-content {
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
  }

  .blog-modal-header {
    border-radius: 0;
  }
}

/* ===== LEAD CAPTURE MODAL ===== */

/* Glassmorphism Overlay */
.lead-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 246, 237, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lead-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* White Card with Fintech Shadow */
.lead-modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  box-shadow:
    0 25px 50px -12px rgba(59, 130, 246, 0.15),
    0 12px 25px -5px rgba(0, 0, 0, 0.08);
  max-width: 520px;
  width: 100%;
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.lead-modal-overlay.active .lead-modal-card {
  transform: translateY(0);
}

/* Close Button */
.lead-modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.lead-modal-close:hover {
  background: var(--bg-secondary);
  color: var(--text-main);
}

/* Step Indicators */
.lead-modal-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
}

.step-indicator {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.step-indicator.active {
  background: var(--primary-orange);
  color: white;
}

.step-indicator.completed {
  background: #22c55e;
  color: white;
}

.step-line {
  width: 40px;
  height: 2px;
  background: var(--border-color);
}

/* Step Content */
.lead-modal-step {
  display: none;
}

.lead-modal-step.active {
  display: block;
}

.lead-modal-heading {
  font-family: var(--font-serif);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: var(--space-xs);
  text-align: center;
}

.lead-modal-subtext {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--space-xl);
  font-size: var(--font-size-base);
}

/* Form Elements */
.lead-form-group {
  margin-bottom: var(--space-md);
}

.lead-form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-base);
}

.lead-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-family: var(--font-sans);
  background: var(--bg-primary);
  transition: all var(--transition-fast);
}

.lead-input:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(241, 90, 18, 0.1);
}

.lead-input::placeholder {
  color: #9ca3af;
}

.lead-input.error {
  border-color: var(--primary-orange);
  background-color: rgba(241, 90, 18, 0.05);
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}

.lead-error-message {
  color: var(--primary-orange);
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
  display: none;
  font-weight: 600;
  text-align: center;
  background: rgba(241, 90, 18, 0.1);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary-orange);
}

#lead-m2 {
  color: var(--primary-orange);
  font-weight: 700;
  font-size: var(--font-size-xl);
}

.lead-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}


/* Einblicke Specific */
.einblicke-hero {
  padding-top: 3.75rem;
  /* 75% of space-2xl */
  padding-bottom: 1.5rem;
  /* 75% of space-lg */
  text-align: center;
}

.einblicke-filters {
  padding-top: 0;
  padding-bottom: 1rem;
  /* Reduced by another 33% (Total ~60% reduction) */
}

.einblicke-grid {
  padding-top: 1.5rem;
  /* Reduced from space-xl (3.5rem) to visually close the gap */
}

.filter-chips {
  margin-bottom: 2.25rem;
  /* Reduced from 3.5rem (56px) to ~36px */
}


/* FAQ Details Spacing Override */
#faq-detail {
  padding-bottom: 90px;
  /* Increased by 50% from 60px */
}

/* Property Type Cards */
.property-type-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 768px) {
  .property-type-cards {
    grid-template-columns: 1fr;
  }
}

/* Footer Styles */
.footer {
  background-color: var(--bg-secondary);
  padding: var(--space-2xl) 0 0;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.footer-section h3 {
  font-family: var(--font-serif);
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-xs);
  color: var(--text-muted);
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: var(--space-sm) 0;
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  width: 100%;
}

.footer-bottom p {
  margin: 0;
}

.property-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--bg-primary);
}

.property-card:hover {
  border-color: var(--primary-orange);
}

.property-card.selected {
  border-color: var(--primary-orange);
  background: rgba(241, 90, 18, 0.05);
}

.property-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.property-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: var(--space-xs);
}

.property-label {
  font-weight: 600;
  color: var(--text-main);
}

/* Desktop Modal Compact */
@media (min-width: 601px) {
  .lead-modal-card {
    padding: 2.38rem 2.38rem 1.7rem;
  }

  .lead-modal-steps {
    margin-bottom: 2.38rem;
  }

  .lead-modal-subtext {
    margin-bottom: 2.38rem;
  }

  .lead-form-group {
    margin-bottom: 1rem;
  }

  .property-card {
    padding: 1.36rem 1rem;
  }

  .property-icon {
    font-size: 1.7rem;
  }

  .lead-callback-toggle {
    padding: 1rem;
    margin-bottom: 1rem;
  }
}

/* Callback Toggle */
.lead-callback-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--border-color);
  border-radius: 26px;
  transition: 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch input:checked+.toggle-slider {
  background-color: var(--primary-orange);
}

.toggle-switch input:checked+.toggle-slider::before {
  transform: translateX(22px);
}

.toggle-label {
  color: var(--text-main);
  font-size: var(--font-size-sm);
}

/* Buttons */
.lead-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  font-family: var(--font-sans);
}

.lead-btn-primary {
  background: var(--primary-orange);
  color: white;
  width: 100%;
  box-shadow: var(--shadow-btn);
}

.lead-btn-primary:hover {
  background: var(--primary-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(241, 90, 18, 0.4);
}

.lead-btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.lead-btn-secondary:hover {
  background: var(--bg-tertiary);
}

.lead-btn-group {
  display: flex;
  gap: var(--space-md);
}

.lead-btn-group .lead-btn-secondary {
  flex: 0 0 auto;
}

.lead-btn-group .lead-btn-primary {
  flex: 1;
}

/* Success State */
.lead-success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  font-size: 2.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

/* Trust Footer */
.lead-modal-footer {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: calc(var(--font-size-sm) * 1.2);
}

.lead-modal-footer a {
  color: var(--text-main);
  font-weight: 600;
  text-decoration: none;
}

.lead-modal-footer a:hover {
  color: var(--primary-orange);
}

/* Responsive */
@media (max-width: 600px) {
  .lead-modal-overlay {
    padding: var(--space-sm);
    align-items: flex-end;
  }

  .lead-modal-card {
    max-width: 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: var(--space-md);
    /* Reduced padding */
    max-height: 90vh;
    overflow-y: auto;
  }

  /* Compact Mobile Typography & Spacing */
  .lead-modal-heading {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .lead-modal-subtext {
    font-size: 0.8rem;
    /* Smaller font on mobile */
    margin-bottom: 0.5rem;
    /* Tighter margin */
    display: block;
    /* Restore visibility */
    line-height: 1.3;
  }

  .lead-modal-steps {
    margin-bottom: 1rem;
  }

  .lead-form-group {
    margin-bottom: 0.75rem;
  }

  .lead-input {
    padding: 0.5rem;
    font-size: 1rem;
  }

  .property-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
  }

  .property-card {
    padding: 0.5rem;
  }

  .lead-btn {
    padding: 0.75rem 1.5rem;
  }

  /* Step 2 Specific Compact Styles */
  .lead-callback-toggle {
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
  }

  .lead-form-group.lead-phone-group {
    margin-bottom: 0.5rem;
    /* Tighter space for phone field if visible */
  }

  .lead-modal-footer {
    margin-top: 0.5rem;
    /* Reduced from 1rem */
    padding-top: 0.5rem;
    font-size: 0.75rem;
    /* Slightly smaller to ensure fit */
  }

  .lead-form-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    /* Match margin-bottom of lead-form-group for equal spacing */
  }

  /* Remove margin from groups inside row to avoid double spacing with gap */
  .lead-form-row .lead-form-group {
    margin-bottom: 0;
  }

  .property-type-cards {
    grid-template-columns: 1fr 1fr;
  }

  .lead-btn-group {
    flex-direction: column-reverse;
  }

  .lead-btn-group .lead-btn-secondary,
  .lead-btn-group .lead-btn-primary {
    width: 100%;
  }
}

/* Blog Load More Button */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.load-more-btn {
  background-color: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.load-more-btn:hover {
  background-color: var(--bg-secondary);
  border-color: var(--text-muted);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Mobile Navigation & Compact Calculator Styles */

/* Mobile Menu Toggle Button (Default Hidden) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  z-index: 1001;
  /* Above mobile menu overlay */
  margin-left: auto;
  /* Push to right if needed */
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-main);
  border-radius: 3px;
  transition: all 0.3s ease;
  will-change: transform, opacity;
}

/* Mobile Menu Toggle Active State (X shape) */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Prevent scrolling when menu is open */
body.no-scroll {
  overflow: hidden;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {

  /* Show Hamburger Button */
  .mobile-menu-toggle {
    display: flex !important;
    margin-top: 5px;
    /* Align with logo */
    background: transparent;
    z-index: 2002;
  }

  /* Reduce container padding to prevent logo cramping */
  .container {
    padding: 0 var(--space-sm) !important;
  }

  /* Hide Desktop Nav Links by default (moved logic to .nav-container) */
  .nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: auto;
    /* Override desktop to allow interaction */
  }

  /* Show Nav Container when active */
  .nav-container.active {
    opacity: 1;
    visibility: visible;
  }

  /* Close button inside the mobile nav overlay — always visible at any scroll position */
  .nav-close-btn {
    display: block;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 2.25rem;
    line-height: 1;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
  }

  .nav-close-btn:hover {
    color: var(--primary-orange);
    background: var(--primary-orange-soft);
  }

  .nav-links {
    display: flex;
    /* Override display: none from desktop styles if present, or just flex */
    flex-direction: column;
    gap: var(--space-xl);
    align-items: center;
    text-align: center;
  }

  .nav-link {
    font-size: 1.5rem;
    color: var(--text-main);
  }

  /* --- COMPACT CALCULATOR MODE --- */
  #preis-kalkulator {
    padding-top: 0.5rem !important;
    padding-bottom: 1rem !important;
    scroll-margin-top: 100px;
    margin-top: 0;
  }

  /* Override the inline margin-bottom: 2.625rem on the intro div */
  #preis-kalkulator>.container>div:first-child {
    margin-bottom: calc(0.5rem + 3px) !important;
  }

  .calculator-card {
    padding: 1rem 0.75rem !important;
    margin: 0 auto !important;
    border: 1px solid var(--border-color) !important;
    background: var(--bg-tertiary) !important;
    box-shadow: var(--shadow-card) !important;
    max-width: 100% !important;
  }

  .calculator-card h3 {
    font-size: 1.4rem !important;
    margin-bottom: 0.25rem !important;
    text-align: center;
  }

  /* Restore text visibility but smaller */
  .calculator-card p {
    display: block !important;
    font-size: 0.85rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.3;
  }

  /* Compact Slider */
  .slider-container {
    margin-bottom: 0.5rem !important;
  }

  .slider-header {
    font-size: 0.9rem !important;
    margin-bottom: 0.25rem !important;
  }

  #m2-input {
    font-size: 1.1rem !important;
    padding: 0.25rem 0.5rem !important;
    height: auto !important;
    width: 90px !important;
  }

  /* Compact Price Box */
  .price-box {
    padding: 0.5rem !important;
    margin-bottom: 0.75rem !important;
    background: white !important;
  }

  .price-label {
    font-size: 0.8rem !important;
    margin-bottom: 0 !important;
  }

  .price-amount {
    font-size: 2rem !important;
    /* Keep price readable */
    line-height: 1.1 !important;
  }

  .price-subtext {
    font-size: 0.8rem !important;
    margin-top: 0.25rem !important;
  }

  .cta-button {
    padding: 0.85rem 1rem !important;
    font-size: 1rem !important;
    width: 100% !important;
    margin-top: 0 !important;
    display: block !important;
  }

  #preis-kalkulator .section-title {
    font-size: 2.2rem !important;
    margin-bottom: 0.25rem !important;
  }

  #preis-kalkulator p {
    display: block !important;
    font-size: 0.9rem !important;
  }

  .hero-content {
    padding-top: 0;
    /* Removed extra top padding to pull content up */
  }

  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    /* Reduced from var(--space-lg) */
  }

  .hero h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    /* Reduced from 3.4rem */
  }

  .hero-checkmarks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    /* Tighter gap */
    margin-bottom: 2rem;
    /* Reduced from 3.5rem */
  }



  /* Force 1 column for benefits grid on small mobile */
  .benefits-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Footer Mobile */
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl) var(--space-sm);
    text-align: center;
    justify-items: center;
  }

  .footer-section:first-child {
    grid-column: 1 / -1;
    width: 100%;
  }

  /* Hanging Indent for Checkmarks */
  .footer-features li {
    padding-left: 1.2em;
    text-indent: -1.2em;
  }
}

/* Sticky CTA Button Base Styles */
.sticky-cta {
  display: none;
  /* Hidden by default on desktop */
  position: fixed;
  top: 81px;
  /* Pushed down to clear the header logo */
  left: 24px;
  /* Anchored start left */
  bottom: auto;
  right: auto;
  transform: none;
  width: 60px;
  height: 60px;
  max-width: none;

  /* Match .cta-button styles */
  background-color: var(--primary-orange);
  color: var(--text-white);
  border: 2px solid var(--primary-orange);
  border-radius: 50%;



  font-weight: 700;
  font-size: 1.5rem;
  /* Larger icon size */
  text-decoration: none;
  padding: 0;

  /* Use hover shadow of CTA for better visibility as floating element */
  box-shadow: 0 4px 14px rgba(241, 90, 18, 0.5);
  z-index: 9999;
  transition: transform var(--transition-fast);

  /* Reset line-height to prevent text-based vertical offset */
  line-height: 0;
  position: fixed;
}

/* Header CTA (Mobile Only) */
.header-cta {
  display: none;
  /* Hidden on desktop */
}

@media (max-width: 768px) {
  .header-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    /* Reduced from 60px -> ~42px (-30% effectively for header fit) */
    height: 42px;
    background-color: var(--primary-orange);
    color: white;
    border-radius: 50%;
    margin-left: auto;
    /* Push to right */
    margin-right: var(--space-md);
    /* Increased spacing to prevent accidental clicks */
    /* Space before hamburger */
    box-shadow: 0 2px 8px rgba(241, 90, 18, 0.3);
    transition: transform var(--transition-fast);
    position: relative;
    z-index: 2000;
  }

  .header-cta:active {
    transform: scale(0.95);
  }

  .header-cta svg {
    width: 20px;
    height: 20px;
  }

  /* Hamburger margin adjustment */
  .mobile-menu-toggle {
    margin-left: 0 !important;
    /* Reset auto margin since CTA takes it */
  }

  /* Reduce Ablauf Icon Size on Mobile */
  .process-icon img {
    width: 30% !important;
    /* Reduced from 40% */
  }
}

/* Force absolute centering to ignore flex/line-height quirks */
.sticky-cta svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: 28px;
  height: 28px;
  display: block;
}

.sticky-cta:active {
  transform: scale(0.95);
}

/* Inline Links */
.inline-link {
  color: var(--primary-orange);
  text-decoration: none;
  transition: color 0.2s ease;
}

.inline-link:hover {
  color: var(--primary-blue);
}

/* Text Links (FAQ, Impressum, Datenschutz etc.) */
.text-link,
.faq-answer a {
  color: var(--primary-orange) !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.text-link:hover,
.faq-answer a:hover {
  color: var(--primary-orange-hover) !important;
  text-decoration-thickness: 2px;
  background-color: rgba(241, 90, 18, 0.05);
  border-radius: 2px;
}

/* =========================================
   Baumeister Logo Integration
   ========================================= */

.certification-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.cert-logo {
  height: auto;
  max-height: 4.5em;
  /* Matches ~3 lines of text height */
  width: auto;
  object-fit: contain;
}

/* Desktop Layout (>768px): Text | Logo1 | Logo2 */
@media (min-width: 769px) {
  .certification-wrapper {
    justify-content: flex-start;
  }

  .footer-features {
    order: 1;
    margin-right: var(--space-sm);
  }

  .logo-classic {
    order: 2;
  }

  .logo-staatlich {
    order: 3;
  }
}

/* Mobile Layout (<=768px): Logo1 | Text | Logo2 */
@media (max-width: 768px) {
  .certification-wrapper {
    justify-content: center;
    /* Center the whole block */
  }

  .footer-features {
    order: 2;
    text-align: left;
    /* Keep text left-aligned within the block for readability */
    font-size: 0.9em;
    /* Slightly smaller text to fit */
    margin: 0 var(--space-xs);
  }

  .logo-classic {
    order: 1;
  }

  .logo-staatlich {
    order: 3;
  }

  .cert-logo {
    max-height: 3.5em;
    /* Slightly smaller on mobile to prevent overcrowding */
  }
}

/* ============================================
   PFLICHT-CHECK PAGE
   ============================================ */

/* Nav Link Check – Icon Styling */
.nav-link-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.nav-check-icon {
  flex-shrink: 0;
  vertical-align: middle;
}

.nav-check-icon .check-circle {
  fill: #1e293b;
}

.nav-check-icon .check-mark {
  fill: var(--primary-orange);
  stroke: var(--primary-orange);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

/* Zone A – Peach Glassmorphism Background */
.checker-zone-a {
  background: rgba(255, 246, 237, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.856rem var(--space-lg) var(--space-3xl);
}

/* Hero Text above Card */
.checker-hero {
  text-align: center;
  margin-bottom: var(--space-lg);
  max-width: 700px;
}

.checker-hero h1 {
  font-size: var(--font-size-4xl);
  color: var(--text-main);
  margin-bottom: var(--space-sm);
}

.checker-hero p {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  line-height: 1.6;
}

/* White Card (Modal-Style) */
.checker-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  box-shadow:
    0 25px 50px -12px rgba(59, 130, 246, 0.15),
    0 12px 25px -5px rgba(0, 0, 0, 0.08);
  max-width: 600px;
  width: 100%;
  padding: 2.625rem var(--space-xl) var(--space-lg);
}

/* Step Indicators in Checker (reuses lead-modal step indicator styles) */
.checker-card .lead-modal-steps {
  margin-bottom: 2.625rem;
}

/* Steps */
.checker-step {
  display: none;
}

.checker-step.active {
  display: block;
}

.checker-step-title {
  font-family: var(--font-serif);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: var(--space-lg);
  text-align: center;
}

/* Step Grid – 2x2 Buttons */
.checker-step-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

/* Option Buttons (based on .property-card style) */
.checker-option-btn {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--bg-primary);
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--text-main);
}

.checker-option-btn:hover {
  border-color: var(--primary-orange);
}

.checker-option-btn.selected {
  border-color: var(--primary-orange);
  background: rgba(241, 90, 18, 0.05);
}

/* Exact Year Input Row */
.checker-input-row {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
  margin-bottom: var(--space-md);
}

.checker-input-row input {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-base);
  font-family: var(--font-sans);
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast);
}

.checker-input-row input:focus {
  border-color: var(--primary-orange);
}

.checker-submit-btn {
  padding: 0.6rem 1rem;
  background: var(--primary-orange);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--font-size-lg);
  font-weight: 600;
  transition: background var(--transition-fast);
  line-height: 1;
}

.checker-submit-btn:hover {
  background: var(--primary-orange-hover);
}

/* Step Hint */
.checker-step-hint {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.4em;
  line-height: 1.5;
}

.checker-step-hint .hint-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: var(--border-color);
  color: var(--primary-orange);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  margin-right: 0.2em;
}

/* Skip Link */
.checker-skip-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  margin-top: var(--space-xs);
  transition: color var(--transition-fast);
}

.checker-skip-link:hover {
  color: var(--primary-orange);
}

/* Back Link */
.checker-back-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  display: inline-block;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  margin-top: var(--space-md);
  transition: color var(--transition-fast);
}

.checker-back-link:hover {
  color: var(--primary-orange);
}

/* ─── Result Screen ─── */

/* Result Badge */
.checker-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--font-size-base);
  margin-bottom: var(--space-md);
}

.checker-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  font-size: 0.85em;
  font-weight: 700;
}

.checker-badge-urgent {
  background: #fef2f2;
  color: #b91c1c;
}

.checker-badge-urgent .checker-badge-icon {
  background: #b91c1c;
  color: white;
}

.checker-badge-warning {
  background: #fffbeb;
  color: #92400e;
}

.checker-badge-warning .checker-badge-icon {
  background: #92400e;
  color: white;
}

.checker-badge-neutral {
  background: #f0f9ff;
  color: #0369a1;
}

.checker-badge-neutral .checker-badge-icon {
  background: #0369a1;
  color: white;
}

.checker-badge-info {
  background: #f0fdf4;
  color: #15803d;
}

.checker-badge-info .checker-badge-icon {
  background: #15803d;
  color: white;
}

/* Result Text */
.checker-result-text {
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

/* Countdown Bar */
.checker-countdown {
  margin-bottom: var(--space-md);
}

.checker-countdown-label {
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--text-main);
  margin-bottom: var(--space-xs);
}

.checker-countdown-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.checker-countdown-fill {
  height: 100%;
  background: var(--primary-orange);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.checker-countdown-fill.checker-fill-warning {
  background: #f59e0b;
}

.checker-countdown-date {
  font-weight: 600;
  color: var(--text-main);
  font-size: var(--font-size-base);
}

.checker-countdown-remaining {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

/* Hint Box */
.checker-hint-box {
  background: var(--bg-secondary);
  border-left: 3px solid var(--primary-orange);
  padding: var(--space-sm) var(--space-md);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: var(--space-md);
}

.checker-hint-box p {
  font-size: var(--font-size-sm);
  color: var(--text-main);
  line-height: 1.6;
}

/* Cost Display */
.checker-cost-display {
  margin-bottom: var(--space-md);
}

.checker-cost-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: var(--space-xs);
}

.checker-cost-price {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-serif);
}

.checker-cost-tag {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--primary-orange);
  font-family: var(--font-sans);
}

.checker-cost-regular {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.checker-cost-link {
  color: var(--primary-orange);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.checker-cost-link:hover {
  color: var(--primary-orange-hover);
}

/* Planstand Hint */
.checker-planstand-hint {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: var(--space-md);
}

/* Voluntary Reasons (Variant C) */
.checker-voluntary-reasons {
  margin-bottom: var(--space-md);
}

.checker-voluntary-label {
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--text-main);
  margin-bottom: var(--space-xs);
}

.checker-voluntary-reasons p {
  font-size: var(--font-size-sm);
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 0.3rem;
}

/* Checker CTA Button */
.checker-cta {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: var(--space-md);
}

.checker-cta-ghost {
  background: transparent;
  color: var(--primary-orange);
  border: 2px solid var(--primary-orange);
}

.checker-cta-ghost:hover {
  background: rgba(241, 90, 18, 0.05);
}

/* Links List */
.checker-links-list {
  margin-bottom: var(--space-md);
}

.checker-links-label {
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--text-main);
  margin-bottom: var(--space-xs);
}

.checker-links-list a {
  display: block;
  color: var(--primary-orange);
  text-decoration: none;
  font-size: var(--font-size-sm);
  padding: 0.2rem 0;
  transition: color var(--transition-fast);
}

.checker-links-list a:hover {
  color: var(--primary-orange-hover);
}

/* Disclaimer */
.checker-disclaimer {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
}

.checker-disclaimer p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

/* New Check Link */
.checker-new-check {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.checker-new-check:hover {
  color: var(--primary-orange);
}

/* ─── Zone B: Context Section ─── */
.checker-context-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-primary);
}

.checker-context-section h2 {
  text-align: center;
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-2xl);
}

.checker-context-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.checker-context-block {
  background-color: var(--bg-tertiary);
  padding: 2.8rem var(--space-xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.checker-context-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-orange), #ff8a5c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
  z-index: 2;
}

.checker-context-block:hover::before {
  transform: scaleX(1);
}

.checker-context-block:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.12);
  border-color: rgba(241, 90, 18, 0.2);
}

.checker-context-block h3 {
  font-family: var(--font-serif);
  font-size: var(--font-size-xl);
  margin-top: 0;
  margin-bottom: var(--space-sm);
  color: var(--primary-orange);
  transition: color var(--transition-base);
}

.checker-context-block p,
.checker-context-block ul {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.checker-context-block ul {
  list-style: none;
  padding: 0;
}

.checker-context-block ul li {
  padding: 0.3rem 0;
  padding-left: 1.2em;
  position: relative;
}

.checker-context-block ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-orange);
  font-weight: 700;
}

/* ─── Mobile Responsive – Checker ─── */
@media (max-width: 768px) {
  .checker-zone-a {
    min-height: auto;
    padding: var(--space-lg) var(--space-sm) var(--space-xl);
  }

  .checker-hero h1 {
    font-size: var(--font-size-3xl);
  }

  .checker-hero p {
    font-size: var(--font-size-base);
  }

  .checker-card {
    padding: var(--space-md);
  }

  .checker-step-title {
    font-size: var(--font-size-xl);
  }

  .checker-option-btn {
    padding: var(--space-md) var(--space-sm);
    font-size: var(--font-size-sm);
  }

  .checker-context-section {
    padding: var(--space-2xl) 0;
  }

  .checker-context-section h2 {
    font-size: var(--font-size-2xl);
  }

  .checker-context-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .checker-result-badge {
    font-size: var(--font-size-sm);
  }

  /* Mobile nav highlighting for Pflicht-Check */
  .nav-link-check {
    color: var(--primary-orange) !important;
  }
}