/*
 * main.css — Design-System TOS Handler e.K.
 * Reihenfolge: Custom Properties > Reset > Typografie > Layout > Komponenten > Utilities
 *
 * Schriften: Montserrat (Überschriften) + IBM Plex Sans (Body) + IBM Plex Mono (Akzent)
 * Farbpalette: helles Papier / Tinte / Logo-Rot als Akzent (keine Gradients)
 */

/* ==========================================================================
   1. CUSTOM PROPERTIES
   ========================================================================== */

:root {
  /* Grundpalette – helles Papier & Tinte */
  --paper:      #faf8f4;
  --paper-deep: #f1ece3;
  --white:      #ffffff;
  --ink:        #1c1a16;
  --ink-soft:   #3a352d;
  --ink-muted:  #6b6358;

  /* Akzent — Logo-Rot, aus 2TOS-Brief-Typo.png gemessen (Kundenwunsch:
     exakt wie im Logo). Kontrast auf --paper 4,4:1, Weiß darauf 4,7:1. */
  --rust:       #e41e24;
  --rust-deep:  #c0161c;                 /* Hover, Text in Markierungen */
  --rust-soft:  rgba(228, 30, 36, 0.08); /* Hintergrund für Markierungen/Chips */
  --copper:     #b87333;
  --moss:       #4a5d3a;
  --steel:      #525049;
  --star:       #f0a500;

  /* UI — warme Linien statt harter schwarzer Rahmen */
  --border:        #e6dfd3;   /* leichte Trennlinie */
  --line:          #d6cdbe;   /* Rahmen von Karten, Feldern, Index-Zeilen */
  --border-strong: #1c1a16;   /* nur noch für Buttons/Outline */

  /* Typografie */
  --font-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  /* Größen-Skala — bewusst groß, Zielgruppe 50+ */
  --fs-xs:   0.875rem;   /* 14px – Meta */
  --fs-sm:   1.0625rem;  /* 17px – kleine Texte, Buttons, Nav */
  --fs-base: 1.1875rem;  /* 19px – Body */
  --fs-md:   1.375rem;   /* 22px – Lead */
  --fs-lg:   1.875rem;   /* 30px – H3 */
  --fs-xl:   2.625rem;   /* 42px – H2 */
  --fs-2xl:  3.5rem;     /* 56px – H1 */
  --fs-3xl:  4.5rem;     /* 72px – Hero-Display */

  /* Abstände */
  --space-1:  0.5rem;
  --space-2:  1rem;
  --space-3:  1.5rem;
  --space-4:  2rem;
  --space-5:  2.5rem;
  --space-6:  3rem;
  --space-8:  4.5rem;
  --space-12: 7rem;

  /* Header-Höhe (Sticky) — Basis für Sektionshöhen und Anker-Offsets */
  --header-h: 72px;

  /* Container */
  --container-max:    1280px;
  --container-narrow: 760px;

  /* Radius — kantig, nicht rund */
  --radius-sm: 0;
  --radius-md: 2px;
  --radius-lg: 4px;   /* max. für Buttons */

  /* Schatten — weich statt versetzt */
  --shadow-print:    0 8px 24px rgba(28, 26, 22, 0.10);
  --shadow-print-sm: 0 4px 12px rgba(28, 26, 22, 0.08);
  --shadow-soft:     0 1px 2px rgba(28, 26, 22, 0.04), 0 12px 32px rgba(28, 26, 22, 0.06);
}

/* ==========================================================================
   2. RESET
   ========================================================================== */

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

html {
  font-size: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  hyphens: manual; /* keine automatische Silbentrennung, Trennung nur an &shy; */
  hanging-punctuation: first last;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h); /* Sticky-Header bei Anker-Sprüngen */
}

body {
  background: var(--paper);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

main {
  flex: 1;
}

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

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  color: var(--ink);
  hyphens: manual; /* Überschriften nie automatisch trennen (nur an &shy;) */
}

h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
}

a {
  color: var(--rust);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

a:hover, a:focus {
  color: var(--rust-deep);
}

ul, ol {
  list-style: none;
}

/* ==========================================================================
   3. TYPOGRAFIE
   ========================================================================== */

h1 {
  font-size: clamp(var(--fs-xl), 5vw, var(--fs-2xl));
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(var(--fs-lg), 3.5vw, var(--fs-xl));
  font-weight: 600;
  line-height: 1.05;
}

h3 {
  font-family: var(--font-body);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.2;
}

p {
  font-size: var(--fs-base);
  color: var(--ink-soft);
  line-height: 1.55;
}

.lead {
  font-size: var(--fs-md);
  color: var(--ink);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

/* Hervorhebung wichtiger Wörter in Logo-Rot */
.hl {
  color: var(--rust);
}

mark.hl {
  background: var(--rust-soft);
  color: var(--rust-deep);
  font-weight: 600;
  padding: 0 0.2em;
  border-radius: var(--radius-md);
}

.badge-beispiel {
  display: inline-block;
  background: var(--copper);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-md);
  vertical-align: middle;
}

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--space-8);
  border-top: 1px solid var(--line);
}

