/* ==========================================================================
   Autoausbau.de — Design-System „Natur & Erde"
   Selbst gehostete Fonts (DSGVO-konform), keine externen Abhängigkeiten
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-full-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-full-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  /* Farbwelt Natur & Erde */
  --cream:        #FBF7EF;
  --sand:         #F1E9DB;
  --sand-deep:    #E5D9C4;
  --forest:       #2E4636;
  --forest-deep:  #1F3227;
  --moss:         #64805A;
  --clay:         #C0703C;
  --clay-soft:    #D89A6E;
  --bark:         #322A20;
  --stone:        #7C7466;
  --line:         rgba(50, 42, 32, .12);

  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 20px;
  --radius-lg: 32px;
  --shadow-soft: 0 20px 60px -20px rgba(50, 42, 32, .25);
  --shadow-card: 0 10px 40px -12px rgba(50, 42, 32, .18);

  --wrap: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .8s;
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Anker-Sprünge: Ziel nicht unter der fixierten Kopfzeile verstecken */
[id] { scroll-margin-top: 5.5rem; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* kein blaues Antipp-Rechteck auf Android - Buttons haben eigene Zustände */
  -webkit-tap-highlight-color: transparent;
  /* seitliches Verschieben durch Animations-Versatz unterbinden
     (clip erzeugt im Gegensatz zu hidden keinen Scroll-Container) */
  overflow-x: hidden;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.65;
  color: var(--bark);
  background: var(--cream);
  overflow-x: hidden;
  overflow-x: clip;
  /* lange Wörter/E-Mail-Adressen dürfen nie horizontal überlaufen */
  overflow-wrap: break-word;
}
/* Grid-/Flex-Kinder dürfen schrumpfen statt überzulaufen */
.footer-grid > *, .grid-2 > *, .grid-3 > *, .feature-copy { min-width: 0; }
img, svg, video { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 560;
  line-height: 1.12;
  margin: 0 0 .5em;
  color: var(--forest-deep);
  letter-spacing: -.01em;
  text-wrap: balance;
  /* lange deutsche Komposita sauber trennen statt hart umbrechen */
  hyphens: auto;
  -webkit-hyphens: auto;
}
h1 { font-size: clamp(2.4rem, 1.6rem + 4.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.7rem); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* Kicker / Eyebrow */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1.1rem;
}
.kicker::before {
  content: '';
  width: 2.2em;
  height: 2px;
  background: var(--clay);
  border-radius: 2px;
}
.on-dark .kicker { color: var(--clay-soft); }
.on-dark .kicker::before { background: var(--clay-soft); }

