/* ==========================================================================
   Küchen Scheck — küche-regensburg.de
   Handgeschriebenes Stylesheet, keine Frameworks, keine externen Requests.
   Gliederung:
     01 Schriften   02 Tokens      03 Basis        04 Layout
     05 Buttons     06 Header      07 Hero         08 Karten/Erlebnis
     09 Ablauf      10 Leistungen  11 Küchen-Finder 12 Highlights
     13 Showroom    14 Galerie     15 Kennzahlen   16 Kundenstimmen
     17 FAQ         18 Der Weg     19 Kontakt      20 Footer
     21 Unterseiten 22 Motion
   ========================================================================== */

/* 01 — Schriften (selbst gehostet, DSGVO: keine Google-Fonts-CDN) ---------- */

/* Archivo: Grotesk mit Breitenachse (wdth 86–100). Die Achse ist der Grund
   für die Wahl — Headlines dürfen schmal und präzise stehen, ohne fett zu
   werden. Auf wght 400–700 und wdth 86–100 beschnitten, damit die Datei
   nicht größer wird als nötig. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 86% 100%;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 86% 100%;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 02 — Design-Tokens ------------------------------------------------------ */
/* Das Gold #FFCF53 stammt direkt aus der Wortmarke. Auf hellem Grund ist es
   als Textfarbe zu kontrastarm — dafür gibt es --gold-ink (WCAG AA, 5.6:1). */

:root {
  /* Farben */
  --ink: #1f1b18;          /* Espresso: Text, dunkle Sektionen */
  --ink-soft: #4a423b;     /* Fließtext-Sekundär */
  --ink-mute: #6b6157;     /* Meta, Captions */
  --sand: #f5f1ea;         /* Warmweiß: Flächen */
  --sand-deep: #ebe5da;    /* Warmweiß, eine Stufe dunkler */
  --paper: #ffffff;
  --greige: #b8ae9f;       /* Naturstein */
  --line: #e4ded3;         /* Trennlinien auf hell */
  --line-dark: #3a332d;    /* Trennlinien auf dunkel */

  --gold: #ffcf53;         /* Markengold aus dem Logo */
  --gold-deep: #e8b62e;    /* Hover auf dunkel */
  --gold-ink: #7a5a0b;     /* Goldton als Text auf hell (AA) */

  --success: #3f7d33;
  --error: #a3281e;

  /* Typografie */
  --font-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Fluid type scale (Mobile-First, clamp statt Breakpoints) */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.9vw, 3rem);
  --step-4: clamp(2.4rem, 1.7rem + 3.2vw, 4.4rem);
  --step-5: clamp(2.5rem, 1.3rem + 4.4vw, 5.25rem);

  /* Archivo hat eine Breitenachse. Je größer der Grad, desto schmaler darf
     er stehen — so bleibt die Headline präzise statt fett. Kleine
     Überschriften laufen fast normalbreit, sonst werden sie eng zu lesen. */
  --display: 'wdth' 92, 'wght' 560;      /* Hero, große H2 */
  --display-mid: 'wdth' 96, 'wght' 550;  /* H3, Schrittfragen */

  /* Rhythmus */
  --wrap: 76rem;
  --wrap-narrow: 46rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 8.5rem);

  /* Form: abgestufte Radien. Große Flächen dürfen weich sein, Bedienelemente
     bleiben straffer — ein einheitlicher Mini-Radius (die alten 2px) wirkt
     weder bewusst kantig noch großzügig, nur unfertig. */
  --radius: 18px;      /* Karten, Finder, Galerie, Videofläche */
  --radius-md: 11px;   /* Buttons, Eingaben, Auswahlkarten */
  --radius-sm: 6px;    /* Marker, Chips */

  /* Warme, weiche Schatten aus dem Espresso-Ton — sie ersetzen die harten
     1px-Rahmen als Mittel der Abgrenzung. Gestaffelt: mehrere Ebenen wirken
     natürlicher als ein einzelner harter Schlagschatten. */
  --shadow-sm: 0 1px 2px rgb(31 27 24 / 0.04), 0 5px 18px rgb(31 27 24 / 0.06);
  --shadow-md: 0 2px 6px rgb(31 27 24 / 0.05), 0 14px 40px rgb(31 27 24 / 0.09);
  --shadow-lg: 0 8px 24px rgb(31 27 24 / 0.08), 0 30px 70px rgb(31 27 24 / 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 5.25rem;
}

/* 03 — Basis -------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

/* Buttons und Flex-Kinder setzen display selbst — sonst gewinnt das gegen
   das hidden-Attribut. */
[hidden] { display: none !important; }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

html {
  scroll-behavior: smooth;
  /* Sticky-Header darf Ankerziele nicht verdecken */
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 550;
  font-variation-settings: var(--display-mid);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 {
  font-size: var(--step-3);
  font-variation-settings: var(--display);
  letter-spacing: -0.025em;
  line-height: 1.06;
}
h3 { font-size: var(--step-1); }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

/* figure hat im Browser-Default 40px Seitenrand, blockquote ebenso */
figure, blockquote { margin: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

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

ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }

/* Kein border-radius hier: der Fokusring (outline) folgt automatisch dem
   Radius des jeweiligen Elements. Ein fester Wert würde den Radius runder
   Buttons beim Fokussieren überschreiben. */
:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
}
/* Auf dunklen Flächen braucht der Fokusring einen hellen Ton */
.is-dark :focus-visible { outline-color: var(--gold); }

::selection { background: var(--gold); color: var(--ink); }

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -100%;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--sand);
  font-weight: 600;
}
.skip-link:focus { top: 0.5rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 04 — Layout ------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.62); }

