/* ==========================================================================
   NATURWERKHAUS – Design System
   Chiemgau Holzbau / Dominikus Brückner
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* --- Colors --- */
  --color-bg:       #f7f4ef;
  --color-surface:  #f0ebe2;
  --color-text:     #28201a;
  --color-primary:  #2d5016;
  --color-accent:   #c8a96e;
  --color-cta:      #4a7c2e;

  /* Derived / supporting */
  --color-text-muted:    #6b5a4e;
  --color-border:        #ddd5c8;
  --color-primary-dark:  #1e3710;
  --color-cta-dark:      #3a6322;
  --color-cta-hover-bg:  rgba(74, 124, 46, 0.06);

  /* --- Typography --- */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Work Sans', system-ui, -apple-system, sans-serif;

  /* Fluid type scale (clamp: min / preferred / max) */
  --text-xs:   clamp(0.75rem,  0.70rem + 0.22vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.82rem + 0.28vw, 1rem);
  --text-base: clamp(1rem,     0.96rem + 0.22vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1.02rem + 0.55vw, 1.375rem);
  --text-xl:   clamp(1.375rem, 1.15rem + 1.10vw, 1.875rem);
  --text-2xl:  clamp(1.875rem, 1.40rem + 2.40vw, 2.75rem);
  --text-3xl:  clamp(2.5rem,   1.90rem + 3.00vw, 4rem);

  --line-height-body:    1.65;
  --line-height-heading: 1.15;
  --letter-spacing-wide: 0.08em;

  /* --- Spacing (4 px base grid) --- */
  --space-1:  0.25rem;   /*  4px */
  --space-2:  0.5rem;    /*  8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */

  /* --- Border radius --- */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 16px;

  /* --- Shadows --- */
  --shadow-sm: 0 1px 3px rgba(40, 32, 26, 0.06);
  --shadow-md: 0 4px 12px rgba(40, 32, 26, 0.09);
  --shadow-lg: 0 8px 28px rgba(40, 32, 26, 0.12);

  /* --- Layout --- */
  --container-max:  1280px;
  --container-pad:  var(--space-6);
  --header-height:  72px;
  --section-py:     var(--space-20);

  /* --- Transitions --- */
  --transition-base: 200ms ease;
  --transition-slow: 350ms ease;

  /*
   * Dark Mode stubs — Werte hier überschreiben wenn Dark Mode eingebaut wird.
   * Alle Farbvariablen sind bereits token-basiert und können per
   * @media (prefers-color-scheme: dark) { :root { ... } } ergänzt werden.
   */
}

/* --------------------------------------------------------------------------
   2. BASE RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--line-height-body);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

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

ul, ol {
  list-style: none;
}

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

/* --------------------------------------------------------------------------
   3. ACCESSIBILITY
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  z-index: 9999;
  transform: translateY(-120%);
  transition: transform var(--transition-base);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   4. LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* --------------------------------------------------------------------------
   5. HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-6);
}

/* --- Logo --- */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  color: var(--color-text);
  transition: color var(--transition-base);
}

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

.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.logo-sub {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* --- Mobile menu toggle --- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition: color var(--transition-base), background-color var(--transition-base);
}

.nav-toggle:hover {
  background-color: var(--color-surface);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
  transform-origin: center;
}

/* X-animation when open */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --- Navigation --- */
.main-nav {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  padding: var(--space-4) 0 var(--space-6);
}

.main-nav.is-open {
  display: block;
}

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

.nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--color-text);
  transition: color var(--transition-base);
}

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

.nav-link.is-active {
  color: var(--color-primary);
  font-weight: 500;
}

.nav-link--cta {
  color: var(--color-cta);
  font-weight: 500;
}

.nav-link--cta:hover {
  color: var(--color-cta-dark);
}

/* --------------------------------------------------------------------------
   6. SECTIONS – base
   -------------------------------------------------------------------------- */
.section {
  padding-block: var(--section-py);
}

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