/* Kurze Sektion: nur so hoch wie ihr Inhalt */
.page-home .section.section--auto {
  min-height: 0;
  padding-block: var(--space-8);
}

/* Onepager: jede Sektion füllt eine Bildschirmhöhe (abzüglich Header),
   Inhalt vertikal zentriert. min-height statt height, damit auf kleinen
   Screens nichts abgeschnitten wird. */
.page-home .section,
.page-home .hero {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  padding-block: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section--narrow {
  padding-block: var(--space-6);
}

.section--deep {
  background: var(--paper-deep);
}

.section__action {
  margin-top: var(--space-6);
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.section__action--prominent {
  margin-top: var(--space-8);
  justify-content: center;
}

.section__subline {
  font-size: var(--fs-md);
  color: var(--ink-muted);
  line-height: 1.55;
  max-width: 60ch;
  margin-top: var(--space-2);
}

/* ==========================================================================
   5. SKIP LINK
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-2);
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-1) var(--space-2);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  text-decoration: none;
  z-index: 9999;
  border-radius: var(--radius-md);
}

.skip-link:focus {
  top: var(--space-2);
}

/* ==========================================================================
   6. HEADER / NAV
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: var(--header-h);
}

.site-header__logo {
  flex-shrink: 0;
  text-decoration: none;
}

.site-header__logo img {
  height: 48px;
  width: auto;
}

/* Startseite: Header-Logo erst einblenden, wenn das große Hero-Logo aus dem
   Bild gescrollt ist (Klassen setzt main.js; ohne JS bleibt es sichtbar). */
.site-header--hero-logo .site-header__logo {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: none; /* erstes Verstecken sofort, kein Aufblitzen */
}

.site-header--hero-logo.is-ready .site-header__logo {
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}

.site-header--hero-logo.is-past-hero-logo .site-header__logo {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s;
}

.site-nav {
  flex: 1;
}

.site-nav__list {
  display: flex;
  gap: var(--space-1);
  align-items: center;
}

.site-nav__link {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: var(--space-1) var(--space-2);
  display: block;
  white-space: nowrap;
  hyphens: none;
}

.site-nav__link:hover,
.site-nav__link:focus {
  color: var(--ink);
}

.site-nav__link.is-active {
  color: var(--ink);
  font-weight: 600;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.site-header__tel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-soft);
  text-decoration: none;
}

.site-header__tel:hover {
  color: var(--ink);
}

.site-header__tel-number {
  display: none;
}

@media (min-width: 1024px) {
  .site-header__tel-number {
    display: inline;
  }
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--ink);
  position: relative;
  z-index: 210;
}

.nav-burger:hover .nav-burger__bar {
  transform: scaleX(0.85);
  transform-origin: right center;
}

.nav-burger__bar {
  display: block;
  height: 3px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s;
}

@media (max-width: 767px) {
  .site-nav,
  .site-header__actions {
    display: none;
  }
  .nav-burger {
    display: flex;
    margin-left: auto;
  }
  /* Logo (1676×270) sonst 298px breit → Burger wird aus dem Viewport geschoben */
  .site-header__logo img {
    height: 36px;
  }
}

/* ==========================================================================
   7. MOBILE NAV
   ========================================================================== */

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.25s ease, visibility 0s linear 0s;
}

.mobile-nav__close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: var(--space-1);
  margin-bottom: var(--space-4);
}

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

.mobile-nav__link {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: block;
  line-height: 1.1;
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-2);
}

.mobile-nav__link--cta {
  color: var(--rust);
}

/* Standort-Zeilen im Handy-Menü (keine Links) */
.mobile-nav__place {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-2);
}

.mobile-nav__place-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.mobile-nav__place-address {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}

.mobile-nav__contact {
  margin-top: auto;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  line-height: 1.8;
}

.mobile-nav__contact a {
  color: var(--ink-muted);
}

/* ==========================================================================
   8. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.8125rem var(--space-4);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);  /* max. 4px */
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s, box-shadow 0.1s;
  white-space: nowrap;
}

/* Primär: Logo-Rot + weißer Text */
.btn--primary {
  background: var(--rust);
  color: var(--white);
  border-color: var(--rust);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--rust-deep);
  border-color: var(--rust-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(228, 30, 36, 0.28);
  color: var(--white);
  text-decoration: none;
}

/* Sekundär: Tinte */
.btn--secondary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-print);
  color: var(--paper);
  text-decoration: none;
}

/* Ghost: nur ink-Border */
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-print);
  color: var(--ink);
  text-decoration: none;
}

/* Inline-Button für Datenschutz (z.B. GA-Opt-Out) */
.btn-inline {
  display: inline;
  background: none;
  border: none;
  color: var(--rust);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

/* Fokus-Stile — sichtbar für Tastaturnutzer */
.btn:focus-visible,
.btn-inline:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}

