/* ============================================================
   HAKOBA Innenausbau — „Werkstatt-Editorial"
   Putz-Töne, Terracotta-Akzent, Maßlinien-Motiv aus der Bauzeichnung.
   Keine Frameworks, keine externen Abrufe.
   ============================================================ */

/* ---------- Schriften (lokal, variable) ---------- */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/fonts/bricolage-grotesque-var.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/instrument-sans-var.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

/* ---------- Token ---------- */
:root {
  --putz: #F4F1EA;          /* Seitengrund: warmer Putzton */
  --papier: #FBFAF5;        /* helle Karten */
  --karton: #EAE4D7;        /* Sekundärfläche */
  --linie: #DCD4C4;         /* Hairlines */
  --tinte: #23262B;         /* Text, dunkle Bänder */
  --tinte-mittel: #555C63;  /* gedämpfter Text */
  --akzent: #B44E26;        /* Terracotta (Rotband) */
  --akzent-tief: #93401F;
  --akzent-puder: #F1E0D4;  /* Akzent-Tint für Flächen */
  --auf-dunkel: #F2EEE5;
  --auf-dunkel-60: #B9B4A8;

  --schrift-display: 'Bricolage Grotesque', 'Trebuchet MS', Arial, sans-serif;
  --schrift-text: 'Instrument Sans', 'Segoe UI', Arial, sans-serif;

  --wrap: 1160px;
  --radius: 4px;
  --uebergang: 180ms ease;
  --kopf-hoehe: 76px;

  /* feiner Putz-Grain als Data-URI (feTurbulence) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--schrift-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinte);
  background: var(--putz);
}
img, svg, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
ul, ol { padding-left: 1.2em; }
button { font: inherit; }
::selection { background: var(--akzent); color: #fff; }

h1, h2, h3, .display {
  font-family: var(--schrift-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p + p { margin-top: 0.9em; }
.lead { font-size: clamp(1.1rem, 1.9vw, 1.3rem); color: var(--tinte-mittel); max-width: 46em; }
.text-spalte { max-width: 46em; }
.text-spalte h2, .text-spalte h3 { margin: 1.6em 0 0.5em; }
.text-spalte ul { margin: 0.6em 0 1em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(18px, 4vw, 36px); }
.section { padding-block: clamp(56px, 9vw, 108px); }
.section-eng { padding-block: clamp(40px, 6vw, 72px); }
.section-hell { background: var(--papier); border-block: 1px solid var(--linie); }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 999;
  background: var(--tinte); color: var(--auf-dunkel);
  padding: 10px 18px; border-radius: var(--radius);
}
.skip:focus { left: 8px; }

/* ---------- Signatur: Maßlinien-Eyebrow ---------- */
.masslinie {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--akzent);
  margin-bottom: 18px;
}
.masslinie::before, .masslinie::after {
  content: ''; height: 1px; background: currentColor; flex: 0 0 34px;
  /* Endstriche wie in der Bauzeichnung */
  box-shadow: -0.5px -4px 0 -3.5px currentColor, -0.5px 4px 0 -3.5px currentColor;
  border-left: 1px solid currentColor; border-right: 1px solid currentColor;
}
.masslinie::after { flex-grow: 0; }
.masslinie--links { justify-content: flex-start; }
.masslinie--links::after { display: none; }
.masslinie--mitte { justify-content: center; }
.band-dunkel .masslinie { color: #D98B60; }

.section-kopf { max-width: 720px; margin-bottom: clamp(30px, 5vw, 54px); }
.section-kopf--mitte { margin-inline: auto; text-align: center; }
.section-kopf p { margin-top: 14px; color: var(--tinte-mittel); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background var(--uebergang), border-color var(--uebergang), transform var(--uebergang), box-shadow var(--uebergang);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-akzent { background: var(--akzent); color: #fff; }
.btn-akzent:hover { background: var(--akzent-tief); box-shadow: 0 8px 20px -10px rgba(180, 78, 38, 0.8); }
.btn-dunkel { background: var(--tinte); color: var(--auf-dunkel); }
.btn-dunkel:hover { background: #000; }
.btn-kontur { border-color: var(--tinte); color: var(--tinte); background: transparent; }
.btn-kontur:hover { background: var(--tinte); color: var(--auf-dunkel); }
.btn-hell { background: var(--auf-dunkel); color: var(--tinte); }
.btn-hell:hover { background: #fff; }
.btn-kontur-hell { border-color: var(--auf-dunkel-60); color: var(--auf-dunkel); background: transparent; }
.btn-kontur-hell:hover { border-color: var(--auf-dunkel); background: rgba(255,255,255,0.06); }
.btn-gross { padding: 17px 32px; font-size: 1.06rem; }

/* ---------- Header ---------- */
.site-kopf {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--putz) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);
}
.site-kopf.ist-fest { box-shadow: 0 6px 24px -18px rgba(35, 38, 43, 0.5); }
.kopf-zeile { display: flex; align-items: center; gap: 26px; height: var(--kopf-hoehe); }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 5px;
  background: var(--akzent); color: #fff;
  display: grid; place-items: center;
  font-family: var(--schrift-display); font-weight: 800; font-size: 1.35rem;
}
.logo-text {
  font-family: var(--schrift-display); font-weight: 800; font-size: 1.22rem;
  letter-spacing: 0.02em; line-height: 1;
  display: flex; flex-direction: column; gap: 3px;
}
.logo-text small {
  font-family: var(--schrift-text); font-weight: 600; font-size: 0.62rem;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--tinte-mittel);
}

.haupt-nav { margin-left: auto; }
.haupt-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; }
.haupt-nav > ul > li > a {
  display: block; padding: 10px 13px; text-decoration: none;
  font-weight: 600; font-size: 0.97rem; border-radius: var(--radius);
  color: var(--tinte); white-space: nowrap;
}
.haupt-nav > ul > li > a:hover { background: var(--karton); }
.haupt-nav > ul > li > a[aria-current="page"] { color: var(--akzent); }