.is-dark {
  background: var(--ink);
  color: var(--sand);
}
.is-dark h1, .is-dark h2, .is-dark h3 { color: var(--sand); }
.is-dark .lede, .is-dark .section-head p { color: #cfc6b9; }

/* Sektionskopf: Eyebrow + H2 + Lede */
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: currentColor;
  flex: none;
}
.section-head--center .eyebrow { justify-content: center; }
.is-dark .eyebrow { color: var(--gold); }

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 300;
}

/* 04b — Icons -------------------------------------------------------------
   Die SVGs werden als CSS-Maske geladen und mit currentColor eingefärbt.
   Dadurch bleibt eine Datei pro Icon (cachebar) und die Farbe folgt dem
   Kontext — ohne die Pfaddaten in jede HTML-Seite zu inlinen. */

.icon {
  display: block;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.icon--showroom { -webkit-mask-image: url('../img/icon-showroom.svg'); mask-image: url('../img/icon-showroom.svg'); }
.icon--service { -webkit-mask-image: url('../img/icon-service.svg'); mask-image: url('../img/icon-service.svg'); }
.icon--montage { -webkit-mask-image: url('../img/icon-montage.svg'); mask-image: url('../img/icon-montage.svg'); }
.icon--kontaktanfrage { -webkit-mask-image: url('../img/icon-kontaktanfrage.svg'); mask-image: url('../img/icon-kontaktanfrage.svg'); }
.icon--termin { -webkit-mask-image: url('../img/icon-termin.svg'); mask-image: url('../img/icon-termin.svg'); }
.icon--geniessen { -webkit-mask-image: url('../img/icon-geniessen.svg'); mask-image: url('../img/icon-geniessen.svg'); }
.icon--check { -webkit-mask-image: url('../img/icon-check.svg'); mask-image: url('../img/icon-check.svg'); }
.icon--planung3d { -webkit-mask-image: url('../img/icon-planung3d.svg'); mask-image: url('../img/icon-planung3d.svg'); }
.icon--oberflaeche { -webkit-mask-image: url('../img/icon-oberflaeche.svg'); mask-image: url('../img/icon-oberflaeche.svg'); }
.icon--tempo { -webkit-mask-image: url('../img/icon-tempo.svg'); mask-image: url('../img/icon-tempo.svg'); }
.icon--kochfeld { -webkit-mask-image: url('../img/icon-kochfeld.svg'); mask-image: url('../img/icon-kochfeld.svg'); }
.icon--beratung { -webkit-mask-image: url('../img/icon-beratung.svg'); mask-image: url('../img/icon-beratung.svg'); }
.icon--planungssicherheit { -webkit-mask-image: url('../img/icon-planungssicherheit.svg'); mask-image: url('../img/icon-planungssicherheit.svg'); }
.icon--aufmass { -webkit-mask-image: url('../img/icon-aufmass.svg'); mask-image: url('../img/icon-aufmass.svg'); }
.icon--montage2 { -webkit-mask-image: url('../img/icon-montage2.svg'); mask-image: url('../img/icon-montage2.svg'); }

/* 05 — Buttons ------------------------------------------------------------ */

.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink);
  --btn-bd: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-md);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
/* Kein Anheben beim Hover: der Farbwechsel reicht. Hüpfende Buttons sind das
   Kennzeichen jedes Baukastens. */
.btn:hover { --btn-bg: var(--gold-deep); --btn-bd: var(--gold-deep); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--sand); --btn-bd: var(--ink); }

.is-dark .btn--ghost, .hero .btn--ghost { --btn-fg: var(--sand); --btn-bd: rgb(245 241 234 / 0.45); }
.is-dark .btn--ghost:hover, .hero .btn--ghost:hover { --btn-bg: var(--sand); --btn-fg: var(--ink); --btn-bd: var(--sand); }

.btn--sm { padding: 0.7rem 1.25rem; border-radius: var(--radius-sm); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* Textlink mit animiertem Unterstrich */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-ink);
}
.link-arrow svg { width: 1em; height: 1em; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.is-dark .link-arrow { color: var(--gold); }

/* 06 — Header ------------------------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--sand);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
/* Über dem Hero transparent, danach fest */
.header--solid {
  background: rgb(245 241 234 / 0.92);
  backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

.header__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Zwei Logo-Dateien statt eines currentColor-SVG: Über dem Hero die helle,
   im festen Header die dunkle. Beide liegen übereinander, nur die Deckkraft
   wechselt — so gibt es keinen Nachlade-Flackerer beim Umschalten. */
/* Über die Höhe skalieren, nicht über die Breite: das Logo ist ein hoher
   Rahmen und würde sonst oben und unten aus der Kopfzeile ragen. */
.header__logo {
  position: relative;
  display: block;
  flex: none;
  height: clamp(2.9rem, 6vw, 3.9rem);
}
.header__logo img {
  height: 100%;
  width: auto;
  transition: opacity 0.35s var(--ease);
}
.header__logo .logo--dark {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.header--solid .logo--dark { opacity: 1; }
.header--solid .logo--light { opacity: 0; }

.nav { display: none; }

@media (min-width: 60rem) {
  .nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.2vw, 2rem);
  }
  .nav a {
    position: relative;
    font-size: var(--step--1);
    font-weight: 500;
    text-decoration: none;
    padding-block: 0.35rem;
  }
  .nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease);
  }
  .nav a:hover::after, .nav a[aria-current='page']::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.header__cta { display: none; }
@media (min-width: 60rem) { .header__cta { display: inline-flex; } }

