/* ==========================================================================
   Susenberger Fenster + Türen — Design System
   Orientiert an der visuellen Sprache von fenson.de:
   viel Weißraum, große Headlines, ruhige Farbpalette, klare Kanten.
   ========================================================================== */

:root {
  --color-bg: #faf9f6;
  --color-bg-alt: #f0efe9;
  --color-surface: #ffffff;
  --color-dark: #1b1c1a;
  --color-text: #2c2d2a;
  --color-text-muted: #6b6b64;
  --color-accent: #F7C600;       /* WERU-Gelb – für Buttons, Flächen, Icons */
  --color-accent-light: #FFF6D8; /* helles Gelb für sanfte Flächen */
  --color-accent-dark: #7A5C00;  /* dunkles Gold für lesbaren Text auf hellem Grund */
  --color-gold: #b68a4e;         /* dezenter Warmton für Highlights/Sterne */
  --color-border: #e3e1d9;
  --radius: 18px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --max-width: 1180px;
  --shadow-soft: 0 24px 60px -28px rgba(27, 28, 26, 0.28);
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

/* Nur fuer Vorleseprogramme: haelt die Ueberschriftenfolge h1-h2-h3 heil,
   ohne dass eine Zwischenueberschrift sichtbar wird. */
.nur-vorlesen {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--color-dark);
  margin: 0 0 0.5em;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.6rem, 5.4vw, 3.9rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.02em; }