.section-heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: var(--line-height-heading);
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.section-note {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   7. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-8);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copy {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   8. TYPOGRAPHY – shared roles
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

/* --------------------------------------------------------------------------
   9. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn--primary {
  background-color: var(--color-cta);
  color: #fff;
  border: 1.5px solid var(--color-cta);
}

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

.btn--ghost {
  background-color: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn--ghost:hover {
  background-color: var(--color-surface);
  border-color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   10. HERO
   -------------------------------------------------------------------------- */
.hero {
  padding-block: var(--space-16) var(--space-12);
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

/* --- Hero text column --- */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  max-width: 16ch;
}

.hero-lead {
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 48ch;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* --- Hero visual composition --- */
.hero-visual {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-composition {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 5 / 4;
  margin: 0 auto;
}

/* Depth/background shadow layer */
.hc-shadow {
  position: absolute;
  inset: 14% 0 0 14%;
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Main structure panel */
.hc-body {
  position: absolute;
  top: 0;
  left: 0;
  width: 70%;
  height: 78%;
  background: linear-gradient(150deg, #e2d6c6 0%, #cfc0a8 100%);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Add-on module panel */
.hc-module {
  position: absolute;
  top: 6%;
  right: 0;
  width: 27%;
  height: 54%;
  background: linear-gradient(150deg, #cbbfad 0%, #b8aa94 100%);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* Base reference (no permanent foundation) */
.hc-base {
  position: absolute;
  bottom: 0;
  left: 14%;
  right: 0;
  height: 20%;
  background: #b8a88e;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Wood grain effect – horizontal lines on panels */
.hc-grain {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    1deg,
    transparent 0,
    transparent 22px,
    rgba(100, 70, 40, 0.05) 22px,
    rgba(100, 70, 40, 0.05) 23px
  );
}

/* Structural post lines on hc-body */
.hc-post {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(100, 70, 40, 0.12);
}

.hc-post--a { left: 28%; }
.hc-post--b { left: 62%; }

/* Feature label badges */
.hc-badge {
  position: absolute;
  background-color: rgba(247, 244, 239, 0.95);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  line-height: 1.4;
}

.hc-badge--a {
  bottom: 22%;
  left: 2%;
}

.hc-badge--b {
  top: 60%;
  right: 2%;
}

.hc-badge--c {
  top: 8%;
  right: 2%;
}

/* --------------------------------------------------------------------------
   11. KONZEPT SECTION
   -------------------------------------------------------------------------- */
.section-header {
  margin-bottom: var(--space-10);
}

.section-lead {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 72ch;
}

/* --- Card grid --- */
.konzept-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

/* --- Individual card --- */
.konzept-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: box-shadow var(--transition-base);
}

.konzept-card:hover {
  box-shadow: var(--shadow-md);
}

/* Icon container – no background, no circle */
.card-icon {
  color: var(--color-primary);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-bottom: var(--space-1);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.card-text {
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   12. RESPONSIVE – Tablet (768px+)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  :root {
    --container-pad: var(--space-8);
    --section-py: var(--space-24);
  }

  /* --- Nav --- */
  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: block;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: var(--space-1);
  }

  .nav-link {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    border-radius: var(--radius-md);
  }

  .nav-link:hover,
  .nav-link.is-active {
    background-color: var(--color-surface);
  }

  /* --- Hero --- */
  .hero {
    padding-block: var(--space-20) var(--space-16);
  }

  /* --- Card grid: 2 columns, last card spans both --- */
  .konzept-cards {
    grid-template-columns: 1fr 1fr;
  }

  .konzept-card:nth-child(5) {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE – Desktop (1024px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  :root {
    --container-pad: var(--space-12);
  }

  /* --- Nav --- */
  .nav-link {
    font-size: var(--text-base);
    padding: var(--space-2) var(--space-4);
  }

  /* --- Hero: 2-column side-by-side layout --- */
  .hero {
    padding-block: var(--space-24) var(--space-20);
  }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-16);
  }

  .hero-content {
    flex: 1 1 50%;
    min-width: 0;
  }

  .hero-visual {
    flex: 1 1 46%;
    min-width: 0;
  }

  /* --- Card grid: asymmetric 6-column, row 1: 2 wide, row 2: 3 equal --- */
  .konzept-cards {
    grid-template-columns: repeat(6, 1fr);
  }

  .konzept-card:nth-child(1) { grid-column: span 3; }
  .konzept-card:nth-child(2) { grid-column: span 3; }
  .konzept-card:nth-child(3) { grid-column: span 2; }
  .konzept-card:nth-child(4) { grid-column: span 2; }
  .konzept-card:nth-child(5) { grid-column: span 2; }
}

/* --------------------------------------------------------------------------
   14. RESPONSIVE – Large (1440px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1440px) {
  :root {
    --container-pad: var(--space-16);
  }
}

/* --------------------------------------------------------------------------
   15. VORTEILE SECTION
   -------------------------------------------------------------------------- */
.vorteile-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

/* Left visual: stacked wood plank composition */
.vorteile-visual {
  width: 100%;
}

.vv-wrap {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 100%;
}

.vv-plank {
  height: 22px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

/* Subtle vertical wood grain */
.vv-plank::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 54px,
    rgba(100, 70, 40, 0.04) 54px,
    rgba(100, 70, 40, 0.04) 55px
  );
}

.vv-plank--1 { width: 100%;  background: linear-gradient(90deg, #d8cbb8, #c4b49c); }
.vv-plank--2 { width: 91%;  margin-left: 5%; background: linear-gradient(90deg, #cfc1aa, #bba890); }
.vv-plank--3 { width: 97%;  background: linear-gradient(90deg, #c9b99b, #b9a985); }
.vv-plank--4 { width: 84%;  margin-left: 8%; background: linear-gradient(90deg, #d4c5ad, #c0b094); }
.vv-plank--5 { width: 88%;  margin-left: 3%; background: linear-gradient(90deg, #c1b19d, #b0a08c); }
.vv-plank--6 { width: 100%; background: linear-gradient(90deg, #cbb99f, #b8a48a); }
.vv-plank--7 { width: 76%;  margin-left: 12%; background: linear-gradient(90deg, #c2b2a2, #b0a292); }

.vv-footer {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.vv-footer span {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Right: separator-based advantage cards */
.vorteile-cards {
  display: flex;
  flex-direction: column;
}

.vorteile-card {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.vorteile-card:first-child {
  border-top: 1px solid var(--color-border);
}

.vorteile-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.vorteile-card-text {
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 56ch;
}

/* --------------------------------------------------------------------------
   16. ABLAUF SECTION
   -------------------------------------------------------------------------- */
.ablauf-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  list-style: none;
}

.ablauf-step {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-border);
}

.ablauf-step:last-child {
  border-bottom: 1px solid var(--color-border);
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1;
  color: var(--color-border);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2);
}

.step-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.step-text {
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 44ch;
}

/* --------------------------------------------------------------------------
   17. MATERIALIEN SECTION
   -------------------------------------------------------------------------- */
.material-blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.material-block {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.material-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.material-text {
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-muted);
  flex: 1;
}

.material-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin-top: auto;
}

.material-tag {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-primary);
  background-color: rgba(45, 80, 22, 0.06);
  border: 1px solid rgba(45, 80, 22, 0.16);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-3);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Wandaufbau infographic */
.wandaufbau {
  padding: var(--space-8);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.wandaufbau-caption {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.wl-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
  margin-bottom: var(--space-6);
}

.wl-row {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: var(--space-4);
  align-items: center;
}

.wl-name {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.4;
}

.wl-track {
  display: flex;
  align-items: center;
  height: 20px;
}

.wl-bar {
  height: 100%;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* Proportional widths: Holzständer (thickest, ~200 mm) = 100% reference */
.wl-bar--innen    { width: 13%;  background-color: #ece6da; border: 1px solid var(--color-border); }
.wl-bar--staender { width: 100%; background: linear-gradient(90deg, #c8b898 0%, #b8a47e 100%); }
.wl-bar--faser    { width: 20%;  background-color: #a89478; }
.wl-bar--lueftung { width: 10%;  background-color: transparent; border: 1px dashed var(--color-border); }
.wl-bar--fassade  { width: 17%;  background-color: #8c7860; }

.wandaufbau-note {
  font-size: var(--text-xs);
  font-weight: 400;
  font-style: italic;
  line-height: 1.65;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
}

/* --------------------------------------------------------------------------
   18. RESPONSIVE – Tablet additions (768px+)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  /* Ablauf: 2-column grid */
  .ablauf-steps {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10) var(--space-8);
  }

  .ablauf-step {
    border-top: 1px solid var(--color-border);
    border-bottom: none;
    padding: var(--space-5) 0 0 0;
  }

  .ablauf-step:last-child {
    border-bottom: none;
  }

  /* Material: 3-column grid */
  .material-blocks {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Wandaufbau: wider label column */
  .wl-row {
    grid-template-columns: 10rem 1fr;
  }
}

/* --------------------------------------------------------------------------
   19. RESPONSIVE – Desktop additions (1024px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  /* Vorteile: 2-column split (visual left, cards right) */
  .vorteile-inner {
    flex-direction: row;
    align-items: stretch;
    gap: var(--space-16);
  }

  .vorteile-visual {
    flex: 0 0 40%;
    min-width: 0;
  }

  .vorteile-cards {
    flex: 1;
    min-width: 0;
    justify-content: center;
  }

  /* Ablauf: 3-column grid */
  .ablauf-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-10) var(--space-8);
  }
}

/* --------------------------------------------------------------------------
   20. SCREEN READER ONLY
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   21. KONFIGURATOR SECTION
   -------------------------------------------------------------------------- */
.konfig-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: start;
}

.konfig-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}

.konfig-block {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.konfig-block-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

/* Haustyp-Karten */
.haustyp-karten {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.haustyp-karte {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  min-height: 44px;
  font-family: var(--font-body);
}

.haustyp-karte:hover {
  border-color: var(--color-primary);
}

.haustyp-karte:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.haustyp-karte.is-active {
  border-color: var(--color-primary);
  background-color: rgba(45, 80, 22, 0.05);
  box-shadow: 0 0 0 2px rgba(45, 80, 22, 0.15);
}

.ht-titel {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.2;
}

.ht-flaeche {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
}

.ht-hinweis {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Modul-Liste */
.modul-liste {
  display: flex;
  flex-direction: column;
  list-style: none;
}

.modul-item {
  border-top: 1px solid var(--color-border);
  padding: var(--space-3) 0;
}

.modul-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.modul-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  min-height: 44px;
  padding: var(--space-1) 0;
}

.modul-cb {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  cursor: pointer;
}

.modul-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.modul-name {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.3;
}

.modul-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Stufe-Radios */
.stufe-group {
  border: none;
  padding: 0;
  margin: var(--space-2) 0 0 calc(18px + var(--space-3));
}

.stufe-radios {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.stufe-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  cursor: pointer;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  min-height: 44px;
  transition: background-color var(--transition-base);
}

.stufe-label:hover {
  background-color: rgba(45, 80, 22, 0.04);
}

.stufe-radio {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  cursor: pointer;
}

.stufe-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.stufe-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.3;
}

.stufe-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Optionen */
.option-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.option-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.option-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  min-height: 44px;
  transition: border-color var(--transition-base);
}

.option-select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-color: var(--color-primary);
}

.option-hint {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.5;
}

/* Summary-Panel */
.summary-panel {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.summary-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.summary-leer {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.summary-count {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.summary-table td {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  color: var(--color-text);
}

.summary-stufe {
  color: var(--color-text-muted);
  padding-left: var(--space-3);
}

.summary-preis {
  text-align: right;
  font-weight: 500;
  white-space: nowrap;
  padding-left: var(--space-3);
}

.summary-summen {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 2px solid var(--color-border);
}

.summary-zeile {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
}

.summary-zeile dt {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
}

.summary-zeile dd {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  text-align: right;
  white-space: nowrap;
}

.summary-zeile--gesamt dt,
.summary-zeile--gesamt dd {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary);
}

.summary-hinweis {
  font-size: var(--text-xs);
  font-style: italic;
  line-height: 1.65;
  color: var(--color-text-muted);
  padding: var(--space-4);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.summary-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* --------------------------------------------------------------------------
   22. KONTAKT SECTION
   -------------------------------------------------------------------------- */
.kontakt-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

.kontakt-firma-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.kontakt-firma-name {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}

.kontakt-firma-text {
  font-size: var(--text-sm);
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  max-width: 52ch;
}

.kontakt-punkte {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
}

.kontakt-punkt {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.5;
  display: flex;
  gap: var(--space-2);
  align-items: baseline;
  flex-wrap: wrap;
}

.kontakt-punkt-label {
  font-weight: 500;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.kontakt-punkt a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kontakt-punkt a:hover {
  text-decoration: none;
}

/* Formular */
.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.form-label--required::after {
  content: ' *';
  color: var(--color-primary);
}

.form-input,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  min-height: 44px;
  transition: border-color var(--transition-base);
  box-sizing: border-box;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
  font-weight: 300;
}

.form-input:focus,
.form-textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-color: var(--color-primary);
}

.form-textarea {
  min-height: 128px;
  resize: vertical;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   23. RESPONSIVE – Konfigurator + Kontakt (768px+)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .summary-actions {
    flex-direction: row;
  }

  .kontakt-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* --------------------------------------------------------------------------
   24. RESPONSIVE – Konfigurator Desktop (1024px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .konfig-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .summary-panel {
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
  }
}

/* --------------------------------------------------------------------------
   25. VORSCHAU 3D
   -------------------------------------------------------------------------- */
.vorschau-block {
  margin-top: var(--space-6);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.vorschau-header {
  padding: var(--space-5) var(--space-6) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.vorschau-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.vorschau-hinweis {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
  font-style: italic;
}

.vorschau-canvas-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  background-color: #d8eaf2;
  overflow: hidden;
}

.vorschau-canvas-wrap canvas {
  display: block;
  touch-action: none;
}

.vorschau-noscript {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  text-align: center;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .vorschau-canvas-wrap {
    height: 360px;
  }
}

@media (min-width: 1024px) {
  .vorschau-canvas-wrap {
    height: 420px;
  }
}

/* --------------------------------------------------------------------------
   26. REFERENZEN SECTION
   -------------------------------------------------------------------------- */
.ref-liste {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  list-style: none;
  margin-bottom: var(--space-8);
}

.ref-karte {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ref-visual {
  position: relative;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}

.ref-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 52px,
    rgba(90, 60, 20, 0.04) 52px,
    rgba(90, 60, 20, 0.04) 53px
  );
}

.ref-visual--tiny    { background: linear-gradient(145deg, #d4c4a8 0%, #c8b898 60%, #b8a880 100%); }
.ref-visual--familie { background: linear-gradient(145deg, #cec0a4 0%, #c4b49a 60%, #b4a47c 100%); }
.ref-visual--buero   { background: linear-gradient(145deg, #c8bca8 0%, #bcb09a 60%, #aca490 100%); }

.ref-inhalt {
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.ref-meta {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.ref-titel {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text);
}

.ref-text {
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.ref-nachsatz {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-5);
}

@media (min-width: 768px) {
  .ref-liste { grid-template-columns: repeat(3, 1fr); }
  .ref-visual { height: 200px; }
}

/* --------------------------------------------------------------------------
   27. KONTAKT ENHANCEMENTS
   -------------------------------------------------------------------------- */
.kontakt-anfragen {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.kontakt-anfragen-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  letter-spacing: 0.01em;
}

.kontakt-anfragen-liste {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  list-style: none;
}

.kontakt-anfragen-liste li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  padding-left: var(--space-4);
  position: relative;
}

.kontakt-anfragen-liste li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

.kontakt-hinweis {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  background-color: rgba(45, 80, 22, 0.05);
  border: 1px solid rgba(45, 80, 22, 0.15);
  border-radius: var(--radius-md);
}

.kontakt-hinweis-titel {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.kontakt-hinweis-text {
  font-size: var(--text-xs);
  line-height: 1.7;
  color: var(--color-text-muted);
}

.form-dsgvo-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
  font-style: italic;
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

/* --------------------------------------------------------------------------
   28. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-primary);
  border-top: none;
  padding-block: 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  padding-block: var(--space-12) var(--space-8);
  border-bottom: 1px solid rgba(240, 235, 226, 0.15);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: #f0ebe2;
  text-decoration: none;
  margin-bottom: var(--space-4);
}

.footer-logo:hover { opacity: 0.85; }

.footer-logo-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: var(--text-sm);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(240, 235, 226, 0.7);
  max-width: 36ch;
}

.footer-nav-title,
.footer-kontakt-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: rgba(240, 235, 226, 0.55);
  margin-bottom: var(--space-4);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  list-style: none;
}

.footer-nav a {
  font-size: var(--text-sm);
  color: rgba(240, 235, 226, 0.85);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-nav a:hover { color: #f0ebe2; }

.footer-nav a:focus-visible {
  outline: 2px solid rgba(200, 169, 110, 0.8);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-kontakt-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-kontakt-email {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity var(--transition-base);
}

.footer-kontakt-email:hover { opacity: 0.8; }

.footer-kontakt-region {
  font-size: var(--text-sm);
  color: rgba(240, 235, 226, 0.65);
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-block: var(--space-6);
  align-items: flex-start;
}

.site-footer .footer-copy {
  color: rgba(240, 235, 226, 0.5);
  font-size: var(--text-xs);
}

.footer-legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-5);
  list-style: none;
}

.footer-legal-link {
  font-size: var(--text-xs);
  color: rgba(240, 235, 226, 0.5);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-base);
}

.footer-legal-link:hover { color: rgba(240, 235, 226, 0.8); }

@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 1024px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr; gap: var(--space-16); }
}

/* --------------------------------------------------------------------------
   29. PREFERS-REDUCED-MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