/* Burger */
.burger {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  margin-right: -0.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
@media (min-width: 60rem) { .burger { display: none; } }

.burger span {
  display: block;
  width: 1.5rem; height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobiles Menü */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  align-content: center;
  gap: 0.25rem;
  padding: var(--header-h) var(--gutter) 2rem;
  background: var(--ink);
  color: var(--sand);
  visibility: hidden;
  opacity: 0;
  /* visibility springt, statt mitzuanimieren: beim Öffnen sofort, beim Schließen
     erst nach dem Ausblenden. Sonst hinge der Tastaturfokus am Transition-Timing. */
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.mobile-nav[data-open='true'] {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.35s var(--ease), visibility 0s;
}
.mobile-nav a {
  padding-block: 0.7rem;
  font-family: var(--font-display);
  font-variation-settings: var(--display-mid);
  font-size: var(--step-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-nav .btn { margin-top: 1.75rem; justify-self: start; }

body[data-nav-open='true'] { overflow: hidden; }

/* 07 — Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
  color: var(--sand);
}

.hero__media {
  position: absolute;
  inset: 0;
  /* Etwas größer als der Viewport, damit der Parallax-Shift keine Kante zeigt */
  height: 118%;
  will-change: transform;
}
.hero__media video, .hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Drei Verläufe: unten für die Textlesbarkeit, von links für die Headline,
   oben für den Header. Zusammen bleiben sie unter dem, was ein einzelner
   dunkler Schleier gekostet hätte — das Bild bleibt ein Bild. */
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgb(31 27 24 / 0.85) 0%, rgb(31 27 24 / 0.45) 32%, rgb(31 27 24 / 0.06) 62%),
    linear-gradient(102deg, rgb(31 27 24 / 0.6) 0%, rgb(31 27 24 / 0) 58%),
    linear-gradient(to bottom, rgb(31 27 24 / 0.5), transparent 26%);
}

/* Schmaler Viewport: der Beschnitt rückt auf die Walnussseite (dunkler), und
   der Verlauf muss kräftiger werden — hochkant liegt die Headline sonst
   mitten in den weißen Oberschränken. */
@media (max-width: 48rem) {
  .hero__media video, .hero__media img { object-position: 64% center; }
  .hero__media::after {
    background:
      linear-gradient(to top, rgb(31 27 24 / 0.92) 0%, rgb(31 27 24 / 0.8) 32%,
        rgb(31 27 24 / 0.6) 56%, rgb(31 27 24 / 0.18) 80%, rgb(31 27 24 / 0) 100%),
      linear-gradient(to bottom, rgb(31 27 24 / 0.55), transparent 22%);
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(2.75rem, 6vh, 4.5rem);
}

.hero__title {
  font-size: var(--step-5);
  font-weight: 560;
  font-variation-settings: var(--display);
  line-height: 1.0;
  letter-spacing: -0.028em;
  max-width: 15ch;
  margin: 0 0 clamp(1.75rem, 4.5vh, 3.25rem);
}

/* Headline groß, darunter eine Haarlinie, darunter erst das Beiläufige.
   Die Linie ist das, was den Block zu einer Komposition macht. */
.hero__foot {
  display: grid;
  gap: 1.75rem;
  padding-top: clamp(1.35rem, 3vh, 2.25rem);
  border-top: 1px solid rgb(245 241 234 / 0.22);
}
@media (min-width: 60rem) {
  .hero__foot {
    grid-template-columns: minmax(0, 34ch) minmax(0, 1fr);
    align-items: end;
    gap: 3rem;
  }
  .hero__foot .btn-row { justify-self: end; }
}

.hero__sub {
  max-width: 38ch;
  font-size: var(--step-0);
  font-weight: 300;
  line-height: 1.6;
  color: #cbc2b4;
  margin: 0;
}
.hero .btn-row { margin-top: 0; }

@media (prefers-reduced-motion: no-preference) {
  .hero__title, .hero__foot { animation: hero-rise 0.9s var(--ease) both; }
  .hero__foot { animation-delay: 0.16s; }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(1.5rem); }
}

/* Rechts am Bundsteg statt mittig — mittig läuft er der Button-Reihe ins Bild */
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 0;
  z-index: 1;
  transform-origin: bottom;
  width: 1px; height: 3.5rem;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scroll-hint 2.6s var(--ease) infinite;
}
@keyframes scroll-hint {
  0%, 100% { opacity: 0; transform: scaleY(0.35); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* 08 — Erlebnis-Karten ---------------------------------------------------- */

/* Vier Karten als ein zusammenhängender, gerundeter Block. Die Trennung
   entsteht durch 1px-Fugen (gap auf Linienfarbe), aber die Außenkanten sind
   weich — kein Tabellenraster mehr. */
.cards {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cards { grid-template-columns: repeat(4, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  background: var(--paper);
  transition: background-color 0.4s var(--ease);
}
.card:hover { background: var(--sand); }
.card__badge {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.35rem;
  border-radius: 50%;
  background: rgb(255 207 83 / 0.18);
  color: var(--gold-ink);
}
.card__badge .icon { width: 1.5rem; height: 1.5rem; }
.card__title {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 92, 'wght' 580;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.55rem;
}
.card p { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.7; }
/* Karten bleiben hell (--paper) auch in einer dunklen Sektion — der Titel darf
   daher NICHT von `.is-dark h3` auf helles Sand umgefärbt werden. */
.is-dark .card__title { color: var(--ink); }

/* 09 — Ablauf („Neue Küche leicht gemacht") -------------------------------- */

.promise-list {
  display: grid;
  gap: 1px;
  background: var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 48rem) { .promise-list { grid-template-columns: 1fr 1fr; } }

.promise {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--ink);
}
.promise__badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgb(245 241 234 / 0.28);
  color: var(--sand);
}
.promise__badge .icon { width: 1.5rem; height: 1.5rem; }
.promise__title {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 92, 'wght' 580;
  font-size: var(--step-0);
  letter-spacing: -0.01em;
  color: var(--sand);
  margin: 0.3rem 0 0.5rem;
}
.promise p { color: #cfc6b9; font-size: var(--step--1); line-height: 1.75; }

/* 10 — Leistungen --------------------------------------------------------- */

.services { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 52rem) { .services { grid-template-columns: repeat(3, 1fr); } }

.service__icon {
  width: 3.5rem; height: 3.5rem;
  margin-bottom: 1.75rem;
  color: var(--gold-ink);
}
.service h3 { margin-bottom: 0.6em; }
.service p { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.75; }

/* 11 — Küchen-Finder ------------------------------------------------------ */

.finder {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.finder__bar {
  position: relative;
  height: 3px;
  background: var(--sand-deep);
}
.finder__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--gold);
  transition: width 0.5s var(--ease);
}

/* Links eine schmale Spalte mit der Schrittzahl als Display-Ziffer, rechts
   die Frage. Das nimmt dem Ganzen den Formular-Charakter: es liest sich wie
   ein Kapitel, nicht wie ein Antrag. */
.finder__grid {
  display: grid;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 52rem) {
  .finder__grid {
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
  }
}

.finder__rail { display: flex; align-items: baseline; gap: 0.75rem; }
@media (min-width: 52rem) {
  .finder__rail { display: block; }
}
.finder__stepno {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 92, 'wght' 600;
  font-size: clamp(2.4rem, 1.4rem + 2.4vw, 3.6rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}
.finder__total {
  margin: 0;
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
@media (min-width: 52rem) {
  .finder__total {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
  }
}

.step { display: none; }
.step[data-active='true'] { display: block; animation: step-in 0.45s var(--ease); }
@keyframes step-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.step__title {
  font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.15rem);
  font-variation-settings: var(--display-mid);
  font-weight: 550;
  line-height: 1.14;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: 0.4em;
}
.step__hint { color: var(--ink-mute); font-size: var(--step--1); margin-bottom: 2.25rem; }

/* Auswahlkarten — <input> versteckt, <label> ist die Fläche */
.choices { display: grid; gap: 0.65rem; }
@media (min-width: 34rem) { .choices { grid-template-columns: 1fr 1fr; } }
@media (min-width: 60rem) { .choices--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 40rem) { .choices--plan { grid-template-columns: repeat(3, 1fr); } }

.choice { position: relative; }
.choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  /* über dem .choice__box-span liegen, sonst schluckt der span den Klick */
  z-index: 1;
}
.choice__box {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 4rem;
  /* rechts Platz für die Markierung */
  padding: 1.15rem 3.25rem 1.15rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  font-size: var(--step--1);
  font-weight: 500;
  line-height: 1.4;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

/* Markierung rechts statt links: links steht die Antwort, nicht das Formular */
.choice__box::after {
  content: '';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: -0.525rem;
  border: 1px solid var(--greige);
  border-radius: 50%;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.choice input[type='checkbox'] + .choice__box::after { border-radius: 4px; }

/* Häkchen: liegt über der Markierung und blendet bei Auswahl auf. Die
   Auswahl ist damit nicht nur an der Farbe erkennbar. */
.choice__box::before {
  content: '';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  z-index: 1;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: -0.275rem;
  background: var(--gold);
  clip-path: polygon(14% 44%, 0 58%, 40% 100%, 100% 16%, 86% 2%, 38% 71%);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.choice input:hover + .choice__box { border-color: var(--greige); background: var(--sand); }
.choice input:checked + .choice__box {
  border-color: var(--ink);
  /* zweite Linie innen statt dickerem Rand — sonst springt das Layout */
  box-shadow: inset 0 0 0 1px var(--ink);
  background: var(--sand);
}
.choice input:checked + .choice__box::after { background: var(--ink); border-color: var(--ink); }
.choice input:checked + .choice__box::before { opacity: 1; }
.choice input:focus-visible + .choice__box {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
}

/* Grundriss-Karten (Schritt 3). Schmal: Zeichnung neben der Bezeichnung —
   übereinander bliebe die halbe Karte leer. Ab 40rem gestapelt. */
.choices--plan .choice__box { gap: 1.1rem; padding-left: 1.15rem; }
@media (min-width: 40rem) {
  .choices--plan .choice__box {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    padding: 1.35rem 1.35rem 1.2rem;
  }
  .choices--plan .choice__box::after,
  .choices--plan .choice__box::before { top: 1.6rem; margin-top: 0; }
}

/* Wand als Haarlinie, Küchenzeile als Block — sonst verschmilzt beides zu
   einem grauen Rahmen. */
.plan { width: 5.25rem; height: auto; }
.plan__room { stroke: var(--line); stroke-width: 1.5; fill: none; }
.plan__unit { fill: var(--greige); transition: fill 0.2s var(--ease); }
.choice input:hover + .choice__box .plan__unit { fill: var(--ink-mute); }
.choice input:checked + .choice__box .plan__unit { fill: var(--ink); }

.finder__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.15rem, 2.5vw, 1.6rem) clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.finder__back {
  border: 0;
  background: none;
  padding: 0.5rem 0;
  font: inherit;
  font-size: var(--step--1);
  color: var(--ink-mute);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.finder__back:hover { color: var(--ink); }
/* Im ersten Schritt bleibt der Platz reserviert, damit „Weiter" nicht springt */
.finder__back[hidden] { display: block !important; visibility: hidden; }

/* Zusammenfassung im letzten Schritt */
.summary {
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--sand);
  border-left: 2px solid var(--gold);
  font-size: var(--step--1);
}
.summary dl { display: grid; gap: 0.5rem 1.25rem; margin: 0; }
@media (min-width: 34rem) { .summary dl { grid-template-columns: auto 1fr; } }
.summary dt { color: var(--ink-mute); }
.summary dd { margin: 0; font-weight: 500; }

/* 12 — Formularfelder (Finder + Kontakt + Karriere) ------------------------ */

.field { margin-bottom: 1.5rem; }
.field--row { display: grid; gap: 1.5rem; }
@media (min-width: 34rem) { .field--row { grid-template-columns: 1fr 1fr; } }

label { display: block; }

.label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: var(--step--1);
  font-weight: 500;
}
.label .req { color: var(--error); }

input[type='text'], input[type='email'], input[type='tel'], select, textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: var(--step-0);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
textarea { min-height: 8rem; resize: vertical; }

/* Musterhinweise: klar als Platzhalter erkennbar (heller als der Eingabetext),
   aber im warmen Ton der Palette statt kaltem Systemgrau. */
::placeholder { color: #9c9285; opacity: 1; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6157' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 0.75rem;
  padding-right: 2.5rem;
}

input:focus, select:focus, textarea:focus {
  outline: 0;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgb(255 207 83 / 0.35);
}

input[aria-invalid='true'], textarea[aria-invalid='true'], select[aria-invalid='true'] {
  border-color: var(--error);
}

.error-msg {
  display: block;
  margin-top: 0.4rem;
  font-size: var(--step--1);
  color: var(--error);
}
.error-msg:empty { display: none; }

/* Consent-Checkbox */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--step--1);
  line-height: 1.55;
  color: var(--ink-soft);
}
.consent input {
  flex: none;
  width: 1.15rem; height: 1.15rem;
  margin: 0.25rem 0 0;
  accent-color: var(--gold-deep);
}

/* Honeypot — für Menschen unsichtbar, für Bots ein Köder */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* 13 — Highlights ---------------------------------------------------------
   Vier Abschnitte, vier Layouts: randlos, Hochformat, dunkles Band, aus dem
   Raster ragend. Der Wechsel ist der Punkt — ein Küchenstudio zeigt nicht
   viermal dasselbe Kästchen. */

#highlights { padding-bottom: 0; }

/* Der Sektionskopf darf hier deutlich größer werden — er kündigt den
   bildstärksten Teil der Seite an. */
#highlights .section-head h2 {
  font-size: clamp(2.2rem, 1.15rem + 3.4vw, 4rem);
  font-variation-settings: var(--display);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -0.028em;
  max-width: 17ch;
}

