/* ==========================================================================
   Holzdesign Kerscher – Stylesheet
   Eine einzige CSS-Datei für alle Seiten.
   Farben und Abstände werden oben als Variablen gepflegt.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design-Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Farben – warme Holz- und Erdtöne */
  --bg:          #faf6ef;  /* Grundfläche, warmes Off-White */
  --bg-alt:      #f1e9dc;  /* abgesetzte Abschnitte */
  --bg-card:     #ffffff;
  --ink:         #241d18;  /* Fließtext */
  --ink-soft:    #6a5b4e;  /* Nebentext */
  --wood:        #8a5a2b;  /* Primärfarbe: Buttons, Links */
  --wood-dark:   #6b4420;  /* Hover */
  --ember:       #b5642e;  /* Akzent, sparsam */
  --moss:        #556043;  /* dunkle Fläche, Werte-Band */
  --deep:        #2b2420;  /* Footer */
  --line:        #e3d8c6;  /* Trennlinien, Rahmen */
  --line-strong: #cdbca2;

  /* Typografie */
  --font-head: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Maße */
  --wrap:      1140px;
  --wrap-text:  68ch;
  --radius:    6px;
  --section-y: clamp(3.5rem, 8vw, 6rem);
  --gap:       clamp(1.5rem, 3vw, 2.5rem);

  --shadow-sm: 0 1px 2px rgba(43, 36, 32, .06), 0 4px 12px rgba(43, 36, 32, .05);
  --shadow-md: 0 2px 6px rgba(43, 36, 32, .08), 0 12px 32px rgba(43, 36, 32, .09);
}

/* --------------------------------------------------------------------------
   2. Reset & Basis
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* damit Ankersprünge nicht unter dem festen Header landen */
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .97rem + .18vw, 1.075rem);
  line-height: 1.7;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p, ul, ol { margin: 0 0 1.15em; }
p { text-wrap: pretty; }

a { color: var(--wood); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--wood-dark); }

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

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

/* --------------------------------------------------------------------------
   3. Layout-Helfer
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 3.75rem); }

.section-head { max-width: var(--wrap-text); margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--ink-soft); margin-bottom: 0; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: .9rem;
}

.lead { font-size: 1.12em; color: var(--ink-soft); }

.prose { max-width: var(--wrap-text); }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: .35em; }

/* "wrap" und "prose" am selben Element: Der Container bleibt im normalen Raster
   linksbündig, begrenzt wird nur die Zeilenlänge des Inhalts. Ohne diese Regel
   würde der gesamte Abschnitt auf Lesebreite schrumpfen und zentriert einrücken. */
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: var(--wrap-text); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--deep);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .7rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--wood);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--wood-dark); color: #fff; transform: translateY(-1px); }
.btn:active { transform: none; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: rgba(138, 90, 43, .07); color: var(--ink); border-color: var(--wood); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--wood-dark); }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.btn-row--spaced { margin-top: 2.25rem; }