.lead {
  font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem);
  color: var(--stone);
  max-width: 42em;
}
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3 { color: var(--cream); }
.on-dark .lead, .on-dark p { color: rgba(251, 247, 239, .78); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .95em 1.9em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .25s, color .25s, border-color .25s;
  will-change: transform;
}
.btn svg { width: 1.15em; height: 1.15em; transition: transform .35s var(--ease-out); }
.btn:hover { transform: translateY(-3px); }
.btn:hover svg { transform: translateX(4px); }
/* Drück-Feedback (v. a. Touch): Button federt kurz ein */
.btn:active { transform: translateY(0) scale(.96); transition-duration: .1s; }
.main-nav a:active { background: rgba(46, 70, 54, .16); }
.btn-primary {
  background: var(--forest);
  color: var(--cream);
  box-shadow: 0 12px 30px -10px rgba(46, 70, 54, .5);
}
.btn-primary:hover { background: var(--forest-deep); box-shadow: 0 18px 40px -12px rgba(46, 70, 54, .55); }
.btn-clay {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(192, 112, 60, .5);
}
.btn-clay:hover { background: #A85E2F; }
.btn-ghost { border-color: var(--line); color: var(--forest-deep); background: transparent; }
.btn-ghost:hover { border-color: var(--forest); background: rgba(46, 70, 54, .06); }
.on-dark .btn-ghost { border-color: rgba(251, 247, 239, .3); color: var(--cream); }
.on-dark .btn-ghost:hover { border-color: var(--cream); background: rgba(251, 247, 239, .08); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: padding .4s;
  padding-block: 1.1rem;
}
/* Hintergrund/Blur als Pseudo-Element: backdrop-filter direkt auf dem Header
   würde das position:fixed-Menü-Overlay an den Header binden (Containing Block) */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(251, 247, 239, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 32px -20px rgba(50, 42, 32, .25);
  opacity: 0;
  transition: opacity .4s;
}
.site-header.scrolled::before { opacity: 1; }
.site-header.scrolled { padding-block: .65rem; }
body.nav-open .site-header::before { opacity: 0; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo { display: flex; align-items: center; text-decoration: none; position: relative; }
.logo img { height: 2.7rem; width: auto; display: block; transition: opacity .4s; }
/* Auf dem Foto-Hero (Startseite, ungescrollt) die Creme-Variante mit dunklem
   Schein zeigen — gleiche Lesbarkeits-Behandlung wie die Hero-Texte */
.logo .logo-light {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  filter: drop-shadow(0 1px 10px rgba(31, 50, 39, .55));
}
.site-header.on-photo:not(.scrolled) .logo-dark { opacity: 0; }
.site-header.on-photo:not(.scrolled) .logo-light { opacity: 1; }
/* Offenes Mobil-Menü: Creme-Overlay, also immer das grüne Logo */
body.nav-open .site-header.on-photo .logo-dark { opacity: 1; }
body.nav-open .site-header.on-photo .logo-light { opacity: 0; }

.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  color: var(--bark);
  padding: .5rem .85rem;
  border-radius: 999px;
  transition: background .25s, color .25s;
}
.main-nav a:hover { background: rgba(46, 70, 54, .08); }
.main-nav a.active { color: var(--forest); background: rgba(46, 70, 54, .1); }
.main-nav .btn { margin-left: .75rem; padding: .6em 1.35em; font-size: .92rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  position: relative;
  z-index: 110;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--forest-deep);
  border-radius: 2px;
  transition: transform .35s var(--ease-out), opacity .25s;
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 105;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: .5rem;
    background: var(--cream);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s, visibility .4s;
    overflow-y: auto;
    padding: 4.5rem 1.5rem 2rem;
  }
  /* zentriert, wenn Platz ist – scrollbar, wenn nicht */
  .main-nav a:first-child { margin-top: auto; }
  .main-nav a { font-size: 1.4rem; padding: .75rem 1.5rem; }
  .main-nav .btn { margin: 1rem 0 auto; font-size: 1.1rem; }
  body.nav-open .main-nav { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  background: linear-gradient(180deg, #DDE7D8 0%, var(--sand) 58%, var(--cream) 100%);
  overflow: hidden;
  padding-top: 5rem;
}
.hero-art {
  position: absolute;
  inset: auto 0 0 0;
  pointer-events: none;
}
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(3rem, 8vh, 6rem) clamp(16rem, 34vh, 24rem);
  max-width: 44em;
}
.hero .lead { color: rgba(50, 42, 32, .72); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--forest-deep);
  opacity: .65;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}
.hero-scroll svg { width: 1.2rem; height: 1.2rem; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* Foto-Hero: Bild in voller Breite ganz oben, Titel auf dem Bild,
   Textblock mit Buttons darunter - auf allen Geräten gleich */
.hero-photo {
  display: block;
  min-height: 0;
  padding-top: 0;
  background: var(--cream);
}
.hero-media {
  position: relative;
  /* folgt dem Seitenverhältnis des Fotos - nie seitlich beschnitten */
  aspect-ratio: 1500 / 856;
  background: var(--forest-deep);
}
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 50, 39, .14) 0%, transparent 28%, transparent 46%, rgba(31, 50, 39, .74) 100%);
}
/* Desktop: kompletter Textblock auf dem Bild, Verlauf von links
   (nur bei ausreichender Fensterhöhe - Handy quer nutzt das gestapelte Layout) */
