/* =========================================================
   Fetahi Bau und Planung — Design System & Stylesheet
   ========================================================= */

:root {
  /* Farben */
  --c-bg: #ffffff;
  --c-bg-soft: #f5f4f2;
  --c-bg-muted: #ebe8e4;
  --c-bg-dark: #1f1d1b;
  --c-bg-darker: #161513;
  --c-text: #1f1d1b;
  --c-text-muted: #57534e;
  --c-text-invert: #f5f4f2;
  --c-accent: #b8a48a;   /* warmer Sand-/Steinton */
  --c-accent-dark: #8a7558;
  --c-border: #d6d3d0;
  --c-focus: #1f1d1b;

  /* Typografie */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.625rem;
  --fs-2xl: 2.125rem;
  --fs-3xl: 2.75rem;
  --fs-4xl: 3.5rem;

  /* Abstände */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Layout */
  --container: 1180px;
  --container-narrow: 880px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.10), 0 4px 8px rgba(0, 0, 0, 0.04);

  /* Header-Höhen */
  --h-topbar: 36px;
  --h-nav: 68px;
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--h-topbar) + var(--h-nav) + 8px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-accent-dark); }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, var(--fs-4xl)); }
h2 { font-size: clamp(1.625rem, 3.2vw, var(--fs-3xl)); }
h3 { font-size: clamp(1.125rem, 2.2vw, var(--fs-xl)); }
h4 { font-size: clamp(1rem, 1.8vw, var(--fs-lg)); }
p { margin: 0 0 var(--sp-4); color: var(--c-text-muted); }

:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Layout-Helper ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--sp-5); }
.section { padding-block: clamp(3rem, 7vw, var(--sp-9)); }
.section--soft { background: var(--c-bg-soft); }
.section--muted { background: var(--c-bg-muted); }
.section--dark { background: var(--c-bg-dark); color: var(--c-text-invert); }
.section--dark p { color: #cdc8c1; }
.section-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  margin-bottom: var(--sp-3);
  font-weight: 500;
}
.section--dark .section-eyebrow { color: var(--c-accent); }
.section-title { max-width: 720px; margin-bottom: var(--sp-6); }
.section-title h2 { margin-bottom: var(--sp-3); }
.section-title p { font-size: var(--fs-lg); max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.1s ease;
  white-space: nowrap;
}
@media (max-width: 400px) { .btn { white-space: normal; } }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-text); color: var(--c-text-invert); }
.btn--primary:hover { background: #000; color: var(--c-text-invert); }
.btn--secondary { background: transparent; color: var(--c-text); border-color: var(--c-border); }
.btn--secondary:hover { background: var(--c-bg-soft); color: var(--c-text); }
.btn--invert { background: var(--c-text-invert); color: var(--c-text); }
.btn--invert:hover { background: #fff; color: var(--c-text); }
.btn--ghost-invert { background: transparent; color: var(--c-text-invert); border-color: rgba(245,244,242,0.4); }
.btn--ghost-invert:hover { background: rgba(255,255,255,0.08); color: var(--c-text-invert); }
.btn--lg { padding: 1rem 1.75rem; font-size: var(--fs-base); }

/* ---------- TopBar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: var(--c-bg-darker);
  color: var(--c-text-invert);
  height: var(--h-topbar);
  font-size: var(--fs-xs);
}
.topbar__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
}
.topbar a { color: var(--c-text-invert); }
.topbar a:hover { color: var(--c-accent); }
.topbar__note { display: none; }
.topbar__contact { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.topbar__contact a { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 720px) {
  .topbar__contact .email-text { display: none; }
}

/* ---------- Header / Navigation ---------- */
.header {
  position: sticky; top: var(--h-topbar); z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.header__inner {
  height: var(--h-nav);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5);
}
.brand {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  display: flex; flex-direction: column;
}
.brand small {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  font-weight: 500;
}
.nav { display: flex; align-items: center; gap: var(--sp-6); }
.nav a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text);
  padding: 6px 2px;
  position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--c-text);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s ease;
}
.nav a:hover::after { transform: scaleX(1); }
.nav a.btn::after { display: none; }
.nav a.btn--primary { color: var(--c-text-invert); }
.nav a.btn--primary:hover { color: var(--c-text-invert); }
/* Active-State */
.nav a[aria-current="page"],
.nav .nav__trigger-link[aria-current="page"] { font-weight: 600; }
.nav a[aria-current="page"]::after,
.nav .nav__trigger-link[aria-current="page"]::after { transform: scaleX(1); background: var(--c-accent-dark); }

