/* Osteo-Relax – Design-Muster Startseite
   Eigener Code inzWEB, 2026. Keine Vorlage, kein Framework.
   Schrift: Abel (SIL OFL 1.1), lokal. */

@font-face {
  font-family: "Abel";
  src: url("../fonts/abel-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --weiss: #ffffff;
  --sand-50: #f7f4ee;
  --sand-100: #efeae0;
  --sand-200: #e3dccd;
  --grund: #b3ac99;
  --dunkel: #5e5746;
  --dunkel-tief: #463f31;
  --mittel: #7e755e;

  --rand: clamp(20px, 5vw, 72px);
  --breite: 1140px;                 /* Runde 7: Inhaltsbreite auf allen Seiten (vorher 1280px) */
  --lesespalte: 64ch;               /* Runde 7: eine Lesespalte für Fließtext, Abel ist schmal: 64ch ≈ 75–85 Zeichen je Zeile (gemessen, LIESMICH) */
  --abstand: clamp(72px, 9vw, 136px);
  --luft: clamp(28px, 3.2vw, 48px);

  --fs-text: clamp(18px, 0.95rem + 0.3vw, 20px);
  --fs-gross: clamp(21px, 1.1rem + 0.5vw, 25px);
  --fs-h1: clamp(46px, 2rem + 4vw, 92px);
  --fs-h2: clamp(36px, 1.6rem + 2.6vw, 60px);
  --fs-h3: clamp(26px, 1.2rem + 0.9vw, 32px);
  --fs-label: 16px;

  --kopf-h: 93px;                   /* Höhe der Sticky-Leiste inkl. Linie */
}
@media (max-width: 1099.98px) { :root { --kopf-h: 77px; } }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--kopf-h) + 12px);   /* kein verdeckter Fokus (WCAG 2.4.11) */
  scroll-padding-bottom: 104px;                      /* Platz über dem Nach-oben-Knopf */
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--weiss);
  color: var(--dunkel);
  font-family: "Abel", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: var(--fs-text);
  line-height: 1.7;
  font-synthesis: none;            /* Abel hat nur Regular: kein Faux-Bold/-Kursiv */
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
ul { padding: 0; }
h1, h2, h3 { font-weight: 400; margin: 0; line-height: 1.12; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--dunkel); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--dunkel-tief); text-decoration-thickness: 2px; }

main [id] { scroll-margin-top: 12px; }        /* + scroll-padding = Luft unter der Leiste */
[tabindex="-1"]:focus { outline: none; }

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

b, strong {
  font-weight: 400;
  letter-spacing: 0.03em;
  background: linear-gradient(transparent 62%, var(--sand-200) 62%);
}
em { font-style: normal; letter-spacing: 0.04em; }

.nowrap { white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: calc(var(--breite) + 2 * var(--rand));
  margin-inline: auto;
  padding-inline: var(--rand);
}

.label {
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.balken {
  display: block;
  width: 56px;
  height: 3px;
  background: var(--grund);
  margin-bottom: 22px;
}

/* ---------- Sprunglink ---------- */
/* Runde 9: nur für Screenreader sichtbarer Text (z. B. Hinweis „öffnet in neuem Fenster“) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--dunkel);
  color: var(--weiss);
  text-decoration: none;
}
.skip:focus { top: 12px; outline-color: var(--dunkel-tief); }

/* ---------- Topbar ---------- */
.topbar { background: var(--sand-100); font-size: 17px; }
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 36px;
  padding-block: 8px;
}
.topbar p { margin: 0; }
.topbar .label { margin-right: 8px; }
.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--weiss);
  border-bottom: 1px solid var(--sand-200);
}
.kopf__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
}
/* Final: Logo als Inline-Sprite (Adobi, Handlogo A ab 560 px, C darunter); Farbe über currentColor */
.logo-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.marke { display: block; flex: 0 0 auto; color: var(--dunkel); line-height: 0; }
.marke svg { width: auto; fill: currentColor; }   /* display bewusst nur über .marke__a/.marke__c (Spezifität) */
.marke__a { display: block; height: 64px; aspect-ratio: 747.05 / 166; }
.marke__c { display: none; height: 41px; aspect-ratio: 697.5 / 125.83; }

