/* ===========================================================================
   Selbstgehostete Schriften — kein Request an Google (DSGVO, siehe docs/planning.md)
   Space Mono ....... SIL Open Font License 1.1
   Source Serif 4 ... SIL Open Font License 1.1  (Variable Font: opsz 8-60, wght 200-900)
   Nur die Subsets latin + latin-ext. Cyrillic/Greek/Vietnamese weggelassen.
   =========================================================================== */

/* Space Mono 400 — latin */
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/space-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Space Mono 400 — latin-ext */
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/space-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Space Mono 700 — latin */
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/space-mono-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Space Mono 700 — latin-ext */
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/space-mono-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Source Serif 4 — variabel, deckt 200-900 aus einer Datei ab */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(fonts/source-serif-4-var-latin.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(fonts/source-serif-4-var-latin-ext.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* ===========================================================================
   YOUNG ROOTS STUDIO — style.css
   Alle Styles der Website. Struktur:
     1. Design-Tokens      5. Layout-Bausteine
     2. Reset              6. Komponenten
     3. Basis-Typografie   7. Seitenspezifisches
     4. Header & Footer    8. Utilities & Motion
   Farben nur über die Tokens in :root ändern — die Kontrastwerte sind
   nachgerechnet (docs/project.md).
   =========================================================================== */

/* --- 1. Design-Tokens ---------------------------------------------------- */

:root {
  /* Hintergrund */
  --bg:            #171110;
  --bg-raised:     #201815;
  --bg-card:       #241b17;
  --bg-light:      #f4ecdf;
  --bg-light-ink:  #241b17;   /* 14.40:1 auf --bg-light */

  /* Text */
  --text:          #efe6d8;   /* 15.11:1 auf --bg */
  --text-dim:      #b6a999;   /*  8.12:1 auf --bg */
  --text-faint:    #948675;   /*  4.76:1 auf --bg-card */

  /* Akzente */
  --accent:        #c8402d;   /* Flächen/Rahmen — NICHT für Fließtext (3.76:1) */
  --accent-text:   #e35b45;   /*  5.20:1 auf --bg — Links auf Dunkel */
  --accent-ink:    #b03625;   /*  5.27:1 auf --bg-light — Links auf Hell */
  --accent-soft:   rgba(200, 64, 45, 0.2);
  --accent-2:      #b8924e;   /*  6.46:1 auf --bg — nie auf --bg-light */
  --on-accent:     #ffffff;   /*  4.97:1 auf --accent — Button-Labels */

  /* Fokus — wird in .section--light umgeschaltet */
  --focus:         #b8924e;

  /* Linien */
  --line:          rgba(239, 230, 216, 0.14);
  --line-strong:   rgba(239, 230, 216, 0.28);

  /* Typografie */
  --font-display: 'Space Mono', 'Courier New', monospace;
  --font-body:    'Source Serif 4', Georgia, 'Times New Roman', serif;

  /* Maße */
  --measure:      68ch;    /* Lesebreite Fließtext */
  --wrap:         1200px;  /* max. Breite breiter Abschnitte */
  --gutter:       clamp(20px, 5vw, 48px);
  --section-y:    clamp(56px, 9vw, 112px);
  --radius:       2px;
  --header-h:     72px;
}

/* Helle Abschnitte kippen die kontrastabhängigen Tokens geschlossen mit,
   damit ein Abschnitt nur diese eine Klasse braucht. */
.section--light {
  --text:        var(--bg-light-ink);
  --text-dim:    #5a4a40;    /* 7.35:1 auf --bg-light */
  --text-faint:  #6b5a4e;
  --accent-text: var(--accent-ink);
  --focus:       #7a5c26;    /* 5.29:1 auf --bg-light — --accent-2 wäre hier unsichtbar */
  --line:        rgba(36, 27, 23, 0.16);
  --line-strong: rgba(36, 27, 23, 0.3);
  background: var(--bg-light);
  color: var(--text);
}

/* --- 2. Reset ------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(17px, 0.6vw + 15.5px, 18px);
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
  margin: 0 0 0.6em;
  /* Deutsche Komposita sind lang: „Datenschutzerklärung" passt bei 360px
     nicht in eine Zeile und schob die Seite um 3px in die Breite.
     hyphens:auto nutzt das Trennwoerterbuch (lang="de" steht auf <html>),
     overflow-wrap greift, wo keine Trennstelle gefunden wird. */
  hyphens: auto;
  overflow-wrap: break-word;
}

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

ul, ol { margin: 0 0 1.15em; padding-left: 1.3em; }
li + li { margin-top: 0.35em; }

a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }

button { font: inherit; }

/* Ein Fokusstil für alles. --focus kippt in hellen Abschnitten automatisch mit. */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 1px;
}

/* --- 3. Basis-Typografie ------------------------------------------------- */

h1 { font-size: clamp(28px, 5vw, 44px); }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
h3 { font-size: 20px; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 1.1em;
}
.section--light .eyebrow { color: var(--accent-ink); }

.lead {
  font-size: clamp(19px, 1.4vw, 22px);
  line-height: 1.55;
  color: var(--text);
}

.muted { color: var(--text-dim); }
.small { font-size: 15px; }

/* --- 4. Header & Footer -------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 200;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top 150ms ease;
}
.skip-link:focus { top: 12px; color: var(--on-accent); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

/* Der milchige Header nur ab 720px.
   backdrop-filter macht ein Element zum umgebenden Block fuer alle
   position:fixed-Nachfahren. Die mobile Navigation liegt im <header> und
   waere damit nicht mehr bildschirmfuellend, sondern nur so gross wie der
   Header selbst (nachgemessen: 360x71 statt 360x740). Unter 720px bleibt
   der Header deshalb schlicht deckend. */
@media (min-width: 720px) {
  .site-header {
    background: rgba(23, 17, 16, 0.88);
    backdrop-filter: blur(10px);
  }
  @supports not (backdrop-filter: blur(10px)) {
    .site-header { background: var(--bg); }
  }
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand__mark { width: 34px; height: 34px; color: var(--accent); flex-shrink: 0; }
.brand:hover .brand__mark { color: var(--accent-text); }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.25;
}
.brand__name span { display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 9px 12px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius);
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent-text); }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list li { margin: 0; }
.nav__link {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}
.nav__link:hover { color: var(--text); border-bottom-color: var(--accent); }
.nav__link[aria-current="page"] { color: var(--accent-text); border-bottom-color: var(--accent); }

.site-footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  padding-block: clamp(44px, 6vw, 72px) 28px;
  margin-top: auto;
}
.site-footer__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.site-footer__grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h2 { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); }
.site-footer__mail {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 20px);
  word-break: break-word;
}
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: 0 0 0.5em; }
.footer-nav a {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--accent-text); }
.site-footer__bottom {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* --- 5. Layout-Bausteine ------------------------------------------------- */

body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }

