/* ==========================================================================
   mueller-wohnart.de — components.css
   Header/Footer (Feature 02), Hero & Philosophie (Feature 03)
   Nutzt nur Design-Tokens aus base.css / ../../DESIGN.md.
   ====================================================================== */

/* --------------------------------------------------------------------------
   Hero  (Feature 03, DESIGN.md §3.2)
   Statisch: Vollbild-Bild + dunkler Verlauf + Caption unten (slide_up).
   Slider-Aufbau bleibt möglich: 2–4 Bilder in assets/images/hero/ ergänzen
   und Animationen hier aktivieren (nice-to-have, eigenes Ticket o. ä.).
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: max(480px, calc(100svh - 84px));
  background: var(--color-primary); /* Fallback, bis das Bild geladen ist */
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Leicht dunkler Verlauf für maximale Lesbarkeit (Kontrast ≥ 4.5:1 weiß) */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 10, 7, 0.82) 0%,
    rgba(8, 10, 7, 0.45) 45%,
    rgba(8, 10, 7, 0.12) 100%
  );
}

/* Caption-Block (Bindl-Muster: unten, container-breite) */
.hero-caption {
  position: relative;
  z-index: 1;
  color: var(--color-text-inverse);
  padding-bottom: clamp(48px, 8vh, 96px);
}

.hero-title {
  font-size: clamp(34px, 6vw, var(--font-size-h1-hero)); /* 50px Desktop */
  font-weight: var(--heading-weight);
  color: var(--color-text-inverse);
  letter-spacing: 0.01em;
}

.hero-sub {
  max-width: 620px;
  font-size: var(--font-size-hero-sub); /* 20px */
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  margin-block: 0.8em 1.8em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* heller Ghost-Button für dunkle Flächen (ergänzt .btn-ghost aus base.css) */
.btn-light {
  background: transparent;
  color: var(--color-text-inverse);
  border-color: rgba(255, 255, 255, 0.9);
}

.btn-light:hover,
.btn-light:focus-visible {
  background: var(--color-text-inverse);
  color: var(--color-primary);
  border-color: var(--color-text-inverse);
}

/* slide_up-Einstieg (DESIGN.md §1.4 `--hero-anim: slide_up`) */
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-caption > * {
  animation: hero-rise 0.8s ease-out both;
}

.hero-caption > :nth-child(2) {
  animation-delay: 0.12s;
}

.hero-caption > :nth-child(3) {
  animation-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-caption > * {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Philosophie & Markenwerte  (Feature 03.2)
   2 Spalten (Grid, mobile gestapelt): Text links, Key-Facts rechts.
   -------------------------------------------------------------------------- */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: start;
}

.philosophy-text p {
  max-width: 56ch;
}

/* Key-Facts mit Inline-SVG-Icons (kein zusätzliches Asset-Loading) */
.key-facts {
  display: grid;
  gap: 28px;
}

.key-fact {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.key-fact-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-wood);
  border-radius: var(--radius);
  color: var(--color-wood);
}

.key-fact-icon svg {
  width: 24px;
  height: 24px;
}

.key-fact h3 {
  font-size: var(--font-size-subheading);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.15em;
}

.key-fact p {
  font-size: var(--font-size-body);
  line-height: 1.6;
}

/* 2 Spalten ab Desktop */
@media (min-width: 768px) {
  .philosophy-grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 64px;
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   Produkt-Teaser-Grid  (Feature 04.1)
   6 Karten: Bild, Titel, Kurzbeschreibung, „Mehr erfahren →".
   Mobile 1 Spalte → Tablet 2 → Desktop 3 (minmax/auto-fit).
   -------------------------------------------------------------------------- */
.section-intro {
  max-width: 56ch;
  margin-block: 0.6em 1.8em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 28px;
}

/* Karte als einzelner Link: ganze Fläche klickbar, nur ein Fokusziel */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid #e2dcd2;
  outline-offset: 4px;
  transition: var(--transition);
}

/* 10.2: Karte ist semantisches <article>; der gesamte Link lebt in .product-card-a */
.product-card-a {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius);
}