.navi ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px clamp(14px, 1.6vw, 22px);   /* Final: max. 22px (vorher 30px), damit die Navigation neben Logo A (64px) bis 2560 px einzeilig bleibt */
  margin: 0;
  list-style: none;
}
.navi a {
  display: inline-block;
  padding: 10px 0 8px;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.navi a:hover { border-bottom-color: var(--grund); color: var(--dunkel-tief); }
.navi a[aria-current] { border-bottom-color: var(--dunkel); color: var(--dunkel-tief); }

/* Final (Entscheidung Mathias 17.11.): 1100–1279 px Desktop-Navigation einzeilig neben kleinerem Logo A (40px),
   Navigationsabstand fest 14px (steht nach .navi ul, sonst überschreibt dessen gap-Kurzform); ab 1280 px Logo 64px, unter 1100 px Burger (unverändert) */
@media (min-width: 1100px) and (max-width: 1279.98px) {
  .marke__a { height: 40px; }
  .navi ul { column-gap: 14px; }
}

.menue-knopf {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--dunkel);
  border-radius: 999px;
  background: var(--weiss);
  color: var(--dunkel);
  font: inherit;
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.menue-knopf:hover { background: var(--sand-50); }
.menue-knopf__striche,
.menue-knopf__striche::before {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s;
}
.menue-knopf__striche { position: relative; transform: translateY(-3px); }
.menue-knopf__striche::before { content: ""; position: absolute; top: 6px; }
.menue-knopf[aria-expanded="true"] .menue-knopf__striche { transform: rotate(45deg); }
.menue-knopf[aria-expanded="true"] .menue-knopf__striche::before { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 1099.98px) {
  .js .menue-knopf { display: inline-flex; }
  .js .navi {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--weiss);
    border-bottom: 1px solid var(--sand-200);
    box-shadow: 0 18px 30px -18px rgba(70, 63, 49, 0.35);
    display: none;
  }
  .js .navi.ist-offen {
    display: block;
    max-height: calc(100vh - var(--kopf-h));
    max-height: calc(100dvh - var(--kopf-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .js .navi ul {
    flex-direction: column;
    gap: 0;
    max-width: calc(var(--breite) + 2 * var(--rand));
    margin-inline: auto;
    padding: 8px var(--rand) 24px;
  }
  .js .navi li + li { border-top: 1px solid var(--sand-100); }
  .js .navi a {
    display: block;
    padding: 14px 0;
    font-size: 18px;
    border-bottom: 0;
  }
  .js .navi a[aria-current] {
    padding-left: 14px;
    border-left: 3px solid var(--dunkel);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3em;
  }
  .kopf__inner { min-height: 76px; }
}
@media (max-width: 559.98px) {
  .marke__a { display: none; }
  .marke__c { display: block; }
  .topbar { font-size: 16px; }
  .topbar__inner { justify-content: center; gap: 0 22px; }
  .topbar .label { display: none; }
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding-block: var(--abstand); }
.abschnitt--sand { background: var(--sand-100); }
.abschnitt--hell { background: var(--sand-50); }
.abschnitt--sand-200 { background: var(--sand-200); }   /* Runde 4: Gesundheit aktiv */

h2 { font-size: var(--fs-h2); letter-spacing: 0.005em; }
h3 { font-size: var(--fs-h3); }

.kopfzeile { margin-bottom: clamp(36px, 4vw, 60px); }   /* Runde 7: volle Containerbreite (vorher max. 760px) */
.fliess { max-width: var(--lesespalte); }                /* Runde 7: vorher 68ch */
.fliess p { margin-bottom: 1.05em; }
.fliess ul { margin: 0 0 1.05em; padding-left: 1.2em; }
.fliess li { margin-bottom: 0.3em; }
.fliess li::marker { color: var(--dunkel); }

.leitsatz, .termin {
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.6;
}
.leitsatz { font-size: 18px; }
.leitsatz b, .leitsatz strong, .termin b { background: none; letter-spacing: inherit; }
.termin {
  display: inline-block;
  font-size: 18px;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  background: var(--sand-100);
  border-left: 3px solid var(--grund);
}
.mit-leitsatz > b:first-child {
  background: none;
  font-size: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hinweis { padding-left: 18px; border-left: 3px solid var(--grund); }
.hinweis strong { background: none; }

/* ---------- Intro ---------- */
.intro {
  display: grid;
  /* Runde 7: Textspalte = Containerrand + 5/12 der Containerbreite (vorher 5/12 der Fensterbreite) –
     sonst wird die Textspalte bei schmalerem Container zu eng und „willkommen“ bricht mitten im Wort */
  grid-template-columns: minmax(0, calc(max(var(--rand), 50vw - var(--breite) / 2) + min(var(--breite), 100vw - 2 * var(--rand)) * 5 / 12)) minmax(0, 1fr);
  min-height: min(78vh, 720px);
  background: var(--sand-50);
}
.intro__text {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(48px, 6vw, 96px) clamp(28px, 3.5vw, 52px) clamp(48px, 6vw, 96px) max(var(--rand), calc(50vw - var(--breite) / 2));   /* Runde 7: rechts clamp(28px, 3.5vw, 52px) (vorher clamp(32px, 4vw, 72px)), damit „willkommen“ ab 960 px in die Spalte passt (gemessen) */
}
.intro__textinnen { max-width: 470px; width: 100%; }
.intro h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.005em; }
.intro__unterzeile {
  margin-top: 28px;
  font-size: var(--fs-gross);
  line-height: 1.5;
  max-width: 30ch;
  text-wrap: pretty;
}
.intro__aktion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 40px;
}
.intro__bild { position: relative; min-height: 100%; }
.intro__bild img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 30px;
  border-radius: 999px;
  background: var(--dunkel);
  color: var(--weiss);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s;
}
.knopf:hover { background: var(--dunkel-tief); color: var(--weiss); }
.textlink { font-size: var(--fs-gross); text-decoration: none; border-bottom: 1px solid var(--grund); }
.textlink:hover { border-bottom-color: var(--dunkel); }

/* ---------- Begrüßung ---------- */
.begruessung__raster {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}
.begruessung__bild { position: relative; padding: 0 0 28px 28px; }
.begruessung__bild::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72%;
  height: 72%;
  background: var(--sand-200);
}
.begruessung__bild img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 22% 40%;
}
.begruessung__text { font-size: var(--fs-gross); line-height: 1.6; }
.begruessung__text p:first-child { font-size: clamp(25px, 1.2rem + 1vw, 32px); line-height: 1.38; margin-bottom: 1.1em; }
.begruessung__text .gruss { margin-top: 1.6em; }
.begruessung__text .signatur {
  font-size: var(--fs-h3);
  padding-top: 14px;
  border-top: 1px solid var(--grund);
  display: inline-block;
}