p { margin: 0 0 1em; color: var(--color-text); }
.lede { font-size: 1.15rem; color: var(--color-text-muted); max-width: 62ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--color-accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.btn-primary { background: var(--color-accent); color: var(--color-dark); }
.btn-primary:hover { background: #E3B600; transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(247,198,0,0.55); }
.btn-outline { border-color: var(--color-dark); color: var(--color-dark); }
.btn-outline:hover { background: var(--color-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost { color: var(--color-dark); border-color: var(--color-border); background: #fff; }
.btn-ghost:hover { border-color: var(--color-dark); transform: translateY(-2px); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Header ---------- */
.top-bar {
  background: var(--color-dark);
  color: #cfd2c9;
  font-size: 0.82rem;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.top-bar a { color: #fff; text-decoration: none; }
.top-bar .top-links { display: flex; gap: 18px; }

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
/* Logo im Kopf: Bildmarke (Fenster + Tuer, inline-SVG) neben der Wortmarke.
   Die Wortmarke ist echter Text, keine Grafik -- scharf in jeder Groesse,
   fuer Vorleseprogramme lesbar, und die Schriften sind ohnehin geladen.
   Schreibweise wie im Logo: Versalien, gesperrt, eine Farbe. */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-dark);
}
.logo .logo-zeichen {
  width: 54px;
  height: 36px;
  flex: none;
  display: block;
}
.logo .logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo .logo-main {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.logo .logo-sub {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}
/* ---------- WERU-Badge: "Autorisierter WERU-Fachbetrieb" ----------
   Sitzt in der Navigationspille RECHTS NEBEN der Wortmarke, auf derselben
   Hoehe wie die kleine Firmenzeile "Fenster und Tueren GmbH" (Wunsch vom
   16.09.: "gleiche Ebene" -- und die Wortmarke "komplett nach links", also
   ganz an den Anfang der Pille). Deshalb einzeilig und in derselben Groesse
   wie .logo-sub; .marke richtet Logo und Badge oben buendig aus.
   Markup kommt aus weru_badge() in gen_site.py. */
.marke { display: flex; align-items: flex-start; gap: 14px; flex-shrink: 0; }
.weru-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 14px;
  border-left: 1px solid var(--color-border);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.15;
  /* "Gelb", aber lesbar: reines WERU-Gelb auf Weiss hat einen Kontrast von
     1,5:1 -- unlesbar. Der dunkle Goldton ist das lesbare Gelb der Seite. */
  color: var(--color-accent-dark);
  font-weight: 600;
  white-space: nowrap;
}
.weru-badge-zeichen { height: 13px; width: auto; display: block; }
.logo .logo-sub { white-space: nowrap; }
nav.main-nav a, .nav-mega-trigger { white-space: nowrap; }
/* Mit Badge und Wortmarke ist der Kopf voll: Die Telefonnummer steht in der
   Leiste darueber und im Fuss -- ab 1200px darf sie im Kopf weichen. */
@media (min-width: 1200px) { .header-cta .header-phone { display: none; } }
/* Darunter wird es eng; der Hinweis steht im Hero und im Fuss. */
@media (max-width: 1199px) { .weru-badge { display: none; } }

nav.main-nav { display: flex; align-items: center; gap: 22px; }
nav.main-nav a,
.nav-mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 6px 0;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
}
nav.main-nav a:hover,
nav.main-nav a[aria-current="page"],
.nav-mega-trigger:hover,
.nav-mega-trigger[aria-current="page"] { border-color: var(--color-accent); color: var(--color-accent-dark); }
.nav-mega-trigger .mega-caret { width: 13px; height: 13px; transition: transform .2s ease; }
.nav-mega.open .nav-mega-trigger .mega-caret { transform: rotate(180deg); }

/* ---------- Mega-Menü "Produkte" (Fenson-Stil: Hauptreiter oben, Unterpunkte links) ---------- */
.nav-mega { position: relative; display: flex; align-items: center; }
.mega-menu {
  position: fixed;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 34px 70px -30px rgba(20,20,18,0.3);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.nav-mega.open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.mega-menu-inner {
  display: flex;
  align-items: flex-start;
  gap: 56px;
  padding: 40px 28px 48px;
}
.mega-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 260px;
  flex-shrink: 0;
}
/* nav.main-nav a (0,1,2) ist spezifischer als .mega-menu-list a (0,1,1) und
   ueberschrieb bisher NUR die Links -- die <button>-Eintraege (Markisen,
   Schiebetueren) behielten die groessere Display-Schrift. Ergebnis waren zwei
   Schriftgroessen im selben Menue. Der zusaetzliche nav.main-nav-Praefix
   hebt die Spezifitaet an, damit hier alle Eintraege gleich aussehen. */
nav.main-nav .mega-menu-list a,
.mega-menu-list a,
.mega-menu-list button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-dark);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
/* Gruppe im Produktmenue: unter dem Gruppeneintrag ein duenner Strich, damit
   sichtbar ist, dass die folgenden Eintraege dazugehoeren. */
.mega-sublist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
/* display:flex wuerde das hidden-Attribut ueberstimmen -- ohne diese Zeile
   steht die Liste dauerhaft offen. */
.mega-sublist[hidden] { display: none; }

/* Pfeiltaste neben dem Gruppeneintrag */
.mega-gruppe-kopf { display: flex; align-items: center; gap: 4px; }
.mega-gruppe-kopf > a { flex: 1; }
.mega-aufklapp {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.mega-aufklapp svg { width: 15px; height: 15px; transition: transform .2s ease; }
.mega-aufklapp:hover { background: var(--color-bg-alt); color: var(--color-accent-dark); }
.mega-aufklapp[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Untergruppen unter "Fenster": eingerueckt, kleiner, mit Gedankenstrich.
   Der Strich steckt im Pseudo-Element, nicht im Text -- so liest ein
   Screenreader den Menuepunkt ohne den Strich vor. */
nav.main-nav .mega-menu-list a.mega-sub,
.mega-menu-list a.mega-sub,
.mobile-nav-sublist a.mega-sub {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-text-muted);
  padding-left: 34px;
  position: relative;
}
nav.main-nav .mega-menu-list a.mega-sub::before,
.mega-menu-list a.mega-sub::before,
.mobile-nav-sublist a.mega-sub::before {
  content: "-";
  position: absolute;
  left: 18px;
}
.mega-menu-list a.mega-sub:hover,
.mobile-nav-sublist a.mega-sub:hover { color: var(--color-accent-dark); }

.mega-menu-list a:hover,
.mega-menu-list button:hover { background: var(--color-bg-alt); color: var(--color-accent-dark); }
.mega-menu-side {
  flex: 1;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 32px 34px;
  max-width: 380px;
}
.mega-menu-side .eyebrow { margin-bottom: 10px; }
.mega-menu-side h3 { margin-bottom: 10px; font-size: 1.3rem; }
.mega-menu-side p { color: var(--color-text-muted); font-size: 0.92rem; margin-bottom: 20px; }
/* Ruhiger Textlink statt Button -- nav.main-nav a wuerde sonst einen
   Unterstrich-Rahmen und den Navigationsabstand mitbringen. */
nav.main-nav .mega-menu-side a {
  display: inline-block;
  padding: 0;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}
nav.main-nav .mega-menu-side a:hover { color: var(--color-dark); }
@media (max-width: 1080px) {
  .mega-menu-inner { flex-direction: column; gap: 26px; }
  .mega-menu-side { max-width: none; width: 100%; }
}
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.header-phone span { display:block; font-size: 0.68rem; font-weight: 500; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Mobiles Menü (Hamburger + Drawer) ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--color-dark); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 300;
  visibility: hidden;
}
.mobile-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20,20,18,0.5);
  opacity: 0;
  transition: opacity .2s ease;
}
.mobile-nav-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(86vw, 360px);
  height: 100%;
  background: #fff;
  box-shadow: -20px 0 50px rgba(0,0,0,0.25);
  padding: 22px 26px 30px;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-nav.open { visibility: visible; }
.mobile-nav.open::before { opacity: 1; }
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
/* Der Pfeil-Knopf der Fenstergruppe erbt in der mobilen Liste die Regel
   "button { width: 100% }" und wurde 257px breit -- er ragte aus dem Panel,
   und ein Tipp darauf schob das ganze Menue 39px nach links. Hier wieder ein
   Quadrat; und das Panel scrollt grundsaetzlich nicht seitwaerts. */
.mobile-nav-panel { overflow-x: hidden; }
.mobile-nav-sublist .mega-gruppe-kopf { display: flex; align-items: center; gap: 4px; }
.mobile-nav-sublist .mega-gruppe-kopf > a { flex: 1; width: auto; }
.mobile-nav-sublist button.mega-aufklapp {
  display: inline-flex;
  width: 38px;
  flex: 0 0 38px;
  padding: 0;
}
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.mobile-nav-close {
  width: 38px; height: 38px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: #fff;
  font-size: 1rem;
  cursor: pointer;
  color: var(--color-text-muted);
}
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; margin-bottom: 26px; }
.mobile-nav-links a {
  text-decoration: none;
  color: var(--color-dark);
  font-family: var(--font-display);
  font-size: 1.25rem;
  padding: 12px 4px;
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav-links a[aria-current="page"] { color: var(--color-accent-dark); }
.mobile-nav-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 12px 4px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-dark);
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
}
.mobile-nav-accordion-trigger[aria-current="page"] { color: var(--color-accent-dark); }
.mobile-nav-accordion-trigger svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform .2s ease; }
.mobile-nav-accordion-trigger.open svg { transform: rotate(180deg); }
.mobile-nav-sublist {
  display: flex;
  flex-direction: column;
  padding: 2px 0 6px 14px;
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav-sublist a,
.mobile-nav-sublist button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  padding: 10px 4px;
  cursor: pointer;
}
.mobile-nav-sublist a:hover,
.mobile-nav-sublist button:hover { color: var(--color-accent-dark); }
.mobile-nav-cta { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.mobile-nav-cta a.header-phone { text-align: center; padding: 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }

@media (max-width: 900px) {
  nav.main-nav { display: none; }
  .header-cta .btn-primary,
  .header-phone { display: none; }
  .nav-toggle { display: flex; }
}
@media (min-width: 901px) {
  .nav-toggle, .mobile-nav { display: none; }
}

/* ---------- Hero: großflächiges Bild mit Zoom-Effekt ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  margin-top: -1px; /* schließt nahtlos an den Header an */
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  animation: heroKenBurns 20s ease-in-out infinite alternate;
  transform-origin: 60% 45%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(15,15,13,0.28) 0%, rgba(15,15,13,0.38) 45%, rgba(15,15,13,0.80) 100%),
    linear-gradient(90deg, rgba(15,15,13,0.48) 0%, rgba(15,15,13,0.08) 55%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 0 90px;
  max-width: 700px;
}
.hero .eyebrow { color: var(--color-accent); }
.hero .eyebrow::before { background: var(--color-accent); }
.hero h1 { margin-bottom: 22px; color: #fff; }
.hero .lede { color: rgba(255,255,255,0.88); }
.hero .btn-outline { border-color: #fff; color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--color-dark); }
.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stats .stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-accent);
  display: block;
}
.hero-stats .stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.72); }
.hero-photo-credit { position: absolute; right: 20px; bottom: 16px; z-index: 2; }