/* ==========================================================================
   9. HERO — zweispaltig: Botschaft links, Leistungs-Index rechts
   ========================================================================== */

.hero {
  position: relative;
  background: var(--paper);
  padding-block: var(--space-3);
}

/* OPTION: kaum sichtbarer Verlauf Hellcreme → Creme. Klasse im HTML
   entfernen, wenn der Hero einfarbig bleiben soll. */
.hero--verlauf {
  background: linear-gradient(180deg, #fffdf9 0%, var(--paper) 100%);
}

/* Logo-Banner: Original-Logo (Haus + Namenszug), zentriert */
.hero__brand {
  margin-bottom: clamp(1.25rem, 3vh, var(--space-6));
  text-align: center;
}

.hero__logo {
  display: inline-block;
  width: auto;
  max-width: 100%;
  height: clamp(130px, 30vh, 280px);
  object-fit: contain;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
}

.hero__headline {
  font-size: clamp(2.75rem, 5.6vw, 4.75rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.0;
  letter-spacing: -0.02em;
  hyphens: none;
}

.hero__subline {
  font-size: var(--fs-md);
  color: var(--ink-soft);
  margin-top: var(--space-4);
  max-width: 46ch;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-5);
}

.hero__tel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.hero__tel:hover,
.hero__tel:focus-visible {
  color: var(--rust);
}

/* Leistungs-Index: drei Zeilen, durch dünne Linien getrennt, keine Kästen */
.hero__index {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.index-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-2);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s ease, padding 0.15s ease;
}

.index-row:hover,
.index-row:focus-visible {
  background: var(--white);
  padding-left: var(--space-3);
  color: var(--ink);
  text-decoration: none;
}

.index-row__body {
  display: block;
  min-width: 0;
}

.index-row__title {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  hyphens: manual; /* Trennung nur an &shy; */
}

.index-row__text {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-base);
  color: var(--ink-soft);
  line-height: 1.45;
}

.index-row__tags {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}

.index-row__arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.index-row__arrow svg {
  width: 22px;
  height: 22px;
}

.index-row:hover .index-row__arrow,
.index-row:focus-visible .index-row__arrow {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--white);
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 767px) {
  .hero {
    padding-block: var(--space-6);
  }
  .hero__headline {
    font-size: clamp(2.5rem, 12vw, 3.25rem);
  }
  .hero__subline {
    font-size: var(--fs-base);
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }
  .hero__actions .btn {
    width: 100%;
  }
  .hero__tel {
    justify-content: center;
  }
  .index-row {
    padding-inline: 0;
  }
  .index-row:hover,
  .index-row:focus-visible {
    padding-left: var(--space-1);
  }
  .index-row__tags {
    display: none;
  }
}

/* ==========================================================================
   10. PAGE HEADER (Unterseiten)
   ========================================================================== */

.page-header {
  padding-block: var(--space-8) var(--space-6);
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  margin-top: var(--space-1);
}

.page-header__subline {
  font-size: var(--fs-md);
  color: var(--ink-soft);
  margin-top: var(--space-2);
}

/* ==========================================================================
   NUTZEN-ABSCHNITT (Startseite — was den Service ausmacht)
   ========================================================================== */

.nutzen-intro {
  max-width: 60ch;
}

.nutzen-intro__lead {
  font-size: var(--fs-md);
  color: var(--ink-soft);
  line-height: 1.55;
  margin-top: var(--space-3);
}








/* ==========================================================================
   11. GOOGLE-BEWERTUNGEN
   ========================================================================== */

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

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

.bewertungen__score-number {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

.bewertungen__score-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bewertungen__link {
  font-size: var(--fs-sm);
  font-weight: 600;
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--star);
}

.stars svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Carousel — natives Scroll-Snap, Pfeile + Punkte per JS (main.js) */
.carousel {
  margin-top: var(--space-5);
}

.carousel__track {
  position: relative;
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px var(--space-2);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__track:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 4px;
}

.carousel__slide {
  flex: 0 0 calc((100% - 2 * var(--space-4)) / 3);
  scroll-snap-align: start;
  display: flex;
}

.carousel__slide .review-card {
  flex: 1;
}

@media (max-width: 1023px) {
  .carousel__slide {
    flex-basis: calc((100% - var(--space-4)) / 2);
  }
}

@media (max-width: 767px) {
  .carousel__slide {
    flex-basis: 100%;
  }
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.carousel__btn {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s, opacity 0.15s, border-color 0.1s;
}

.carousel__btn svg {
  width: 26px;
  height: 26px;
}

.carousel__btn:hover:not(:disabled),
.carousel__btn:focus-visible {
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-print);
}

.carousel__btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.carousel__dots {
  display: flex;
  gap: 10px;
}

.carousel__dot {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 1px solid var(--ink-muted);
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
}

.carousel__dot.is-active {
  background: var(--rust);
  border-color: var(--rust);
}

.review-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.review-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.review-card__author {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--ink);
}