/* ---------- Nav Dropdowns ---------- */
.nav__group { position: relative; display: inline-flex; align-items: center; gap: 0; }
.nav__trigger-link {
  color: var(--c-text);
  font-size: var(--fs-sm); font-weight: 500;
  padding: 6px 2px;
  position: relative;
}
.nav__trigger-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--c-text);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s ease;
}
.nav__trigger-link:hover::after,
.nav__group:hover .nav__trigger-link::after,
.nav__group:focus-within .nav__trigger-link::after,
.nav__group[data-open="true"] .nav__trigger-link::after { transform: scaleX(1); }
.nav__trigger {
  background: none; border: none;
  font: inherit;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--c-text);
  font-size: var(--fs-sm); font-weight: 500;
  padding: 6px 4px 6px 2px;
  position: relative;
  margin-left: 2px;
}
.nav__trigger--caret { padding: 6px 4px; }
.nav__trigger::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--c-text);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s ease;
}
.nav__trigger:hover::after,
.nav__group:focus-within .nav__trigger::after,
.nav__group[data-open="true"] .nav__trigger::after { transform: scaleX(1); }
.nav__caret {
  font-size: 0.7em;
  color: var(--c-accent-dark);
  transition: transform 0.25s ease;
  line-height: 1;
}
.nav__group:hover .nav__caret,
.nav__group:focus-within .nav__caret,
.nav__group[data-open="true"] .nav__caret { transform: rotate(180deg); }

/* Transparente Brücke über die margin-top-Lücke: verhindert, dass der
   hover-Zustand erlischt, wenn die Maus vom Trigger zum Dropdown-Panel
   gleitet (nur Desktop). */
@media (min-width: 921px) {
  .nav__group::before {
    content: "";
    position: absolute;
    top: 100%;
    left: -8px;
    right: -8px;
    height: 16px; /* etwas mehr als margin-top: 12px des Dropdowns */
    z-index: 99;
  }
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: -8px;
  margin-top: 12px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  max-width: calc(100vw - 2rem);
  padding: 14px;
  display: none;
  z-index: 100;
}
/* Letztes Dropdown-Menü nach links ausrichten damit es nicht aus dem Viewport ragt */
.nav__group:last-of-type .nav__dropdown { left: auto; right: -8px; }
.nav__dropdown.nav__dropdown--two {
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
  min-width: 520px;
}
.nav__group:hover > .nav__dropdown,
.nav__group:focus-within > .nav__dropdown,
.nav__group[data-open="true"] > .nav__dropdown { display: block; }
.nav__group:hover > .nav__dropdown--two,
.nav__group:focus-within > .nav__dropdown--two,
.nav__group[data-open="true"] > .nav__dropdown--two { display: grid; }

/* Sanftes Einblenden des Dropdowns (nur Desktop) */
@media (min-width: 921px) and (prefers-reduced-motion: no-preference) {
  .nav__group:hover > .nav__dropdown,
  .nav__group:focus-within > .nav__dropdown,
  .nav__group[data-open="true"] > .nav__dropdown {
    animation: navDropdownIn 0.22s ease both;
  }
}
@keyframes navDropdownIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav__dropdown h4 {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin: 4px 0 6px;
  padding: 0 12px;
  font-weight: 600;
}
.nav__dropdown h4:not(:first-child) { margin-top: 16px; }
.nav__dropdown a {
  display: block;
  padding: 8px 12px;
  font-size: var(--fs-sm);
  color: var(--c-text);
  border-radius: 6px;
  font-weight: 400;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}
.nav__dropdown a::after { display: none; }
.nav__dropdown a:hover {
  background: var(--c-bg-soft);
  color: var(--c-accent-dark);
  padding-left: 16px;
}
.nav__dropdown a.is-strong { font-weight: 500; }