.hl__num {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  color: var(--gold-ink);
  font-variant-numeric: lining-nums;
}
.hl__num::after {
  content: '';
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.hl h3 {
  font-size: clamp(1.75rem, 0.9rem + 2.4vw, 2.75rem);
  font-variation-settings: var(--display);
  font-weight: 560;
  line-height: 1.06;
  letter-spacing: -0.026em;
  margin-bottom: 0.55em;
}
.hl p { color: var(--ink-soft); max-width: 42ch; margin: 0; }

/* Auf dunklem Grund kippt nur die Farbe, nicht das Layout */
.hl--bleed .hl__num, .hl--band .hl__num { color: var(--gold); }
.hl--bleed p, .hl--band p { color: #cfc6b9; }
.hl--bleed h3, .hl--band h3 { color: var(--sand); }

.hl__media { overflow: hidden; }
.hl__media img { width: 100%; height: 100%; object-fit: cover; }

/* 01 — randlos, Text auf dem Bild.
   .hl--bleed und .hl--band liegen bewusst außerhalb von .wrap und sind
   dadurch schon viewportbreit — kein 100vw nötig, das würde nur die
   Scrollbalkenbreite überhängen. */
.hl--bleed {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(23rem, 62vh, 34rem);
  margin-top: clamp(1rem, 3vw, 2.5rem);
  background: var(--ink);
  overflow: hidden;
}
.hl--bleed .hl__media { position: absolute; inset: 0; }
.hl--bleed .hl__media img { object-position: center 22%; }
/* Hintergrund ist die schwarze Naturstein-Textur — von Haus aus dunkel.
   Der Schleier verankert nur die Textzone unten links; darüber und rechts
   darf die Steinaderung klar durchkommen, sonst säuft die Textur ab. */
.hl--bleed .hl__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgb(31 27 24 / 0.8) 0%, rgb(31 27 24 / 0.5) 18%, rgb(31 27 24 / 0.16) 40%, rgb(31 27 24 / 0) 62%),
    linear-gradient(92deg, rgb(31 27 24 / 0.55) 0%, rgb(31 27 24 / 0.14) 32%, rgb(31 27 24 / 0) 55%);
}
/* Hochkant steht der Text tiefer im hellen Teil des Bildes */
@media (max-width: 48rem) {
  .hl--bleed .hl__media::after {
    background: linear-gradient(to top, rgb(31 27 24 / 0.88) 0%, rgb(31 27 24 / 0.66) 26%,
      rgb(31 27 24 / 0.3) 50%, rgb(31 27 24 / 0.06) 74%, rgb(31 27 24 / 0) 100%);
  }
}