.review-card__meta {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
}

.review-card__text {
  font-size: var(--fs-base);
  color: var(--ink-soft);
  line-height: 1.6;
  flex: none;
  margin-top: var(--space-1);
}

/* Lange Rezensionen: 4 Zeilen Vorschau, Volltext im Dialog (main.js) */
.review-card__text.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Handy: schmalere Zeilen, daher 6 Zeilen Vorschau */
@media (max-width: 767px) {
  .review-card__text.is-clamped {
    -webkit-line-clamp: 6;
    line-clamp: 6;
  }
}

.review-card .chips {
  margin-top: auto;
  padding-top: var(--space-2);
}

.review-card__more {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--rust);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.review-card__more:hover {
  color: var(--rust-deep);
}

/* Dialog: Volltext einer Bewertung */
.review-dialog {
  /* margin: auto zentriert das Dialog-Element — der globale Reset (margin: 0)
     würde es sonst oben links festnageln */
  margin: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(92vw, 720px);
  max-height: 88vh;
  max-height: 88dvh;
  overflow: auto;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(28, 26, 22, 0.28);
}

.review-dialog__inner:focus {
  outline: none; /* Anfangsfokus liegt auf dem Container, kein Ring am ✕ */
}

.review-dialog::backdrop {
  background: rgba(28, 26, 22, 0.62);
}

.review-dialog[open] {
  animation: dialog-in 0.2s ease-out;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.review-dialog__inner {
  position: relative;
  padding: var(--space-6) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.review-dialog__close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  cursor: pointer;
}

.review-dialog__close svg {
  width: 22px;
  height: 22px;
}

.review-dialog__close:hover,
.review-dialog__close:focus-visible {
  border-color: var(--ink);
  box-shadow: var(--shadow-print-sm);
}

.review-dialog .review-card__head {
  padding-right: 56px;
}

.review-dialog__text {
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: var(--space-2);
}

.review-dialog__chips[hidden] {
  display: none;
}

body.has-dialog {
  overflow: hidden;
}

/* Leistungs-Popups (Hero → Zeile anklicken) */
.leistung-dialog {
  margin: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(92vw, 640px);
  max-height: 88vh;
  max-height: 88dvh;
  overflow: auto;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(28, 26, 22, 0.28);
}

.leistung-dialog::backdrop {
  background: rgba(28, 26, 22, 0.62);
}

.leistung-dialog[open] {
  animation: dialog-in 0.2s ease-out;
}

.leistung-dialog__inner {
  position: relative;
  padding: var(--space-6) var(--space-5) var(--space-5);
}

.leistung-dialog__inner:focus {
  outline: none;
}

.leistung-dialog__close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  cursor: pointer;
}

.leistung-dialog__close svg {
  width: 22px;
  height: 22px;
}

.leistung-dialog__close:hover,
.leistung-dialog__close:focus-visible {
  border-color: var(--ink);
  box-shadow: var(--shadow-print-sm);
}

.leistung-dialog__claim {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-lg), 4vw, var(--fs-xl));
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  padding-right: 56px;
}

.leistung-dialog__lead {
  margin-top: var(--space-3);
  font-size: var(--fs-md);
  color: var(--ink-soft);
  line-height: 1.5;
}

.leistung-dialog__list {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
}

.leistung-dialog__sublist {
  margin-top: 6px;
  padding-left: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* höhere Spezifität als .leistung-dialog__list li (steht später im CSS) */
.leistung-dialog__list .leistung-dialog__sublist li {
  position: relative;
  padding: 0 0 0 14px;
  border-top: none;
  font-size: var(--fs-base);
  color: var(--ink-soft);
  line-height: 1.4;
}

.leistung-dialog__list .leistung-dialog__sublist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rust);
}

.leistung-dialog__list li {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.leistung-dialog__list li:first-child {
  border-top: none;
  padding-top: 0;
}

.leistung-dialog__item {
  display: block;
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}

.leistung-dialog__details {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  line-height: 1.45;
}

.leistung-dialog .kuechenmarken {
  margin-top: var(--space-4);
}

/* Rubriken (z. B. „Wir bieten an:“): untereinander, auf großen Bildschirmen nebeneinander,
   damit das Fenster ohne Scrollen auskommt (Kundenwunsch 16.11.2026) */
.leistung-dialog__gruppe + .leistung-dialog__gruppe {
  margin-top: var(--space-5);
}

.leistung-dialog--spalten .leistung-dialog__claim {
  font-size: var(--fs-lg);
}

@media (min-width: 900px) {
  .leistung-dialog--spalten {
    width: min(94vw, 1040px);
  }

  .leistung-dialog--spalten .leistung-dialog__gruppen {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
    align-items: start;
    margin-top: var(--space-2);
  }

  .leistung-dialog--spalten .leistung-dialog__gruppe + .leistung-dialog__gruppe {
    margin-top: 0;
  }

  .leistung-dialog--spalten .leistung-dialog__list li {
    padding: 10px 0;
  }
}

@media (max-width: 767px) {
  .leistung-dialog__inner {
    padding: var(--space-6) var(--space-3) var(--space-4);
  }
}

.kuechenmarken {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-3);
}
.kuechenmarken a {
  display: flex;
  align-items: center;
  min-height: 48px;
}
.kuechenmarken img {
  width: 140px;
  height: 48px;
  object-fit: contain;
}