/* --- Mega-Menü „Leistungen" (Desktop: volle Headerbreite, mit Bildern) --- */
.hat-unter > a::after {
  content: ''; display: inline-block; margin-left: 7px;
  width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--uebergang);
}
.hat-unter:hover > a::after,
.hat-unter:focus-within > a::after { transform: rotate(225deg) translateY(-1px); }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--papier);
  border-block: 1px solid var(--linie);
  box-shadow: 0 34px 60px -34px rgba(35, 38, 43, 0.5);
  padding-block: 30px 34px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}
.hat-unter:hover .mega,
.hat-unter:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-gitter {
  display: grid; grid-template-columns: repeat(3, 1fr) 1.05fr;
  gap: 22px 24px;
}
.mega-karte {
  grid-row: span 1;
  display: flex; flex-direction: column; gap: 4px;
  text-decoration: none; border-radius: 6px;
}
.mega-bild { display: block; overflow: clip; border-radius: 5px; border: 1px solid var(--linie); }
.mega-bild img { aspect-ratio: 16 / 8; object-fit: cover; width: 100%; transition: transform 300ms ease; }
.mega-karte:hover .mega-bild img { transform: scale(1.05); }
.mega-titel {
  display: flex; align-items: baseline; gap: 9px; margin-top: 8px;
  font-family: var(--schrift-display); font-weight: 700; font-size: 1.02rem;
  color: var(--tinte);
}
.mega-karte:hover .mega-titel { color: var(--akzent); }
.mega-index { font-size: 0.78rem; font-weight: 800; color: var(--akzent); letter-spacing: 0.06em; }
.mega-text { font-size: 0.86rem; color: var(--tinte-mittel); }
.mega-cta {
  grid-column: 4; grid-row: 1 / span 2;
  background: var(--tinte); color: var(--auf-dunkel);
  border-radius: 6px; padding: 26px;
  display: flex; flex-direction: column; gap: 12px; justify-content: center;
  background-image: var(--grain);
}
.mega-cta-titel { font-family: var(--schrift-display); font-weight: 700; font-size: 1.15rem; color: #fff; }
.mega-cta-text { font-size: 0.92rem; color: var(--auf-dunkel-60); }
.mega-cta .btn { margin-top: 6px; }
.mega-tel {
  text-align: center; text-decoration: none; font-weight: 700;
  font-family: var(--schrift-display); color: var(--auf-dunkel); font-size: 1.02rem;
}
.mega-tel:hover { color: #fff; }

.kopf-aktionen { display: flex; align-items: center; gap: 14px; }
.kopf-tel {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--schrift-display); font-weight: 700; font-size: 1.02rem;
  text-decoration: none; white-space: nowrap;
}
.kopf-tel svg { width: 17px; height: 17px; color: var(--akzent); }
.kopf-tel:hover { color: var(--akzent); }
.kopf-cta { padding: 11px 20px; }

.nav-toggle {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--linie); border-radius: var(--radius);
  background: var(--papier); cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 11px; right: 11px; height: 2px;
  background: var(--tinte); border-radius: 2px;
  transition: transform var(--uebergang), opacity var(--uebergang);
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { left: 0; right: 0; top: -7px; }
.nav-toggle span::after { left: 0; right: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .kopf-tel span { display: none; }
  .kopf-cta { display: none; }
  .nav-toggle { display: block; }
  /* Absolut am (sticky) Header verankert statt fixed: backdrop-filter auf
     .site-kopf macht ihn zum Containing Block und würde ein fixed-Panel
     auf Höhe null kollabieren lassen. */
  .haupt-nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 55;
    height: calc(100dvh - var(--kopf-hoehe));
    background: var(--putz); overflow-y: auto;
    padding: 18px clamp(18px, 4vw, 36px) 120px;
    display: none;
  }
  .haupt-nav.offen { display: block; }
  .haupt-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .haupt-nav > ul > li > a { padding: 15px 6px; font-size: 1.15rem; border-bottom: 1px solid var(--linie); border-radius: 0; white-space: normal; }
  .hat-unter > a::after { display: none; }
  /* Mega-Menü mobil: immer offen, kompakte Bild-Zeilen */
  .mega {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; background: transparent; padding: 6px 0 10px;
  }
  .mega .wrap { padding-inline: 0; }
  .mega-gitter { grid-template-columns: 1fr; gap: 4px; }
  .mega-karte {
    flex-direction: row; align-items: center; gap: 14px;
    padding: 8px 6px;
  }
  .mega-bild { flex: none; width: 76px; }
  .mega-bild img { aspect-ratio: 4 / 3; }
  .mega-titel { margin-top: 0; font-size: 1rem; }
  .mega-text { display: none; }
  .mega-cta { display: none; }
}