.hl--bleed .hl__text {
  position: relative;
  z-index: 1;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.hl--bleed h3 { max-width: 14ch; }

/* 02 — schmales Hochformat neben viel Luft */
.hl--portrait {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  padding-block: clamp(4rem, 9vw, 8rem);
}
.hl--portrait .hl__media img { aspect-ratio: 4 / 5; }
@media (min-width: 56rem) {
  /* Spiegelbild zu .hl--offset: hier läuft das Bild nach links hinaus.
     Die beiden rahmen das dunkle Band in der Mitte. */
  .hl--portrait {
    margin-left: calc(50% - 50vw);
    grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);
    align-items: end;
    gap: clamp(3rem, 7vw, 7rem);
  }
  .hl--portrait .hl__text { padding-bottom: clamp(1rem, 3vw, 3.5rem); }
}

/* 03 — dunkles Band, Detailaufnahme groß */
.hl--band {
  background: var(--ink);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.hl--band__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.hl--band .hl__media img { aspect-ratio: 16 / 10; }
@media (min-width: 56rem) {
  .hl--band__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
    align-items: center;
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
}

/* 04 — Bild läuft rechts aus dem Raster heraus */
.hl--offset {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  padding-block: clamp(4rem, 9vw, 8rem);
}
.hl--offset .hl__media img { aspect-ratio: 4 / 3; }
@media (min-width: 56rem) {
  /* Der negative Rand sitzt am Grid-Container, nicht am Bild: ein
     Prozent-Margin am Grid-Item bezöge sich auf die Grid-Area, nicht auf
     .wrap. So bezieht sich 50% auf die Wrap-Breite, 50vw auf das Fenster —
     die Differenz ist genau der Weg bis zur rechten Fensterkante. */
  .hl--offset {
    margin-right: calc(50% - 50vw);
    grid-template-columns: minmax(0, 23rem) minmax(0, 1fr);
    align-items: center;
    gap: clamp(3rem, 6vw, 5.5rem);
  }
  .hl--offset .hl__media img { aspect-ratio: 3 / 2; }
}

/* Das Bild driftet langsam gegen die Scrollrichtung. Rein deklarativ, ohne
   JS, ohne Scroll-Listener — und wo der Browser view() nicht kennt, steht es
   einfach still. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hl__media img {
      animation: hl-drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    @keyframes hl-drift {
      from { transform: scale(1.07) translateY(-1.6%); }
      to   { transform: scale(1.07) translateY(1.6%); }
    }
  }
}

/* 14 — Showroom / 3D-Rundgang (Consent-Gate) ------------------------------ */

.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #17140f;
  border-radius: var(--radius);
  overflow: hidden;
}
.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Vorschaltfläche vor dem Consent */
.embed__gate {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.25rem;
  padding: var(--gutter);
  text-align: center;
  background-size: cover;
  background-position: center;
}
.embed__gate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(23 20 15 / 0.78);
}
.embed__gate > * { position: relative; }
/* Die Vorschaltfläche ist immer dunkel — auch wenn die Sektion es nicht ist */
.embed__gate h3 { color: var(--sand); }
.embed__gate p {
  max-width: 46ch;
  font-size: var(--step--1);
  color: #cfc6b9;
}
.embed__gate .btn { margin-top: 0.25rem; }