@media (max-width: 767px) {
  .review-dialog__inner {
    padding: var(--space-6) var(--space-3) var(--space-4);
  }
  .review-dialog__text {
    font-size: var(--fs-base);
  }
}

/* Chips — Leistungen als kleine Marken */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-2);
}

.chip {
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
  line-height: 1.2;
}

.chip--accent {
  border-color: var(--rust);
  background: var(--rust-soft);
  color: var(--rust-deep);
}

/* ==========================================================================
   12b. PROJEKTE-FEED
   Handy: jedes Projekt eine Bildschirmhöhe, Seite rastet pro Projekt ein,
   Bilder seitlich wischbar. Desktop: vorläufig als 2-spaltiges Raster.
   ========================================================================== */

.page-home .section--feed {
  display: block;
  padding-block: var(--space-6) 0;
}

.feed__head {
  margin-bottom: var(--space-4);
}

.feed__hint {
  font-size: var(--fs-base);
}


.feed-item__pic img:not(.feed-item__bg) {
  cursor: zoom-in;
}

/* Lightbox: Bilder eines Projekts groß ansehen */
.lightbox-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(20, 18, 15, 0.97);
  color: var(--paper);
  overflow: hidden;
}

.lightbox-dialog::backdrop {
  background: rgba(20, 18, 15, 0.97);
}

.lightbox-dialog__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.lightbox-dialog__track::-webkit-scrollbar {
  display: none;
}

.lightbox-dialog__track li {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px var(--space-2) 96px;
}

.lightbox-dialog__track img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-dialog__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--space-2);
  pointer-events: none;
}

.lightbox-dialog__counter {
  font-size: var(--fs-sm);
  padding-left: 6px;
}

.lightbox-dialog__btn {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 248, 244, 0.12);
  border: 1px solid rgba(250, 248, 244, 0.35);
  border-radius: 50%;
  color: var(--paper);
  cursor: pointer;
}

.lightbox-dialog__btn svg {
  width: 24px;
  height: 24px;
}

.lightbox-dialog__btn:hover,
.lightbox-dialog__btn:focus-visible {
  background: rgba(250, 248, 244, 0.25);
}

.lightbox-dialog__btn:disabled {
  opacity: 0.25;
  cursor: default;
}

.lightbox-dialog__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  margin-top: -24px;
}

.lightbox-dialog__nav--prev { left: var(--space-2); }
.lightbox-dialog__nav--next { right: var(--space-2); }

.lightbox-dialog__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: var(--space-2) var(--space-3) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  text-align: center;
  pointer-events: none;
}

.lightbox-dialog__title {
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.65);
}

.lightbox-dialog__caption {
  margin-top: 4px;
  font-size: var(--fs-base);
  color: var(--paper);
  min-height: 1.4em;
}

.lightbox-dialog__phase {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(250, 248, 244, 0.18);
  font-size: var(--fs-xs);
  font-weight: 600;
  vertical-align: 2px;
}

.lightbox-dialog__phase--ergebnis {
  background: var(--rust);
}

@media (max-width: 767px) {
  .lightbox-dialog__nav {
    display: none; /* auf dem Handy wird gewischt */
  }
  .lightbox-dialog__track li {
    padding-inline: 0;
  }
}

.feed {
  display: flex;
  flex-direction: column;
}

.feed-item {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.feed-item__head {
  padding: var(--space-3) var(--space-4) var(--space-2);
}

.feed-item__meta {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.feed-item__title {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.feed-item__text {
  margin-top: var(--space-1);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.4;
}

.feed-item__media {
  position: relative;
  flex: 1;
  min-height: 0;
  background: var(--paper-deep);
  overflow: hidden;
}

.feed-item__strip {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.feed-item__strip::-webkit-scrollbar {
  display: none;
}

.feed-item__pic {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  overflow: hidden;
}

.feed-item__pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Querformat: Bild komplett zeigen, Rest mit weichgezeichneter Kopie füllen */
.feed-item__pic--landscape img {
  position: relative;
  z-index: 1;
  object-fit: contain;
}

.feed-item__pic--landscape .feed-item__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  object-fit: cover;
  filter: blur(28px) saturate(0.8);
  opacity: 0.55;
  transform: scale(1.2);
}

/* Phasen-Label auf dem Bild (Ergebnis / Vorher / Im Bau / Fast fertig) */
.feed-item__phase {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 2;
  background: rgba(28, 26, 22, 0.72);
  color: var(--paper);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 999px;
}

.feed-item__phase--ergebnis {
  background: var(--rust);
  color: var(--white);
}

/* Bildunterschrift unten auf dem Bild (über den Punkten) */
.feed-item__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: var(--space-6) var(--space-3) calc(var(--space-2) + 18px);
  background: linear-gradient(180deg, rgba(28, 26, 22, 0) 0%, rgba(28, 26, 22, 0.62) 100%);
  color: var(--paper);
  font-size: var(--fs-base);
  font-weight: 500;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.feed-item__counter {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  z-index: 2;
  background: rgba(28, 26, 22, 0.72);
  color: var(--paper);
  font-size: var(--fs-xs);
  padding: 5px 11px;
  border-radius: 999px;
}

.feed-item__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--space-2);
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.feed-item__dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(250, 248, 244, 0.5);
  box-shadow: 0 0 0 1px rgba(28, 26, 22, 0.25);
}

.feed-item__dots span.is-active {
  background: var(--paper);
}

.feed-item__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(250, 248, 244, 0.92);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
}