/* ---------- Hero (Startseite) ---------- */
.hero { position: relative; overflow: clip; background: var(--putz); }
.hero::before { content: ''; position: absolute; inset: 0; background-image: var(--grain); pointer-events: none; }
.hero-gitter {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
  position: relative;
}
.hero-text h1 { margin: 0 0 18px; }
.hero-text .lead { margin-bottom: 30px; }
.hero-aktionen { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; }
.hero-trust li {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.92rem; font-weight: 600; color: var(--tinte-mittel);
}
.hero-trust svg { width: 17px; height: 17px; color: var(--akzent); flex: none; }

.hero-bild { position: relative; }
.hero-bild img {
  width: 100%; height: clamp(320px, 42vw, 560px); object-fit: cover;
  border-radius: 6px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 46px), calc(100% - 46px) 100%, 0 100%);
}
/* Bemaßungs-Ornament am Bildrand */
.hero-mass {
  position: absolute; left: -14px; top: 8%; bottom: 8%; width: 1px;
  background: var(--tinte-mittel); opacity: 0.55;
}
.hero-mass::before, .hero-mass::after {
  content: ''; position: absolute; left: -5px; width: 11px; height: 1px; background: var(--tinte-mittel);
}
.hero-mass::before { top: 0; }
.hero-mass::after { bottom: 0; }
.hero-mass span {
  position: absolute; top: 50%; left: -10px;
  transform: rotate(180deg) translateY(50%); writing-mode: vertical-rl;
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--tinte-mittel); background: var(--putz); padding: 10px 0;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .hero-gitter { grid-template-columns: 1fr; }
  .hero-bild img { height: clamp(240px, 52vw, 400px); }
  .hero-mass { display: none; }
}

/* ---------- Unterseiten-Kopf ---------- */
.seiten-kopf { padding-block: clamp(44px, 6vw, 76px) clamp(28px, 4vw, 44px); }
.seiten-kopf .lead { margin-top: 16px; }
.brotkrumen { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; font-size: 0.85rem; color: var(--tinte-mittel); }
.brotkrumen a { color: inherit; text-decoration: none; }
.brotkrumen a:hover { color: var(--akzent); }
.brotkrumen li + li::before { content: '›'; margin-right: 6px; }