/* Textlink mit Pfeil */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  text-decoration: none;
}
.arrow-link::after { content: "→"; transition: transform .18s ease; }
.arrow-link:hover { text-decoration: underline; }
.arrow-link:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   5. Kopfzeile & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  /* Das Logo darf auf schmalen Bildschirmen schrumpfen, damit der Menü-Knopf daneben Platz hat */
  flex: 0 1 320px;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__logo { width: 100%; height: auto; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.18rem;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.brand__sub {
  display: block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: .2rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .5rem .9rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease, top .2s ease;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top:  6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { top: 0; transform: rotate(-45deg); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 1.9rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: .35rem 0;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--wood); border-bottom-color: var(--line-strong); }
.site-nav a[aria-current="page"] { color: var(--wood); border-bottom-color: var(--wood); }
.site-nav .btn { color: #fff; border-bottom: 0; }
.site-nav .btn:hover { color: #fff; border-bottom: 0; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.hero__text h1 { margin-bottom: .5em; }
.hero__text .lead { margin-bottom: 1.8rem; }

/* Bildrahmen mit versetztem Holzblock dahinter */
.framed {
  position: relative;
  isolation: isolate;
}
.framed::before {
  content: "";
  position: absolute;
  inset: auto -14px -14px auto;
  width: 62%;
  height: 62%;
  background: var(--wood);
  opacity: .16;
  border-radius: var(--radius);
  z-index: -1;
}
.framed img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* kleine Merkmalsliste unter dem Hero-Text */
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  font-size: .95rem;
  color: var(--ink-soft);
}
.hero__facts li { display: flex; align-items: center; gap: .45rem; }
.hero__facts svg { flex: none; color: var(--wood); }

/* --------------------------------------------------------------------------
   7. Leistungs-Kacheln
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: var(--gap);
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--ink-soft); font-size: .97rem; }
.card .arrow-link { margin-top: auto; }

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.1rem;
  border-radius: var(--radius);
  background: rgba(138, 90, 43, .1);
  color: var(--wood);
}

/* --------------------------------------------------------------------------
   8. Split-Abschnitte (Text + Bild)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.split__text { max-width: 56ch; }

/* --------------------------------------------------------------------------
   9. Leistungen: Detailabschnitte
   -------------------------------------------------------------------------- */
.leistung {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.leistung:first-of-type { border-top: 0; padding-top: 0; }
.leistung__grid { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
.leistung__nr {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  color: var(--ember);
  letter-spacing: .08em;
}

/* Die Spezifität von ".prose ul" ist höher, deshalb hier ebenfalls qualifiziert. */
.checklist,
.prose .checklist { list-style: none; padding-left: 0; margin: 0 0 1.15em; }
.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: .5rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--wood);
  opacity: .55;
}

/* --------------------------------------------------------------------------
   10. Werte-Band
   -------------------------------------------------------------------------- */
.values { background: var(--moss); color: #f3f1e8; }
.values h2 { color: #fff; }
.values .eyebrow { color: #d9c9a8; }
.values__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
}
.value h3 { color: #fff; margin-bottom: .4em; }
.value p { color: rgba(243, 241, 232, .85); margin-bottom: 0; font-size: .97rem; }
.value__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
  color: #fff;
}

/* --------------------------------------------------------------------------
   11. Ablauf-Schritte
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: var(--gap);
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  padding-top: 1.25rem;
  border-top: 3px solid var(--line-strong);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ember);
  margin-bottom: .35rem;
}
.steps h3 { font-size: 1.08rem; margin-bottom: .3em; }
.steps p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   12. Projekte: Galerie & Lightbox
   -------------------------------------------------------------------------- */
/* Mehrspaltiges Layout, das die natürlichen Bildformate erhält */
.gallery {
  columns: 1;
  column-gap: var(--gap);
}
.gallery__item {
  break-inside: avoid;
  margin: 0 0 var(--gap);
}
.gallery__btn {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  border-radius: var(--radius);
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  text-align: left;
}
.gallery__frame {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
}
.gallery__frame img {
  width: 100%;
  transition: transform .4s ease;
}
.gallery__btn:hover .gallery__frame img { transform: scale(1.035); }
.gallery__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43, 36, 32, .28), transparent 45%);
  opacity: 0;
  transition: opacity .25s ease;
}
.gallery__btn:hover .gallery__frame::after { opacity: 1; }

.gallery__caption {
  display: block;
  padding-top: .8rem;
  font-weight: 600;
  line-height: 1.4;
}
.gallery__meta {
  display: block;
  font-weight: 400;
  font-size: .9rem;
  color: var(--ink-soft);
  margin-top: .15rem;
}

/* Projektvorschau auf der Startseite: gleiche Optik, aber im Raster statt in Spalten.
   Einheitliches Bildformat, damit die Bildunterschriften auf einer Linie stehen. */
.cards .gallery__item { margin: 0; }
.cards .gallery__frame { aspect-ratio: 4 / 3; }
.cards .gallery__frame img { height: 100%; object-fit: cover; }
/* Hochformatiges Bild im Querformat-Rahmen: Ausschnitt weiter unten zeigen */
.cards .gallery__frame--unten img { object-position: 50% 70%; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: rgba(28, 23, 19, .93);
}
.lightbox[open],
.lightbox.is-open { display: flex; }

.lightbox__figure {
  position: relative;
  margin: 0;
  max-width: min(920px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 11rem);
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius);
  background: #1c1713;
}
.lightbox__caption {
  color: #f3ece2;
  text-align: center;
  font-size: .97rem;
  line-height: 1.5;
}
.lightbox__caption strong { display: block; font-size: 1.05rem; }
.lightbox__count { color: rgba(243, 236, 226, .6); font-size: .85rem; }

.lightbox__btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(250, 246, 239, .12);
  border: 1px solid rgba(250, 246, 239, .28);
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .18s ease;
}
.lightbox__btn:hover { background: rgba(250, 246, 239, .28); }
.lightbox__close { top: clamp(1rem, 4vw, 2rem); right: clamp(1rem, 4vw, 2rem); position: fixed; }
.lightbox__prev  { left: clamp(.5rem, 2vw, 1.5rem);  top: 50%; transform: translateY(-50%); position: fixed; }
.lightbox__next  { right: clamp(.5rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); position: fixed; }