.hero-copy { display: none; }
@media (min-width: 701px) and (min-height: 621px) {
  .hero-media::after {
    background: linear-gradient(78deg, rgba(31, 50, 39, .74) 0%, rgba(31, 50, 39, .42) 46%, rgba(31, 50, 39, .04) 75%);
  }
  /* Text im Fluss, oben verankert: Buttons ragen nie unten aus dem Bild,
     das Auto rechts unten bleibt frei; wächst der Block, wächst der Hero mit.
     (.hero-photo-Präfix: muss die spätere Basis-Regel mit position:absolute schlagen) */
  .hero-media { display: grid; align-items: start; }
  .hero-photo .hero-title-box {
    position: static;
    width: 100%;
    padding-block: clamp(7rem, 15vh, 10rem) clamp(2.5rem, 6vh, 4rem);
  }
  .hero-title-box h1 { margin-bottom: 0; }
  .hero-copy { display: block; margin-top: clamp(1.25rem, 3vh, 2rem); }
  .hero-copy .lead {
    color: rgba(251, 247, 239, .88);
    max-width: 38em;
    text-shadow: 0 1px 14px rgba(31, 50, 39, .4);
  }
  .hero-copy .hero-cta { margin-top: 1.6rem; }
  .hero-copy .btn-ghost { border-color: rgba(251, 247, 239, .45); color: var(--cream); }
  .hero-copy .btn-ghost:hover { border-color: var(--cream); background: rgba(251, 247, 239, .12); }
  .hero-below { display: none; }
}
.hero-title-box {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1.25rem, 4.5vh, 3.5rem);
  z-index: 2;
}
.hero-title-box .kicker { color: var(--clay-soft); margin-bottom: .7rem; }
.hero-title-box .kicker::before { background: var(--clay-soft); }
.hero-title-box h1 {
  color: var(--cream);
  margin-bottom: 0;
  text-shadow: 0 2px 26px rgba(31, 50, 39, .5);
}
.hero-below { padding-block: clamp(1.75rem, 4vh, 3rem) clamp(2.25rem, 5vh, 3.5rem); }
.hero-below .lead { color: rgba(50, 42, 32, .75); }
@media (max-width: 700px), (min-width: 701px) and (max-height: 620px) {
  /* am Handy liefert <picture> das 4:3-Original - mehr Bildhöhe, Platz für den Titel */
  .hero-media { aspect-ratio: 4 / 3; }
  .hero-title-box { bottom: 1rem; }
  .hero-title-box .kicker { font-size: .64rem; letter-spacing: .13em; margin-bottom: .45rem; }
  .hero-title-box h1 { font-size: clamp(1.65rem, 7vw, 2.1rem); }
}

/* Sub-Hero für Unterseiten */
.page-hero {
  position: relative;
  padding: clamp(6rem, 11vh, 8rem) 0 clamp(2rem, 4vh, 3rem);
  background: linear-gradient(180deg, #DDE7D8 0%, var(--sand) 75%, var(--cream) 100%);
  overflow: hidden;
}
.page-hero .lead { margin-top: .5rem; }
.page-hero + .section { padding-top: clamp(1.25rem, 2.5vh, 2rem); }

/* ---------- Sektionen & Übergänge ---------- */
.section { padding-block: clamp(2.75rem, 6vh, 4.5rem); position: relative; }
.section-sand { background: var(--sand); }
.section-forest { background: var(--forest-deep); }
.section-head { max-width: 46em; margin-bottom: clamp(1.75rem, 4vh, 2.75rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker::before { display: none; }

/* Geschwungene Übergänge zwischen Sektionen */
.divider { display: block; width: 100%; height: clamp(40px, 8vw, 110px); margin-bottom: -2px; }
/* nach unten auslaufende (gespiegelte) Welle: Überlappung nach oben,
   sonst blitzt bei krummen DPI-Skalierungen eine helle Haarlinie durch */
.divider.flip {
  transform: scaleY(-1) scaleX(-1);
  margin-top: -2px;
  margin-bottom: 0;
}
.divider svg { width: 100%; height: 100%; display: block; }

/* ---------- Karten & Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand-deep); }
.card-media img, .card-media svg { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.card:hover .card-media img, .card:hover .card-media svg { transform: scale(1.05); }
.card-body { padding: 1.6rem 1.7rem 1.8rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-body h3 { margin-bottom: .1em; }
.card-body p { color: var(--stone); font-size: .98rem; }
.card-price {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
}
.price { font-family: var(--font-head); font-size: 1.5rem; font-weight: 620; color: var(--forest); }
.price small { font-family: var(--font-body); font-size: .72rem; font-weight: 600; color: var(--stone); display: block; letter-spacing: .04em; }
.card-link {
  font-weight: 700;
  font-size: .92rem;
  color: var(--clay);
  text-decoration: none;
  white-space: nowrap;
}
.card-link:hover { text-decoration: underline; }

/* Feature-Reihen (abwechselnd Bild/Text) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(1.75rem, 4vh, 3rem);
}
.feature-row:nth-child(even) .feature-media { order: 2; }
@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-media { order: 0; }
}
.feature-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
  background: var(--sand-deep);
}
.feature-media img, .feature-media svg { width: 100%; height: 100%; object-fit: cover; }
.feature-copy .kicker { margin-bottom: .8rem; }
.feature-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .7rem; }
.feature-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--stone); }
.feature-list li::before {
  content: '';
  flex: 0 0 auto;
  width: 1.35em;
  height: 1.35em;
  margin-top: .12em;
  border-radius: 50%;
  background: var(--moss) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FBF7EF' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 60% no-repeat;
}

/* ---------- Prozess-Schritte ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  counter-increment: step;
  background: rgba(251, 247, 239, .06);
  border: 1px solid rgba(251, 247, 239, .14);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  position: relative;
  transition: transform .5s var(--ease-out), background .4s;
}
.step:hover { transform: translateY(-6px); background: rgba(251, 247, 239, .1); }
.step::before {
  content: '0' counter(step);
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--clay-soft);
  display: block;
  margin-bottom: .6rem;
  line-height: 1;
}
.step h3 { font-size: 1.2rem; color: var(--cream); }
.step p { font-size: .95rem; }

/* ---------- Zahlen / Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 2rem + 2.4vw, 3.8rem);
  font-weight: 580;
  color: var(--forest);
  line-height: 1;
}
.stat-label { color: var(--stone); font-weight: 600; font-size: .95rem; margin-top: .5rem; }

/* ---------- Testimonials ---------- */
.quote-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.quote-card blockquote { margin: 0; font-size: 1.02rem; color: var(--bark); }
.quote-card blockquote::before { content: '„'; font-family: var(--font-head); font-size: 2.6rem; line-height: 0; color: var(--clay); display: block; margin: .8rem 0 .4rem; }
.quote-who { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.quote-who .avatar {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--moss);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
}
.quote-who strong { display: block; font-size: .95rem; color: var(--forest-deep); }
.quote-who span { font-size: .82rem; color: var(--stone); }
.stars { color: var(--clay); letter-spacing: .1em; font-size: .9rem; }

/* ---------- FAQ (Akkordeon) ---------- */
.faq-list { display: grid; gap: .9rem; max-width: 50em; margin-inline: auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .4s;
}
.faq-item[open] { box-shadow: var(--shadow-card); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--forest-deep);
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E4636' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 55% no-repeat;
  transition: transform .4s var(--ease-out), background-color .3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background-color: var(--sand-deep); }
.faq-body { padding: 0 1.5rem 1.4rem; color: var(--stone); }

/* ---------- Formulare ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: .4rem; color: var(--forest-deep); }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--bark);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: .85em 1.1em;
  transition: border-color .25s, box-shadow .25s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(46, 70, 54, .12);
}
textarea { resize: vertical; min-height: 9em; }
.form-hint { font-size: .85rem; color: var(--stone); }

/* ---------- CTA-Band ---------- */
.cta-band {
  background: var(--forest-deep);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute;
  right: -8rem;
  top: -8rem;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 154, 110, .25), transparent 70%);
  pointer-events: none;
}
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band .btn-wrap { display: flex; gap: 1rem; flex-wrap: wrap; justify-self: end; }
@media (max-width: 800px) { .cta-band .btn-wrap { justify-self: start; } }