/* ---------- Karten / Leistungs-Kacheln ---------- */
.karten-gitter {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}
.karte {
  display: flex; flex-direction: column;
  background: var(--papier); border: 1px solid var(--linie); border-radius: 6px;
  overflow: clip; text-decoration: none; color: inherit; position: relative;
  transition: transform var(--uebergang), border-color var(--uebergang), box-shadow var(--uebergang);
}
.karte:hover {
  transform: translateY(-4px); border-color: var(--akzent);
  box-shadow: 0 22px 44px -28px rgba(35, 38, 43, 0.55);
}
.karte img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.karte-inhalt { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.karte-index {
  font-family: var(--schrift-display); font-weight: 800; font-size: 0.85rem;
  color: var(--akzent); letter-spacing: 0.08em;
}
.karte p { color: var(--tinte-mittel); font-size: 0.98rem; flex: 1; }
.karte-mehr {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.95rem; color: var(--akzent);
}
.karte-mehr::after { content: '→'; transition: transform var(--uebergang); }
.karte:hover .karte-mehr::after { transform: translateX(4px); }

/* ---------- Dunkles Band (CTA, Zahlen) ---------- */
.band-dunkel {
  background: var(--tinte); color: var(--auf-dunkel);
  position: relative; overflow: clip;
}
.band-dunkel::before { content: ''; position: absolute; inset: 0; background-image: var(--grain); pointer-events: none; }
.band-dunkel > .wrap { position: relative; }
.band-dunkel h2 { color: #fff; }
.band-dunkel p { color: var(--auf-dunkel-60); }

.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 26px; }
.zahl b {
  display: block; font-family: var(--schrift-display); font-weight: 800;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem); line-height: 1; color: #fff;
}
.zahl span { font-size: 0.95rem; color: var(--auf-dunkel-60); }
.zahl { border-left: 2px solid var(--akzent); padding-left: 18px; }