.product-card-a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

/* Bild: 4:3, Überlauf verdeckt, beim Hover sanft heranzoomen.
   Nur bei echten Hover-Fähigkeiten aktivieren, damit der State
   auf Touch-Geräten nicht „fest" kleben bleibt. */
.product-card-media {
  display: block;
  overflow: hidden;
}

.product-card-media img {
  width: 100%;
  height: auto; /* hebt das height-Attribut auf, damit aspect-ratio greift */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--transition);
}

.product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
}

.product-card-title {
  font-size: var(--font-size-subheading);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.4em;
}

.product-card-text {
  font-size: var(--font-size-body);
  line-height: 1.6;
  flex: 1;
}

/* Link-Label mit Touch-Target ≥ 44px */
.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding-top: 10px;
  font-size: var(--font-size-subheading);
  font-weight: 600;
  color: var(--color-primary);
}

.product-card-link > span {
  transition: transform var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    border-color: var(--color-wood);
    box-shadow: 0 10px 28px rgba(19, 64, 26, 0.18);
  }

  .product-card:hover .product-card-media img {
    transform: scale(1.05);
  }

  .product-card:hover .product-card-link {
    color: var(--color-wood);
  }

  .product-card:hover .product-card-link > span {
    transform: translateX(4px);
  }
}

/* --------------------------------------------------------------------------
   CTA-Banner  (Feature 04.2, vor dem Footer)
   Vollbreit, heller Hintergrund, warmer Holz-Akzent oben.
   -------------------------------------------------------------------------- */
.cta-banner {
  position: relative;
  background: var(--color-bg-muted); /* dezentes Motiv bleibt per Bild möglich */
  border-top: 2px solid var(--color-wood);
  border-bottom: 1px solid #e2dcd2;
  text-align: center;
}

.cta-banner-inner {
  padding-block: var(--section-pad);
  display: grid;
  gap: 10px;
  justify-items: center;
}

.cta-banner-title {
  font-size: clamp(22px, 3.4vw, var(--font-size-h2-section));
  font-weight: var(--heading-weight);
  color: var(--color-primary);
  max-width: 26ch;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Feature 05 — Leistungs-Page: Page-Header + 6 Zick-Zack-Detailsektionen
   Mobile-first: gestapelt; ab 768px zwei Spalten, Zick-Zack per .detail--flip.
   -------------------------------------------------------------------------- */

/* 5.1 Page-Header: schlank, dezent gemustert (kein Fullscreen-Hero) */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-muted);
  border-bottom: 1px solid #e2dcd2;
}

/* Dezent Hintergrundmotiv: feine, warme Querstreifen (reiner CSS-Graustufen-Platzhalter) */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(166, 118, 88, 0.06) 0 2px,
      transparent 2px 90px
    );
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding-block: clamp(48px, 7vw, 84px); /* deutlich niedriger als .hero */
}

.page-hero-title {
  font-size: clamp(30px, 5vw, var(--font-size-h1-hero)); /* 50px Desktop */
  font-weight: var(--heading-weight);
  color: var(--color-primary);
}

.page-hero-sub {
  max-width: 52ch;
  font-size: var(--font-size-hero-sub);
  line-height: 1.5;
  color: var(--color-text);
}

/* 5.2 Detailsektionen */
.detail {
  scroll-margin-top: 92px; /* sticky Header nicht über den Anker legen */
}

.detail--bg {
  background: var(--color-bg);
}

.detail--muted {
  background: var(--color-bg-muted);
}

.detail-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
  padding-block: var(--section-pad);
}

.detail-text h2 {
  color: var(--color-primary);
}

.detail-text p {
  max-width: 62ch;
  margin-block: 0;
  margin-bottom: 1em;
}

/* Feature-Liste mit Checkmarks (Inline-SVG, kein Unicode) */
.features {
  display: grid;
  gap: 8px;
  margin-block: 1.5em 2em;
  max-width: 40ch;
}