/* Mobile: alle Unterpunkte immer sichtbar, kein Toggle nötig */
@media (max-width: 920px) {
  /* Block-Layout: Dropdown erscheint natürlich nach dem Trigger-Link */
  .nav__group { display: block; }

  .nav__trigger-link {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--c-bg-muted);
  }
  .nav__trigger-link::after { display: none; }

  /* Pfeil-Button auf Mobile ausblenden — nicht mehr nötig */
  .nav__trigger { display: none; }

  .nav__dropdown {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    border-radius: 0;
    padding: 2px 0 6px;
    margin: 0 0 4px;
    min-width: 0;
    width: 100%;
    display: block; /* immer sichtbar */
  }
  /* --two-Spalten-Layout auf Mobile ebenfalls als Block */
  .nav__dropdown.nav__dropdown--two { display: block; min-width: 0; }

  /* Hover/open-State auf Mobile irrelevant, aber der Vollständigkeit halber: */
  .nav__group:hover > .nav__dropdown,
  .nav__group:hover > .nav__dropdown--two,
  .nav__group:focus-within > .nav__dropdown,
  .nav__group:focus-within > .nav__dropdown--two,
  .nav__group[data-open="true"] > .nav__dropdown,
  .nav__group[data-open="true"] > .nav__dropdown--two { display: block; }

  .nav .nav__dropdown a {
    padding: 7px 16px 7px 20px;
    border-left: 3px solid var(--c-accent);
    border-bottom: none;
    border-radius: 0;
    font-size: 0.875rem;
    color: var(--c-text-muted);
    transition: padding-left 0.15s, color 0.15s;
  }
  .nav .nav__dropdown a:hover { padding-left: 28px; color: var(--c-accent-dark); background: transparent; }
  .nav__dropdown h4 {
    padding: 6px 16px 4px 0;
    border-left: none;
    margin: 0 0 8px;
    font-size: 0.6rem;
  }
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  transition: background-color 0.15s ease;
}
.nav-toggle:hover { background: var(--c-bg-muted); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--c-text); position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    /* Dropdown bündig an die tatsächliche Header-Unterkante hängen
       (absolute relativ zum sticky .header) — kein dunkler Spalt mehr. */
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-lg);
    padding: var(--sp-2) var(--sp-5) var(--sp-5);
    /* Falls Inhalt (z. B. ausgeklappte Untermenüs) doch zu hoch wird: scrollbar als Fallback */
    max-height: calc(100vh - var(--h-topbar) - var(--h-nav));
    overflow-y: auto;
    z-index: 200;
    /* Versteckt */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.2s ease, visibility 0s linear 0s;
  }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--c-bg-muted); }
  .nav a::after { display: none; }
  .nav .btn { margin-top: var(--sp-3); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--h-topbar) - var(--h-nav));
  display: flex; align-items: center;
  color: var(--c-text-invert);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: url('../bilder/projekte/haus-aussenanlage.webp');
  background-size: cover; background-position: center;
  background-attachment: fixed; /* Parallax-Effekt */
  z-index: -2;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,0.55) 0%, rgba(20,18,16,0.75) 100%);
  z-index: -1;
}
.hero__inner { padding-block: var(--sp-9); max-width: 760px; }
.hero__eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-4);
  font-weight: 500;
}
.hero h1 {
  color: var(--c-text-invert);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin-bottom: var(--sp-5);
}
.hero__sub {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: #e7e5e4;
  max-width: 580px;
  margin-bottom: var(--sp-7);
}
.hero__cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* Bei Geräten ohne fixed-attachment-Support (iOS) sauberer Fallback */
@media (max-width: 768px) {
  .hero__bg { background-attachment: scroll; }
  .subhero--img { background-attachment: scroll; }
}
/* Mobile: Hero-Inhalt oben ausrichten statt vertikal zentrieren. Bei kleinen
   Screens ist der Inhalt höher als der verfügbare Platz – zentriert rutschen
   die Buttons in die untere Hälfte und damit hinter den fixen CTA-Balken.
   Oben verankert sitzen sie direkt unter dem Text; zusätzliche Polsterung
   unten (Balkenhöhe 70px) garantiert Abstand zum Balken. */