.visual-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 900px) {
  .hero { min-height: 78vh; }
  .hero-content { padding: 110px 0 60px; }
}
@media (max-width: 640px) {
  .hero { min-height: 70vh; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; }
}

/* ---------- Placeholder-Bildflächen (bis echte Fotos vorliegen) ---------- */
.ph-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef1ec 0%, #dfe6df 55%, #cdd8cc 100%);
  color: var(--color-accent-dark);
  overflow: hidden;
}
.ph-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(27,28,26,0.035) 0 2px, transparent 2px 14px);
}
.ph-image svg { width: 34%; max-width: 120px; opacity: 0.55; position: relative; z-index: 1; }
.ph-image .ph-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: rgba(27,28,26,0.55);
  background: rgba(255,255,255,0.72);
  padding: 5px 9px;
  border-radius: 6px;
  z-index: 2;
}
.ph-image.dark { background: linear-gradient(135deg, #2a3128 0%, #1b1c1a 100%); color:#cfd8cf; }
.ph-image.dark .ph-label { background: rgba(0,0,0,0.35); color: #e7efe8; }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-alt { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section-dark { background: var(--color-dark); color: #eceee9; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #c7cac1; }
.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 30px; }

/* Rasterspalten duerfen schmaler werden als ihr Inhalt.
   Ohne diese Zeile gilt fuer jedes Grid-Kind min-width:auto -- die Spalte
   waechst dann auf die Mindestbreite ihres Inhalts. Eine Vergleichstabelle
   (min-width:480px) sprengt damit auf dem Smartphone die ganze Spalte, und
   Ueberschrift, Text und Bild daneben werden rechts abgeschnitten.
   Es ist auch der Grund, warum .table-scroll dort wirkungslos blieb:
   overflow-x:auto greift erst, wenn das Element ueberhaupt schrumpfen darf. */
.grid > * { min-width: 0; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card .icon { color: var(--color-accent); margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card p { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 0; }
.card a.card-link { font-size: 0.85rem; font-weight: 600; color: var(--color-accent-dark); text-decoration: none; display: inline-block; margin-top: 14px; }

.product-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.product-card .ph-image { aspect-ratio: 4/3; }
.product-card .product-body { padding: 26px 24px 30px; }
.product-card .product-body p { color: var(--color-text-muted); font-size: 0.95rem; }

/* ---------- Facts strip ---------- */
.facts-strip {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  background: var(--color-accent-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 34px 40px;
}
.facts-strip div { flex: 1; min-width: 140px; }
.facts-strip .stat-num { font-family: var(--font-display); font-size: 2.1rem; color: var(--color-accent-dark); display: block; }
.facts-strip .stat-label { font-size: 0.85rem; color: var(--color-text-muted); }

/* ---------- Answer capsule blocks (GEO) ---------- */
.answer-block {
  border-left: 3px solid var(--color-accent);
  background: var(--color-surface);
  padding: 22px 26px;
  border-radius: var(--radius);
  margin: 26px 0;
}
.answer-block .a-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 8px;
  display: block;
}
.answer-block p:last-child { margin-bottom: 0; }

table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 0.92rem;
}
table.compare th, table.compare td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}
table.compare th { background: var(--color-bg-alt); font-family: var(--font-display); font-weight: 600; }
table.compare tr:last-child td { border-bottom: none; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 22px 0;
}
.faq-item h3 { font-size: 1.05rem; margin-bottom: 10px; }
.faq-item p { color: var(--color-text-muted); margin-bottom: 0; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 26px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  /* Der Kreis ist 46px hoch und sitzt bei top:0. Mit 44px Innenabstand
     stiess die Ueberschrift unten an ihn an; 68px lassen rund 22px Luft. */
  padding-top: 68px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-accent-dark);
  border: 1px solid var(--color-accent);
  background: var(--color-accent-light);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: absolute; top: 0; left: 0;
}

/* ---------- Reviews ---------- */
.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}
.stars { color: var(--color-gold); letter-spacing: 2px; font-size: 0.95rem; margin-bottom: 10px; }
.review-card p { font-size: 0.95rem; color: var(--color-text); }
.review-name { font-weight: 600; font-size: 0.88rem; color: var(--color-text-muted); margin-top: 12px; }

