/* ============================================================
   Praxis für ganzheitliche Kieferorthopädie & Funktionstherapie/CMD
   Zentrales Stylesheet – alle Design-Werte als Variablen
   ============================================================ */

/* ---------- Variablen ---------- */
:root {
  /* Farben */
  --farbe-gruen: #818c62;          /* Hauptgrün (Flächen, Akzente) */
  --farbe-gruen-dunkel: #596724;   /* Hover / Akzent dunkel */
  --farbe-oliv: #323b1e;           /* dunkelstes Oliv */
  --farbe-text: #4c553a;           /* Fließtext – dunkles Graugrün, gut lesbar */
  --farbe-text-hell: #eef0e8;      /* Fließtext auf grünen Flächen */
  --farbe-beige: #d9ddcd;          /* Beige-Grün (Sektionen, heller Text) */
  --farbe-beige-hover: #caccb3;    /* Button-Hover */
  --farbe-hellgruen: #ecefe7;      /* sehr helles Grün (Leistungsübersicht) */
  --farbe-weiss: #f7f7f7;          /* Hintergrund hell (Hero, Navigation) */
  --linie: rgba(65, 75, 28, 0.31); /* Trennlinien */
  --hero-bild: url('../images/wald-panorama.jpg'); /* Panorama-Titelbild */

  /* Typografie */
  --schrift: 'Alegreya Sans', 'Segoe UI', sans-serif;
  --groesse-h1: clamp(38px, 5vw, 64px);
  --groesse-h2: clamp(30px, 3.5vw, 42px);
  --groesse-h3: 22px;
  --groesse-text: 21px;
  --groesse-text-gross: clamp(20px, 2vw, 27px);
  --groesse-text-klein: 17px;

  /* Layout */
  --inhaltsbreite: 1200px;
  --seitenrand: 30px;
  --abstand-bereich: clamp(60px, 9vw, 120px);
  --abstand-element: 40px;
  --spalten-abstand: clamp(30px, 5vw, 80px);
  --radius: 12px;
  --navi-hoehe: 110px;
}

/* ---------- Schriften (lokal) ---------- */
@font-face {
  font-family: 'Alegreya Sans';
  src: url('../fonts/AlegreyaSans-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alegreya Sans';
  src: url('../fonts/AlegreyaSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alegreya Sans';
  src: url('../fonts/AlegreyaSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navi-hoehe) + 20px);
}

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: var(--groesse-text);
  line-height: 1.45;
  font-weight: 400;
  color: var(--farbe-text);
  background-color: var(--farbe-beige);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  margin: 0 0 var(--abstand-element);
  font-weight: 300;
  color: var(--farbe-gruen-dunkel);
  text-wrap: pretty;
}
h1 { font-size: var(--groesse-h1); line-height: 1.02; }
h2 { font-size: var(--groesse-h2); line-height: 1.15; }
h3 { font-size: var(--groesse-h3); line-height: 1.15; font-weight: 400; }

p { margin: 0 0 var(--abstand-element); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--farbe-gruen-dunkel); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--farbe-oliv); }

/* Animierter Unterstrich bei allen Textlinks (CD-Design) */
.navigation-links a,
.mobil-menue a,
.leistungs-link,
.link-gross,
.fusszeile-links a,
.rechtstext a,
p a {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.navigation-links a::after,
.mobil-menue a::after,
.leistungs-link::after,
.link-gross::after,
.fusszeile-links a::after,
.rechtstext a::after,
p a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.navigation-links a:hover::after,
.mobil-menue a:hover::after,
.leistungs-link:hover::after,
.link-gross:hover::after,
.fusszeile-links a:hover::after,
.rechtstext a:hover::after,
p a:hover::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .navigation-links a::after,
  .mobil-menue a::after,
  .leistungs-link::after,
  .link-gross::after,
  .fusszeile-links a::after,
  .rechtstext a::after,
  p a::after { transition: none; }
}
/* Buttons und Logo ohne Unterstrich */
.button::after, .navigation-logo::after, .pfeil-runter::after { display: none; }

ul.liste {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.35;
}

/* ---------- Wiederkehrende Bausteine ---------- */
.inhalt {
  max-width: var(--inhaltsbreite);
  margin: 0 auto;
  padding-left: var(--seitenrand);
  padding-right: var(--seitenrand);
}