.features__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  font-size: var(--font-size-subheading);
}

.features__icon {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-wood);
}

/* Hauptbild der Sektion */
.detail-media__main {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #e2dcd2;
}

/* Bildgalerie (Kontrakt für Feature 06 Lightbox: .gallery[data-gallery],
   figure[data-full]-Bilder; hier nur Markup + 2/4-Spalten-Grid) */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid #e2dcd2;
}

.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Desktop: zwei Spalten, Zick-Zack-Aufbau, Galerie auf 4 Spalten */
@media (min-width: 768px) {
  .detail-inner {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }

  /* Block 2/4/6: Bild links, Text rechts */
  .detail--flip .detail-media {
    order: -1;
  }

  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
}

/* --------------------------------------------------------------------------
   Header
   2.2 Sticky: position: sticky + Schatten-Flag am <header> (setzt main.js)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.4s ease-in-out;
}

/* Dezenter Schatten, sobald der Header „stuck" ist (JS-Flag) */
.site-header.is-stuck {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px; /* Touch-Targets ≥ 44px bleiben mit Comfort-Marge */
  padding-block: 8px;
}

/* Logo / Schriftzug links */
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand:link,
.brand:visited {
  color: var(--color-primary);
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-wood-deep); /* 10.2: ≥4.5:1 auf hellem Grund */
}

.brand:hover .brand-name,
.brand:focus-visible {
  color: var(--color-primary-hover);
}

/* Hauptmenü – mobil: ausgeblendet, als Panel unter dem Header */
.main-nav {
  /* off-canvas-Panel für mobile (Default-State: geschlossen) */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-bg-muted);
  overflow: hidden;
  visibility: hidden;
  max-height: 0;
  transition:
    max-height 0.4s ease-in-out,
    visibility 0.4s ease-in-out;
}

.site-header.menu-open .main-nav {
  visibility: visible;
  max-height: 400px; /* großzügig: 3 Links + CTA, kein Jank */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.nav-list {
  display: flex;
  flex-direction: column;
}

.nav-link:link,
.nav-link:visited {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--container-pad);
  font-size: var(--font-size-subheading);
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-bg-muted);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-primary);
}

/* 2.3 Active-State: wird pro HTML-Seite als class gesetzt (keine JS) */
.nav-link.active {
  color: var(--color-primary);
  box-shadow: inset 0 -3px 0 var(--color-wood);
}

/* CTA im mobilen Panel */
.nav-cta {
  display: flex;
  margin: 12px var(--container-pad) 20px;
}

.nav-cta .btn {
  width: 100%;
}

/* CTA rechts im Header – nur ab Desktop sichtbar (mobil: siehe .nav-cta) */
.header-cta {
  display: none;
}

/* Burger-Button – nur mobil sichtbar */
.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.burger {
  position: relative;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger::before {
  top: -7px;
}

.burger::after {
  top: 7px;
}

/* Burger → X bei geöffneter Navigation */
.site-header.menu-open .burger {
  background: transparent;
}

.site-header.menu-open .burger::before {
  transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .burger::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Footer
   Dunkle Fläche, helle Schrift, rechteckige Kanten, 4 Spalten.
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-footer);
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
}

.site-footer a:link,
.site-footer a:visited {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--color-text-inverse);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-block: var(--section-pad);
}

.footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-inverse);
  margin-bottom: 0.25em;
}

.footer-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-wood-light); /* 10.2: ≥4.5:1 auf --color-footer */
  margin-bottom: 1em;
}