/* ---------- Angebote / Karten ---------- */
.karten {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin: 0;
  list-style: none;
}
.karte {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 34px 30px 36px;
  background: var(--weiss);
  border-top: 4px solid var(--grund);
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}
.karte:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -24px rgba(70, 63, 49, 0.45);
  color: var(--dunkel);
}
.karte:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.karte__nr { font-size: 46px; line-height: 1; color: var(--mittel); margin-bottom: 26px; letter-spacing: 0.04em; }
.karte h2 { font-size: clamp(26px, 1.2rem + 0.8vw, 31px); margin-bottom: 14px; hyphens: manual; }
.karte p { font-size: 18px; line-height: 1.6; }

/* ---------- Praxis ---------- */
.galerie {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  grid-template-rows: auto auto;
  gap: clamp(16px, 2vw, 28px);
}
.galerie__bild { position: relative; }
.galerie__bild img { width: 100%; height: 100%; object-fit: cover; }
.galerie__bild--1 { grid-row: span 2; }
.galerie__bild--1 img { aspect-ratio: 4 / 3; }
.galerie__bild--2 img, .galerie__bild--3 img { aspect-ratio: 16 / 11; }
.galerie figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 8px 16px 6px;
  background: var(--weiss);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Akkordeon ---------- */
/* Runde 8: Osteopathie ohne Raster (Runde-7-Raster 4/8 entfällt) – Überschrift oben, Akkordeon über die volle
   Containerbreite; Antworttext nur in diesem Abschnitt ohne Lesespalten-Begrenzung (siehe .themen .akk__inhalt) */