body.is-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   13. Kontaktangaben
   Telefon und E-Mail stehen bewusst als reiner Text – nicht verlinkt.
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--gap);
}
.contact-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .6em; }
.contact-card h3 svg { color: var(--wood); flex: none; }
.contact-card p:last-child { margin-bottom: 0; }

/* große, gut lesbare Kontaktzeile */
.contact-value {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  word-break: break-word;
}
/* Lange Werte wie die E-Mail-Adresse etwas kleiner, damit sie sauber vor dem @ umbrechen */
.contact-value--email { font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); }
.contact-note { font-size: .93rem; color: var(--ink-soft); }

/* Platzhalter, die vom Betrieb noch ersetzt werden müssen */
.platzhalter {
  color: var(--ember);
  border-bottom: 2px dashed currentColor;
  font-style: normal;
}

/* Kontakt-Abschluss auf Unterseiten */
.cta-band {
  background: var(--deep);
  color: #f3ece2;
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3rem);
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { color: rgba(243, 236, 226, .82); margin-bottom: 0; }
.cta-band .contact-value { color: #fff; }

/* Kartenbereich */
.map-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
}
.map-card__figure {
  margin: 0;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(138,90,43,.05) 0 12px, transparent 12px 24px),
    var(--bg-alt);
  color: var(--ink-soft);
  text-align: center;
  padding: 1.5rem;
}
.map-card__body { padding: 1.5rem; border-top: 1px solid var(--line); background: var(--bg-card); }

/* --------------------------------------------------------------------------
   14. Fußzeile
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--deep);
  color: rgba(243, 236, 226, .8);
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  margin-top: auto;
}
.site-footer a { color: #f3ece2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: var(--gap);
}
.footer__brand .brand__name { display: block; color: #fff; font-size: 1.25rem; }
.footer__brand .brand__sub  { color: rgba(243, 236, 226, .65); }
.footer__brand p { margin-top: 1rem; font-size: .95rem; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; }
.footer__grid li { margin-bottom: .5rem; }
.footer__contact strong { color: #fff; display: block; font-weight: 600; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(243, 236, 226, .16);
  font-size: .9rem;
}
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }

/* --------------------------------------------------------------------------
   15. Rechtsseiten / einfache Textseiten
   -------------------------------------------------------------------------- */
.page-head {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.page-head p { color: var(--ink-soft); max-width: var(--wrap-text); margin-bottom: 0; }

.todo-box {
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  background: rgba(181, 100, 46, .09);
  border-left: 4px solid var(--ember);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.todo-box p:last-child { margin-bottom: 0; }
.todo-box strong { color: var(--ember); }

.legal h2 { margin-top: 2.25rem; font-size: 1.35rem; }
.legal h2:first-of-type { margin-top: 0; }

/* Fehlerseite */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: clamp(4rem, 12vw, 8rem);
}
.error-page__code {
  font-family: var(--font-head);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  color: var(--line-strong);
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   16. Seitengerüst (Footer immer unten)
   -------------------------------------------------------------------------- */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }

/* --------------------------------------------------------------------------
   17. Sanftes Einblenden beim Scrollen
   -------------------------------------------------------------------------- */
/* Wichtig: Der ausgeblendete Zustand gilt nur, wenn JavaScript aktiv ist
   (Klasse "js" wird im <head> gesetzt). Ohne JavaScript bleibt jeder Inhalt
   sichtbar – die Seite funktioniert dann ohne Animation, aber vollständig. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */

/* Mobile Navigation: bis 860px als aufklappbares Menü */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: .5rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
  }
  .site-nav.is-open { display: block; }

  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav li:last-child { border-bottom: 0; padding-top: 1rem; }
  .site-nav a {
    padding: .95rem 0;
    border-bottom: 0;
    font-size: 1.05rem;
  }
  .site-nav a[aria-current="page"] { border-bottom: 0; }
  .site-nav .btn { width: 100%; }

  .site-header__inner { position: relative; }
}

/* Zweispaltige Layouts ab Tablet */
@media (min-width: 700px) {
  .gallery { columns: 2; }
  .cta-band { grid-template-columns: 1.4fr auto; gap: 2.5rem; }
}

@media (min-width: 861px) {
  .hero__grid  { grid-template-columns: 1.05fr .95fr; }
  .split       { grid-template-columns: 1fr 1fr; }
  .split--flip .split__media { order: -1; }
  .leistung__grid { grid-template-columns: 1.15fr .85fr; }
  .leistung--flip .leistung__media { order: -1; }
}

@media (min-width: 1000px) {
  .gallery { columns: 3; }
}

/* Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* Druckansicht */
@media print {
  .site-header, .site-footer, .lightbox, .btn, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}