.footer-slogan {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.footer-heading {
  font-size: var(--font-size-subheading);
  font-weight: 700;
  color: var(--color-text-inverse);
  margin-bottom: 0.9em;
}

.footer-col ul {
  display: grid;
  gap: 0.25em;
}

/* Touch-Targets in der Footer-Liste ≥ 44px hoch (min-height via padding) */
.footer-col ul a,
.footer-col ul li {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Bottom-Bar */
.footer-bottom {
  background: rgba(0, 0, 0, 0.25);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 14px;
  font-size: 13px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  align-items: center;
}

.footer-legal a:link,
.footer-legal a:visited {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* --------------------------------------------------------------------------
   Desktop (ab 768px): horizontales Menü rechts, Burger aus
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }

  .main-nav {
    position: static;
    visibility: visible;
    max-height: none;
    overflow: visible;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    transition: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }

  .nav-link:link,
  .nav-link:visited {
    min-height: 44px;
    padding-inline: 14px;
    border-bottom: none;
  }

  .nav-link.active {
    box-shadow: inset 0 -3px 0 var(--color-wood);
  }

  .nav-cta {
    display: none;
  }

  .header-cta {
    display: inline-flex;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1.2fr 1.4fr;
  }

  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   Feature 06: Galerie & Lightbox (js/gallery.js)
   -------------------------------------------------------------------------- */

/* Galerie-Thumbs werden zur Laufzeit in Buttons umgepackt –
   flacher Button-Look, aber echte Tastatur-/Fokus-Semantik */
.gallery__thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  min-height: 44px;
}

.gallery figure[data-full] img {
  transition: transform 0.4s ease-in-out;
}

.gallery figure[data-full]:hover img,
.gallery figure[data-full]:focus-within img {
  transform: scale(1.04);
}

.gallery__thumb:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

/* ---- Lightbox-Modal (native <dialog>) ---- */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(14, 18, 14, 0.95);
  color: var(--color-text-inverse);
  position: relative;
}

@supports (height: 100dvh) {
  .lightbox { height: 100dvh; }
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

/* Bühne: Bild zentriert, nie größer als Viewport */
.lightbox__stage {
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 72px;
  box-sizing: border-box;
  position: relative;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.lightbox__img.is-loaded { opacity: 1; }

/* Steuer Buttons: ≥44×44px Touch-Ziele */
.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--color-text-inverse);
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__close:focus-visible,
.lightbox__nav:focus-visible,
.lightbox:focus-visible {
  outline: 2px solid var(--color-text-inverse);
  outline-offset: 2px;
}

.lightbox__close {
  top: 12px;
  right: 12px;
  width: 48px;
  height: 48px;
}

.lightbox__nav--prev {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--next {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

/* Zähler „3 / 4" */
.lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  font-variant-numeric: tabular-nums;
}

/* Spinner während des Nachladens */
.lightbox__spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.lightbox__spinner[hidden] { display: none; }

.lightbox__spinner-dot {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius); /* Constraint DESIGN.md §7: radius 0 überall */
  animation: lightbox-spin 0.9s linear infinite;
}

@keyframes lightbox-spin {
  to { transform: rotate(360deg); }
}

/* Mobile: enge Bühnen-Ränder, Buttons bleiben ≥44px */
@media (max-width: 767px) {
  .lightbox__stage { padding: 16px 56px; }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
  .lightbox__close { top: 6px; right: 6px; }
}

/* reduced-motion: keine Bild-/Hover-Transition (Spinner bleibt –
   er hat Informationsgehalt) */
@media (prefers-reduced-motion: reduce) {
  .gallery figure[data-full] img,
  .lightbox__img,
  .lightbox__close,
  .lightbox__nav {
    transition: none;
  }

  .gallery figure[data-full]:hover img,
  .gallery figure[data-full]:focus-within img {
    transform: none;
  }
}

/* ==========================================================================
   Feature 07: Kontakt-Page — Kontaktdaten, Öffnungszeiten, Impressum,
   Datenschutz
   Mobile-first, rechtwinklig, WCAG-AA (Touch-Targets ≥ 44px).
   ========================================================================== */

/* Scroll-Offset für die Pflichtanker (sticky Header nicht drüberlegen) */
#impressum,
#datenschutz,
#anfahrt {
  scroll-margin-top: 92px;
}