.cta-block .wrap {
  display: grid; grid-template-columns: minmax(0, 1.3fr) auto;
  gap: clamp(24px, 4vw, 60px); align-items: center;
}
.cta-aktionen { display: flex; flex-direction: column; gap: 12px; min-width: 260px; }
@media (max-width: 780px) {
  .cta-block .wrap { grid-template-columns: 1fr; }
  .cta-aktionen { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Ablauf / Schritte ---------- */
.schritte { list-style: none; padding: 0; display: grid; gap: 0; counter-reset: schritt; }
.schritt {
  counter-increment: schritt;
  display: grid; grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px; padding-block: 26px;
  border-top: 1px solid var(--linie); position: relative;
}
.schritt:last-child { border-bottom: 1px solid var(--linie); }
.schritt::before {
  content: counter(schritt, decimal-leading-zero);
  font-family: var(--schrift-display); font-weight: 800;
  font-size: 1.9rem; line-height: 1; color: var(--akzent);
}
.schritt h3 { margin-bottom: 6px; }
.schritt p { color: var(--tinte-mittel); max-width: 56em; }
.schritt-meta { margin-top: 8px; font-size: 0.88rem; font-weight: 600; color: var(--akzent-tief); }

/* ---------- Referenzen ---------- */
.filter-leiste { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-leiste button {
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--linie); background: var(--papier);
  font-weight: 600; font-size: 0.92rem; color: var(--tinte-mittel);
  transition: all var(--uebergang);
}
.filter-leiste button:hover { border-color: var(--akzent); color: var(--akzent); }
.filter-leiste button[aria-pressed="true"] { background: var(--tinte); border-color: var(--tinte); color: var(--auf-dunkel); }

.ref-karte { text-decoration: none; }
.ref-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; color: var(--tinte-mittel); }
.ref-meta b { color: var(--tinte); font-weight: 600; }

/* Vorher/Nachher-Vergleich */
.vergleich { position: relative; border-radius: 6px; overflow: clip; border: 1px solid var(--linie); }
.vergleich img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.vergleich-nachher img { height: 100%; aspect-ratio: auto; }
.vergleich-nachher { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.vergleich-griff {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px;
  background: #fff; box-shadow: 0 0 12px rgba(0,0,0,0.5); pointer-events: none;
}
.vergleich-griff::after {
  content: '⟷'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; color: var(--tinte);
  display: grid; place-items: center; font-size: 1.1rem; font-weight: 700;
}
.vergleich input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}
.vergleich-label {
  position: absolute; bottom: 12px; padding: 5px 12px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  background: rgba(35, 38, 43, 0.78); color: #fff; pointer-events: none;
}
.vergleich-label--vorher { left: 12px; }
.vergleich-label--nachher { right: 12px; }

/* ---------- Kundenstimmen ---------- */
.stimmen { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(16px, 2.4vw, 26px); }
.stimme {
  background: var(--papier); border: 1px solid var(--linie); border-radius: 6px;
  padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 14px;
}
.stimme blockquote { font-size: 1.02rem; }
.stimme blockquote::before { content: '„'; font-family: var(--schrift-display); font-size: 2.4rem; line-height: 0.4; display: block; color: var(--akzent); margin-bottom: 12px; }
.stimme footer { font-size: 0.88rem; color: var(--tinte-mittel); margin-top: auto; }
.stimme footer b { color: var(--tinte); }
.sterne { color: var(--akzent); letter-spacing: 2px; font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq-liste { display: grid; gap: 12px; max-width: 820px; }
.faq-liste details {
  background: var(--papier); border: 1px solid var(--linie); border-radius: 6px;
  padding: 0 22px; transition: border-color var(--uebergang);
}
.faq-liste details[open] { border-color: var(--akzent); }
.faq-liste summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.04rem;
}
.faq-liste summary::-webkit-details-marker { display: none; }
.faq-liste summary::after {
  content: '+'; flex: none;
  font-family: var(--schrift-display); font-size: 1.5rem; font-weight: 600;
  color: var(--akzent); transition: transform var(--uebergang);
}
.faq-liste details[open] summary::after { transform: rotate(45deg); }
.faq-liste details > div { padding: 0 0 20px; color: var(--tinte-mittel); max-width: 60em; }

/* ---------- Formular ---------- */
.formular { display: grid; gap: 18px; }
.feld label { display: block; font-weight: 600; font-size: 0.94rem; margin-bottom: 7px; }
.feld input, .feld select, .feld textarea {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--linie); border-radius: var(--radius);
  background: #fff; font: inherit; color: var(--tinte);
  transition: border-color var(--uebergang), box-shadow var(--uebergang);
}
.feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: none; border-color: var(--akzent);
  box-shadow: 0 0 0 3px var(--akzent-puder);
}
.feld textarea { min-height: 150px; resize: vertical; }
.feld-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .feld-zeile { grid-template-columns: 1fr; } }
.feld-fehler { color: #A02911; font-size: 0.88rem; margin-top: 6px; font-weight: 600; }
.feld--fehler input, .feld--fehler textarea { border-color: #A02911; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.97rem; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--akzent); }
.formular-hinweis { font-size: 0.85rem; color: var(--tinte-mittel); }
.formular-hinweis a { color: inherit; }
.form-meldung { padding: 16px 20px; border-radius: 6px; font-weight: 600; }
.form-meldung--ok { background: #E7EFE3; border: 1px solid #A9C39A; color: #2F5424; }
.form-meldung--fehler { background: #F6E3DD; border: 1px solid #D9A18C; color: #A02911; }
/* Honeypot: für Menschen unsichtbar, für Bots ein normales Feld */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Anfrage-Konfigurator ---------- */
.konfig-kopf { margin-bottom: 2px; }
.konfig-label {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--tinte-mittel); margin-bottom: 9px;
}
.konfig-balken { height: 4px; background: var(--karton); border-radius: 999px; overflow: hidden; }
.konfig-balken span { display: block; height: 100%; width: 25%; background: var(--akzent); transition: width 320ms ease; }
fieldset.konfig-schritt { border: 0; padding: 0; margin: 0; }
.konfig-frage {
  font-family: var(--schrift-display); font-weight: 700; font-size: 1.35rem;
  line-height: 1.2; margin-bottom: 18px; padding: 0; display: block;
}
.wahl-gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.wahl-gitter--schlicht { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.wahl {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--linie); border-radius: 6px; overflow: clip;
  background: #fff; cursor: pointer;
  transition: border-color var(--uebergang), box-shadow var(--uebergang), transform var(--uebergang);
}
.wahl:hover { border-color: var(--akzent); transform: translateY(-2px); }
.wahl input { position: absolute; opacity: 0; pointer-events: none; }
.wahl-bild { display: block; }
.wahl-bild img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.wahl-titel { padding: 10px 13px; font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.wahl:has(input:checked) { border-color: var(--akzent); box-shadow: 0 0 0 2px var(--akzent); }
.wahl:has(input:checked) .wahl-titel::after { content: '✓'; color: var(--akzent); font-weight: 800; margin-left: auto; }
.wahl:has(input:focus-visible) { outline: 2px solid var(--akzent); outline-offset: 3px; }
.wahl--schlicht { flex-direction: row; align-items: center; }
.wahl--schlicht .wahl-titel { padding: 13px 15px; width: 100%; }
.konfig-nav { display: flex; justify-content: flex-end; gap: 12px; }
.konfig-nav [data-konfig-zurueck] { margin-right: auto; }

/* ---------- Kontaktseite ---------- */
.kontakt-gitter { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .kontakt-gitter { grid-template-columns: 1fr; } }
.kontakt-karte {
  background: var(--papier); border: 1px solid var(--linie); border-radius: 6px;
  padding: 28px; display: grid; gap: 20px; position: sticky; top: calc(var(--kopf-hoehe) + 20px);
}
.kontakt-weg { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; }
.kontakt-weg svg { width: 20px; height: 20px; color: var(--akzent); flex: none; margin-top: 3px; }
.kontakt-weg b { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tinte-mittel); margin-bottom: 2px; }
.kontakt-weg span { font-weight: 600; }
.kontakt-weg:hover span { color: var(--akzent); }

/* ---------- Orte / Einzugsgebiet ---------- */
.orte { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.orte li {
  padding: 8px 16px; border-radius: 999px;
  background: var(--papier); border: 1px solid var(--linie);
  font-weight: 600; font-size: 0.93rem;
}
.orte li:first-child { background: var(--tinte); border-color: var(--tinte); color: var(--auf-dunkel); }

/* ---------- Footer ---------- */
.site-fuss { background: var(--tinte); color: var(--auf-dunkel-60); font-size: 0.96rem; position: relative; overflow: clip; }
.site-fuss::before { content: ''; position: absolute; inset: 0; background-image: var(--grain); pointer-events: none; }
.fuss-gitter {
  position: relative;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(26px, 4vw, 56px); padding-block: clamp(44px, 6vw, 72px);
}
@media (max-width: 960px) { .fuss-gitter { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fuss-gitter { grid-template-columns: 1fr; } }
.site-fuss h2 { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--auf-dunkel); font-family: var(--schrift-text); font-weight: 600; margin-bottom: 16px; }
.site-fuss ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.site-fuss a { color: var(--auf-dunkel-60); text-decoration: none; }
.site-fuss a:hover { color: #fff; }
.fuss-marke .logo-text { color: #fff; }
.fuss-marke .logo-text small { color: var(--auf-dunkel-60); }
.fuss-marke p { margin-top: 16px; max-width: 34em; }
.fuss-unten {
  position: relative;
  border-top: 1px solid rgba(242, 238, 229, 0.12);
  padding-block: 20px;
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between;
  font-size: 0.88rem;
}
.fuss-unten ul { display: flex; gap: 22px; list-style: none; padding: 0; }

/* ---------- Mobile Kontaktleiste ---------- */
.mobil-leiste {
  position: fixed; inset: auto 0 0 0; z-index: 70;
  display: none; grid-template-columns: 1fr 1fr 1.2fr;
  background: var(--tinte);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 30px -16px rgba(0, 0, 0, 0.55);
}
.mobil-leiste a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 8px; text-decoration: none;
  color: var(--auf-dunkel); font-weight: 600; font-size: 0.92rem;
}
.mobil-leiste svg { width: 18px; height: 18px; }
.mobil-leiste a:last-child { background: var(--akzent); color: #fff; }
@media (max-width: 860px) {
  .mobil-leiste { display: grid; }
  body { padding-bottom: 62px; }
  .site-fuss { padding-bottom: 20px; }
}

/* ---------- Einblendungen ---------- */
/* Versteckt wird erst per JS (.wartet) — ohne JS bleibt alles sichtbar. */
.reveal { transition: opacity 500ms ease, transform 500ms ease; }
.reveal.wartet { opacity: 0; transform: translateY(22px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal.wartet { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Utilities (statt Inline-Styles, CSP-freundlich) ---------- */
.mt-14 { margin-top: 14px; }
.mt-22 { margin-top: 22px; }
.mt-24 { margin-top: 24px; }
.mt-28 { margin-top: 28px; }
.trust-spalte { flex-direction: column; align-items: flex-start; gap: 12px; }

/* ---------- Kleinkram ---------- */
.tabelle-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-weight: 600; background: var(--karton); }
.hinweis-box {
  background: var(--akzent-puder); border-left: 3px solid var(--akzent);
  padding: 18px 22px; border-radius: 0 6px 6px 0; font-size: 0.98rem;
}