/* Mobil: 16/9 ist zu flach für Überschrift + Consent-Text + Button — der
   Titel wird sonst oben abgeschnitten. Hochformat gibt der Vorschaltfläche
   Luft; das geladene iframe nutzt dieselbe (höhere) Fläche. */
@media (max-width: 40rem) {
  .embed { aspect-ratio: 3 / 4; }
  .embed__gate { gap: 0.9rem; padding: 1.5rem 1.25rem; }
  .embed__gate p { font-size: var(--step--2); }
}

/* 15 — Galerie + Lightbox ------------------------------------------------- */

.gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 48rem) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 72rem) { .gallery { grid-template-columns: repeat(4, 1fr); } }

/* Erstes Bild groß — bricht das Raster auf */
@media (min-width: 48rem) {
  .gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
}

.gallery__item {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  cursor: zoom-in;
  overflow: hidden;
}
/* <picture> muss den Button füllen, sonst bekommt das Bild keine Höhe */
.gallery__item picture { display: block; width: 100%; height: 100%; }
.gallery__item img {
  width: 100%; height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease), opacity 0.4s var(--ease);
}
.gallery__item:first-child img { aspect-ratio: 1 / 1; }
@media (max-width: 47.99rem) { .gallery__item:first-child img { aspect-ratio: 4 / 3; } }
.gallery__item:hover img { transform: scale(1.05); opacity: 0.88; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgb(23 20 15 / 0.96);
  border: 0;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.lightbox[open] { opacity: 1; }
.lightbox::backdrop { background: rgb(23 20 15 / 0.96); }
.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius);
  animation: lb-in 0.4s var(--ease);
}
@keyframes lb-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }

.lightbox__close, .lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border: 1px solid rgb(245 241 234 / 0.25);
  border-radius: 50%;
  background: rgb(31 27 24 / 0.6);
  color: var(--sand);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.lightbox__close { top: 1rem; right: 1rem; font-size: 1.5rem; line-height: 1; }
.lightbox__nav--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav svg { width: 1.1rem; height: 1.1rem; }

.lightbox__caption {
  position: absolute;
  left: 50%; bottom: 1.25rem;
  transform: translateX(-50%);
  color: #cfc6b9;
  font-size: var(--step--1);
  text-align: center;
  max-width: 80%;
}

/* 16 — Kennzahlen --------------------------------------------------------- */

.stats {
  display: grid;
  gap: 1px;
  background: var(--line-dark);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 56rem) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat {
  padding: clamp(2rem, 4vw, 3.25rem) clamp(1rem, 2vw, 2rem);
  background: var(--ink);
  text-align: center;
}
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 90, 'wght' 600;
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--gold);
  /* tabular-nums verhindert Layout-Zappeln während der Count-up-Animation */
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: 0.85rem;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  color: #cfc6b9;
}