/* ---------- Galerie ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.gallery-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .gallery-grid, .gallery-grid.two { grid-template-columns: 1fr; } }
/* CAD-/Konstruktionskacheln: ganze Zeichnung zeigen statt zuschneiden */
.gallery-item.cad { aspect-ratio: 16 / 10; background: #fff; }
.gallery-item.cad img { object-fit: contain; }
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sand-deep);
  position: relative;
  box-shadow: var(--shadow-card);
}
.gallery-item img, .gallery-item svg { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.gallery-item:hover img, .gallery-item:hover svg { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1.2rem .9rem;
  background: linear-gradient(transparent, rgba(31, 50, 39, .82));
  color: var(--cream);
  font-weight: 600;
  font-size: .92rem;
}

/* ---------- Marquee (laufende Zeile) ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
  background: var(--cream);
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--stone);
  white-space: nowrap;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 3.5rem; }
.marquee-track span::after { content: '✦'; color: var(--clay); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-deep);
  color: rgba(251, 247, 239, .75);
  padding: 0 0 2rem;
  margin-top: 0;
}
/* Wellen-Abschluss oben im Footer (creme auf dunkelgrün) */
.site-footer .divider.flip { margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(251, 247, 239, .14);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .logo { margin-bottom: 1.1rem; }
.site-footer .logo img { height: 3.1rem; }
.site-footer h4 { color: var(--cream); font-size: 1.05rem; margin-bottom: 1rem; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-nav a { color: rgba(251, 247, 239, .75); text-decoration: none; font-size: .95rem; transition: color .25s; }
.footer-nav a:hover { color: var(--cream); }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.8rem;
  font-size: .85rem;
  color: rgba(251, 247, 239, .55);
}

/* ---------- Scroll-Animationen (scroll-gekoppelt, von JS gesteuert) ----------
   Ohne JavaScript bleibt alles sichtbar; das Skript setzt opacity/transform
   kontinuierlich anhand der Scroll-Position – kein Warten, kein Springen. */
.reveal, .reveal-left, .reveal-right, .reveal-scale, .stagger > * {
  will-change: opacity, transform;
}
[data-float] { will-change: transform; }

/* Hero-Wortweise Einblendung (einmalige Lade-Animation) */
.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(.6em) rotate(2deg);
  animation: word-in .9s var(--ease-out) forwards;
  animation-delay: calc(.12s + var(--i) * .07s);
}
@keyframes word-in { to { opacity: 1; transform: none; } }

/* ---------- CAD-Verwandlungs-Sequenz (Produkte-Seite) ---------- */
.cad-scrub { position: relative; }
.cad-scrub.active { height: 500vh; height: var(--seq-h, 500svh); }
.cad-sticky { position: relative; }
.cad-scrub.active .cad-sticky {
  /* nur so hoch wie der Inhalt - kein Leerraum im Seitenfluss;
     die vertikale Zentrierung beim Pinnen setzt das Skript über top */
  position: sticky;
  top: 5rem;
}
.cad-stage {
  position: relative;
  /* so groß wie möglich: begrenzt durch 1240px, Fensterbreite und -höhe */
  width: min(1240px, 100%, calc((100vh - 14rem) * 1.6));
  width: min(1240px, 100%, calc((100svh - 14rem) * 1.6));
  margin-inline: auto;
  padding-inline: var(--pad);
}
.cad-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
/* Fallback ohne JS: Bilder normal untereinander zeigen */
.cad-frame img { width: 100%; height: auto; display: block; margin-bottom: 1rem; }
.cad-scrub.active .cad-frame {
  aspect-ratio: 16 / 10;
}
.cad-scrub.active .cad-frame.photo {
  background: var(--forest-deep);
  box-shadow: var(--shadow-soft);
}
.cad-scrub.active .cad-frame.photo img { object-fit: cover; }
@media (max-width: 640px) {
  .cad-scrub.active .cad-frame { aspect-ratio: 4 / 3; }
  .cad-scrub.active .cad-frame.photo { aspect-ratio: 1 / 1; }
}
.cad-scrub.active .cad-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  opacity: 0;
  will-change: opacity, transform;
}
.cad-captions { position: relative; min-height: 3.6em; margin-top: 1.2rem; text-align: center; }
.cad-captions p {
  font-weight: 700;
  color: var(--forest-deep);
  margin: 0;
}
.cad-scrub.active .cad-captions p {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .3s;
}
.cad-progress {
  display: none;
  gap: .45rem;
  justify-content: center;
  margin-top: 1rem;
}
.cad-scrub.active .cad-progress { display: flex; }
.cad-progress span {
  width: 2.2rem;
  height: 4px;
  border-radius: 4px;
  background: var(--sand-deep);
  transition: background .3s;
}
.cad-progress span.on { background: var(--clay); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .stagger > *, [data-float] {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-title .word { opacity: 1; transform: none; animation: none; }
  .hero-scroll svg { animation: none; }
}

/* ---------- Rechtsseiten / Fließtext ---------- */
.prose { max-width: 46em; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8em; }
.prose ul { color: var(--stone); }
.placeholder-note {
  background: #FDF3E4;
  border: 1.5px dashed var(--clay);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  font-size: .95rem;
  color: #8A5225;
  margin-bottom: 2.5rem;
}
.placeholder-note strong { color: #6E3F1A; }

/* ---------- Lightbox (Bilder vergrößern) ---------- */
img.zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(31, 50, 39, .9);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  cursor: zoom-out;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; text-align: center; max-width: 100%; }
.lightbox img {
  max-width: min(1400px, 100%);
  max-height: 82vh;
  max-height: 82svh;
  width: auto;
  height: auto;
  margin-inline: auto;
  border-radius: 14px;
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, .6);
}
.lightbox figcaption {
  color: rgba(251, 247, 239, .85);
  margin-top: 1rem;
  font-size: .95rem;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: rgba(251, 247, 239, .14);
  color: var(--cream);
  font-size: 1.6rem;
  line-height: 1;
}
body.lightbox-open { overflow: hidden; }

/* Produktkarten komplett klickbar (Link deckt die ganze Karte ab) */
.card-link::after { content: ''; position: absolute; inset: 0; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--forest);
  color: var(--cream);
  padding: .8em 1.4em;
  border-radius: 0 0 14px 0;
}
.skip-link:focus { left: 0; }