.feed-item__nav svg {
  width: 22px;
  height: 22px;
}

.feed-item__nav--prev { left: var(--space-2); }
.feed-item__nav--next { right: var(--space-2); }

.feed-item__nav:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Handy: Feed im normalen Seitenfluss, jedes Projekt eine Bildschirmhöhe.
   Die Seite rastet sanft pro Projekt ein (proximity: kein Zwang, man kann
   nicht daran vorbeiscrollen, aber auch nicht hängen bleiben).
   svh = Höhe bei eingeblendeter Browserleiste, damit die Bildunterschrift
   nie hinter der Safari-Leiste liegt. Der Versatz für den Sticky-Header
   kommt allein vom scroll-padding-top am html. */
@media (max-width: 767px) {
  html {
    scroll-snap-type: y proximity;
  }
  .feed-item {
    flex: 0 0 auto;
    height: calc(100vh - var(--header-h));
    height: calc(100svh - var(--header-h));
    scroll-snap-align: start;
  }
  .feed__head {
    margin-bottom: var(--space-3);
  }
  .feed-item__title {
    font-size: 1.5rem;
  }
}

/* Desktop/Tablet: vorläufiges Raster */
@media (min-width: 768px) {
  .feed {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-4);
    padding-bottom: var(--space-8);
  }
  .feed-item {
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow-soft);
  }
  /* Kopf nimmt die Resthöhe, Bild sitzt immer unten: Bilder einer Reihe
     stehen auf gleicher Höhe, egal wie lang Titel oder Text sind */
  .feed-item__head {
    flex: 1 1 auto;
  }
  .feed-item__media {
    flex: none;
    aspect-ratio: 4 / 3;
  }
  .feed-item__nav {
    display: inline-flex;
  }
}

/* Große Bildschirme: Header und Hero breiter und größer gesetzt */
@media (min-width: 1500px) {
  .hero > .container,
  .site-header__inner {
    max-width: 1720px;
    padding-inline: var(--space-6);
  }
  .hero__grid {
    gap: var(--space-12);
  }
  .hero__logo {
    height: clamp(180px, 27vh, 380px);
  }
  .hero__headline {
    font-size: clamp(4.75rem, 4.6vw, 6.5rem);
  }
  .hero__subline {
    font-size: 1.5rem;
    max-width: 44ch;
  }
  .hero__tel {
    font-size: var(--fs-md);
  }
  .index-row {
    padding-block: var(--space-5);
  }
  .index-row__title {
    font-size: 2.375rem;
  }
  .index-row__arrow {
    width: 56px;
    height: 56px;
  }
}

@media (min-width: 2100px) {
  .hero > .container,
  .site-header__inner {
    max-width: 2100px;
  }
}

/* Große Bildschirme: übrige Startseiten-Sektionen (Wofür wir stehen,
   Begriffsklärung, Kontakt) und Footer breiter und größer gesetzt */
@media (min-width: 1500px) {
  .page-home .section > .container,
  .site-footer__inner {
    max-width: 1720px;
    padding-inline: var(--space-6);
  }
  .page-home .section h2 {
    font-size: 3.25rem;
  }
  .page-home .section__subline,
  .nutzen-intro__lead {
    font-size: 1.5rem;
  }
  .nutzen-intro {
    max-width: 52ch;
  }
  .kontakt-grid {
    gap: var(--space-12);
  }
  .kontakt-daten__address,
  .kontakt-daten__list {
    font-size: 1.25rem;
  }
  .kontakt-daten__list > div {
    grid-template-columns: 9rem 1fr;
    padding-bottom: var(--space-2);
  }
  .form {
    gap: var(--space-4);
  }
  .form__label {
    font-size: 1.1875rem;
  }
  .form__input,
  .form__select,
  .form__textarea {
    font-size: 1.3125rem;
    padding: 0.875rem var(--space-3);
  }
  .form__textarea {
    min-height: 200px;
  }
  .form__group--checkbox .form__checkbox-label {
    font-size: 1.1875rem;
  }
  .form__submit .btn {
    font-size: 1.1875rem;
    padding: 1rem var(--space-5);
  }
}