.button {
  display: inline-block;
  padding: 15px 20px;
  background-color: var(--farbe-gruen);
  color: var(--farbe-beige);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  border-radius: var(--radius);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.button:hover { background-color: var(--farbe-beige-hover); color: var(--farbe-oliv); }
.button.hell { background-color: var(--farbe-beige); color: var(--farbe-gruen-dunkel); }
.button.hell:hover { background-color: var(--farbe-beige-hover); color: var(--farbe-oliv); }

/* Kompakter Anruf-Button mit Telefon-Icon */
.button-anruf {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.trennlinie {
  height: 1px;
  border: none;
  margin: var(--abstand-bereich) 0 0;
  background-color: var(--linie);
}
.trennlinie.hell { background-color: var(--farbe-beige); }

.max-500 { max-width: 500px; }
.max-700 { max-width: 700px; }
.max-800 { max-width: 800px; }

/* Einblend-Animation beim Scrollen
   Versteckt wird nur, wenn JS aktiv ist (body.js-animiert) —
   ohne JS bleibt alles sichtbar. */
.js-animiert .einblenden {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-animiert .einblenden.sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-animiert .einblenden { opacity: 1; transform: none; transition: none; }
}

/* ---------- Navigation ---------- */
.navigation {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--navi-hoehe);
  display: flex;
  align-items: center;
  background-color: rgba(247, 247, 247, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.navigation.gescrollt {
  background-color: rgba(247, 247, 247, 0.95);
  box-shadow: 0 1px 0 var(--linie);
}
.navigation .inhalt {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.navigation-logo img { width: 282px; height: auto; }
.navigation-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.navigation-links a { font-weight: 400; font-size: 20px; }

/* Mobiles Menü */
.menue-knopf {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.menue-knopf span {
  display: block;
  height: 2px;
  background-color: var(--farbe-gruen-dunkel);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menue-knopf[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menue-knopf[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menue-knopf[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobil-menue {
  position: fixed;
  inset: var(--navi-hoehe) 0 auto;
  z-index: 99;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px var(--seitenrand) 30px;
  background-color: var(--farbe-weiss);
  box-shadow: 0 10px 30px rgba(50, 59, 30, 0.12);
}
.mobil-menue.offen { display: flex; }
.mobil-menue a {
  padding: 12px 0;
  font-size: 22px;
  font-weight: 400;
  border-bottom: 1px solid var(--linie);
}
.mobil-menue a:last-child { border-bottom: none; }

/* ---------- Bereiche (Sektionen) ---------- */
.bereich { padding: var(--abstand-bereich) 0; }
.bereich.weiss { background-color: var(--farbe-weiss); }
.bereich.beige { background-color: var(--farbe-beige); }
.bereich.hellgruen { background-color: var(--farbe-hellgruen); }
.bereich.gruen { background-color: var(--farbe-gruen); color: var(--farbe-text-hell); }
.bereich.gruen h2, .bereich.gruen h3 { color: var(--farbe-weiss); }
.bereich.gruen a { color: var(--farbe-text-hell); }
.bereich.gruen a:hover { color: var(--farbe-weiss); }
.bereich.gruen .button.hell { color: var(--farbe-gruen-dunkel); }
.bereich.gruen .button.hell:hover { color: var(--farbe-oliv); }

/* Wald-Vorhang: Der Wrapper liefert die Scrollstrecke, der Sticky-Bereich
   pinnt die Titelseite – der Wald liegt darüber und schiebt sich beim
   Scrollen nach oben, während die Titelseite darunter stehen bleibt. */
.vorhang-wrapper { height: 200svh; }
.vorhang-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background-color: var(--farbe-weiss);
}
.wald-buehne {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-image: var(--hero-bild);
  background-size: cover;
  background-position: 50% 60%;
  box-shadow: 0 30px 80px rgba(50, 59, 30, 0.55);
  will-change: transform;
}
.wald-buehne.weg { visibility: hidden; }

/* Slogan auf dem Waldbild */
.wald-buehne { flex-direction: column; align-items: center; justify-content: center; }
.wald-slogan {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--navi-hoehe) var(--seitenrand) 0;
}
.wald-slogan-boxen {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
}
.wald-slogan-zeile {
  margin: 0 0 20px;
  padding: 14px 26px;
  text-align: center;
  text-wrap: balance;
  max-width: 18ch;
  background-color: rgba(50, 59, 30, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
  font-size: var(--groesse-h1);
  font-weight: 300;
  line-height: 1.12;
  color: var(--farbe-weiss);
}
.wald-slogan-sub {
  margin: 0;
  padding: 10px 24px;
  text-align: center;
  align-self: stretch;
  box-sizing: border-box;
  background-color: rgba(50, 59, 30, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
  font-size: var(--groesse-text-gross);
  font-weight: 400;
  color: var(--farbe-beige);
}

/* Die Titelseite liegt unter dem Vorhang und zieht beim Aufdecken sanft auf.
   Wichtig: kein opacity – sonst scheint der fixierte Footer durch. */
.titel-inhalt-effekt {
  transform: scale(0.94);
  transform-origin: 50% 20%;
  filter: brightness(0.75);
  will-change: transform, filter;
}

/* Scroll-Pfeil mit Label – deutlich sichtbar */
.pfeil-runter {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--farbe-weiss);
  transition: transform 0.2s ease;
}
.pfeil-runter:hover { color: var(--farbe-weiss); transform: translateY(4px); }
.pfeil-label {
  padding: 8px 20px;
  background-color: rgba(50, 59, 30, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.pfeil-kreis {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid rgba(247, 247, 247, 0.8);
  background-color: rgba(50, 59, 30, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: pfeil-huepfen 2s ease-in-out infinite;
}
@keyframes pfeil-huepfen {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}
@media (prefers-reduced-motion: reduce) {
  .pfeil-kreis { animation: none; }
}

/* Titelseite: Headline links auf zarter CD-Fläche, Vogel-Bild rechts –
   beide Hälften wirken als ein durchgehendes Panorama */
.titel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  height: 100svh;
  padding-top: var(--navi-hoehe);
  background: linear-gradient(135deg, var(--farbe-hellgruen) 0%, var(--farbe-beige) 100%);
}
.titel-text {
  padding: calc(var(--navi-hoehe) / 2) var(--seitenrand) 0 max(var(--seitenrand), calc((100vw - var(--inhaltsbreite)) / 2 + var(--seitenrand)));
}
.titel-text p {
  font-size: var(--groesse-text-gross);
  line-height: 1.35;
  max-width: 500px;
}
.titel-bild {
  align-self: stretch;
  background-image: url('../images/vogel.jpg');
  background-size: cover;
  background-position: 50% 35%;
}

/* Zweispaltiger Bereich: Text + Bild
   Oben bündig: Headline-Oberkante = Bild-Oberkante */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spalten-abstand);
  align-items: start;
}
.split.text-oben { align-items: start; }
.split-bild img { width: 100%; height: auto; border-radius: var(--radius); }
/* Optischer Ausgleich: Versalhöhe der Headline exakt auf Bildkante */
.split > div > h2:first-child,
.split > div > .blocktitel:first-child { margin-top: -0.18em; }
.split > div > .dachzeile:first-child { margin-top: 0; }

/* Leistungsübersicht (Karten)
   Subgrid richtet Überschrift, Text und Link über alle Karten
   auf gemeinsamen Grundlinien aus – ruhiges, aufgeräumtes Raster */
.leistungs-karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px 40px;
  align-items: start;
}
.leistungs-karte {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  row-gap: 0;
  align-content: start;
  border-top: 1px solid var(--linie);
  padding-top: 24px;
}
.leistungs-karte h3 {
  margin-bottom: 16px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 400;
  text-wrap: balance;
}
.leistungs-karte p {
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 1.5;
}
.leistungs-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 15px;
  font-weight: 400;
  font-size: 18px;
}
.leistungs-link img { width: 24px; }

/* Dachzeile: kleine Fachnote über einer Headline */
.dachzeile {
  margin-bottom: 14px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--farbe-gruen);
}

/* Blocktitel: semantisch h3, optisch auf h2-Ebene (SEO-Hierarchie) */
.blocktitel {
  font-size: var(--groesse-h2);
  line-height: 1.15;
  font-weight: 300;
}

/* Zusatzzeile unter einer H2 (z. B. Master-Titel) */
.h2-zusatz {
  display: inline-block;
  margin-top: 12px;
  font-size: var(--groesse-text-klein);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--farbe-gruen);
}

/* Zitat / Markengedanke */
.zitat {
  font-size: var(--groesse-text-gross);
  line-height: 1.4;
  font-style: italic;
}
.zitat-name { font-style: italic; }

/* Werte-Chips (Persönlich · Ganzheitlich · Nachhaltig) */
.werte {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: var(--abstand-element);
}
.wert {
  padding: 10px 22px;
  border: 1px solid var(--linie);
  border-radius: 999px;
  font-size: 18px;
  font-weight: 400;
}

/* Akkordeon: kompakte, aufklappbare Themenblöcke */
.akkordeon {
  margin-top: var(--abstand-bereich);
  border-top: 1px solid var(--linie);
}
.akkordeon details { border-bottom: 1px solid var(--linie); }
.akkordeon summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}
.akkordeon summary::-webkit-details-marker { display: none; }
.akkordeon summary h3 { margin: 0; font-size: var(--groesse-h3); }
.akkordeon summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--farbe-gruen-dunkel);
  border-bottom: 2px solid var(--farbe-gruen-dunkel);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-right: 6px;
}
.akkordeon details[open] summary::after { transform: rotate(225deg); }
.akkordeon summary:hover h3 { color: var(--farbe-oliv); }
.akkordeon-inhalt {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--spalten-abstand);
  align-items: start;
  padding: 4px 0 40px;
}
.akkordeon-inhalt > img { border-radius: var(--radius); }
.akkordeon-inhalt:has(> :only-child) { grid-template-columns: 1fr; max-width: 800px; }
.akkordeon-mitte { margin-left: auto; margin-right: auto; }