.section { padding-block: var(--section-y); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text { max-width: calc(var(--measure) + var(--gutter) * 2); }
.stack > * + * { margin-top: clamp(20px, 3vw, 32px); }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* --- 6. Komponenten ------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: #a9351f; color: var(--on-accent); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-text); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Teaser-Karten (Home) */
.teasers {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .teasers { grid-template-columns: 1fr 1fr; } }

.teaser {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 150ms ease, transform 150ms ease;
}
.teaser:hover { border-color: var(--accent); color: inherit; transform: translateY(-2px); }
.teaser img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.teaser__body { padding: clamp(20px, 3vw, 28px); }
/* Semantisch h2 (Abschnittsebene), optisch aber auf h3-Groesse. */
.teaser__body h2 { font-size: 20px; margin-bottom: 0.5em; }
.teaser:hover .teaser__body h2 { color: var(--accent-text); }
.teaser__more {
  display: inline-block;
  margin-top: 0.9em;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* Leistungs-Karten */
.services { display: grid; gap: clamp(24px, 3vw, 36px); grid-template-columns: 1fr; }
@media (min-width: 960px) { .services { grid-template-columns: 1fr 1fr; } }

.service {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.service__body { padding: clamp(24px, 3vw, 34px); }
.service__body h2 { font-size: 20px; }
.service__num {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  display: block;
  margin-bottom: 0.9em;
}
.service__body p { color: var(--text-dim); margin-bottom: 0; }

/* Galerie */
.gallery { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

.gallery__item {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  cursor: zoom-in;
  overflow: hidden;
  transition: border-color 150ms ease;
}
.gallery__item:hover { border-color: var(--accent); }
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 300ms ease, opacity 150ms ease;
}
.gallery__item:hover img { transform: scale(1.03); opacity: 0.92; }

/* Lightbox — <dialog> liefert Fokusfalle, Escape und Backdrop nativ.
   Die Bedienelemente liegen INNERHALB des Dialogkastens. Ausserhalb
   positioniert (top/bottom: -52px) rutschen sie bei hohen Hochformaten aus
   dem sichtbaren Bereich, weil der Dialog dann bereits die volle Hoehe hat. */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(96vw, 1100px);
  max-width: 96vw;
  max-height: 94svh;
  color: var(--text);
  overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 7, 6, 0.94); }

.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  max-width: 100%;
}
.lightbox__figure img {
  /* Platz lassen fuer die Blaetterleiste darunter. */
  max-height: 80svh;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}
.lightbox__btn {
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  color: var(--text);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.lightbox__btn:hover { border-color: var(--accent); color: var(--accent-text); }

/* Schliessen sitzt fest in der oberen rechten Bildschirmecke.
   Der Dialog liegt in der Top-Layer, deshalb bezieht sich position:fixed
   hier auf den Viewport. An die Bildecke gekoppelt wuerde der Button je
   nach Bildformat und Laenge der Bildunterschrift springen. */
.lightbox__close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2;
  background: rgba(23, 17, 16, 0.9);
}

/* Gear-Tabelle */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
.gear {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.6;
  min-width: 560px;
}
.gear th, .gear td { text-align: left; padding: 14px 18px; vertical-align: top; border-bottom: 1px solid var(--line); }
.gear tr:last-child th, .gear tr:last-child td { border-bottom: 0; }
.gear th {
  color: var(--accent-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
  width: 1%;
  background: var(--bg-raised);
}
.gear td { color: var(--text-dim); }
.scroll-hint {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 10px;
}
@media (min-width: 720px) { .scroll-hint { display: none; } }

/* Formular */
.form { display: grid; gap: 22px; max-width: 640px; }
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field .req { color: var(--accent-ink); }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  width: 100%;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: rgba(36, 27, 23, 0.45); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--accent-ink); }
.field__error { font-size: 14px; color: var(--accent-ink); min-height: 0; }
.field__error:empty { display: none; }

.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.field--check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); }
.field--check label { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 15px; color: var(--text); }