.themen__kopf { margin-bottom: clamp(36px, 4vw, 56px); }

.akkordeon { border-top: 1px solid var(--grund); }
.akk { border-bottom: 1px solid var(--grund); }
.akk summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-size: clamp(21px, 1.05rem + 0.5vw, 25px);
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.akk summary::-webkit-details-marker { display: none; }
.akk summary:hover .akk__titel { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.akk__zeichen {
  position: relative;
  flex: 0 0 36px;
  height: 36px;
  border: 1px solid var(--dunkel);
  border-radius: 50%;
}
.akk__zeichen::before, .akk__zeichen::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--dunkel);
  transform: translate(-50%, -50%);
  transition: transform 0.2s;
}
.akk__zeichen::after { transform: translate(-50%, -50%) rotate(90deg); }
.akk[open] .akk__zeichen::after { transform: translate(-50%, -50%) rotate(0deg); }
.akk[open] .akk__zeichen { background: var(--dunkel); }
.akk[open] .akk__zeichen::before, .akk[open] .akk__zeichen::after { background: var(--weiss); }
.akk__inhalt { padding: 0 4px 32px; }
/* Runde 7: .akk__inhalt.fliess (vorher 61ch) nutzt jetzt die gemeinsame Lesespalte über .fliess */

.akkordeon--karte { border-top: 0; display: grid; gap: 12px; }
.akkordeon--karte .akk { background: var(--weiss); border-bottom: 0; padding-inline: 24px; }
.akkordeon--karte .akk summary { padding-inline: 0; }
.akkordeon--karte .akk__inhalt.fliess { max-width: none; }   /* Runde 7: Boxen Gesundheit aktiv – Text über volle Boxbreite (Wunsch Mathias) */
.themen .akk__inhalt.fliess { max-width: var(--lesespalte); } /* Runde 9: Osteopathie-Antworten unter 960 px wieder in der Lesespalte (Runde 8: max-width:none für alle Breiten) */
@media (min-width: 960px) {
  .themen .akk__inhalt.fliess { max-width: none; }            /* Runde 8/9: ab 960 px volle Containerbreite (Wunsch Mathias) */
  .themen .akk__inhalt,
  .akkordeon--karte .akk__inhalt { font-size: 22px; }         /* Runde 9 (Variante B): Osteopathie-Antworten + Boxen Kurse/Stress ab 960 px 22px (vorher --fs-text 19–20px); Zeilenhöhe 1.7 relativ, wächst mit */
}

/* ---------- Kinesiologie / Mikronährstoffe ---------- */
/* Final: ohne Themenbild-Platzhalter und ohne Raster – wie Osteopathie: Überschrift oben, Text darunter;
   unter 960 px in der Lesespalte (64ch), ab 960 px volle Containerbreite mit 22px (Zeilenhöhe 1.7 vom body) */
.thema__kopf { margin-bottom: clamp(36px, 4vw, 56px); }
.thema__kopf h2 { hyphens: manual; }
@media (min-width: 960px) {
  .thema .fliess { max-width: none; font-size: 22px; }
}