/* Drei-Schritte-Leiste (Weg zum Termin) */
.schritte {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spalten-abstand);
}
.schritt h3 { margin-bottom: 12px; font-size: 22px; }
.schritt p { font-size: 18px; line-height: 1.5; }
.schritt-nummer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 50%;
  background-color: var(--farbe-hellgruen);
  color: var(--farbe-gruen-dunkel);
  font-size: 24px;
  font-weight: 400;
}
@media (max-width: 991px) {
  .schritte { grid-template-columns: 1fr; gap: 40px; }
}

/* Zwischen-Überschrift eines Themenblocks */
.themen-einstieg {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.themen-einstieg h2 { margin-bottom: 24px; }
.themen-einstieg p { font-size: var(--groesse-text-gross); line-height: 1.45; }

/* Luft zwischen Einstiegstext und nachfolgendem Inhalt im selben Bereich */
.themen-einstieg + .split,
.themen-einstieg + .akkordeon {
  margin-top: var(--abstand-bereich);
}

/* Bildband (volle Breite, z. B. Philosophie) mit Parallax-Effekt:
   Das Bild ist höher als der Ausschnitt und wird per JS sanft verschoben */
.bildband {
  position: relative;
  height: min(75vh, 640px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--seitenrand);
}
.bildband-hintergrund {
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  height: 140%;
  background-size: cover;
  background-position: 50% 30%;
  will-change: transform;
}
.bildband h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--farbe-weiss);
  font-size: var(--groesse-h1);
  text-shadow: 0 2px 24px rgba(50, 59, 30, 0.45);
  max-width: 800px;
}
.bildband.philosophie .bildband-hintergrund { background-image: url('../images/philosophie-header.jpg'); }
@media (prefers-reduced-motion: reduce) {
  .bildband-hintergrund { top: 0; height: 100%; transform: none !important; }
}