.rating-banner {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.rating-banner .rating-num { font-family: var(--font-display); font-size: 3rem; color: var(--color-accent-dark); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 56px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #cfcac0; margin-bottom: 0; }
.cta-band .btn-outline { border-color: #fff; color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--color-dark); }
.cta-band .btn-primary:hover { background: #E3B600; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--color-dark);
  color: #c7cac1;
  padding: 70px 0 26px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
footer h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--font-body); }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer a { color: #c7cac1; text-decoration: none; }
footer a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 0.8rem;
  color: #8b8e85;
}
.footer-bottom a { color: #8b8e85; }
.link-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-btn:hover { color: #fff; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  padding: 18px 0 0;
}
.breadcrumb a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-accent-dark); }

/* ---------- Unterreiter (Sub-Tab-Navigation, z. B. WERU Fenstersysteme) ---------- */
.subtab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0 0;
}
.subtab-nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all .15s ease;
}
.subtab-nav a:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }

/* Materialgruppen in den Unterreitern: ein Reiter mit Pfeil, darunter klappt
   eine kleine Liste auf. Ohne Gruppierung standen acht Reiter nebeneinander
   und es war nicht erkennbar, was zusammengehoert. */
.subtab-gruppe { position: relative; display: inline-flex; }
.subtab-knopf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.subtab-knopf:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }
.subtab-knopf svg { width: 14px; height: 14px; transition: transform .2s ease; }
.subtab-knopf[aria-expanded="true"] svg { transform: rotate(180deg); }
/* Gruppe, in der die aktuelle Seite liegt: wie ein aktiver Reiter */
.subtab-gruppe.ist-aktiv > .subtab-knopf {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: #fff;
}

.subtab-unterliste {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
/* display:flex wuerde hidden ueberstimmen -- ohne diese Zeile stuende die
   Liste dauerhaft offen. */
.subtab-unterliste[hidden] { display: none; }
.subtab-nav .subtab-unterliste a {
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-weight: 500;
  white-space: nowrap;
}
.subtab-nav .subtab-unterliste a:hover { background: var(--color-bg-alt); color: var(--color-accent-dark); }
.subtab-nav .subtab-unterliste a[aria-current="page"] { background: var(--color-dark); color: #fff; }


.subtab-nav a[aria-current="page"] { background: var(--color-dark); border-color: var(--color-dark); color: #fff; }
@media (max-width: 720px) {
  /* Seit der Gruppierung sind es nur noch vier Reiter -- die brechen sauber
     in zwei Zeilen um. Wichtig: kein overflow-x, sonst wuerde die absolut
     liegende Klappliste abgeschnitten. */
  .subtab-nav { flex-wrap: wrap; gap: 8px; }
  .subtab-nav > a,
  .subtab-knopf {
    padding: 10px 16px;
    font-size: 0.84rem;
    white-space: nowrap;
  }
  /* Auf schmalen Schirmen an der Reiterzeile ausrichten statt an der Gruppe --
     sonst ragt die Liste bei den rechten Reitern ueber den Rand hinaus und
     die Seite laesst sich seitlich schieben. */
  .subtab-nav { position: relative; }
  /* Der naechste positionierte Vorfahr entscheidet, woran das absolut
     liegende Menue haengt -- deshalb muss die Gruppe hier statisch sein. */
  .subtab-gruppe { position: static; }
  .subtab-unterliste {
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    min-width: 0;
  }
}

/* ---------- Produktdaten-Tabelle & Bild (Produktsysteme) ---------- */
.product-hero-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--color-bg-alt);
}
.product-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spec-table th { white-space: nowrap; }
.system-compare-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.system-compare-card .tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: var(--color-accent-light);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* ---------- Konfigurator-Einbettung ---------- */
.configurator-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  min-height: 560px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}
/* Auf dem Smartphone waere 16:10 nur 230px hoch -- der Konfigurator braucht
   Hoehe. Deshalb dort fast die ganze Bildschirmhoehe. */
@media (max-width: 700px) {
  .configurator-frame { aspect-ratio: auto; height: 82vh; min-height: 520px; }
}
.configurator-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.configurator-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 32px;
}

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: 50px 0 70px; background: var(--color-bg-alt); border-bottom: 1px solid var(--color-border); }
.page-hero .lede { margin-top: 14px; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.updated-note { font-size: 0.78rem; color: var(--color-text-muted); margin-top: 6px; }

/* ---------- Echte Fotos (Pexels, Lizenz: frei für kommerzielle Nutzung) ---------- */
.photo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--color-bg-alt);
}
/* Traegt ein .photo-frame ein eigenes Seitenverhaeltnis, darf height:100%
   nicht dazwischenfunken -- sonst bestimmt der Elternteil die Hoehe und das
   Bild wird trotz passendem Format beschnitten. */