@media (max-width: 720px) {
  .hero { align-items: flex-start; }
  .hero__inner {
    padding-top: var(--sp-7);
    padding-bottom: calc(70px + var(--sp-6));
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg, .subhero--img { background-attachment: scroll; }
}

/* ---------- Trust-Bar ---------- */
.trustbar {
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-border);
}
.trustbar__inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5);
  padding-block: var(--sp-5);
  align-items: center;
}
.trustbar__item { display: flex; flex-direction: column; gap: 2px; }
.trustbar__num { font-family: var(--font-serif); font-size: var(--fs-xl); color: var(--c-text); }
.trustbar__label { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-text-muted); }
@media (max-width: 720px) {
  .trustbar__inner { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
}

/* ---------- Intro / Two-Column ---------- */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8);
  align-items: start;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; gap: var(--sp-6); } }
.two-col__intro p { font-size: var(--fs-lg); color: var(--c-text); }
.two-col__list { display: flex; flex-direction: column; gap: var(--sp-4); }
.two-col__list-item {
  border-left: 2px solid var(--c-accent);
  padding: 4px 0 4px var(--sp-4);
}
.two-col__list-item strong { display: block; margin-bottom: 2px; }
.two-col__list-item span { color: var(--c-text-muted); font-size: var(--fs-sm); }

/* ---------- Services ---------- */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5);
}
@media (max-width: 920px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }
.service {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  display: flex; flex-direction: column;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.service:hover { border-color: var(--c-accent); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.10); }
.service__mark {
  width: 36px; height: 36px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-4);
  color: var(--c-accent-dark);
}
.service h3 { font-size: var(--fs-lg); font-weight: 600; margin-bottom: var(--sp-2); }
.service p { font-size: var(--fs-sm); color: var(--c-text-muted); margin-bottom: var(--sp-4); flex: 1; line-height: 1.6; }
.service__link {
  font-size: var(--fs-sm); font-weight: 500; color: var(--c-accent-dark);
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 4px;
}
.service__link::after { content: "›"; font-size: 1.1em; line-height: 1; }
.service__link:hover { color: var(--c-accent); text-decoration: underline; }

/* Sekundäre Ratgeber-Links in Service-Cards (außerhalb .prose) */
.content-link {
  font-size: var(--fs-sm);
  color: var(--c-accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--c-accent);
  transition: color 0.15s;
}
.content-link:hover { color: var(--c-accent); }

/* Inhalts-Links in Sections außerhalb .prose (z.B. Orientierungs-Abschnitt, two-col) */
section .container p a:not(.btn):not(.chip):not(.content-link):not(.service__link):not(.service__mark),
section .container li a:not(.btn):not(.chip):not(.content-link):not(.service__link) {
  color: var(--c-accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--c-accent);
  transition: color 0.15s;
}
section .container p a:not(.btn):not(.chip):not(.content-link):not(.service__link):not(.service__mark):hover,
section .container li a:not(.btn):not(.chip):not(.content-link):not(.service__link):hover {
  color: var(--c-accent);
}

/* h3-Heading-Links in Service-Karten (leistungen, planung) */
.two-col h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
.two-col h3 a::after {
  content: " ›";
  color: var(--c-accent);
  font-weight: 400;
}
.two-col h3 a:hover {
  color: var(--c-accent-dark);
}