/* Abstände zwischen gestapelten Splits innerhalb eines Bereichs */
.split + .split { margin-top: var(--abstand-bereich); }

/* Kontakt / CTA */
/* Kontakt / Abschluss-CTA */
#kontakt .inhalt { max-width: var(--inhaltsbreite); }
@media (min-width: 992px) {
  #kontakt .split { grid-template-columns: 1fr 1fr; align-items: stretch; }
  #kontakt .split-bild { height: 100%; }
  #kontakt .split-bild img { height: 100%; object-fit: cover; }
}
.kontakt-lead { font-size: var(--groesse-text-gross); line-height: 1.4; }
.kontakt-aktionen {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
}
/* Vertrauenspunkte im Kontaktbereich */
.vertrauen {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.vertrauen li {
  position: relative;
  padding: 18px 0 18px 42px;
  border-bottom: 1px solid var(--linie);
  font-size: var(--groesse-h3);
  line-height: 1.3;
  font-weight: 400;
}
.vertrauen li:first-child { border-top: 1px solid var(--linie); }
.vertrauen li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 27px;
  width: 16px;
  height: 9px;
  border-left: 2px solid var(--farbe-gruen);
  border-bottom: 2px solid var(--farbe-gruen);
  transform: rotate(-45deg);
}

.kontakt-daten p a { font-weight: 400; }
.link-gross {
  display: block;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.35;
  font-weight: 400;
}