@media (min-width: 2100px) {
  .page-home .section > .container,
  .site-footer__inner {
    max-width: 2100px;
  }
}

/* Große Bildschirme: Bewertungen und Projekte nutzen die volle Breite */
@media (min-width: 1500px) {
  .bewertungen > .container,
  .feed__head {
    max-width: 2400px;
    padding-inline: var(--space-6);
  }
  .carousel__slide {
    flex-basis: calc((100% - 3 * var(--space-4)) / 4);
  }
}

@media (min-width: 2100px) {
  .carousel__slide {
    flex-basis: calc((100% - 5 * var(--space-4)) / 6);
  }
}

/* Alle Bewertungen passen auf eine Seite: Pfeile und Punkte ausblenden */
.carousel.is-single-page .carousel__controls {
  display: none;
}

@media (min-width: 1500px) {
  .feed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 2400px;
    padding-inline: var(--space-6);
  }
}

@media (min-width: 2100px) {
  .feed {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ==========================================================================
   15. FOOTER — nur Rechtliches + Copyright
   ========================================================================== */

.site-footer {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-block: var(--space-4);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.site-footer__legal a {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
  color: var(--rust);
  text-decoration: underline;
}

.site-footer__copy {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
}

.site-footer__credit {
  color: inherit;
  text-decoration: none;
}

.site-footer__credit:hover,
.site-footer__credit:focus-visible {
  color: var(--rust);
  text-decoration: underline;
}

/* ==========================================================================
   16. COOKIE-BANNER — hell, kompakt
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(28, 26, 22, 0.10);
  padding: var(--space-3) var(--space-4);
}

.cookie-banner__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__text {
  flex: 1;
  min-width: 260px;
}

.cookie-banner__text p {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.45;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
  align-items: center;
}

.cookie-banner .btn {
  padding: 0.5rem var(--space-2);
  font-size: var(--fs-sm);
}

.cookie-settings {
  max-width: var(--container-max);
  margin-inline: auto;
  margin-top: var(--space-3);
  border-top: 1px solid var(--border);
  padding-top: var(--space-3);
}

.cookie-settings__heading {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-2);
}

.cookie-settings__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.cookie-settings__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--ink);
  cursor: pointer;
}

.cookie-settings__label input {
  accent-color: var(--rust);
  width: 18px;
  height: 18px;
}

.cookie-settings__desc {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  margin-top: 2px;
  padding-left: 1.75rem;
}

@media (max-width: 767px) {
  .cookie-banner {
    padding: var(--space-2) var(--space-3);
  }
  .cookie-banner__actions {
    width: 100%;
  }
  .cookie-banner .btn {
    flex: 1 1 auto;
  }
}

/* ==========================================================================
   17. FORMULAR
   ========================================================================== */

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

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

@media (max-width: 599px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

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

.form__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.form__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
}

.form__label abbr {
  text-decoration: none;
  color: var(--rust);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.625rem var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
  font-size: var(--fs-base);
  font-family: var(--font-body);
  transition: border-color 0.15s;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--rust);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__group--checkbox .form__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  cursor: pointer;
}

.form__checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--rust);
}

.form__submit {
  padding-top: 0;
}

.form-success {
  background: var(--moss);
  color: var(--paper);
  padding: var(--space-3);
  border: none;
  margin-bottom: var(--space-4);
}

.form-error {
  background: var(--rust);
  color: var(--paper);
  padding: var(--space-3);
  border: none;
  margin-bottom: var(--space-4);
}

/* ==========================================================================
   18. KONTAKT-SEITE
   ========================================================================== */

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .kontakt-grid {
    grid-template-columns: 2fr 3fr;
    align-items: start;
  }
}

.kontakt-daten__heading {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.kontakt-daten__subline {
  margin-bottom: var(--space-4);
}

.kontakt-daten__zusage {
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.kontakt-daten__ort {
  margin-left: 0.4em;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}

.kontakt-daten__address {
  font-style: normal;
  font-size: var(--fs-base);
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
  line-height: 1.7;
}

.kontakt-daten__list {
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.kontakt-daten__list > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: var(--space-1);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-1);
}

.kontakt-daten__map {
  font-size: var(--fs-sm);
  white-space: nowrap;
}

.kontakt-daten__list dt {
  color: var(--ink-muted);
}

.kontakt-daten__list dd a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}

.kontakt-daten__list dd a:hover {
  color: var(--rust);
}

/* ==========================================================================
   19. GALERIE
   ========================================================================== */

.galerie-filter {
  border-bottom: 1px solid var(--line);
  padding-block: var(--space-3);
}

.galerie-filter .container {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
}

.galerie-filter__btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.375rem var(--space-2);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}

.galerie-filter__btn.is-active,
.galerie-filter__btn:hover,
.galerie-filter__btn:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.galerie-section {
  border-top: none;
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 4px;
}

.galerie-item {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
}