.service__img {
  margin: calc(-1 * var(--sp-5)) calc(-1 * var(--sp-5)) var(--sp-5);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  height: 200px;
}
.service__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Region Chips ---------- */
.region-chips {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  margin-top: var(--sp-5);
}
.chip {
  display: inline-block;
  padding: 7px 14px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: var(--fs-sm);
  color: var(--c-text);
}
.chip--accent { background: var(--c-text); color: var(--c-text-invert); border-color: var(--c-text); }
a.chip { transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
a.chip:hover { background: var(--c-text); color: var(--c-text-invert); border-color: var(--c-text); }
a.chip--accent:hover { background: var(--c-accent-dark); color: var(--c-text-invert); border-color: var(--c-accent-dark); }

/* ---------- Animated Phone CTA ---------- */
.phone-cta {
  text-align: center;
  padding-block: var(--sp-8);
}
.phone-cta__rotator {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  min-height: 1.4em;
  display: inline-block;
  position: relative;
}
.phone-cta__rotator::after {
  content: "";
  display: inline-block;
  width: 2px; height: 0.9em;
  background: var(--c-accent);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 0.9s steps(2, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.phone-cta__sub { color: #a8a29e; margin-top: var(--sp-3); }
.phone-cta__buttons { margin-top: var(--sp-5); display: inline-flex; gap: var(--sp-3); flex-wrap: wrap; justify-content: center; }

/* ---------- Section Divider (flaches Dreieck) ---------- */
.divider {
  position: relative;
  height: 90px;
  overflow: hidden;
}
.divider svg {
  display: block;
  width: 100%;
  height: calc(100% + 2px);
  margin-top: -1px;
}
/* Übergang: obere Sektionsfarbe „tropft“ als Dreieck in die untere Sektion. */
@media (max-width: 720px) {
  .divider { height: 36px; }
}
.divider--bg-to-soft   { background: var(--c-bg-soft); }
.divider--bg-to-soft   svg path { fill: var(--c-bg); }
.divider--soft-to-bg   { background: var(--c-bg); }
.divider--soft-to-bg   svg path { fill: var(--c-bg-soft); }
.divider--bg-to-muted  { background: var(--c-bg-muted); }
.divider--bg-to-muted  svg path { fill: var(--c-bg); }
.divider--muted-to-bg  { background: var(--c-bg); }
.divider--muted-to-bg  svg path { fill: var(--c-bg-muted); }
.divider--bg-to-dark   { background: var(--c-bg-dark); }
.divider--bg-to-dark   svg path { fill: var(--c-bg); }
.divider--dark-to-bg   { background: var(--c-bg); }
.divider--dark-to-bg   svg path { fill: var(--c-bg-dark); }
.divider--soft-to-muted{ background: var(--c-bg-muted); }
.divider--soft-to-muted svg path { fill: var(--c-bg-soft); }

/* ---------- TL;DR Block ---------- */
.tldr {
  background: var(--c-bg-soft);
  border-left: 4px solid var(--c-accent, #2d6a4f);
  padding: 1.25rem 1.5rem;
  margin: 0 0 2.5rem 0;
  border-radius: 8px;
  font-size: 1.05rem;
  line-height: 1.6;
}
.tldr strong { font-weight: 600; }
.tldr p { margin: 0; }
.tldr p + p { margin-top: 0.6rem; }

/* ---------- Benefits ---------- */
.benefits {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6);
}
@media (max-width: 880px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } }
.benefit__num {
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  color: var(--c-accent);
  margin-bottom: var(--sp-2);
}
.benefit h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
@media (max-width: 920px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-6);
}
.testimonial__quote { font-family: var(--font-serif); font-size: var(--fs-lg); color: var(--c-text); margin-bottom: var(--sp-4); }
.testimonial__meta { font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-muted); }
.testimonial--placeholder { background: repeating-linear-gradient(45deg, var(--c-bg) 0 12px, var(--c-bg-soft) 12px 24px); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.container-narrow .faq { max-width: none; }
h2#faq {
  max-width: 820px;
  margin-inline: auto;
}
.ratgeber-hinweis {
  width: min(calc(100% - (2 * var(--sp-5))), 820px);
  margin-inline: auto;
}
.faq details {
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-4) 0;
}
.faq details:first-of-type { border-top: 1px solid var(--c-border); }
.faq summary {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--sp-4);
  color: var(--c-text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--c-accent-dark);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-top: var(--sp-3); margin-bottom: 0; }

/* ---------- Jobs ---------- */
.jobs {
  display: flex; gap: var(--sp-5); flex-wrap: wrap;
  align-items: center; justify-content: space-between;
}
.jobs__text { flex: 1 1 360px; }
.jobs-strip {
  padding-block: var(--sp-5) !important;
}
.jobs-strip__inner {
  display: flex; gap: var(--sp-4); flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  font-size: var(--fs-sm);
}
.jobs-strip__inner > div { flex: 1 1 460px; color: var(--c-text-muted); }
.jobs-strip__inner strong { color: var(--c-text); }