/* Honeypot — off-screen statt display:none, das erkennen bessere Bots */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__status {
  font-family: var(--font-display);
  font-size: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid;
}
.form__status:empty { display: none; }
.form__status[data-state="ok"]    { border-color: #2f6b3d; background: rgba(47, 107, 61, 0.12); color: #1f5c2e; }
.form__status[data-state="error"] { border-color: var(--accent-ink); background: rgba(176, 54, 37, 0.1); color: var(--accent-ink); }

/* --- 7. Seitenspezifisches ----------------------------------------------- */

/* Hero */
.hero {
  position: relative;
  min-height: min(78svh, 760px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;          /* zweite Absicherung gegen ueberstehende Medien */
  background: var(--bg-raised);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
/* Das <picture> muss die Hoehe mit durchreichen.
   Ohne die Regel greift height:100% am <img> ins Leere: Bezugsgroesse ist
   nicht .hero__media, sondern das dazwischenliegende <picture>, und dessen
   Hoehe ist auto — also unbestimmt. Das Bild faellt dann auf sein natuerliches
   3:2-Verhaeltnis zurueck und ist je nach Fensterbreite zu hoch (laeuft unten
   sichtbar in den naechsten Abschnitt) oder zu niedrig (Hero bleibt unten leer).
   Gemessen bei 1467x869: Hero 678px, Bild 978px — 300px Ueberstand. */
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom,
    rgba(23, 17, 16, 0.55) 0%,
    rgba(23, 17, 16, 0.2) 35%,
    rgba(23, 17, 16, 0.85) 82%,
    var(--bg) 100%);
}
.hero__inner { width: 100%; padding-block: clamp(40px, 8vw, 80px); }
.hero h1 { margin-bottom: 0; max-width: 18ch; text-shadow: 0 2px 24px rgba(10, 7, 6, 0.6); }
.hero .eyebrow { color: var(--text); opacity: 0.85; }

/* Kompakter Seitenkopf für Unterseiten */
.pagehead { padding-block: clamp(48px, 7vw, 88px) clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.pagehead h1 { margin-bottom: 0.35em; }
.pagehead p { color: var(--text-dim); max-width: var(--measure); margin-bottom: 0; }

/* Bild-Text-Block */
.split { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } }
.split img { border-radius: var(--radius); width: 100%; }
@media (min-width: 960px) { .split--reverse > *:first-child { order: 2; } }

/* Rechtstexte */
.legal h2 { margin-top: 2em; font-size: 20px; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 16px; margin-top: 1.6em; }
.legal p, .legal li { color: var(--text-dim); }
.legal .placeholder {
  background: var(--accent-soft);
  color: var(--text);
  padding: 1px 6px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.9em;
}

/* 404 */
.notfound { display: grid; place-items: center; text-align: center; padding-block: clamp(72px, 14vw, 160px); }
.notfound__code { font-family: var(--font-display); font-size: clamp(56px, 14vw, 120px); color: var(--accent); line-height: 1; margin: 0 0 0.2em; }

/* --- 8. Utilities & Motion ----------------------------------------------- */

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

.center { text-align: center; }
.cta { text-align: center; }
.cta h2 { margin-bottom: 0.5em; }
.cta p { color: var(--text-dim); max-width: 52ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: 1.6em; }

/* Mobile Navigation — Fullscreen-Overlay unter 720px */
@media (max-width: 719px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: var(--bg);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    /* visibility darf NICHT mitanimiert werden: sonst wird das Panel erst am
       Ende der Transition sichtbar, und ein .focus() auf den ersten Link
       direkt nach dem Öffnen laeuft ins Leere (Fokus bliebe auf <body>).
       Beim Oeffnen also sofort umschalten, beim Schliessen um die Dauer der
       Ausblendung verzoegern, damit die Animation noch zu sehen ist. */
    transition: opacity 200ms ease, visibility 0s linear 200ms;
  }
  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transition: opacity 200ms ease, visibility 0s linear 0s;
  }
  .nav__list { flex-direction: column; gap: 28px; text-align: center; }
  .nav__link { font-size: 18px; padding: 8px 0; }
  .nav__close {
    position: absolute;
    top: 18px;
    right: var(--gutter);
    background: none;
    border: 1px solid var(--line-strong);
    color: var(--text);
    width: 44px; height: 44px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
  }
  .nav__close:hover { border-color: var(--accent); color: var(--accent-text); }
}
@media (min-width: 720px) {
  .site-nav { display: block !important; opacity: 1; visibility: visible; }
  .nav__close { display: none; }
}

/* JS aus: Navigation immer sichtbar, Toggle weg */
.no-js .nav-toggle, .no-js .nav__close { display: none; }
.no-js .site-nav { position: static; opacity: 1; visibility: visible; display: block; background: none; }
.no-js .nav__list { flex-direction: row; flex-wrap: wrap; gap: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .lightbox, .hero__media { display: none !important; }
  body { background: #fff; color: #000; }
}