.photo-frame[style*="aspect-ratio"] { height: auto; }
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Bildnachweis im Impressum */
.bildnachweis {
  padding-left: 20px;
  margin: 0 0 18px;
}
.bildnachweis li {
  margin-bottom: 10px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}
.bildnachweis strong { color: var(--color-text); }

/* ---------- Einzugsgebiet: Kreise und Ortslisten ---------- */
.kreis-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.kreis-block h3 { margin-bottom: 8px; }
.kreis-block > p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.ortsliste {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ortsliste li {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill, 999px);
  padding: 5px 13px;
  font-size: 0.85rem;
  color: var(--color-text);
}

/* ---------- Breites Bildbanner ----------
   Laeuft ueber die volle Boxbreite, ohne Container-Einrueckung. */
.banner-breit figure { margin: 0; }
.banner-breit img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.banner-breit figcaption {
  margin-top: 10px;
  padding: 0 var(--box-inset, 24px);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
@media (max-width: 640px) {
  .banner-breit img { max-height: 340px; }
}

/* Aufzaehlung mit Haken statt Punkten */
.haken-liste { list-style: none; padding: 0; margin: 0; }
.haken-liste li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}
.haken-liste li:last-child { margin-bottom: 0; }
.haken-liste li::before {
  content: "";
  position: absolute;
  left: 4px; top: 6px;
  width: 6px; height: 11px;
  border: solid var(--color-accent-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Referenzgalerie ----------
   Objektfotos sind durchweg hochformatig (Handyaufnahmen). Feste 3:4-Kacheln
   halten das Raster ruhig; object-fit:cover ist hier richtig, weil es sich um
   Fotos handelt und nicht um Zeichnungen. */
.referenz-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
/* Objektdaten über der Galerie: Kennwert und Wert als Paar */
.objektdaten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px 24px;
  margin: 0 0 34px;
  padding: 22px 24px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
}
.objektdaten dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.objektdaten dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.3;
  color: var(--color-text);
}

.referenz-kachel { margin: 0; }
/* Wird erst per JavaScript gesetzt -- ohne Skript bleibt die Kachel ein
   normales Bild und sieht nicht faelschlich anklickbar aus. */
.referenz-kachel.ist-klickbar { cursor: zoom-in; }
.referenz-kachel.ist-klickbar img { transition: transform .25s ease; }
.referenz-kachel.ist-klickbar:hover img { transform: scale(1.02); }
.referenz-kachel.ist-klickbar:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* ---------- Bildbetrachter (Grossansicht) ---------- */
body.bb-offen { overflow: hidden; }
.bildbetrachter {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(16, 16, 14, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}
.bildbetrachter[hidden] { display: none; }
.bb-buehne {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.bb-buehne img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  background: #1a1a18;
}
.bb-buehne figcaption {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  color: #f2f1ec;
  font-size: 0.92rem;
  text-align: center;
}
.bb-zaehler { color: rgba(242, 241, 236, 0.6); font-size: 0.82rem; }

.bildbetrachter button {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bildbetrachter button:hover { background: rgba(255, 255, 255, 0.24); }
.bildbetrachter button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
.bb-schliessen { top: 18px; right: 18px; width: 44px; height: 44px; font-size: 1.1rem; }
.bb-pfeil { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.bb-pfeil svg { width: 24px; height: 24px; }
.bb-zurueck { left: 18px; }
.bb-vor { right: 18px; }
.bb-pfeil[hidden] { display: none; }

@media (max-width: 640px) {
  .bildbetrachter { padding: 16px 10px; }
  .bb-buehne img { max-height: calc(100vh - 190px); }
  .bb-pfeil { top: auto; bottom: 18px; transform: none; width: 46px; height: 46px; }
  .bb-zurueck { left: 24px; }
  .bb-vor { right: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .referenz-kachel.ist-klickbar img { transition: none; }
  .referenz-kachel.ist-klickbar:hover img { transform: none; }
}
.referenz-kachel img {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
}
.referenz-kachel figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}
@media (max-width: 520px) {
  .referenz-raster { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .referenz-kachel figcaption { font-size: 0.8rem; }
}

/* ---------- Raster mit Formzeichnungen ----------
   Kleine, freigestellte Strichzeichnungen (Profil- und Schalenformen). Sie
   werden vollstaendig eingepasst, nicht beschnitten. */
.form-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
}
.form-kachel {
  margin: 0;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 10px 10px;
  text-align: center;
}
.form-kachel img {
  display: block;
  width: 100%;
  height: 84px;
  object-fit: contain;
  margin-bottom: 8px;
}
.form-kachel figcaption {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* ---------- Profilschnitte ----------
   Die 3D-Querschnitte von UNILUX sind hochformatig (rund 550 x 1076). In einem
   .photo-frame mit festem Querformat und object-fit:cover bliebe davon nur ein
   schmaler Streifen sichtbar. Hier wird das Bild deshalb vollstaendig
   eingepasst statt beschnitten. */
.profil-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 20px;
}
.profil-frame img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 440px;
  object-fit: contain;
  display: block;
}
@media (max-width: 900px) {
  .profil-frame img { max-height: 360px; }
}
.profil-frame .photo-credit {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 0.65rem;
  color: var(--color-text-muted);
}

.photo-frame .photo-credit {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.85);
  background: rgba(20,20,18,0.45);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.photo-frame .photo-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 0.68rem;
  color: #fff;
  background: rgba(20,20,18,0.45);
  padding: 4px 9px;
  border-radius: 6px;
}

/* Ken-Burns-Zoom, verwendet vom groben Hero-Hintergrundbild (.hero-bg img) oben */
@keyframes heroKenBurns {
  0%   { transform: scale(1) translate3d(0,0,0); }
  100% { transform: scale(1.18) translate3d(-3.2%, -2.6%, 0); }
}

/* ---------- Kontaktanfrage-Assistent (Wizard-Modal) ---------- */
.wizard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 18, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.wizard-overlay.open { opacity: 1; pointer-events: auto; }
.wizard-modal {
  background: #fff;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 24px;
  padding: 40px 40px 34px;
  position: relative;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.4);
}
.wizard-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 1rem;
  cursor: pointer;
  color: var(--color-text-muted);
}
.wizard-close:hover { border-color: var(--color-dark); color: var(--color-dark); }
.wizard-progress {
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 18px;
}
.wizard-progress-bar {
  height: 100%;
  width: 33%;
  background: var(--color-accent);
  transition: width .25s ease;
}
.wizard-steps-label {
  display: flex;
  gap: 18px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 26px;
}
.wizard-steps-label span.active { color: var(--color-accent-dark); }
.wizard-steps-label span.done { color: var(--color-dark); }
.wizard-step h3 { margin-bottom: 6px; }
.wizard-sub { color: var(--color-text-muted); font-size: 0.92rem; margin-bottom: 22px; }