/* ---------- Contact Form ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--sp-8);
  align-items: start;
}
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; gap: var(--sp-5); } }
.contact-info { display: flex; flex-direction: column; gap: var(--sp-5); }
.contact-info__block strong { display: block; font-family: var(--font-serif); font-size: var(--fs-lg); margin-bottom: 4px; color: var(--c-text); }
.contact-info__block { color: var(--c-text-muted); font-size: var(--fs-sm); }
.contact-info__block a { color: var(--c-text); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form__group { display: flex; flex-direction: column; gap: 6px; }
.form__group--full { grid-column: 1 / -1; }
.form label { font-size: var(--fs-sm); font-weight: 500; color: var(--c-text); }
.form label .req { color: var(--c-accent-dark); }
.form input, .form select, .form textarea {
  font: inherit;
  font-size: var(--fs-sm);
  padding: 11px 13px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  color: var(--c-text);
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--c-text);
  box-shadow: 0 0 0 3px rgba(31,29,27,0.08);
}
.form__check { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--c-text-muted); }
.form__check input { width: auto; margin-top: 3px; }
.form__file { font-size: var(--fs-sm); color: var(--c-text-muted); }
.form__hint {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  line-height: 1.55;
  margin: 0;
  padding: 12px 14px;
  background: var(--c-bg-soft);
  border-radius: var(--radius);
}
.form__hint a { color: var(--c-accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.form__status { grid-column: 1/-1; font-size: var(--fs-sm); min-height: 1.4em; }
.form__status.is-ok    { color: #2e6f3a; font-weight: 500; }
.form__status.is-error { color: #9b2b2b; font-weight: 500; }
.form__status.is-loading::after {
  content: '';
  display: inline-block;
  width: .9em; height: .9em;
  border: 2px solid var(--c-border);
  border-top-color: var(--c-accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
  margin-left: .5em;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 620px) { .form { grid-template-columns: 1fr; } }

/* ---------- Mobile Nav: Stacking-Context Fix ---------- */
.nav-overlay { display: none; }
body.nav-is-open .topbar  { z-index: 210; }
body.nav-is-open .header  { z-index: 200; }

/* ---------- Sticky Mobile CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 70;
  background: var(--c-bg);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -4px 14px rgba(0,0,0,0.06);
  padding: 10px 12px;
  gap: 8px;
}
.mobile-cta .btn { flex: 1; padding: 13px 12px; font-size: var(--fs-sm); }
@media (max-width: 720px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 70px; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--c-bg-darker);
  color: var(--c-text-invert);
  padding-block: var(--sp-8) var(--sp-5);
}
.footer a { color: #cdc8c1; }
.footer a:hover { color: var(--c-accent); }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-6);
  margin-bottom: var(--sp-7);
}
.footer__brand { grid-column: span 1; min-width: 240px; }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } .footer__brand { min-width: 0; } }
.footer h4 { font-family: var(--font-sans); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-accent); margin-bottom: var(--sp-4); }
.footer__brand p { color: #a8a29e; font-size: var(--fs-sm); max-width: 320px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-sm); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--sp-4);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: #a8a29e;
}
.footer__bottom a { color: #a8a29e; }
.footer__bottom a:hover { color: var(--c-accent); }

/* ---------- Subpage-Hero ---------- */
.subhero {
  background: linear-gradient(180deg, #2a2724 0%, #1f1d1b 100%);
  color: var(--c-text-invert);
  padding-block: clamp(3rem, 7vw, var(--sp-9)) clamp(3rem, 6vw, var(--sp-8));
  position: relative;
}
.subhero--img {
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Parallax */
}
/* Dreieck-Divider nach Bild-Hero verstecken — wirkt störend über einem Foto */
.subhero--img + .divider { display: none; }
.subhero--img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,0.65) 0%, rgba(20,18,16,0.80) 100%);
  z-index: 0;
}
.subhero--img > * { position: relative; z-index: 1; }
.subhero h1 { color: var(--c-text-invert); margin-bottom: var(--sp-4); max-width: 820px; }
.subhero p { color: #d6d3d0; max-width: 720px; font-size: var(--fs-lg); }
.subhero__cta { margin-top: var(--sp-5); display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: #b8a48a;
  margin-bottom: var(--sp-4);
}
.breadcrumbs a { color: #cdc8c1; }
.breadcrumbs a:hover { color: var(--c-accent); }
.breadcrumbs__sep { margin: 0 8px; opacity: 0.5; }

/* ---------- Prose / Artikel-Layout ---------- */
.prose {
  max-width: 720px;
  margin-inline: auto;
}
.prose h2 { margin-top: var(--sp-7); }
.prose h3 { margin-top: var(--sp-5); }
.prose p, .prose ul, .prose ol { color: var(--c-text); }
.prose p { font-size: var(--fs-base); line-height: 1.7; }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: var(--sp-4); }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--c-text); }
.prose a:not(.btn):not(.chip) {
  color: var(--c-accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--c-accent);
  transition: color 0.15s;
}
.prose a:not(.btn):not(.chip):hover { color: var(--c-accent); }
.prose blockquote {
  margin: var(--sp-5) 0;
  padding: var(--sp-4) var(--sp-5);
  border-left: 3px solid var(--c-accent);
  background: var(--c-bg-soft);
  font-family: var(--font-serif);
  color: var(--c-text);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-5) 0;
  font-size: var(--fs-sm);
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.prose th, .prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--c-border);
}
.prose th { background: var(--c-bg-soft); font-weight: 600; }
/* Mobile: Tabellen verdichten, damit ohne viel Scrollen mehr lesbar ist.
   Klebrige erste Spalte als Orientierung beim horizontalen Scrollen. */