.galerie-item[hidden] {
  display: none;
}

.galerie-item__btn {
  display: block;
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.galerie-item__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.galerie-item__btn:hover img,
.galerie-item__btn:focus-visible img {
  transform: scale(1.04);
}

.galerie-item__title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(28, 26, 22, 0.75);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  padding: var(--space-1) var(--space-2);
  opacity: 0;
  transition: opacity 0.15s;
}

.galerie-item__btn:hover .galerie-item__title,
.galerie-item__btn:focus-visible .galerie-item__title {
  opacity: 1;
}

/* ==========================================================================
   20. LIGHTBOX
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 26, 22, 0.92);
  cursor: pointer;
}

.lightbox__inner {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.lightbox__figure {
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lightbox__img {
  max-height: calc(90vh - 4rem);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.lightbox__caption {
  padding: var(--space-1) 0;
  font-size: var(--fs-xs);
  color: rgba(242, 237, 228, 0.7);
  text-align: center;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  background: none;
  border: none;
  color: var(--paper);
  cursor: pointer;
  padding: var(--space-1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lightbox__close {
  position: absolute;
  top: -2.5rem;
  right: 0;
}

.lightbox__prev,
.lightbox__next {
  flex-shrink: 0;
}

.lightbox__prev:hover,
.lightbox__next:hover,
.lightbox__close:hover {
  color: var(--copper);
}

/* ==========================================================================
   COMPARE / BEGRIFFSKLÄRUNG
   ========================================================================== */








/* ==========================================================================
   26. PROSE / LEGAL
   ========================================================================== */

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

.prose h2 {
  font-size: var(--fs-xl);
  margin-top: var(--space-4);
}

.prose h3 {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--ink);
  margin-top: var(--space-3);
}

.prose ul {
  list-style: disc;
  padding-left: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.prose ul li {
  font-size: var(--fs-base);
  color: var(--ink-soft);
}

.legal-prose {
  gap: var(--space-2);
}

.legal-prose h2 {
  font-size: var(--fs-lg);
  border-top: 2px solid var(--border);
  padding-top: var(--space-4);
  margin-top: var(--space-4);
}

.legal-prose h3 {
  font-size: var(--fs-base);
  font-weight: 700;
}

.legal-prose address {
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.7;
}

.legal-prose dl {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.legal-prose dl > div {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: var(--space-1);
}

.legal-prose hr {
  border: none;
  border-top: 1px solid var(--line);
  margin-block: var(--space-6);
}

.legal-prose__source {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  margin-top: var(--space-6);
}

/* ==========================================================================
   27. UTILITIES
   ========================================================================== */

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

.font-mono {
  font-family: var(--font-mono);
}

.u-nowrap {
  white-space: nowrap;
}


/* ==========================================================================
   28. FOKUS-STILE
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}

/* ==========================================================================
   29. REDUCED MOTION
   ========================================================================== */

/* ==========================================================================
   30. REVEAL ANIMATIONEN
   IntersectionObserver-getrieben (siehe main.js). Variants pro Section
   choreografiert — nicht uniform. data-reveal-delay="1..6" für Stagger.
   ========================================================================== */

/* Initial-Hidden-Zustand greift NUR wenn JS läuft (html.js-reveal).
   Ohne JS oder bei JS-Fehler bleiben Bilder/Texte normal sichtbar. */
.js-reveal [data-reveal] {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              clip-path 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-reveal [data-reveal="up"]            { transform: translateY(28px); }
.js-reveal [data-reveal="up-soft"]       { transform: translateY(14px); }
.js-reveal [data-reveal="left"]          { transform: translateX(-32px); }
.js-reveal [data-reveal="right"]         { transform: translateX(32px); }
.js-reveal [data-reveal="scale"]         { transform: scale(0.94); }
.js-reveal [data-reveal="zoom-out"]      { transform: scale(1.06); }
.js-reveal [data-reveal="expand-x"]      { transform: scaleX(0.4); transform-origin: center; }
.js-reveal [data-reveal="reveal-image"]  { clip-path: inset(0 100% 0 0); }
.js-reveal [data-reveal="rotate-up"]     { transform: translateY(20px) rotate(-1.2deg); transform-origin: bottom left; }

.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* clip-path nur für die Bild-Variante: auf Text würde er Unterlängen (g, p, j)
   an der Boxkante abschneiden */
.js-reveal [data-reveal="reveal-image"].is-visible {
  clip-path: inset(0 0 0 0);
}

.js-reveal [data-reveal-delay="1"] { transition-delay: 0.08s; }
.js-reveal [data-reveal-delay="2"] { transition-delay: 0.16s; }
.js-reveal [data-reveal-delay="3"] { transition-delay: 0.24s; }
.js-reveal [data-reveal-delay="4"] { transition-delay: 0.32s; }
.js-reveal [data-reveal-delay="5"] { transition-delay: 0.40s; }
.js-reveal [data-reveal-delay="6"] { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js-reveal [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}