/* ---------- Gesundheit aktiv ---------- */
/* Runde 8: ohne Raster (vorher Überschrift 4/12 links, Einleitung 8/12 rechts) – Überschrift oben,
   Einleitung darunter über die volle Containerbreite. Abstand wie bisher mobil, nach oben bei 56px gedeckelt
   (vorher bis 96px Spaltenabstand). */
.gesund__oben {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: end;
  margin-bottom: clamp(40px, 4.5vw, 64px);
}
/* Runde 7/8: Einleitung ohne Breitenbegrenzung (vorher max. 64ch) */
.gesund__intro { margin: 0; font-size: var(--fs-gross); line-height: 1.6; }
.gesund__raster {                      /* Runde 3: Stressmanagement unter den Kursen */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(48px, 5vw, 72px);
}
.gesund__stress-titel { font-size: var(--fs-h3); margin: 0 0 22px; hyphens: manual; }

/* ---------- Kontakt ---------- */
.kontakt__intro { margin-top: 24px; font-size: var(--fs-gross); line-height: 1.6; }
.kontakt__intro a { white-space: nowrap; }
.kontakt__raster {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(36px, 5vw, 96px);
  align-items: start;
}
.kontakt__liste { margin: 0; list-style: none; display: grid; gap: 34px; }
.kontakt__liste li { display: flex; gap: 20px; align-items: flex-start; }
.kontakt__liste h3 {
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.kontakt__liste p { font-size: var(--fs-gross); line-height: 1.45; }

/* Runde 7: Kontakt-Icons (Adobi), inline-SVG, Farbe über currentColor; dünner Kreis 1px #B3AC99 (Dekoration) */
.kontakt__icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--grund);
  border-radius: 50%;
  color: var(--dunkel);
}
.kontakt__icon svg { display: block; width: 30px; height: 30px; }

.anfahrt { background: var(--sand-50); }
.anfahrt img { width: 100%; height: auto; }
.anfahrt__sockel { padding: 26px 30px 30px; display: grid; gap: 16px; justify-items: start; }
.anfahrt__adresse { font-size: var(--fs-gross); line-height: 1.45; margin: 0; }
.anfahrt__sockel p { margin: 0; }
.anfahrt__quelle { font-size: 16px; line-height: 1.5; }