@media (max-width: 560px) {
  .prose th, .prose td { padding: 7px 9px; font-size: 0.8125rem; }
  .prose th:first-child, .prose td:first-child {
    position: sticky; left: 0;
    background: var(--c-bg);
  }
  .prose th:first-child { background: var(--c-bg-soft); }
}

/* ---------- Inline-CTA-Block ---------- */
.cta-block {
  background: var(--c-bg-dark);
  color: var(--c-text-invert);
  padding: calc(var(--sp-7) + 32px) var(--sp-6);
  text-align: center;
  margin: calc(var(--sp-7) + 8px) 0;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  clip-path: polygon(0% 0%, 50% 32px, 100% 0%, 100% calc(100% - 32px), 50% 100%, 0% calc(100% - 32px));
}
.cta-block h3 { color: var(--c-text-invert); margin-bottom: var(--sp-3); }
.cta-block p { color: #cdc8c1; margin-bottom: var(--sp-4); }
.cta-block__buttons { display: inline-flex; gap: var(--sp-3); flex-wrap: wrap; justify-content: center; }

/* ---------- Utility ---------- */
.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;
}
.placeholder-note {
  display: inline-block;
  font-size: var(--fs-xs);
  color: #9b2b2b;
  background: #fdecec;
  border: 1px dashed #d6a3a3;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* ---------- Projekte-Galerie ---------- */
.projekte-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--sp-4);
}
.projekt-item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-bg-muted);
}
.projekt-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.projekt-item:hover img {
  transform: scale(1.03);
}
.projekt-item--tall {
  grid-row: span 2;
}
.projekt-item--tall img {
  aspect-ratio: 3/4;
}
.projekt-item:not(.projekt-item--tall) img {
  aspect-ratio: 4/3;
}
@media (max-width: 640px) {
  .projekte-grid {
    grid-template-columns: 1fr;
  }
  .projekt-item--tall {
    grid-row: span 1;
  }
  .projekt-item--tall img,
  .projekt-item:not(.projekt-item--tall) img {
    aspect-ratio: 4/3;
  }
}

/* ---------- Scroll-Reveal Animationen ----------
   Elemente bekommen die Klasse .reveal per JS (Inhalt bleibt ohne JS sichtbar)
   und faden beim Scrollen von unten ein. Verzoegerung pro Kachel via
   --reveal-delay fuer den Stagger-Effekt. */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.55s ease,
      transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0s);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}