/* 7.1 Kontaktdaten-Layout: 2 Spalten auf Desktop ------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 1.25fr 1fr;
    gap: 64px;
  }
}

.contact-facts {
  margin-bottom: 2em;
}

.contact-subheading {
  font-size: var(--font-size-subheading);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.6em;
}

/* Kontakt-Links (E-Mail/Telefon) mit ausreichendem Padding als Touch-Ziel */
.contact-link {
  display: inline;
  padding-block: 10px; /* 10.2: Touch-Target ≥44px inkl. Zeilenhöhe */
  vertical-align: baseline;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease-in-out;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--color-wood);
}

.contact-muted {
  color: #6b6b6b;
  font-size: 0.9em;
}

/* Social-Media-Icons (Inline-SVG, keine externen Assets) ------------------- */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2em;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 16px;
  border: 1px solid var(--color-wood-deep);
  border-radius: var(--radius);
  color: var(--color-wood-deep); /* 10.2: ≥4.5:1-Text */
  font-size: var(--font-size-subheading);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: var(--color-wood-deep);
  color: var(--color-bg);
}

.social-links a svg {
  flex-shrink: 0;
}

/* Hinweisblock ("am schnellsten…") */
.contact-note {
  max-width: 60ch;
  padding: 14px 18px;
  background: var(--color-bg-muted);
  border-left: 4px solid var(--color-wood);
  line-height: var(--lh-body);
}

/* Rechte Spalte: Layout-Hülle für Formular (Feature 08) / Karte (Feature 09) */
.contact-aside {
  padding: 28px 24px;
  background: var(--color-bg-muted);
  border: 1px solid #e2dcd2;
  overflow: hidden; /* Spaltenbruch verhindern, Kanten rechtwinklig */
}

.contact-aside h2 {
  font-size: calc(var(--font-size-h2-section) * 0.6); /* dezent, kleiner als h2-Sektionen */
}

.contact-aside p {
  max-width: 44ch;
  line-height: var(--lh-body);
}

.contact-aside p + p {
  margin-top: 1em;
}

.contact-aside__hint {
  color: #6b6b6b;
  font-size: 0.95em;
}

/* 9. Anfahrt – statische Karte (rechte Spalte, unter dem Formular) -------
   Kein JS, kein iframe, kein externer Kartendienst (Feature 09). */
.anfahrt {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid #e2dcd2;
}

.anfahrt .divider {
  margin-block: 0.8em 1.2em;
}

.anfahrt figure {
  margin: 0;
}

.anfahrt-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e2dcd2;
  border-radius: var(--radius);
}

.anfahrt-subheading {
  font-size: var(--font-size-subheading);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 1.4em;
  margin-bottom: 0.4em;
}

.anfahrt-route {
  margin-top: 1.2em;
}

/* 9.3 „Route planen“-Link: nur a-Tag (kein iframe), Touch-Target ≥ 44px */
.anfahrt-route a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease-in-out;
}

.anfahrt-route a:hover,
.anfahrt-route a:focus-visible {
  color: var(--color-wood);
}

/* 7.2 + 7.3 Rechtliches: Impressum & Datenschutz --------------------------- */
.legal h3 {
  font-size: var(--font-size-subheading);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 1.8em;
  margin-bottom: 0.4em;
}

.legal p {
  max-width: 70ch;
  line-height: var(--lh-body);
}

.legal p + p,
.legal h3 + p {
  margin-top: 0.6em;
}

/* Pflichtangaben als Definitionen (Impressum) */
.legal-facts {
  margin-bottom: 1.5em;
}

.legal-facts dt {
  font-weight: 700;
  font-size: var(--font-size-subheading);
  letter-spacing: 0.02em;
  margin-top: 1em;
}

.legal-facts dt:first-child {
  margin-top: 0;
}

.legal-facts dd {
  margin-top: 0.25em;
  line-height: 1.7;
  max-width: 52ch;
}

/* Aufzählungen (DSGVO-Datenpunkte, betroffene Rechte) */
.legal-points {
  margin: 0.6em 0 1em;
}