.wizard-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}
@media (max-width: 520px) { .wizard-tabs { grid-template-columns: repeat(2, 1fr); } }
.wizard-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  transition: all .15s ease;
}
.wizard-tab svg { width: 30px; height: 30px; stroke: var(--color-text-muted); }
.wizard-tab:hover { border-color: var(--color-accent); }
.wizard-tab.selected { border-color: var(--color-accent); background: var(--color-accent-light); }
.wizard-tab.selected svg { stroke: var(--color-accent-dark); }

.wizard-field { margin-bottom: 18px; }
.wizard-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.wizard-field input,
.wizard-field select,
.wizard-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
}
.wizard-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 520px) { .wizard-grid-2 { grid-template-columns: 1fr; } }

.wizard-chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.wizard-chip {
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: var(--color-text);
}
.wizard-chip:hover { border-color: var(--color-accent); }
.wizard-chip.selected { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-dark); font-weight: 600; }

.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.wizard-actions .btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

/* Drei Schaltflaechen (Zurueck | Ueberspringen | Weiter): "Zurueck" links,
   die beiden anderen rechts zusammen. */
.wizard-actions-3 { justify-content: flex-start; flex-wrap: wrap; }
.wizard-actions-3 > :first-child { margin-right: auto; }
@media (max-width: 520px) {
  .wizard-actions-3 { flex-direction: column-reverse; align-items: stretch; }
  .wizard-actions-3 > :first-child { margin-right: 0; }
  .wizard-actions-3 .btn { justify-content: center; }
}

/* ---------- Kopfzeile des Assistenten: Zurueck, Schrittzaehler ---------- */
.wizard-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  min-height: 34px;
}
.wizard-back {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 0;
}
.wizard-back svg { width: 18px; height: 18px; }
.wizard-back:hover { border-color: var(--color-dark); color: var(--color-dark); }
.wizard-back[hidden] { display: none; }
.wizard-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-left: auto;
  margin-right: 44px;   /* Platz fuer das Schliessen-Kreuz oben rechts */
}
.wizard-count[hidden] { display: none; }

/* Schlichte Auswahlflaeche ohne Symbol (Schritt "Bauvorhaben") */
.wizard-tabs-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 520px) { .wizard-tabs-3 { grid-template-columns: 1fr; } }
.wizard-tab-plain { min-height: 58px; }

/* ---------- Dateiauswahl ---------- */
.wizard-field input[type="file"] {
  padding: 10px 12px;
  background: var(--color-bg-alt, #f6f4f0);
  cursor: pointer;
}
.wizard-file-hint {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.wizard-file-hint.warnung { color: #a12727; }
.wizard-file-hint[hidden] { display: none; }

/* ---------- Pflichtfeldhinweis und Einwilligung ---------- */
.wizard-required-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: right;
  margin: -6px 0 16px;
}
.wizard-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin-bottom: 4px;
  cursor: pointer;
}
.wizard-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--color-accent-dark);
  cursor: pointer;
}
.wizard-consent a { color: var(--color-accent-dark); }

.wizard-error,
.form-error {
  display: block;
  background: #fdecec;
  color: #a12727;
  border: 1px solid #f2b7b7;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.88rem;
  margin-bottom: 18px;
}
.wizard-error[hidden],
.form-error[hidden] { display: none; }

/* ---------- Cookie-Hinweis ---------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.35);
  padding: 22px 24px;
  z-index: 250;
  transform: translateY(140%);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.cookie-banner.open { transform: translateY(0); opacity: 1; }
.cookie-banner h3 { font-size: 1rem; margin-bottom: 8px; }
.cookie-banner p { font-size: 0.87rem; color: var(--color-text-muted); margin-bottom: 16px; }
.cookie-banner p a { color: var(--color-accent-dark); }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner-actions .btn { padding: 11px 18px; font-size: 0.85rem; }
/* "Nur notwendige" bekommt einen ebenso kraeftigen, dunklen Rahmen wie
   "Alle akzeptieren" Farbflaeche hat -- beide Optionen sollen optisch
   gleich gewichtet sein (kein Nudging Richtung "Alle akzeptieren"). */