/* 17 — Kundenstimmen ------------------------------------------------------ */

.reviews { display: grid; gap: clamp(1.5rem, 3vw, 2rem); }
@media (min-width: 52rem) { .reviews { grid-template-columns: repeat(3, 1fr); } }

.review {
  display: flex;
  flex-direction: column;
  padding: clamp(1.9rem, 3vw, 2.75rem);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.review__stars { display: flex; gap: 0.15rem; margin-bottom: 1.25rem; color: var(--gold-deep); }
.review__stars svg { width: 1.1rem; height: 1.1rem; }

/* Zitate laufen im Fließtextschnitt: eine Grotesk, die sich als Zitatschrift
   verkleidet, wirkt bemüht. Die Größe macht den Unterschied, nicht die Type. */
.review blockquote {
  margin: 0 0 1.5rem;
  font-family: var(--font-body);
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.011em;
  color: var(--ink);
}
.review figcaption {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.review figcaption span { display: block; font-weight: 400; color: var(--ink-mute); letter-spacing: 0; }

/* 18 — FAQ ---------------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.25rem, 2.5vw, 1.85rem) 0;
  font-family: var(--font-display);
  font-variation-settings: var(--display-mid);
  font-size: var(--step-1);
  letter-spacing: -0.018em;
  cursor: pointer;
  list-style: none;
  transition: color 0.25s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-ink); }

/* Plus/Minus als reines CSS-Icon */
.faq summary::after {
  content: '';
  flex: none;
  width: 1.15rem; height: 1.15rem;
  margin-top: 0.35rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { background-size: 100% 1px, 0 100%; }

.faq__answer { padding: 0 0 clamp(1.25rem, 2.5vw, 1.85rem); }
.faq__answer p { max-width: 68ch; color: var(--ink-soft); }

/* 19 — Der Weg (3 Schritte) ----------------------------------------------- */

.path { display: grid; gap: clamp(2.5rem, 5vw, 3rem); counter-reset: path; }
@media (min-width: 52rem) { .path { grid-template-columns: repeat(3, 1fr); } }

.path__step { position: relative; text-align: center; }

/* Verbindungslinie zwischen den Schritten (nur Desktop) */
@media (min-width: 52rem) {
  .path__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 2.25rem;
    left: calc(50% + 3.5rem);
    right: calc(-50% + 3.5rem);
    height: 1px;
    background: var(--line-dark);
  }
}

.path__icon {
  width: 4.5rem; height: 4.5rem;
  margin: 0 auto 1.75rem;
  color: var(--gold);
}
.path__step h3 { font-size: var(--step-1); }
.path__step p { color: #cfc6b9; font-size: var(--step--1); max-width: 32ch; margin-inline: auto; }

/* 20 — Kontakt ------------------------------------------------------------ */

.contact-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
@media (min-width: 60rem) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-info dl { display: grid; gap: 1.75rem; margin: 0; }
.contact-info dt {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 0.4rem;
}
.contact-info dd { margin: 0; font-size: var(--step-0); line-height: 1.7; }
.contact-info a { text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.map { margin-top: 2.5rem; }
.map .embed { aspect-ratio: 4 / 3; border-color: var(--line); }

.socials { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 2.6rem; height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.socials a:hover { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.socials svg { width: 1.15rem; height: 1.15rem; }

/* Erfolgs-/Fehlermeldung über dem Formular */
.form-note {
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-left: 2px solid var(--error);
  background: rgb(163 40 30 / 0.06);
  font-size: var(--step--1);
}
.form-note--ok { border-color: var(--success); background: rgb(63 125 51 / 0.07); }

/* 21 — Footer ------------------------------------------------------------- */

.footer {
  background: var(--ink);
  color: #cfc6b9;
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
  font-size: var(--step--1);
}
.footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 48rem) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer__logo svg { width: 11rem; height: auto; color: var(--sand); }
.footer h4 {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.25rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }

/* Kleines Feld-Label über der Öffnungszeit im Footer — die anderen Zeilen
   (Adresse, Telefon, E-Mail) erklären sich selbst, „nach Terminvereinbarung"
   allein nicht. */
.footer__meta {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f857a;
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold); text-decoration: underline; }

/* Partner-Zeile über dem Copyright. Rotes Fremdlogo auf dunklem Footer:
   nicht umfärben, sondern in weißen Schutzraum-Chip setzen (die Datei ist
   die Fassung für helle Hintergründe). */
.footer__partner {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: flex;
  justify-content: flex-start;
}
.footer__partner-badge {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 0.7rem 1.1rem;
}
.footer__partner-badge img {
  height: 2.4rem;
  width: auto;
  display: block;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-dark);
  color: #8f857a;
}
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 1.5rem; }

/* Agentur-Credit: eigene volle Zeile unter Copyright und Rechtslinks, bewusst
   zurückhaltend. Der Link ist etwas heller als der Fließtext, damit er als
   Link erkennbar bleibt. */
.footer__credit {
  flex-basis: 100%;
  margin: 0;
  font-size: var(--step--1);
  color: #8f857a;
}
.footer__credit a { color: #cfc6b9; }
/* Leistungsbeschreibung: noch eine Stufe leiser als der Credit selbst —
   beiläufige Zeile, kein Werbebanner. */
.footer__credit span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: #756c62;
}

/* 22 — Unterseiten -------------------------------------------------------- */

.page-hero {
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background: var(--ink);
  color: var(--sand);
}
.page-hero h1 { font-size: var(--step-3); max-width: 20ch; }
.page-hero p { max-width: 56ch; color: #cfc6b9; font-size: var(--step-1); font-weight: 300; }

.breadcrumb { margin-bottom: 1.5rem; font-size: var(--step--1); color: #8f857a; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 0.5rem; color: var(--line-dark); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

/* Fließtext auf Rechtsseiten */
.prose { max-width: var(--wrap-narrow); }
.prose h2 { font-size: var(--step-2); margin-top: 2.5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-1); margin-top: 2em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose a { color: var(--gold-ink); }
.prose address { font-style: normal; margin-bottom: 1.15em; }

/* Platzhalter, die vor dem Livegang gefüllt werden müssen */
.todo {
  padding: 0.1em 0.45em;
  background: rgb(255 207 83 / 0.3);
  border-bottom: 1px dashed var(--gold-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

/* Karriere: Stellenliste */
.jobs {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.job {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--paper);
  transition: background-color 0.3s var(--ease);
}
.job:hover { background: var(--sand); }
.job h3 { margin: 0; font-size: var(--step-1); }
.job__meta { font-size: var(--step--1); color: var(--ink-mute); }

.benefits { display: grid; gap: 0.85rem 2rem; padding: 0; margin: 0; list-style: none; }
@media (min-width: 40rem) { .benefits { grid-template-columns: 1fr 1fr; } }
.benefits li { display: flex; align-items: flex-start; gap: 0.75rem; }
.benefits li::before {
  content: '';
  flex: none;
  width: 1.1rem; height: 1.1rem;
  margin-top: 0.35rem;
  background: var(--gold-ink);
  clip-path: polygon(14% 44%, 0 58%, 40% 100%, 100% 16%, 86% 2%, 38% 71%);
}

/* Danke-Seite */
.thanks { display: grid; place-items: center; min-height: 100svh; text-align: center; }
.thanks__icon {
  width: 4.5rem; height: 3.3rem;
  margin: 0 auto 2rem;
  color: var(--success);
}

/* 23 — Scroll-Animationen ------------------------------------------------- */
/* JS setzt .reveal; der IntersectionObserver ergänzt data-visible="true". */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal[data-visible='true'] { opacity: 1; transform: none; }

/* Gestaffelt für Listen/Raster */
.reveal[data-delay='1'] { transition-delay: 0.08s; }
.reveal[data-delay='2'] { transition-delay: 0.16s; }
.reveal[data-delay='3'] { transition-delay: 0.24s; }

/* Ohne JS bleibt nichts unsichtbar */
.no-js .reveal { opacity: 1; transform: none; }

/* 24 — Reduzierte Bewegung ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__scroll { display: none; }
  .highlight:hover .highlight__media img,
  .gallery__item:hover img { transform: none; }
}

/* 23 — WhatsApp-Kontaktbutton --------------------------------------------
   Reines <a> mit Inline-SVG — kein Fremd-Widget, damit beim Seitenaufruf
   kein Request an einen Drittserver geht. Der wa.me-Link erkennt die
   Plattform selbst: Mobil öffnet die App, Desktop WhatsApp Web/Desktop.
   z-index unter dem Mobilmenü (99), damit er es bei geöffnetem Menü nicht
   überlagert; die Lightbox liegt als <dialog> ohnehin darüber. */
.wa-fab {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 20px rgb(31 27 24 / 0.28);
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.wa-fab svg { width: 58%; height: 58%; }
.wa-fab:hover {
  background: #1da851;
  box-shadow: 0 8px 26px rgb(31 27 24 / 0.34);
  color: #fff;
}
.wa-fab:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; }

/* Bei geöffnetem Mobilmenü verschwinden Button und Panel. Der allgemeine
   Geschwister-Selektor greift, weil .wa-fab/.wa-pop im DOM nach .mobile-nav
   stehen. */
.mobile-nav[data-open='true'] ~ .wa-fab,
.mobile-nav[data-open='true'] ~ .wa-pop { display: none; }

/* QR-Panel (Desktop) bzw. Text-Blase (Mobil) */
.wa-pop {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: calc(clamp(1rem, 3vw, 1.75rem) + 3.5rem + 0.75rem);
  z-index: 91;
  width: min(20rem, calc(100vw - 2rem));
  padding: 1.5rem 1.5rem 1.35rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform-origin: bottom right;
  color: var(--ink);
}
.wa-pop[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .wa-pop { animation: wa-pop-in 0.28s var(--ease); }
  @keyframes wa-pop-in {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: none; }
  }
}

.wa-pop__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-mute);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.wa-pop__close:hover { background: var(--sand-deep); color: var(--ink); }

.wa-pop__title {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-variation-settings: var(--display-mid);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  padding-right: 1.5rem;
}
.wa-pop__text { margin: 0 0 1.1rem; font-size: var(--step--1); color: var(--ink-soft); line-height: 1.55; }

.wa-pop__qrwrap {
  width: 11rem;
  margin: 0 auto 1.1rem;
  padding: 0.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.wa-pop__qr { display: block; width: 100%; height: auto; }

.wa-pop__phone {
  margin: 0 0 1rem;
  font-size: var(--step--1);
  color: var(--ink-mute);
  text-align: center;
}
.wa-pop__phone a {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.wa-pop__phone a:hover { color: var(--gold-ink); }

.wa-pop__web {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  background: #25d366;
  color: #fff;
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s var(--ease);
}
.wa-pop__web:hover { background: #1da851; color: #fff; }

/* Mobil-Variante: nur Text-Blase mit Link, kein QR */
.wa-pop--mobile .wa-pop__qrwrap { display: none; }
.wa-pop--mobile { width: min(17rem, calc(100vw - 2rem)); }