/* ---------- Cookie-Hinweis ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 180;
  background-color: var(--farbe-weiss);
  border-top: 1px solid var(--linie);
  box-shadow: 0 -10px 40px rgba(50, 59, 30, 0.16);
  transform: translateY(110%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.sichtbar { transform: none; }
.cookie-inhalt {
  max-width: var(--inhaltsbreite);
  margin: 0 auto;
  padding: 28px var(--seitenrand);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px var(--spalten-abstand);
  align-items: center;
}
.cookie-titel {
  margin: 0 0 8px;
  font-size: var(--groesse-h3);
  font-weight: 400;
  color: var(--farbe-gruen-dunkel);
}
.cookie-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  max-width: 640px;
}
.cookie-knoepfe { display: flex; flex-wrap: wrap; gap: 14px; }
.cookie-knoepfe .button { border: 1px solid transparent; cursor: pointer; font-family: var(--schrift); }
.cookie-knoepfe .button.hell { border-color: var(--linie); }
@media (max-width: 767px) {
  .cookie-inhalt { grid-template-columns: 1fr; padding: 22px var(--seitenrand); }
  .cookie-knoepfe .button { flex: 1; text-align: center; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; }
}

/* ---------- Sound-Knopf (Naturklänge) ---------- */
.sound-knopf {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background-color: var(--farbe-gruen);
  color: var(--farbe-beige);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(50, 59, 30, 0.3);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.sound-knopf:hover { background-color: var(--farbe-gruen-dunkel); transform: scale(1.06); }
.sound-knopf .icon-an { display: none; }
.sound-knopf[aria-pressed="true"] .icon-an { display: block; }
.sound-knopf[aria-pressed="true"] .icon-aus { display: none; }

/* ---------- Signatur-Marke (W) am Seitenende ---------- */
.w-marke {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}
.w-marke.sichtbar { opacity: 1; visibility: visible; transform: none; }
.w-marke { position: fixed; }
.w-kreis {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #1d1d1b;
  border: none;
  padding: 0;
  box-shadow: 0 4px 14px rgba(29, 29, 27, 0.28);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}
.w-kreis::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid #22d3ee;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.w-kreis img { width: 24px; height: 24px; }
.w-marke:hover .w-kreis { transform: scale(1.05); }
.w-marke:hover .w-kreis::after { opacity: 1; transform: scale(1); }
.w-blase {
  padding: 7px 15px;
  border-radius: 999px;
  background-color: rgba(29, 29, 27, 0.92);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #f7f7f7;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.w-marke:hover .w-blase { opacity: 1; transform: none; }
.w-marke.offen .w-blase { opacity: 0; }
.w-marke.offen .w-kreis::after { opacity: 1; transform: scale(1); }

/* Bonbon: kleine Karte mit wachsendem Spross */
.w-karte {
  position: absolute;
  right: 0;
  bottom: 54px;
  width: 260px;
  padding: 22px 22px 20px;
  border-radius: 14px;
  background-color: rgba(29, 29, 27, 0.96);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #f7f7f7;
  box-shadow: 0 14px 44px rgba(29, 29, 27, 0.4);
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  transform-origin: 90% 100%;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.w-karte[hidden] { display: none; }
.w-marke.offen .w-karte { opacity: 1; transform: none; }
.w-karte-titel {
  margin: 14px 0 6px;
  font-size: 17px;
  font-weight: 400;
  color: #22d3ee;
}
.w-karte-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #e8e8e4;
}
/* Spross wächst beim Öffnen */
.w-spross path {
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
}
.w-marke.offen .w-spross .w-boden { animation: w-zeichnen 0.7s ease forwards; }
.w-marke.offen .w-spross .w-stamm { animation: w-zeichnen 1.3s cubic-bezier(0.33, 0.9, 0.4, 1) 0.45s forwards; }
.w-marke.offen .w-spross .w-blatt-l { animation: w-zeichnen 0.8s ease 1.4s forwards; }
.w-marke.offen .w-spross .w-blatt-r { animation: w-zeichnen 0.8s ease 1.8s forwards; }
.w-marke.offen .w-spross .w-blatt-l2 { animation: w-zeichnen 0.8s ease 2.2s forwards; }
.w-marke.offen .w-spross .w-blatt-r2 { animation: w-zeichnen 0.8s ease 2.6s forwards; }
@keyframes w-zeichnen { to { stroke-dashoffset: 0; } }
.w-marke::after { display: none; }
@media (max-width: 600px) {
  .w-marke { right: 16px; bottom: 16px; }
  .w-blase { display: none; }
  .w-karte { width: min(260px, calc(100vw - 48px)); }
}
@media (prefers-reduced-motion: reduce) {
  .w-marke, .w-kreis, .w-kreis::after, .w-blase, .w-karte { transition: none; }
  .w-spross path { stroke-dashoffset: 0; animation: none !important; }
}

/* Sound-Knopf blendet aus, sobald die Signatur erscheint */
.sound-knopf {
  transition: background-color 0.2s ease, transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
}
.sound-knopf.ausgeblendet {
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  pointer-events: none;
}

/* ---------- Off-Sheet-Footer: Inhalt schiebt sich über die Fußzeile ---------- */
main {
  position: relative;
  z-index: 1;
  background-color: var(--farbe-weiss); /* deckt den fixierten Footer vollständig ab */
}
body.footer-fixiert .fusszeile {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}
body.footer-fixiert main {
  box-shadow: 0 30px 60px rgba(50, 59, 30, 0.35);
}

/* ---------- Fußzeile ---------- */
.fusszeile { padding: var(--abstand-bereich) 0 60px; }
.fusszeile-spalten {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.fusszeile h3, .blocktitel-klein {
  margin-bottom: 20px;
  font-size: var(--groesse-h3);
  line-height: 1.15;
  font-weight: 400;
  color: var(--farbe-weiss);
}
.fusszeile p { font-size: 18px; line-height: 1.5; }
.fusszeile-marke {
  display: block;
  margin-bottom: 6px;
  color: var(--farbe-weiss);
}
.fusszeile-links { display: flex; flex-direction: column; gap: 8px; }
.fusszeile-links a { font-size: 18px; align-self: start; width: fit-content; }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.rechtstext { padding-top: calc(var(--navi-hoehe) + 60px); }
.rechtstext h1 { margin-bottom: 50px; }
.rechtstext h2 { font-size: 28px; margin: 50px 0 16px; }
.rechtstext h3 { margin: 40px 0 12px; }
.rechtstext p { font-size: 19px; line-height: 1.45; margin-bottom: 20px; }

/* ============================================================
   Responsive Anpassungen
   ============================================================ */
@media (max-width: 991px) {
  :root { --navi-hoehe: 90px; }

  .navigation { background-color: rgba(247, 247, 247, 0.92); }
  .navigation-links { display: none; }
  .navigation-logo img { width: 220px; }
  .menue-knopf { display: flex; }

  .titel {
    grid-template-columns: 1fr;
    grid-template-rows: 40svh 1fr;
    align-items: start;
  }
  .titel-text { padding: 40px var(--seitenrand); }
  .titel-bild { height: auto; order: -1; }

  .split, .split.text-oben { grid-template-columns: 1fr; gap: 40px; }
  .split-bild { order: -1; } /* Bild immer über dem Text */
  .split > div > h2:first-child,
  .split > div > .blocktitel:first-child { margin-top: 0; }
  .akkordeon-inhalt { grid-template-columns: 1fr; }
  .akkordeon-inhalt > img { order: -1; max-height: 320px; width: 100%; object-fit: cover; }

  .leistungs-karten { grid-template-columns: 1fr; align-items: start; }
  .leistungs-karte { grid-template-rows: auto; grid-row: auto; }
  .fusszeile-spalten { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (max-width: 600px) {
  :root {
    --groesse-text: 19px;
    --abstand-element: 28px;
  }
  .navigation .button { display: none; }
  .navigation-logo img { width: 190px; }
  .pfeil-runter { margin-bottom: 28px; }
  .sound-knopf { right: 16px; bottom: 16px; }
  .bildband { height: 380px; }
  .fusszeile-spalten { grid-template-columns: 1fr; }
  .trennlinie { margin-top: 50px; }
}