.cookie-banner-actions .btn-ghost { border-color: var(--color-dark); }

/* ---------- Video-Einbindung (Klick-zum-Laden) ---------- */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-dark);
  box-shadow: var(--shadow-soft);
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-facade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,20,18,0.15), rgba(20,20,18,0.55));
}
.video-facade .play-btn {
  position: relative;
  z-index: 1;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform .15s ease;
}
.video-facade:hover .play-btn { transform: scale(1.06); }
.video-facade .play-btn svg { width: 26px; height: 26px; fill: var(--color-dark); margin-left: 4px; }
.video-facade .video-caption {
  position: absolute;
  left: 18px; bottom: 16px;
  z-index: 1;
  color: #fff;
  font-size: 0.85rem;
  background: rgba(0,0,0,0.35);
  padding: 6px 12px;
  border-radius: 2px;
}

/* ---------- Mauskreis (js/mauskreis.js) ---------- */
/* Duenner Ring, der dem Zeiger im Kopfbereich nachlaeuft. Dunkel und
   halbtransparent, weil der Hero hell ist -- das Weiss der Vorlage waere
   hier unsichtbar. Groesse und Sichtbarkeit weich, die Position kommt aus
   dem Skript (transform). */
.mauskreis {
  position: fixed;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  border: 2px solid rgba(27, 28, 26, 0.32);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  z-index: 60;
  transition: opacity .25s ease, width .22s ease, height .22s ease, border-color .22s ease;
  will-change: transform;
}
.mauskreis.sichtbar { opacity: 1; }
.mauskreis.gross {
  width: 84px;
  height: 84px;
  border-color: rgba(247, 198, 0, 0.9);
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .mauskreis { display: none; }
}

/* ---------- Rezensionen (Startseite) ---------- */
/* Zwei Wertungs-Kacheln, drei Zitate, ein Pruefhinweis. Die Kacheln sind
   Links auf die Portale -- wer nachpruefen will, kann es mit einem Klick. */