/* ---------- Fuß ---------- */
.fuss { background: var(--dunkel); color: var(--weiss); padding-block: 64px 120px; }  /* unten frei für Nach-oben */
.fuss__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 28px 48px;
}
.fuss__logo { display: block; height: 64px; width: auto; aspect-ratio: 747.05 / 166; fill: currentColor; }   /* Final: Handlogo A weiß (currentColor) auf #5E5746 */
.fuss a { color: var(--weiss); }
.fuss :focus-visible { outline-color: var(--weiss); }
.fuss__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin: 0;
  list-style: none;
  justify-self: center;
}
.fuss__links a, .fuss__klein a {
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.fuss__links a:hover, .fuss__klein a:hover { border-bottom-color: var(--weiss); color: var(--weiss); }
.fuss__links a[aria-current="page"] { border-bottom: 2px solid var(--weiss); }   /* Runde 5: aktuelle Rechtsseite */
.fuss__klein { margin: 0; font-size: 16px; letter-spacing: 0.06em; }
.fuss__klein a { text-transform: none; letter-spacing: 0.06em; border-bottom-color: rgba(255, 255, 255, 0.6); }

/* ---------- Responsiv ---------- */
@media (max-width: 1199.98px) {
  .karten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 959.98px) {
  .intro { grid-template-columns: 1fr; min-height: 0; }
  .intro__bild { order: -1; }
  .intro__bild img { position: static; aspect-ratio: 3 / 2; }
  .intro__text { justify-content: flex-start; padding: 44px var(--rand) 56px; }
  .intro__textinnen { max-width: 560px; }
  .begruessung__raster,
  .gesund__raster,
  .gesund__oben,
  .kontakt__raster { grid-template-columns: 1fr; }
  .begruessung__bild { max-width: 520px; }
  .galerie { grid-template-columns: 1fr 1fr; }
  .galerie__bild--1 { grid-column: 1 / -1; grid-row: auto; }
  .fuss__inner { grid-template-columns: 1fr; justify-items: start; }
  .fuss__links { justify-self: start; }
}
@media (max-width: 599.98px) {
  .karten { grid-template-columns: 1fr; }
  .karte { padding: 28px 24px 30px; }
  .galerie { grid-template-columns: 1fr; }
  .galerie__bild--2 img, .galerie__bild--3 img { aspect-ratio: 4 / 3; }
  .akkordeon--karte .akk { padding-inline: 18px; }
  .akk summary { padding-block: 18px; }
  .akk__zeichen { flex-basis: 32px; height: 32px; }
  .anfahrt__sockel { padding: 22px 20px 24px; }
  .begruessung__bild { padding: 0 0 18px 18px; }
  .begruessung__bild img { aspect-ratio: 1 / 1; object-position: 18% 35%; }
  .karte {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 20px;
    align-items: baseline;
  }
  .karte__nr { font-size: 34px; margin: 0; grid-row: span 2; }
  .karte h2 { margin-bottom: 8px; }
  .leitsatz, .mit-leitsatz > b:first-child { letter-spacing: 0.1em; }
}
@media (max-width: 379.98px) {
  .marke__c { height: 33px; }
  .kopf__inner { gap: 12px; }
  .menue-knopf { padding: 8px 12px; gap: 8px; letter-spacing: 0.1em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* =========================================================
   Runde 2
   ========================================================= */

/* ---------- Galerie-Links ---------- */
.galerie__link { display: block; height: 100%; cursor: zoom-in; }
.galerie__link img { transition: opacity 0.2s; }
.galerie__link:hover img { opacity: 0.88; }
.galerie__link:focus-visible { outline-offset: 4px; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #2e2a22;
  color: var(--weiss);
}
.lightbox::backdrop { background: #2e2a22; }
.lightbox__rahmen {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px 24px;
  height: 100%;
  padding: clamp(14px, 2.5vw, 32px);
}
.lightbox__figur {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  gap: 16px;
}
.lightbox__bild { max-width: 100%; max-height: calc(100% - 64px); width: auto; height: auto; object-fit: contain; }
.lightbox__unterschrift { font-size: var(--fs-text); letter-spacing: 0.04em; text-align: center; }
.lightbox__zaehler { margin-left: 12px; letter-spacing: 0.12em; }
.lightbox__schliessen { grid-column: 3; grid-row: 1; justify-self: end; }
.lightbox__zurueck { grid-column: 1; grid-row: 2; align-self: center; }
.lightbox__weiter { grid-column: 3; grid-row: 2; align-self: center; }
.lightbox__knopf {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid var(--weiss);
  border-radius: 999px;
  background: transparent;
  color: var(--weiss);
  font: inherit;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.lightbox__knopf:hover { background: var(--weiss); color: #2e2a22; }
.lightbox :focus-visible { outline: 3px solid var(--weiss); outline-offset: 3px; }
.pfeil {
  width: 10px;
  height: 10px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}
.pfeil--links { transform: rotate(45deg); }
.pfeil--rechts { transform: rotate(-135deg); }
.kreuz { position: relative; width: 14px; height: 14px; }
.kreuz::before, .kreuz::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.kreuz::after { transform: translate(-50%, -50%) rotate(-45deg); }
html:has(.lightbox[open]) { overflow: hidden; }

@media (max-width: 699.98px) {
  .lightbox__rahmen {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }
  .lightbox__schliessen { grid-column: 2; }
  .lightbox__figur { grid-column: 1 / -1; }
  .lightbox__zurueck { grid-column: 1; grid-row: 3; justify-self: start; }
  .lightbox__weiter { grid-column: 2; grid-row: 3; justify-self: end; }
}

/* ---------- Nach oben ---------- */
.nach-oben {
  position: fixed;
  right: clamp(16px, 2.5vw, 32px);
  bottom: clamp(16px, 2.5vw, 32px);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 20px 10px 18px;
  border-radius: 999px;
  background: var(--dunkel);
  color: var(--weiss);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(46, 42, 34, 0.6);
  transition: opacity 0.25s, visibility 0.25s, background-color 0.2s;
}
.nach-oben:hover { background: var(--dunkel-tief); color: var(--weiss); }
.nach-oben:focus-visible { outline: 3px solid var(--dunkel); outline-offset: 3px; box-shadow: 0 0 0 3px var(--weiss); }
.nach-oben__pfeil {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-left: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.js .nach-oben:not(.ist-sichtbar) { opacity: 0; visibility: hidden; }
@media (max-width: 599.98px) {
  .nach-oben { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .nach-oben__text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nach-oben { transition: none; }
}

/* =========================================================
   Runde 5: Unterseiten (Vita, Impressum, Datenschutz, 404)
   ========================================================= */
.seitenkopf { background: var(--sand-50); padding-block: clamp(36px, 4.5vw, 64px) clamp(48px, 5.5vw, 88px); }
.seitenkopf h1 { font-size: clamp(42px, 1.8rem + 3vw, 76px); hyphens: manual; }
.pfad ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 0 0 clamp(32px, 4vw, 56px);
  padding: 0;
  list-style: none;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pfad li { display: flex; align-items: center; gap: 12px; }
.pfad li + li::before { content: ""; width: 18px; height: 1px; background: var(--grund); }
.pfad a { text-decoration: none; border-bottom: 1px solid var(--grund); }
.pfad a:hover { border-bottom-color: var(--dunkel); }

/* Lesespalte für lange Texte (Runde 7: gemeinsame Variable, vorher 61ch) */
.lesetext { max-width: var(--lesespalte); }
.lesetext h2 { font-size: var(--fs-h3); margin: 1.9em 0 0.7em; hyphens: manual; }
.lesetext > h2:first-child { margin-top: 0; }
.lesetext ul { margin: 0 0 1.05em; padding-left: 1.2em; }
.lesetext li { margin-bottom: 0.3em; }
.lesetext li::marker { color: var(--dunkel); }

/* Vita */
.vita__kopf { font-size: var(--fs-gross); line-height: 1.6; }
.vita__kopf h2 { font-size: var(--fs-h2); margin-bottom: 18px; }
.vita__rolle {
  font-size: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.vita__raster { align-items: start; }
.vita__kopf { margin-bottom: clamp(40px, 4.5vw, 64px); }
@media (min-width: 960px) {
  .vita__raster { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }   /* Runde 7: mehr Platz für den Lesetext (vorher 5/6 wie Begrüßung) */
  .vita__bild { position: sticky; top: calc(var(--kopf-h) + 32px); }
}

/* Impressum: Kontaktblöcke oben zweispaltig */
.recht__oben {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 96px);
  margin-bottom: 1em;               /* Runde 7: volle Containerbreite (vorher max. 1000px) */
}
@media (max-width: 767.98px) { .recht__oben { grid-template-columns: 1fr; } }
/* Final: Impressum/Datenschutz ab 960 px über die volle Inhaltsbreite (statt Lesespalte 64ch) mit 22px, Zeilenhöhe 1.7 vom body; darunter unverändert */
@media (min-width: 960px) {
  .recht .wrap { font-size: 22px; }
  .recht .lesetext { max-width: none; }
}

/* 404 */
.fehler { text-align: left; }
.fehler__code {
  margin: 0 0 8px;
  font-size: clamp(96px, 4rem + 8vw, 200px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--dunkel);
}
.fehler__text { max-width: var(--lesespalte); font-size: var(--fs-gross); line-height: 1.6; margin-top: 24px; }
.fehler__aktionen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

/* Hervorhebungen in Rechts- und Lesetexten ohne Markerstreifen (wirkte dort wie ein Link) */
.recht b, .recht strong, .lesetext b, .lesetext strong { background: none; color: var(--dunkel-tief); letter-spacing: 0.06em; }