.legal-points li {
  position: relative;
  padding-left: 22px;
  max-width: 70ch;
  line-height: var(--lh-body);
}

.legal-points li + li {
  margin-top: 0.5em;
}

.legal-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--color-wood);
  border-radius: var(--radius);
}

/* ============================================================
   8. Kontaktformular (kontakt.html, rechte Spalte)
   ============================================================ */
.anfrage-form {
  margin-top: 1.2em;
}

/* Status-/Erfolgsmeldung oberhalb der Felder (8.4) */
.form-status {
  margin-bottom: 1em;
  padding: 12px 14px;
  line-height: var(--lh-body);
  border: 1px solid transparent;
  border-left: 4px solid;
}

.form-status.is-success {
  background: #eef5ec;
  border-color: #bfd8ba;
  border-left-color: var(--color-primary);
  color: #1d3a22;
}

.form-status.is-error {
  background: #fbf1f0;
  border-color: #e8c3c0;
  border-left-color: #b3261e;
  color: #7a1a15;
}

/* Feld-Zeilen (Vorname/Nachname nebeneinander ab ~460px Content-Box) */
.form-row--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 14px;
}

@media (min-width: 560px) {
  .form-row--split {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  margin-bottom: 16px;
}

.form-field label,
.checkbox {
  display: block;
  font-size: var(--font-size-subheading);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea,
.form-field input[type="file"] {
  width: 100%;
  min-height: 44px; /* Touch-Target (DESIGN.md §3.1/§7) */
  box-sizing: border-box;
  padding: 10px 12px;
  font-family: var(--font-family);
  font-size: var(--font-size-subheading);
  line-height: 1.4;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid #c8c2b8;
  border-radius: var(--radius);
  transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

.form-field input[type="file"] {
  padding-inline: 6px;
}

.form-field input:not([type="checkbox"]):hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: var(--color-wood);
}

.form-field input:not([type="checkbox"]):focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible,
.form-field input[type="file"]:focus-visible {
  border-color: var(--color-primary);
  outline: 2px solid var(--color-primary);
  outline-offset: 0;
}

/* Datenschutz-Checkbox */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  font-weight: 400;
  cursor: pointer;
}

.checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.checkbox a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox a:hover,
.checkbox a:focus-visible {
  color: var(--color-wood);
}

/* Hint-Texte: statische Hinweise + Validierungsfehler (8.2) */
.form-hint {
  margin-top: 6px;
  font-size: 0.9em;
  line-height: 1.5;
}

.form-hint--static {
  color: #6b6b6b;
}

.form-hint.is-error {
  color: #b3261e;
}

.form-field.is-error label,
.form-field.is-error .checkbox,
.form-field.is-error input:not([type="checkbox"]) {
  border-color: #b3261e;
}

.form-field.is-error input:not([type="checkbox"]),
.form-field.is-error textarea,
.form-field.is-error select {
  background: #fdf6f5;
}

.form-required-hint {
  margin: 2px 0 14px;
  font-size: 0.85em;
  color: #6b6b6b;
}

.anfrage-submit {
  width: 100%;
}

/* Double-Submit-Schutz (Formular wird ~4s deaktiviert) */
.anfrage-form.is-submitting {
  opacity: 0.55;
}

.anfrage-form.is-submitting .btn {
  cursor: wait;
}

/* --------------------------------------------------------------------------
   Partner-Sektion (Kontakt-Seite)
   -------------------------------------------------------------------------- */
.partners-intro {
  max-width: 70ch;
}

.partners-list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.partners-list__item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.partners-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 110px;
  padding: 20px 16px;
  background: var(--color-bg);
  border: 1px solid #e2dcd2;
  flex-shrink: 0;
  transition: var(--transition);
}

.partners-logo:hover,
.partners-logo:focus-visible {
  border-color: var(--color-primary);
}

.partners-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 64px;
}

@media (min-width: 768px) {
  .partners-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
}