.rezensionen-werte { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 34px; }
.rezension-wert {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: 16px; align-items: center;
  padding: 18px 24px; border-radius: var(--radius-sm);
  background: var(--color-surface); border: 1px solid var(--color-border);
  text-decoration: none; color: inherit; min-width: 280px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.rezension-wert:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.rezension-zahl { grid-row: 1 / 3; font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.rezension-sterne { color: var(--color-accent); letter-spacing: 0.08em; font-size: 1.05rem; line-height: 1.2; }
.rezension-quelle { font-size: 0.82rem; color: var(--color-text-muted); }
.rezension {
  margin: 0; padding: 26px 26px 22px; border-radius: var(--radius-sm);
  background: var(--color-surface); border: 1px solid var(--color-border);
  display: flex; flex-direction: column; gap: 14px;
}
.rezension blockquote { margin: 0; font-size: 1.02rem; line-height: 1.6; }
.rezension figcaption { font-size: 0.8rem; color: var(--color-text-muted); letter-spacing: 0.02em; }
.rezensionen-hinweis { font-size: 0.8rem; color: var(--color-text-muted); max-width: 78ch; margin: 22px 0 0; line-height: 1.55; }

/* ---------- Responsive Feinschliff ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table.compare { min-width: 480px; }

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .hero { padding: 50px 0 60px; }
  .cta-band { padding: 36px 26px; flex-direction: column; align-items: flex-start; }
  .facts-strip { padding: 26px 22px; flex-direction: column; gap: 18px; }
  .rating-banner { gap: 14px; }
  .wizard-modal { padding: 28px 20px 24px; }
  .wizard-tabs { grid-template-columns: repeat(2, 1fr); }
  .top-bar .container { flex-direction: column; align-items: flex-start; }
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 18px 18px; }
}

/* Hinweis auf der Video-Vorschau, wenn die Einwilligung fehlt */
.video-consent {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  max-width: 92%;
  background: rgba(20, 20, 18, 0.86);
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.4;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
}

/* Freiwillige Zusatzfrage im letzten Wizard-Schritt -- optisch ruhiger als
   die Pflicht-Einwilligung darunter. */
.wizard-consent.wizard-option {
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  margin-top: 4px;
  color: var(--color-text);
}

/* Vorschauflaeche des Konfigurators -- gleiches Prinzip wie die
   Video-Fassade: nichts wird geladen, bevor geklickt und eingewilligt ist. */
.konfigurator-fassade {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  min-height: 320px;
  padding: 40px 28px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s ease, background-color .15s ease;
}
.konfigurator-fassade:hover { border-color: var(--color-accent); background: var(--color-accent-light); }
.konfigurator-fassade .play-btn { width: 54px; height: 54px; }
.konfigurator-fassade .play-btn svg { width: 26px; height: 26px; }
.konfigurator-text { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.konfigurator-hinweis { font-size: 0.85rem; color: var(--color-text-muted); max-width: 46ch; }

/* ---------- Einblenden beim Scrollen ----------
   Die versteckende Regel haengt bewusst an .js-einblenden am <html>. Diese
   Klasse setzt ein Miniskript im <head>; ohne JavaScript greift sie nie und
   die Seite bleibt vollstaendig sichtbar -- wichtig fuer Suchmaschinen und
   fuer alle, bei denen das Skript nicht laedt. */
.js-einblenden .einblenden {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s cubic-bezier(.22,.61,.36,1),
              transform .75s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.js-einblenden .einblenden.ist-eingeblendet {
  opacity: 1;
  transform: none;
}

/* Wer ruhige Darstellung eingestellt hat, bekommt keinen Effekt. Das Skript
   entfernt die Klasse ohnehin; diese Regel ist der zweite Riegel. */
@media (prefers-reduced-motion: reduce) {
  .js-einblenden .einblenden {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Nummerierte Ablaufliste -- fuer Bedienschritte, z. B. das Oeffnen einer
   Hebeschiebetuer. Bewusst ein <ol>: die Reihenfolge ist hier Inhalt. */
.ablauf-liste {
  counter-reset: schritt;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.ablauf-liste li {
  position: relative;
  padding-left: 44px;
  margin-bottom: 14px;
  color: var(--color-text);
}
.ablauf-liste li::before {
  counter-increment: schritt;
  content: counter(schritt);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Smartphone-Feinschliff
   Alles darueber ist bereits responsiv (kein Querscrollen auf 375px). Hier
   geht es um die Punkte, die auf dem Handy trotzdem stoeren: zu viel
   Kopfbereich, zu kleine Tippziele.
   ========================================================================== */

@media (max-width: 640px) {
  /* Die Kopfleiste war 120px hoch -- zusammen mit dem Kopf gingen 202px von
     812px weg, bevor der Inhalt anfing. Adresse und Oeffnungszeiten stehen
     ohnehin im Fuss und auf kontakt.html. */
  .top-bar .container > div:last-child { display: none; }
  .top-bar { font-size: 0.78rem; }
  .top-bar .container { justify-content: center; padding: 0 14px; }
  .top-bar .top-links { gap: 16px; }
  .top-bar a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;          /* bequem zu treffen */
    white-space: nowrap;       /* sonst bricht die Mailadresse um */
  }

  /* Tippziele: Karten- und Fusslinks waren 18-22px hoch. Die Empfehlung
     liegt bei rund 44px; in Fliesstext eingebettete Links bleiben davon
     unberuehrt, hier geht es nur um freistehende Linklisten. */
  .card a.card-link {
    padding: 9px 0;
    min-height: 44px;
    align-items: center;
    display: inline-flex;
  }
  footer ul { gap: 2px; }
  footer ul li a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
  }
  .footer-bottom { gap: 14px; }
  .footer-bottom a,
  .footer-bottom .link-btn {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
  }

  /* Grosse Schaltflaechen ueber die volle Breite -- mit dem Daumen sicherer
     zu treffen als zwei halbe nebeneinander. */
  .btn-row { gap: 12px; }
  .btn-row .btn { width: 100%; justify-content: center; }

  /* Ueberschriften etwas enger fuehren, sonst brechen sie sehr oft um. */
  h1 { font-size: clamp(2rem, 8.6vw, 2.6rem); }
  h2 { font-size: clamp(1.6rem, 6.4vw, 2rem); }

  /* Brotkrumen und Kleingedrucktes nicht unter 12px fallen lassen. */
  .breadcrumb { font-size: 0.86rem; }

  /* Logo: Ortszusatz ausblenden, sonst bricht die Zweitzeile mit haengendem
     Punkt um und stoesst an den Menueknopf. Der Ort steht im Fuss und auf
     kontakt.html. */
  .logo .logo-sub { white-space: nowrap; }
  .logo .logo-sub-ort { display: none; }

  /* Eingabefelder mindestens 16px: Safari auf dem iPhone zoomt beim Antippen
     in jedes Feld hinein, dessen Schrift kleiner ist -- und zoomt danach
     nicht zurueck. Die Felder hatten 15,2px. */
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea { font-size: 16px; }

  /* Antippbare Flaeche freistehender Links vergroessern.
     Ein Link, der allein in seinem Absatz oder Listenpunkt steht, ist eine
     Schaltflaeche und kein Link im Satz -- Telefonnummer und E-Mail auf der
     Kontaktseite etwa. Mit 20px Zeilenhoehe liegt er unter den 24px, die
     WCAG 2.2 (2.5.8) als Mindestziel nennt.
     Bewusst nur padding und KEIN display:inline-block: Innenabstand
     vergroessert bei einem Inline-Element die Trefferflaeche, ohne den
     Zeilenumbruch oder die Zeilenhoehe zu veraendern. */
  p > a:only-child,
  li > a:only-child { padding-block: 7px; }
}

/* ---------- Live-Google-Rezensionen (js/google-reviews.js) ----------
   Eigener Klassenraum (Praefix g-), damit nichts mit den vorhandenen,
   aktuell ungenutzten .review-card/.review-name-Regeln weiter oben
   kollidiert. */
.g-reviews-summary { text-align: center; font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 4px; }
.g-reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 22px; }
.g-review-card { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 20px; background: var(--color-bg-alt); }
.g-review-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.g-review-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.g-review-avatar-fallback { display: flex; align-items: center; justify-content: center; background: var(--color-accent-light); color: var(--color-accent-dark); font-weight: 700; }
.g-review-name { font-weight: 600; font-size: 0.88rem; }
.g-review-meta { font-size: 0.78rem; color: var(--color-text-muted); }
.g-review-stars { color: var(--color-gold, var(--color-accent-dark)); font-size: 0.9rem; letter-spacing: 1px; margin: 2px 0 8px; }
.g-review-text { font-size: 0.9rem; line-height: 1.55; color: var(--color-text); }
.g-reviews-loading, .g-reviews-error { text-align: center; color: var(--color-text-muted); padding: 20px 0; }
