/* ==========================================================================
   Elster Glanz — Design System
   ========================================================================== */

/* ---- Lokal gehostete Schriften (Fontsource, OFL) ----------------------
   Standard: Fredoka (Überschriften) + Nunito (Text).
   Zum Vergleich per ?font=b (Quicksand + Nunito) oder ?font=c (Baloo 2 + Mulish).
   Nach der Entscheidung die nicht genutzten Schriften wieder entfernen. */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/fredoka-latin-300-normal.woff2") format('woff2');
}

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/fredoka-latin-400-normal.woff2") format('woff2');
}

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/fredoka-latin-500-normal.woff2") format('woff2');
}

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/fredoka-latin-600-normal.woff2") format('woff2');
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/nunito-latin-400-normal.woff2") format('woff2');
}

@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/mulish-latin-400-normal.woff2") format('woff2');
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/quicksand-latin-400-normal.woff2") format('woff2');
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/nunito-latin-500-normal.woff2") format('woff2');
}

@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/mulish-latin-500-normal.woff2") format('woff2');
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/quicksand-latin-500-normal.woff2") format('woff2');
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/nunito-latin-600-normal.woff2") format('woff2');
}

@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/mulish-latin-600-normal.woff2") format('woff2');
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/quicksand-latin-600-normal.woff2") format('woff2');
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/nunito-latin-700-normal.woff2") format('woff2');
}

@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/mulish-latin-700-normal.woff2") format('woff2');
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/quicksand-latin-700-normal.woff2") format('woff2');
}

@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/baloo-2-latin-400-normal.woff2") format('woff2');
}

@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/baloo-2-latin-500-normal.woff2") format('woff2');
}

@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/baloo-2-latin-600-normal.woff2") format('woff2');
}

/* ---- Utilities -------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Design-Tokens -------------------------------------------------- */
:root {
  /* Farben */
  --bg: #FCF8F3;
  --surface: #EEF6F8;
  --ink: #1F3440;
  --muted: #5A6B75;
  --accent: #2E1F7A;
  --accent-soft: #E6E2F4;
  --whatsapp: #1E7A46;

  /* Einheitliche Button-/Pill-Farben (Buttons + Section-Eyebrows) */
  --accent-green: #7ED6E3;
  --accent-green-hover: #3AAFC2;
  --accent-green-ink: #0D4652;
  --accent-green-ink-hover: #FFFFFF;

  /* Schatten (nur ink-basiert, keine neuen Farben) */
  --shadow-card: 0 1px 3px rgba(31, 52, 64, 0.08);
  --shadow-float: 0 2px 8px rgba(31, 52, 64, 0.18);

  /* Schriften */
  --font-display: 'Fredoka', 'Nunito', sans-serif;
  --font-body: "Nunito", sans-serif;

  /* Typografie-Tokens (Referenz: glade.framer.website), Desktop-Werte siehe
     min-width:900px Override weiter unten. Mobil greifen die Basiswerte der
     jeweiligen Elemente (h2, .eyebrow, Lead-Absätze). */
  --font-size-h2: 60px;
  --letter-spacing-h2: -1.2px;
  --line-height-h2: 66px;

  --font-size-lead: 22px;
  --letter-spacing-lead: -0.2px;
  --line-height-lead: 30.8px;

  --font-size-eyebrow: 14px;
  --letter-spacing-eyebrow: -0.2px;
  --line-height-eyebrow: 14px;

  --font-size-stat: 40px;
  --letter-spacing-stat: -0.8px;
  --line-height-stat: 40px;

  --font-size-stat-label: 22px;
  --letter-spacing-stat-label: -0.2px;
  --line-height-stat-label: 26.4px;

  --font-size-card-title: 36px;
  --letter-spacing-card-title: -0.6px;
  --line-height-card-title: 43.2px;

  --font-size-card-text: 18px;
  --line-height-card-text: 27px;

  --font-size-meta-label: 19px;
  --line-height-meta-label: 22.8px;

  --font-size-meta-value: 16px;
  --line-height-meta-value: 20.8px;

  /* Abstandssystem: nur Vielfache von 8px */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-8: 64px;
  --space-9: 72px;
  --space-10: 80px;
  --space-11: 88px;
  --space-12: 96px;
  --space-14: 112px;

  /* Einheitliche Abstands-Skala für Sections/Karten, überall verwenden statt
     Werte hart in einzelne Sections zu schreiben. */
  --space-section-desktop: 96px;
  --space-section-mobile: 80px;
  --space-block: 48px;   /* Section-Kopf zum Inhalt */
  --space-card: 28px;    /* Innenpolster Karten */
  --space-item: 16px;    /* zwischen Textelementen */

  /* Layout */
  --container-max: 1120px;
  --container-pad: 20px;               /* mobil */

  /* Buttons */
  --btn-radius: 999px;
  --btn-pad-block: 14px;
  --btn-pad-inline: 28px;
  --btn-min-height: 48px;

  /* Karten */
  --card-radius: 16px;
}

@media (min-width: 768px) {
  :root {
    --container-pad: 40px;
  }
}

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

html,
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ---- Basis -------------------------------------------------------------- */
html {
  font-size: 18px;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

@media (min-width: 768px) {
  html {
    font-size: 19px;
  }
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

/* Ausgeglichene Zeilenumbrüche, global statt pro Section */
h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* ---- Fokus-Zustand ------------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- prefers-reduced-motion ---------------------------------------------- */
@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;
    scroll-behavior: auto !important;
  }
}

/* ---- Typografie ----------------------------------------------------------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
}

h1 {
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
}

h2 {
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

@media (min-width: 900px) {
  h2 {
    font-size: clamp(1.65rem, 3vw, 2.55rem);
  }
}

h3 {
  font-weight: 500;
  font-size: 1.25rem;
}

strong,
b {
  font-weight: 600;
}

/* Kursive Display-Akzente, sparsam einsetzen (max. 1-2 Wörter pro Überschrift) */
/* font-synthesis:none verhindert Fake-Kursivierung bei Schriften ohne echtes Italic (z. B. Prata) */
em,
.display-italic {
  font-style: italic;
  font-weight: 500;
  font-synthesis: none;
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: -0.2px;
  color: var(--accent);
}

@media (min-width: 900px) {
  .eyebrow {
    font-size: var(--font-size-eyebrow);
    letter-spacing: var(--letter-spacing-eyebrow);
    line-height: var(--line-height-eyebrow);
  }
}

/* Pill-Badge-Eyebrow, wiederverwendbar für Section-Köpfe (u.a. #einrichtungen, #galerie). */
.section-eyebrow {
  display: inline-block;
  width: fit-content;
  background: #C6E9ED;
  color: #0F5664;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--font-size-eyebrow);
  letter-spacing: var(--letter-spacing-eyebrow);
  line-height: var(--line-height-eyebrow);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: var(--space-3);
}

.muted {
  color: var(--muted);
}

/* ---- Container ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Breitere Variante für Header und Hero */
.container-wide {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 768px) {
  .container-wide {
    padding-inline: 48px;
  }
}

/* ---- Sektionen -------------------------------------------------------------- */
section {
  padding-top: var(--space-section-desktop);
  padding-bottom: var(--space-section-desktop);
}

@media (max-width: 899px) {
  section {
    padding-top: var(--space-section-mobile);
    padding-bottom: var(--space-section-mobile);
  }
}

/* Noch nicht gebaute Sektionen: ID bleibt für die Navigation erhalten, aber kein
   leerer Weißraum. Greift automatisch nicht mehr, sobald eine Sektion Inhalt hat. */
section:empty {
  display: none;
}

/* ---- Buttons ------------------------------------------------------------------ */
/* Einheitlicher Pill-Button (aktuell: CTA-Section, Footer): Text links,
   rundes Icon-Feld rechts. */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: var(--btn-min-height);
  padding: 6px 6px 6px 24px;
  border-radius: var(--btn-radius);
  border: none;
  background-color: var(--accent-green);
  color: var(--accent-green-ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease;
}

.btn-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: rgba(13, 70, 82, 0.12);
  color: var(--accent-green-ink);
  transition: background-color 200ms ease, color 200ms ease;
}

.btn-pill-icon svg {
  width: 16px;
  height: 16px;
}

.btn-pill:hover {
  background-color: var(--accent-green-hover);
  color: var(--accent-green-ink-hover);
}

.btn-pill:hover .btn-pill-icon {
  background-color: rgba(255, 255, 255, 0.18);
  color: var(--accent-green-ink-hover);
}

/* Generischer Button (aktuell: FAQ "Weitere Fragen?") */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: var(--btn-min-height);
  padding: var(--btn-pad-block) var(--btn-pad-inline);
  border-radius: var(--btn-radius);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease,
    border-color 150ms ease, filter 150ms ease;
}

/* Sekundär: Outline in Tannengrün */
.btn-secondary {
  background-color: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-secondary:hover {
  background-color: var(--accent);
  color: #fff;
}

.btn-hero-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  background-color: transparent;
  border: 1.5px solid #3A8F9E;
  color: #FAFDFE;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.1rem;
  border-radius: 999px;
  padding: 12px 26px;
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.btn-hero-primary svg {
  width: 21px;
  height: 21px;
  fill: #8FD0DB;
  flex-shrink: 0;
}

.btn-hero-primary:hover {
  background-color: rgba(58, 175, 194, 0.25);
  border-color: #8FD0DB;
}

.hero-actions .btn-hero-primary {
  border-radius: 20px;
  border-color: #EEF6F8;
  background-color: #0F5664;
}

.hero-actions .btn-hero-primary svg {
  fill: #EEF6F8;
}

.btn-hero-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  background-color: rgba(238, 246, 248, 0.9);
  border: 1.5px solid #0F5664;
  color: #0F5664;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.1rem;
  border-radius: 20px;
  padding: 12px 26px;
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.btn-hero-call:hover {
  background-color: #14707F;
  border-color: #EEF6F8;
  color: #EEF6F8;
}

.btn-hero-call-icon {
  display: none;
}

@media (max-width: 899.98px) {
  .btn-hero-call {
    border-width: 2.5px;
  }
}

@media (min-width: 900px) {
  .btn-hero-call-icon {
    display: flex;
    align-items: center;
  }

  .btn-hero-call-icon svg {
    width: 18px;
    height: 18px;
    transition: transform 200ms ease;
  }

  .btn-hero-call:hover .btn-hero-call-icon svg,
  .district-cta-actions .btn-secondary:hover .btn-hero-call-icon svg {
    transform: translateX(3px);
  }
}

.faq-more-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

@media (min-width: 900px) {
  .faq-more-link {
    border-radius: 20px;
  }
}

@media (max-width: 899.98px) {
  .faq-more-link {
    border-radius: 20px;
  }
}

.faq-more-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.faq-more-link:hover svg {
  transform: translateX(3px);
}

/* ---- Karten ------------------------------------------------------------------- */
.card {
  background-color: var(--surface);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
}

/* ---- Badge (Saison) ------------------------------------------------------------- */
.badge {
  display: inline-block;
  background-color: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--btn-radius);
  padding: var(--space-1) var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background-color: var(--bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
  max-width: 1640px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Header über dem Hero-Bild: äußerer Balken bleibt immer transparent — nur
   die Pill (.header-inner / .m-header-glass) trägt den durchgehenden
   Liquid-Glass-Look. Der ganze Header blendet beim Runterscrollen aus und
   beim Hochscrollen sofort wieder ein (Desktop + Mobile identisch). */
.site-header--transparent {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background-color: transparent;
  transition: transform 300ms ease;
}

@media (max-width: 899.98px) {
  .site-header--transparent {
    transition: transform 250ms ease;
  }
}

/* translateY in Pixeln statt Prozent: .site-header hat auf Mobile keine
   eigene Hoehe (.header-inner ist display:none, .m-header ist absolute
   positioniert und traegt nicht zur Auto-Hoehe bei) — ein Prozentwert
   waere hier immer 0px. Fester Wert deckt die tatsaechliche Header-Hoehe
   (m-header + Glass-Padding, max. ca. 90px) mit Marge sicher ab. */
.site-header--transparent.is-hidden {
  transform: translateY(-200px);
}

.site-header--static {
  position: static;
  display: flow-root;
}

body:has(.kontakt-hero) .site-header--static {
  background-color: #163C47;
}

/* .m-header ist normalerweise absolute positioniert relativ zum fixed
   .site-header, um sich mit ihm ein-/auszublenden. Bisher kam --static nur
   auf Desktop vor, wo .m-header ohnehin display:none ist (kein Konflikt).
   Jetzt kann --static auch auf Mobile aktiv sein (kontakt.html) — dort muss
   .m-header ebenfalls in den normalen Fluss, sonst haette es weiterhin
   keine eigene Hoehe und wuerde nachfolgenden Inhalt ueberlagern statt ihn
   nach unten zu schieben. */
@media (max-width: 899.98px) {
  .site-header--static .m-header {
    position: static;
  }
}

html:has(.kontakt-hero) {
  background-color: #163C47;
}

body:has(.kontakt-hero) {
  margin: 0;
  padding: 0;
  background-color: #163C47;
}

.site-header--transparent .header-inner {
  padding-block: 28px;
}

/* Helle Header-Variante fuer reine Textseiten ohne dunklen Hero (z.B.
   Datenschutz, Impressum). site-nav/site-location/site-phone sind sonst
   fest auf Weiss gesetzt (fuer den transparenten Header ueber dunklem
   Hero) und waeren auf hellem Hintergrund unsichtbar. */
.site-header--light {
  background-color: var(--bg);
}

.site-header--light .site-nav a {
  color: var(--ink);
}

.site-header--light .site-nav a:hover {
  text-decoration-color: var(--ink);
}

.site-header--light .site-location {
  color: var(--ink);
}

.site-header--light .site-phone {
  color: var(--ink);
}

.site-header--light .site-phone:hover {
  text-decoration-color: var(--ink);
}

/* Auf Mobile verhaelt sich --light identisch zu --transparent: fixed,
   blendet beim Scrollen aus/ein. Auf Desktop bekommt --light dieselbe
   zentrierte Pill-Behandlung wie --transparent (siehe unten), nur mit
   hellem statt dunklem Glass-Hintergrund. */
@media (max-width: 899.98px) {
  .site-header--light {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    transition: transform 250ms ease;
  }

  .site-header--light.is-hidden {
    /* translateY in Pixeln statt Prozent, gleicher Grund wie bei
       --transparent: .site-header hat auf Mobile keine eigene Hoehe. */
    transform: translateY(-200px);
  }
}

@media (max-width: 899.98px) {
  .header-inner {
    display: none;
  }
}

@media (min-width: 900px) {
  .site-header--transparent .header-inner {
    width: min(1280px, calc(100vw - 64px));
    margin: 40px auto 0;
    padding: 10px 30px;
    gap: 24px;
    background: rgba(31, 52, 64, 0.18);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
  }

  .site-header--light .header-inner {
    width: min(1280px, calc(100vw - 64px));
    margin: 40px auto 0;
    padding: 10px 30px;
    gap: 24px;
    background: rgba(250, 253, 254, 0.85);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-radius: 999px;
  }
}

.site-header--light .wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.site-header--transparent .wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: #FAFDFE;
}

.header-nav-group {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 28px;
}

.site-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: rgba(250, 253, 254, 0.92);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 6px;
  white-space: nowrap;
  transition: text-decoration-color 150ms ease;
}

.site-nav a:hover {
  text-decoration-color: rgba(250, 253, 254, 0.92);
}

.site-location {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 28px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(250, 253, 254, 0.92);
  white-space: nowrap;
  flex-shrink: 0;
}

.site-location svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.site-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 24px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: #FAFDFE;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: text-decoration-color 150ms ease;
}

.site-phone:hover {
  text-decoration-color: #FAFDFE;
}

.site-phone svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.burger-line {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background-color: #FAFDFE;
}

@media (max-width: 899.98px) {
  .header-nav-group {
    display: none;
  }
}

.m-header {
  display: none;
}

@media (max-width: 899.98px) {
  .m-header {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.8889rem 0.8889rem 0.7778rem;
    z-index: 20;
    box-sizing: border-box;
  }
}

@media (min-width: 768px) {
  .m-header {
    padding-top: 1.3333rem;
  }
}

.m-header-glass {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: clamp(0.6rem, 2.5vw, 0.9rem) clamp(0.55rem, 3vw, 1.5rem);
  border-radius: 1.1111rem;
  background: rgba(31, 52, 64, 0.28);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-sizing: border-box;
  width: 100%;
}

.m-wordmark {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 4.6vw, 1.3rem);
  letter-spacing: 0.03em;
  line-height: 1;
  color: #FAFDFE;
  font-weight: 400;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
  overflow: visible;
  text-decoration: none;
}

.m-menu-btn {
  flex: 0 0 auto;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  margin-block: -8px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3333rem;
  background: transparent;
  border: none;
  color: #FAFDFE;
  cursor: pointer;
}

/* ==========================================================================
   Mobile-Nav (Overlay)
   ========================================================================== */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(31, 52, 64, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 200ms ease;
}

.mobile-nav-close svg {
  max-width: none;
  width: 24px;
  height: 24px;
}

.m-header-glass--open {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  padding: 100px 20px 40px;
  box-sizing: border-box;
  text-align: center;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-nav-links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 28px;
  color: #FAFDFE;
  text-decoration: none;
}

.mobile-nav-location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  color: rgba(250, 253, 254, 0.85);
}

.mobile-nav-location svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mobile-nav-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
  width: auto;
  background-color: transparent;
  border: 1.5px solid rgba(250, 253, 254, 0.4);
  color: #FAFDFE;
  border-radius: 999px;
  padding: 12px 26px;
  min-height: 46px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.mobile-nav-phone:hover {
  background-color: rgba(250, 253, 254, 0.12);
  border-color: rgba(250, 253, 254, 0.7);
}

.mobile-nav-phone svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: rgba(250, 253, 254, 0.75);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  padding-block: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 16px;
  border-radius: 20px;
  background-color: var(--accent);
  overflow: hidden;
  isolation: isolate;
}

/* Hero-Foto als <img> (fetchpriority high), füllt den Rahmen wie vorher background-size: cover */
.hero-bg picture {
  display: contents;
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% center;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 20, 26, 0.45) 0%, rgba(8, 20, 26, 0.22) 32%, rgba(8, 20, 26, 0) 62%);
  pointer-events: none;
}

@media (max-width: 899.98px) {
  .hero-bg::before {
    background: rgba(0, 0, 0, 0.15);
  }
}

@media (max-width: 899.98px) {
  .hero-bg {
    inset: 0;
    border-radius: 0;
  }
}

@media (min-width: 768px) {
  .hero-bg {
    inset: 24px;
  }
}

.hero-content {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 50px;
}

@media (max-width: 899.98px) {
  .hero-content {
    padding-inline: 0.8889rem;
  }

  .hero-text-glass {
    align-self: stretch;
    width: 100%;
  }
}

@media (min-width: 768px) {
  .hero-content {
    padding-bottom: 120px;
  }
}

.hero-eyebrow {
  display: block;
  color: #EEF6F8;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 80ch;
  margin: 0;
  color: #F2F8FA;
}

.hero-title-accent {
  color: #F2F8FA;
  font-style: normal;
}

.hero-title em {
  font-style: normal;
  font-weight: 300;
}

.hero-text-glass {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: flex-start;
  max-width: 100%;
  padding: 32px 36px;
  border-radius: 28px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.45);
}


.hero-break {
  display: block;
}

.hero-break-mobile {
  display: block;
}

@media (min-width: 900px) {
  .hero-break-mobile {
    display: none;
  }
}

.hero-break-desktop {
  display: none;
}

@media (min-width: 900px) {
  .hero-break-desktop {
    display: block;
  }
}

.hero-bottom-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-top: var(--space-2);
}

@media (min-width: 900px) {
  .hero-bottom-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
  }
}

.hero .lead {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1vw, 1rem);
  line-height: 1.55;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 900px) {
  .hero .lead {
    max-width: none;
    flex-shrink: 0;
  }
}

@media (max-width: 899.98px) {
  .hero-text-glass {
    align-items: center;
  }

  .hero-eyebrow,
  .hero-title,
  .hero .lead {
    text-align: center;
  }

  .hero-bottom-row {
    align-items: center;
  }
}

.hero-actions {
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

@media (min-width: 900px) {
  .hero-actions {
    margin-top: 0;
    gap: 3.5rem;
  }

  .hero-actions .btn-hero-primary {
    display: none;
    min-width: 380px;
  }

  .hero-actions .btn-hero-call {
    background-color: rgba(238, 246, 248, 0.9);
    border-color: #0F5664;
    color: #0F5664;
    padding-block: 9px;
    min-height: 38px;
    border-radius: 20px;
    gap: 8px;
    transform: translateX(-5px);
  }

  .hero-actions .btn-hero-call:hover {
    background-color: #14707F;
    border-color: #EEF6F8;
    color: #EEF6F8;
  }
}

.desktop-br {
  display: none;
}

@media (min-width: 700px) {
  .desktop-br {
    display: block;
  }
}

/* Umgekehrt zu .desktop-br: bricht mobil, verschwindet ab Desktop. */
@media (min-width: 900px) {
  .mobile-break {
    display: none;
  }
}

/* Fuer komplett unterschiedliche Texte zwischen Mobile und Desktop,
   z.B. gekuerzte Kartentexte. */
@media (min-width: 900px) {
  .mobile-only {
    display: none;
  }
}

@media (max-width: 899.98px) {
  .desktop-only {
    display: none;
  }
}

/* ==========================================================================
   Vorher/Nachher (Vergleichs-Slider)
   Bewusste Ausnahme von der Interaktivitäts-Regel in CLAUDE.md: einziger
   Drag-Slider der Seite, siehe Abschnitt "Verbote".
   ========================================================================== */
.compare-section {
  background-color: var(--bg);
}

.compare-head {
  max-width: 1200px;
  margin-inline: auto;
  text-align: center;
}

#galerie .compare-head h2 {
  margin-top: var(--space-2);
  margin-inline: auto;
  font-weight: 500;
  font-size: 38px;
  text-align: center;
}

.compare-head h2 em {
  font-style: normal;
}

.compare-lead {
  margin-top: var(--space-3);
  margin-inline: auto;
  max-width: 62ch;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.compare-media {
  display: flex;
  flex-direction: column;
}

.compare-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.compare-caption {
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  text-align: left;
}

.compare-caption-title {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
}

.compare-caption-text {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.about-benefits {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.5rem;
}

.about-benefit-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  padding: var(--space-4);
  background-color: #C6E9ED;
  border-radius: 16px;
  flex: 1;
}

.about-benefit-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--accent);
}

.about-benefit-title {
  display: block;
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1.2;
}

.about-benefit-text {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (min-width: 900px) {
  .compare-head {
    margin-bottom: calc(var(--space-block) + 24px);
  }

  #galerie .compare-head h2 {
    font-size: clamp(1.65rem, 3vw, 2.55rem);
    font-weight: 400;
    white-space: nowrap;
  }

  .compare-lead {
    font-size: clamp(0.95rem, 1vw, 1rem);
    letter-spacing: var(--letter-spacing-lead);
    line-height: var(--line-height-lead);
  }

  .compare-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }

  .about-benefits {
    width: 85%;
    margin-left: 11.25%;
    margin-right: 3.75%;
    gap: calc(1.5rem * 0.85);
  }

  .about-benefit-card {
    padding: calc(var(--space-4) * 0.85);
    border-radius: calc(16px * 0.85);
  }

  .about-benefit-icon {
    width: calc(24px * 0.85 * 1.15);
    height: calc(24px * 0.85 * 1.15);
  }

  .about-benefit-title {
    margin-top: calc(var(--space-3) * 0.85);
    font-size: calc(1.4rem * 0.85 * 1.15);
  }

  .about-benefit-text {
    margin-top: calc(var(--space-2) * 0.85);
    font-size: calc(0.95rem * 0.85 * 1.15);
  }

  .compare-figure {
    width: 85%;
    margin-left: 3.75%;
    margin-right: 11.25%;
  }

  .compare-caption {
    margin-top: calc(var(--space-3) * 0.85);
    gap: calc(var(--space-1) * 0.85);
  }

  .compare-caption-title {
    font-size: calc(1rem * 0.85);
  }

  .compare-caption-text {
    font-size: calc(0.9rem * 0.85);
  }
}

.compare-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
  box-shadow: var(--shadow-float);
}

.compare-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  text-align: center;
}

/* Mobile: nur der Griff soll auf Touch reagieren, nicht die Bildflaeche.
   pointer-events:none macht die Bilder fuer Touch/Maus durchlaessig, Klicks/
   Taps loesen dadurch am darunterliegenden .compare-slider aus (dort haengt
   auf Desktop weiterhin der mousedown-Listener), fuer Touch haengt aber
   kein Listener mehr auf .compare-slider, die Beruehrung laeuft ins Leere. */
@media (max-width: 899.98px) {
  .compare-img {
    pointer-events: none;
  }
}

.compare-placeholder-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--muted);
}

.compare-before {
  background-color: var(--surface);
  background-image: url("assets/images/platzhalter-vorher.svg");
  background-size: cover;
  background-position: center 70%;
}

.compare-after {
  background-color: var(--accent-soft);
  background-image: url("assets/images/platzhalter-nachher.svg");
  background-size: cover;
  background-position: center 85%;
  clip-path: inset(0 0 0 50%);
}

.compare-tag {
  position: absolute;
  top: var(--space-2);
  background-color: rgba(31, 52, 64, 0.55);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  color: #FAFDFE;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: var(--btn-radius);
}

.compare-tag--before {
  left: var(--space-2);
}

.compare-tag--after {
  right: var(--space-2);
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: rgba(250, 253, 254, 0.9);
  transform: translateX(-1px);
  pointer-events: none;
}

.compare-handle-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(31, 52, 64, 0.55);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FAFDFE;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-float);
  pointer-events: auto;
  /* Nur hier, nicht auf .compare-slider: unterbindet das browsereigene
     Scroll-Gesture-Handling waehrend des Ziehens, ohne vertikales Scrollen
     ueber dem Bild einzuschraenken (siehe .compare-slider: touch-action: pan-y). */
  touch-action: none;
}

.compare-handle-grip svg {
  width: 18px;
  height: 18px;
}

.hero-call-link {
  color: #FAFDFE;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-color: rgba(250, 253, 254, 0.45);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
  transition: text-decoration-color 150ms ease;
}

.hero-call-link:hover {
  text-decoration-color: rgba(250, 253, 254, 0.85);
}

.hero a:focus-visible {
  outline: 2px solid #FAFDFE;
  outline-offset: 3px;
}

@media (max-width: 767.98px) {
  .hero-text-glass {
    padding: 24px 36px;
  }

  .hero-title {
    font-size: 1.6rem;
    line-height: 1.25;
  }

  .hero .lead {
    font-size: 1rem;
  }

  .hero-actions {
    width: 100%;
    margin-top: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .btn-hero-primary {
    align-self: center;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    padding-left: 56px;
    padding-right: 56px;
    text-align: center;
  }

  .hero-actions .btn-hero-primary,
  .hero-actions .btn-hero-call {
    align-self: auto;
    width: 100%;
    min-height: var(--btn-min-height);
  }
}

/* ==========================================================================
   Leistungen
   ========================================================================== */
.services-head {
  max-width: 1000px;
  margin-inline: auto;
  text-align: center;
}

#leistungen {
  background-color: #C6E9ED;
}

#leistungen .section-eyebrow {
  display: block;
  width: fit-content;
  margin-inline: auto;
}

#leistungen .services-head h2 {
  margin-top: var(--space-2);
  margin-inline: auto;
  font-weight: 500;
  font-size: 38px;
  text-align: center;
  white-space: normal;
}

.services-subheader {
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

.services-grid {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  gap: 12px;
  padding-inline: calc((100% - 86%) / 2);
  scroll-padding-inline: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-top: var(--space-block);
}

.services-grid::-webkit-scrollbar {
  display: none;
}

.services-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  margin-top: var(--space-4);
  margin-bottom: 8px;
}

.services-dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: rgba(90, 107, 117, 0.35);
  transition: background-color 150ms ease;
}

.services-dot.is-active {
  background-color: #0F5664;
}

@media (min-width: 900px) {
  .services-dots {
    display: none;
  }
}

.service-card {
  position: relative;
  display: flex;
  flex: 0 0 95%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  padding: 0;
  border: none;
  box-shadow: 0 12px 30px rgba(31, 52, 64, 0.3);
  text-decoration: none;
  color: inherit;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

@media (min-width: 900px) {
  .service-card:hover,
  .service-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 24px 50px rgba(31, 52, 64, 0.5);
  }
}

.service-card-arrow {
  position: absolute;
  right: 24px;
  bottom: 20px;
  width: 17px;
  height: 17px;
  color: #0F5664;
  opacity: 0.5;
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
  z-index: 1;
}

.service-card-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
}

.service-card:focus-visible .service-card-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover .service-card-arrow {
    opacity: 1;
    transform: translate(2px, -2px);
  }
}

.service-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 405 / 320;
  background-color: #fff;
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (max-width: 899.98px) {
  .service-card-image {
    aspect-ratio: 405 / 246.4;
  }
}

@media (min-width: 900px) {
  .service-card-image {
    aspect-ratio: 405 / 256;
  }
}

.service-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  object-fit: cover;
}

.service-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 40px 24px var(--space-card);
}

@media (max-width: 899.98px) {
  .service-card-body {
    padding: 20px 24px 18px;
  }
}

@media (min-width: 900px) {
  .service-card-body {
    padding-top: 20px;
  }
}

.service-card-title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Gezielte, desktop-beschränkte Ausnahme von der nowrap-Regel: die Spalte ist
   ab 900px breit genug (~430px), damit kein Overflow-Risiko wie bei den drei
   früheren Fällen besteht. */
@media (min-width: 900px) {
  .services-grid .service-card:nth-child(2) .service-card-title,
  .services-grid .service-card:nth-child(6) .service-card-title {
    white-space: nowrap;
  }
}

.service-card-text {
  margin-top: 15px;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 4.8em;
}

.service-card-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #BFDDE3;
}

.service-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-meta-label {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.2;
}

.service-meta-value {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.3;
}

@media (min-width: 900px) {
  .services-head {
    margin-bottom: var(--space-block);
  }

  #leistungen .services-head h2 {
    font-size: clamp(1.65rem, 3vw, 2.55rem);
    font-weight: 400;
  }

  .services-subheader {
    font-size: clamp(0.95rem, 1vw, 1rem);
    letter-spacing: var(--letter-spacing-lead);
    line-height: var(--line-height-lead);
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    column-gap: 32px;
    row-gap: 32px;
    margin-top: 0;
    overflow-x: visible;
    scroll-snap-type: none;
    padding-inline: 48px;
    scroll-padding-inline: 0;
  }

  .service-card-title {
    font-size: var(--font-size-card-title);
    letter-spacing: var(--letter-spacing-card-title);
    line-height: var(--line-height-card-title);
    min-height: var(--line-height-card-title);
  }

  .service-card-text {
    font-size: var(--font-size-card-text);
    line-height: var(--line-height-card-text);
    min-height: calc(var(--line-height-card-text) * 3);
  }

  .service-meta-label {
    font-size: var(--font-size-meta-label);
    line-height: var(--line-height-meta-label);
  }

  .service-meta-value {
    font-size: var(--font-size-meta-value);
    line-height: var(--line-height-meta-value);
  }
}

/* ==========================================================================
   Jahresverlauf
   ========================================================================== */
#einrichtungen {
  background-color: #C6E9ED;
  padding-top: calc(var(--space-section-mobile) + 48px);
  padding-bottom: calc(var(--space-section-mobile) + 48px);
}

.seasons-head {
  max-width: 1200px;
  margin-inline: auto;
  text-align: center;
}

#einrichtungen .seasons-head h2 {
  margin-top: var(--space-2);
  margin-inline: auto;
  font-weight: 500;
  font-size: 38px;
  text-align: center;
}

.seasons-subheader {
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

.seasons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: calc(var(--space-block) + 24px);
}

.season-card {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / 1;
  background-color: #fff;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  box-shadow: 0 12px 30px rgba(31, 52, 64, 0.3);
  padding: 0;
  text-align: left;
  text-decoration: none;
  transition: transform 150ms ease-out;
  will-change: transform;
}

.season-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 18px 38px rgba(31, 52, 64, 0.38);
  opacity: 0;
  transition: opacity 150ms ease-out;
  pointer-events: none;
}

.season-card:hover,
.season-card:focus-visible {
  transform: translateY(-5px);
}

.season-card:hover::after,
.season-card:focus-visible::after {
  opacity: 1;
}

.season-card:active {
  transform: translateY(-2px);
}

.season-card:active::after {
  opacity: 1;
  box-shadow: 0 8px 18px rgba(31, 52, 64, 0.24);
}

.season-card-arrow {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 17px;
  height: 17px;
  color: #0F5664;
  opacity: 0.5;
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
  z-index: 1;
}

.season-card-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
}

.season-card:focus-visible .season-card-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

@media (hover: hover) and (pointer: fine) {
  .season-card:hover .season-card-arrow {
    opacity: 1;
    transform: translate(2px, -2px);
  }
}

.season-card-illustration {
  position: relative;
  flex: 0 0 65%;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.season-card-illustration::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--accent-soft);
}

.season-card-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
}

.season-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 16px;
}

.season-card-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
}

#friedhofsverzeichnis .season-card-title {
  font-size: clamp(17px, 1.7vw, 22px);
  white-space: nowrap;
}

#friedhofsverzeichnis .season-card-months {
  margin-top: 1.4em;
}

.season-card-months {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
  font-size: var(--font-size-eyebrow);
}

.season-current-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--accent-green);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  border-radius: 999px;
  padding: 3px 9px;
}

/* Verhindert Hover-/Fokus-Flash auf den Karten waehrend der Modal-Exit-Transition.
   dialog.close() gibt den Fokus nativ an die aufrufende Karte zurueck, wodurch
   :focus-visible sonst kurz die Hover-Optik (Lift + Schatten) auf der Karte
   ausloest. pointer-events:none allein verhindert das nicht, da es nur Maus-
   Interaktion blockiert, nicht fokusbasierte Styles. */
.season-modal-closing .season-card {
  pointer-events: none;
}

.season-modal-closing .season-card:focus-visible {
  transform: none;
}

.season-modal-closing .season-card:focus-visible::after {
  opacity: 0;
}

/* ---- Modal -----------------------------------------------------------------
   Weder Oeffnen noch Schliessen verlassen sich auf den nativen
   allow-discrete/@starting-style-Mechanismus fuer <dialog> (browserabhaengig
   unzuverlaessig, siehe .is-closing weiter unten). Stattdessen steuert JS
   zwei Klassen: .is-open blendet nach dem Rendern (unsichtbar, opacity:0)
   sauber ein, .is-closing blendet aus, bevor dialog.close() ueberhaupt
   aufgerufen wird. So ist die Box nie sichtbar, waehrend der Browser intern
   den Top-Layer-Status aendert — das war die Ursache des weissen Aufblitzens
   beim Oeffnen und des Flackerns beim Schliessen. */
.season-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  margin: 0;
  border: none;
  padding: 0;
  max-width: 860px;
  width: calc(100% - 40px);
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  overflow: visible;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.97);
  transition: opacity 200ms ease, transform 200ms ease;
}

.season-modal[open] {
  display: flex;
  flex-direction: column;
}

.season-modal[open].is-open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.season-modal[open].is-closing {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.97);
}

.season-modal::backdrop {
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background-color 200ms ease, backdrop-filter 200ms ease, -webkit-backdrop-filter 200ms ease;
}

.season-modal[open].is-open::backdrop {
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.season-modal[open].is-closing::backdrop {
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

.season-modal-illustration {
  position: relative;
  flex: 0 0 33.3334%;
  background-color: var(--accent-soft);
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.season-modal-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

#season-modal-wohngruppe .season-modal-illustration img {
  object-position: center 10%;
}

.season-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background-color: rgba(250, 253, 254, 0.75);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.season-modal-body {
  padding: var(--space-block) var(--space-block) var(--space-9);
}

.season-modal-title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.2;
}

.season-modal-months {
  margin-top: 4px;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
  font-size: 15px;
}

.season-modal-intro {
  margin-top: var(--space-item);
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.season-modal-divider {
  margin: var(--space-item) 0;
  border: none;
  border-top: 1px solid var(--accent-soft);
}

.season-modal-columns {
  display: grid;
  grid-template-columns: 1.5fr 1px 1fr;
  column-gap: 32px;
}

.season-modal-vdivider {
  width: 1px;
  background-color: var(--accent-soft);
}

@media (max-width: 767.98px) {
  .season-modal-columns {
    display: flex;
    flex-direction: column-reverse;
  }

  .season-modal-vdivider {
    display: block;
    width: 100%;
    height: 1px;
    margin: var(--space-item) 0;
  }
}

.season-modal-list-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: var(--space-2);
}

.season-modal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.season-modal-list li {
  position: relative;
  padding-left: 18px;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

.season-modal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent);
}

.season-modal-dates-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
}

.season-modal-dates-title svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--muted);
}

.season-modal-dates-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: var(--space-2);
}

.season-modal-date-name {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
}

.season-modal-date-value {
  display: block;
  margin-top: 2px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--muted);
}

.season-modal-date-break {
  display: none;
}

@media (min-width: 768px) {
  .season-modal-date-break {
    display: block;
  }
}

.season-modal-result {
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--accent-soft);
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

.season-modal-result strong {
  font-weight: 500;
}

@media (max-width: 899.98px) {
  .seasons-grid {
    grid-template-columns: 1fr;
  }

  .season-card {
    aspect-ratio: 2 / 1;
  }

  .season-card-illustration {
    flex: 0 0 50%;
  }

  #friedhofsverzeichnis .season-card-title {
    font-size: 24px;
  }

  .season-modal {
    width: calc(100% - 40px);
    max-width: none;
    max-height: calc(100vh - 40px);
    aspect-ratio: auto;
  }

  .season-modal-illustration {
    flex: 0 0 auto;
    aspect-ratio: 3 / 2;
  }

  .season-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }
}

/* Friedhofsverzeichnis: Bezirks-Karussell nur unterhalb 768px.
   Mechanik 1:1 vom Leistungen-Karussell (.services-grid / .service-card)
   uebernommen: Breitenverhaeltnis, Peek, Snapping, Gap, Border-Radius,
   Dot-Stil. Unterschied: eine Slide ist hier kein Einzel-Item, sondern
   ein .district-slide-Block mit 4 gestapelten Bezirkskarten (per JS aus
   den 12 Karten gruppiert, siehe script.js). .district-slide bleibt ab
   768px "display: contents", damit die Karten dort ganz normal direkte
   Grid-Kinder von .seasons-grid sind - das Desktop/Tablet-Grid ist von
   der JS-Gruppierung unberuehrt.
   Kein touch-action-Override (wie bei .services-grid) - das erlaubt dem
   Browser, horizontale Wisch-Gesten nativ zu erkennen; touch-action:
   pan-y hätte das blockiert. */
#friedhofsverzeichnis .district-slide {
  display: contents;
}

#friedhofsverzeichnis .district-dots {
  display: none;
}

@media (max-width: 767.98px) {
  #friedhofsverzeichnis .seasons-grid {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    gap: 12px;
    padding-inline: calc((100% - 86%) / 2);
    scroll-padding-inline: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-top: var(--space-block);
  }

  #friedhofsverzeichnis .seasons-grid::-webkit-scrollbar {
    display: none;
  }

  /* Der Slide-Block selbst ist nur ein unsichtbarer Wrapper - keine
     eigene Flaeche, kein eigener Radius. Der Abstand zwischen den 4
     Karten (gap) ist grosszuegig, damit der Seitenhintergrund
     dazwischen durchscheint und jede Karte eigenstaendig wirkt. */
  #friedhofsverzeichnis .district-slide {
    display: flex;
    flex-direction: column;
    flex: 0 0 95%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    gap: 16px;
  }

  /* aspect-ratio auf dem Bild selbst, nicht auf der Karte: entkoppelt
     die Bildhoehe von der Kartenhoehe, die sonst durch den Textinhalt
     (min-content der flex:1-Body) nach oben gedrueckt wird und die
     50%-Bildaufteilung der Karte unwirksam macht. */
  #friedhofsverzeichnis .district-slide .season-card {
    flex: 0 0 auto;
    aspect-ratio: auto;
    background-color: #EEF6F8;
    border-radius: 20px;
  }

  /* Bild-Seitenverhaeltnis entspricht dem der Jahresverlauf-Karten auf
     Mobile (dort: 2/1-Karte mit 50% Bildanteil = 4/1 fuers Bild allein). */
  #friedhofsverzeichnis .district-slide .season-card-illustration {
    flex: 0 0 auto;
    aspect-ratio: 4 / 1;
    border-radius: 20px 20px 0 0;
  }

  #friedhofsverzeichnis .season-card-body {
    padding: 14px 16px;
  }

  #friedhofsverzeichnis .season-card-title {
    font-size: 20px;
  }

  #friedhofsverzeichnis .season-card-months {
    font-size: 13px;
    margin-top: 6px;
  }

  #friedhofsverzeichnis .district-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 11px;
    margin-top: var(--space-4);
    margin-bottom: 8px;
  }

  #friedhofsverzeichnis .district-dot {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: rgba(90, 107, 117, 0.35);
    transition: background-color 150ms ease;
  }

  #friedhofsverzeichnis .district-dot.is-active {
    background-color: #0F5664;
  }
}

@media (min-width: 900px) {
  #einrichtungen {
    padding-top: calc(var(--space-section-desktop) + 72px);
    padding-bottom: calc(var(--space-section-desktop) + 96px);
  }

  .seasons-head {
    margin-bottom: calc(var(--space-block) + 24px);
  }

  #einrichtungen .seasons-head h2 {
    font-size: clamp(1.65rem, 3vw, 2.55rem);
    font-weight: 400;
  }

  .seasons-subheader {
    font-size: clamp(0.95rem, 1vw, 1rem);
    letter-spacing: var(--letter-spacing-lead);
    line-height: var(--line-height-lead);
    white-space: nowrap;
  }

  .seasons-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    max-width: 1560px;
  }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-section {
  background-color: var(--bg);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.faq-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.faq-intro h2 {
  margin-top: var(--space-2);
}

.faq-intro .compare-lead {
  margin-bottom: var(--space-4);
}

@media (max-width: 899.98px) {
  .faq-intro {
    align-items: center;
    text-align: center;
  }
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 2px solid var(--accent-soft);
}

.faq-item:first-child {
  border-top: 2px solid var(--accent-soft);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: none;
  border: none;
  padding: var(--space-3) 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.4;
  cursor: pointer;
}

.faq-chevron {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform 300ms ease;
}

.faq-chevron svg {
  width: 16px;
  height: 16px;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms ease;
}

.faq-item.is-open .faq-answer-wrap {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-inner p {
  max-width: 60ch;
  padding-bottom: var(--space-3);
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

@media (min-width: 900px) {
  .faq-grid {
    grid-template-columns: minmax(320px, 420px) 1fr;
    gap: var(--space-9);
    align-items: start;
  }

  .faq-intro {
    position: sticky;
    top: var(--space-6);
    align-self: start;
  }

  .faq-question {
    font-size: 1.3rem;
  }
}

/* ==========================================================================
   CTA + Footer (kombinierte Abschluss-Section)
   ========================================================================== */
.site-footer {
  background-color: #163C47;
  color: #FAFDFE;
}

.footer-inner {
  padding-block: var(--space-9);
}

.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-cta h2 {
  color: #FAFDFE;
  font-size: clamp(2rem, 7vw, 2.5rem);
  hyphens: none;
  overflow-wrap: normal;
}

@media (min-width: 900px) {
  .footer-cta h2 {
    font-size: clamp(1.65rem, 3vw, 2.55rem);
  }
}

.footer-cta-subheading {
  margin-top: var(--space-4);
  font-family: var(--font-body);
  font-weight: 400;
  color: #FAFDFE;
  font-size: 1.4rem;
}

@media (max-width: 899.98px) {
  .footer-cta-subheading {
    font-size: 1.05rem;
  }
}

.footer-cta-button {
  margin-top: var(--space-8);
  padding: 12px 24px;
  gap: 8px;
  color: #FAFDFE;
  background-color: transparent;
  border: 2px solid #7ED6E3;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: all 250ms ease;
}

@media (min-width: 900px) {
  .footer-cta-button {
    border-radius: 20px;
  }
}

@media (max-width: 899.98px) {
  .footer-cta-button {
    border-radius: 20px;
  }
}

.footer-cta-button:focus,
.footer-cta-button:focus-visible {
  outline: none !important;
}

.footer-cta-button .btn-pill-icon {
  width: auto;
  height: auto;
  background: transparent;
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  color: #FAFDFE;
}

.footer-cta-button .btn-pill-icon svg {
  width: 18px;
  height: 18px;
  transition: transform 200ms ease;
}

.footer-cta-button:hover,
.footer-cta-button:focus-visible {
  color: #FAFDFE;
  background-color: #7ED6E3;
  border-color: #7ED6E3;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.footer-cta-button:hover .btn-pill-icon,
.footer-cta-button:focus-visible .btn-pill-icon {
  background: transparent;
  background-color: transparent;
  border: none;
}

.footer-cta-button:hover .btn-pill-icon svg,
.footer-cta-button:focus-visible .btn-pill-icon svg {
  transform: translateX(3px);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  text-align: left;
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.2;
  color: #FAFDFE;
}

.footer-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  color: #FAFDFE;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.footer-list a {
  color: rgba(250, 253, 254, 0.75);
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-list li {
  color: rgba(250, 253, 254, 0.75);
}

.footer-list a:hover {
  color: #FAFDFE;
}

.footer-nav-columns {
  display: flex;
  gap: var(--space-6);
}

.footer-divider {
  margin: 80px 0 40px;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  margin-top: var(--space-6);
}

.footer-copyright {
  color: rgba(250, 253, 254, 0.6);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 899.98px) {
  .footer-copyright {
    text-align: center;
  }
}

@media (max-width: 899.98px) {
  .footer-top {
    align-items: center;
    text-align: center;
  }

  .footer-col-brand {
    align-items: center;
  }

  .footer-list {
    align-items: center;
  }

  .footer-nav-columns {
    justify-content: center;
  }
}

@media (min-width: 900px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-col-contact,
  .footer-col-nav {
    flex: 0 0 auto;
  }
}

.site-footer a:focus-visible {
  outline-color: #FAFDFE;
}

/* ==========================================================================
   Kontaktseite (kontakt.html)
   ========================================================================== */
.kontakt-hero {
  background-color: #163C47;
  padding-top: 160px;
  padding-bottom: var(--space-section-mobile);
}

/* 160px oben kompensiert den fixed Header, der ueber dem Seitenanfang
   schwebt. Ist der Header static (siehe .site-header--static), steht er
   im normalen Fluss und schiebt den Inhalt bereits selbst nach unten —
   die zusaetzliche Kompensation muss raus, sonst entsteht eine doppelte
   Luecke. Analog zur bestehenden Desktop-Regel weiter unten. */
@media (max-width: 899.98px) {
  .site-header--static ~ main .kontakt-hero {
    padding-top: 40px;
  }
}

.kontakt-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}

.kontakt-hero-column {
  display: flex;
  flex-direction: column;
}

.kontakt-hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.kontakt-info-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 899.98px) {
  .kontakt-hero-column {
    display: contents;
  }

  .kontakt-hero-text {
    align-items: center;
    text-align: center;
    order: 1;
  }

  .kontakt-form-column {
    order: 2;
  }

  .kontakt-info-wrapper {
    align-items: center;
    order: 3;
  }

  .kontakt-info-list,
  .kontakt-info-row {
    align-items: center;
  }

  .kontakt-info-block {
    width: 100%;
  }
}

/* Erzwingt "Jetzt Kontakt" / "aufnehmen" auf allen Breiten. */
.kontakt-heading-br {
  display: none;
}

/* Erzwingt Umbruch nach "persoenlich" im Subheader, nur ab Desktop. */
.kontakt-subheading-br {
  display: none;
}

@media (min-width: 900px) {
  .kontakt-subheading-br {
    display: block;
  }
}

.kontakt-heading {
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-weight: 400;
  color: #FAFDFE;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  line-height: 1.15;
  hyphens: none;
  overflow-wrap: normal;
}

.kontakt-subheading {
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-weight: 400;
  color: rgba(250, 253, 254, 0.75);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 48ch;
}

.kontakt-hero-divider {
  width: 78%;
  margin: var(--space-5) 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.kontakt-info-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}

.kontakt-info-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  width: 100%;
}

.kontakt-info-row .btn-hero-primary {
  order: -1;
  margin-left: 0;
  margin-right: 0;
  border-radius: 20px;
  background-color: transparent;
  border-color: #EEF6F8;
  color: #EEF6F8;
  min-height: var(--btn-min-height);
  margin-top: 9px;
}

.kontakt-info-row .btn-hero-primary svg {
  fill: #EEF6F8;
}

.kontakt-info-row .btn-hero-primary:hover {
  background-color: #EEF6F8;
  border-color: #EEF6F8;
  color: #0F5664;
}

.kontakt-info-row .btn-hero-primary:hover svg {
  fill: #0F5664;
}

.kontakt-info-item--inline {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
}

.kontakt-info-item--inline .kontakt-info-text {
  margin-top: 0;
}

.kontakt-call-number {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.1rem;
  color: #FAFDFE;
  text-decoration: none;
}

.kontakt-call-hours-group {
  width: fit-content;
  margin-inline: auto;
  margin-top: var(--space-2);
  display: grid;
  grid-template-columns: 4.5rem auto;
  column-gap: 0.75rem;
  row-gap: 2px;
  font-variant-numeric: tabular-nums;
}

.kontakt-call-day,
.kontakt-call-time {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #FAFDFE;
}

.kontakt-call-day {
  text-align: left;
}

.kontakt-call-time {
  text-align: right;
}

.kontakt-info-title {
  font-family: var(--font-display);
  font-weight: 400;
  color: #FAFDFE;
  font-size: 1.4rem;
}

/* Mobile: Telefon/Erreichbarkeit als kompakte, zusammengehoerige Einheit
   statt zwei weit auseinanderliegender Bloecke. Telefonnummer groesser
   (wichtigster CTA nach WhatsApp), Uhrzeiten linksbuendig statt rechts-
   buendig (sonst fluchten die Startpunkte der Zeiten nicht), Labels
   kleiner/dezenter im Eyebrow-Stil statt grosser Serif-Ueberschrift, mehr
   Luft vor den Formular-Tabs fuer einen klareren Übergang. */
@media (max-width: 899.98px) {
  .kontakt-info-list {
    gap: var(--space-3);
  }

  .kontakt-info-row {
    gap: var(--space-4);
  }

  .kontakt-call-number {
    font-size: 1.6rem;
  }

  .kontakt-call-time {
    text-align: left;
  }

  .kontakt-call-hours-group {
    width: auto;
    margin-inline: 0;
    grid-template-columns: auto auto;
    justify-content: center;
    gap: 4px 16px;
  }

  .kontakt-info-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: rgba(250, 253, 254, 0.65);
  }

  .kontakt-hero-grid {
    gap: var(--space-10);
  }

  .kontakt-hero-divider {
    display: none;
  }

  .kontakt-info-row {
    display: contents;
  }

  .kontakt-info-wrapper {
    text-align: center;
  }

  .kontakt-info-block--hours {
    order: 1;
  }

  .kontakt-info-block--phone {
    order: 2;
  }

  .kontakt-info-row .btn-hero-primary {
    order: 3;
  }
}

.kontakt-info-text {
  margin-top: var(--space-2);
  font-family: var(--font-body);
  font-weight: 400;
  color: rgba(250, 253, 254, 0.75);
  font-size: 1rem;
  line-height: 1.6;
}

.kontakt-info-text a {
  color: #FAFDFE;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease;
}

.kontakt-info-text a:hover {
  text-decoration-color: #FAFDFE;
}

.kontakt-form-column {
  display: flex;
  flex-direction: column;
}

.kontakt-form-card {
  background-color: #EEF6F8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: var(--space-2) var(--space-6) var(--space-6);
}

@media (max-width: 767.98px) {
  .kontakt-form-card {
    padding: var(--space-2) 18px var(--space-6);
  }
}

.kontakt-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: #FAFDFE;
  border: 1px solid #0F5664;
  border-radius: 999px;
  width: fit-content;
  margin: 0 auto var(--space-4);
  padding: calc(4px * 0.8);
}

.kontakt-toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background-color: #163C47;
  border-radius: 999px;
  transition: transform 280ms ease;
}

.kontakt-toggle[data-active="plan"] .kontakt-toggle-thumb {
  transform: translateX(100%);
}

.kontakt-toggle-btn {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  padding: calc(8px * 0.8) calc(16px * 0.8);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: calc(0.9rem * 0.8);
  line-height: 1.2;
  color: #163C47;
  cursor: pointer;
  border-radius: 999px;
  text-align: center;
  white-space: nowrap;
  transition: color 280ms ease;
}

.kontakt-toggle-btn.is-active {
  color: #FAFDFE;
}

.kontakt-view {
  display: none;
}

.kontakt-view.is-active {
  display: block;
}

/* ---- Survey-Formular (mehrstufig) --------------------------------------- */
.form-section-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: normal;
  line-height: 1.3;
  color: var(--ink);
}

[data-view-panel="quick"] .form-section-heading {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
}

.survey-intro {
  font-size: clamp(10px, calc(4.34vw - 3.21px), 1.5rem);
  text-align: left;
  margin-bottom: var(--space-4);
}

.kontakt-quick-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.kontakt-quick-form[hidden] {
  display: none;
}

.kontakt-quick-form > .survey-field:nth-child(1),
.kontakt-quick-form > .survey-field:nth-child(2) {
  margin-bottom: calc(var(--space-2) - var(--space-4));
}

@media (max-width: 767.98px) {
  .survey-intro {
    font-size: 1.15rem;
    text-align: left;
    margin-bottom: 26px;
  }

  .kontakt-quick-form {
    gap: 26px;
  }

  .kontakt-quick-form > .survey-field:nth-child(1),
  .kontakt-quick-form > .survey-field:nth-child(2) {
    margin-bottom: -13px;
  }
}

.survey-progress {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.survey-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background-color: var(--accent-soft);
  overflow: hidden;
}

.survey-progress-fill {
  height: 100%;
  width: 25%;
  border-radius: 999px;
  background-color: var(--accent-green);
  transition: width 250ms ease;
}

.survey-progress-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--muted);
}

.survey-step {
  display: none;
  flex-direction: column;
  gap: var(--space-3);
}

.survey-step[data-step="7"] {
  gap: var(--space-2);
}

.survey-step[data-step="7"] > .survey-field:nth-child(3),
.survey-step[data-step="7"] > .survey-field:nth-child(4) {
  margin-top: calc(var(--space-1) - var(--space-2));
}

.survey-step.is-active {
  display: flex;
}

.survey-step-title {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  font-size: 1.6rem;
}

.survey-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  left: -9999px;
}

.survey-field label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
}

.survey-privacy-note {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: left;
}

.survey-field input,
.survey-field textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--accent-soft);
  background-color: #FAFDFE;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  box-sizing: border-box;
  transition: border-color 150ms ease;
}

.survey-field textarea {
  resize: vertical;
  min-height: 120px;
}

.survey-field input:-webkit-autofill,
.survey-field input:-webkit-autofill:hover,
.survey-field input:-webkit-autofill:focus,
.survey-field input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #FAFDFE inset !important;
  -webkit-text-fill-color: var(--ink) !important;
  caret-color: var(--ink) !important;
  transition: background-color 9999s ease-in-out 0s;
}

.survey-field input:focus,
.survey-field textarea:focus {
  outline: none;
  border-color: var(--accent-green);
}

.survey-question {
  display: block;
}

.survey-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.survey-option-hint {
  font-size: 0.85em;
  color: var(--muted);
}

.survey-field--upload {
  gap: var(--space-1);
  margin-top: var(--space-3);
}

.survey-field--upload label {
  color: var(--muted);
  font-weight: 400;
}

.survey-upload-subtext,
.survey-field-subtext {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--muted);
}

.survey-field textarea::placeholder {
  color: var(--muted);
}

.survey-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--accent-soft);
  background-color: #FAFDFE;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.survey-upload-btn:hover {
  border-color: var(--accent-green);
  background-color: var(--accent-soft);
}

.survey-upload-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.survey-upload-error {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #8B3A3A;
}

.survey-upload-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.survey-upload-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background-color: #FAFDFE;
  border: 1px solid var(--accent-soft);
}

.survey-upload-thumb {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.survey-upload-name {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink);
  word-break: break-word;
}

.survey-upload-remove {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.survey-upload-remove:hover {
  background-color: var(--accent-soft);
  color: var(--ink);
}

.survey-option {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--accent-soft);
  background-color: #FAFDFE;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.survey-option--alternative {
  position: relative;
  margin-top: var(--space-4);
}

.survey-option--alternative::before {
  content: "";
  position: absolute;
  top: calc(var(--space-4) / -2);
  left: 14px;
  right: 14px;
  height: 1px;
  background-color: var(--accent-soft);
}

.survey-option:has(input:checked) {
  border-color: var(--accent-green);
  background-color: var(--accent-soft);
}

.survey-option input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--accent-green);
}

.survey-option span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}

.survey-summary {
  padding: var(--space-3);
  border-radius: 12px;
  background-color: #FAFDFE;
  border: 1px solid var(--accent-soft);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.survey-summary:empty {
  display: none;
}

.survey-summary p {
  margin: 0;
}

.survey-summary strong {
  color: var(--ink);
  font-weight: 500;
}

.survey-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.survey-actions--center {
  justify-content: center;
}

.survey-actions--center .survey-submit {
  margin-left: 0;
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
}

.survey-next,
.survey-submit {
  background-color: #163C47;
  border: none;
  outline: none;
  box-shadow: none;
  cursor: pointer;
  color: #FAFDFE;
  font-family: var(--font-body);
  margin-left: auto;
  transition: background-color 250ms ease, box-shadow 250ms ease;
}

.survey-next:focus,
.survey-next:focus-visible,
.survey-submit:focus,
.survey-submit:focus-visible {
  outline: none !important;
}

.survey-next:hover,
.survey-next:focus-visible,
.survey-submit:hover,
.survey-submit:focus-visible {
  color: #FAFDFE;
  background-color: var(--accent);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.survey-next .btn-pill-icon,
.survey-submit .btn-pill-icon {
  background-color: rgba(255, 255, 255, 0.18);
  color: #FAFDFE;
}

.survey-submit {
  padding: 12px 24px;
  gap: 8px;
  border-radius: 20px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.survey-submit .btn-pill-icon {
  width: auto;
  height: auto;
  background: transparent;
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.survey-submit .btn-pill-icon svg {
  width: 18px;
  height: 18px;
  transition: transform 200ms ease;
}

.survey-submit:hover .btn-pill-icon,
.survey-submit:focus-visible .btn-pill-icon {
  background: transparent;
  background-color: transparent;
  border: none;
}

.survey-submit:hover .btn-pill-icon svg,
.survey-submit:focus-visible .btn-pill-icon svg {
  transform: translateX(3px);
}

.survey-back-btn {
  display: inline-flex;
  align-items: center;
  border: none;
  background: none;
  padding: 14px 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.survey-back-btn:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

.survey-success {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--ink);
  text-align: center;
  padding: var(--space-6) var(--space-3);
}

/* ---- Formular: Loading-, Success- und Error-State ------------------------ */
.kontakt-form-card {
  overflow: hidden;
}

.survey-submit[disabled],
.survey-next[disabled],
.survey-field input[disabled],
.survey-field textarea[disabled],
.survey-option input[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  animation: btn-spinner-rotate 0.8s linear infinite;
}

.btn-spinner circle {
  stroke: currentColor;
  stroke-linecap: round;
}

@keyframes btn-spinner-rotate {
  to { transform: rotate(360deg); }
}

.survey-field--contact {
  position: relative;
}

.form-consent {
  margin: 14px auto 0;
  max-width: 44ch;
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-text-muted, #5f6b70);
  text-align: center;
}

.form-consent a {
  color: inherit;
  text-decoration: underline;
}

.form-error {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.4;
  color: #8B3A3A;
  text-align: center;
}

.form-error a {
  color: inherit;
  text-decoration: underline;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-9) var(--space-3);
  animation: form-success-fade-in 500ms ease;
}

.form-success[hidden] {
  display: none;
}

.form-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  color: var(--accent);
}

.form-success-icon svg {
  width: 52px;
  height: 52px;
}

.form-success-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.2rem;
  color: var(--ink);
  margin: 0 0 var(--space-2);
}

.form-success-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 38ch;
  margin: 0;
}

@keyframes form-success-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .form-success {
    animation: none;
  }

  .btn-spinner {
    animation-duration: 1.2s;
  }
}

@media (min-width: 900px) {
  .kontakt-hero {
    padding-top: 220px;
    padding-bottom: var(--space-section-desktop);
  }

  .site-header--static ~ main .kontakt-hero {
    padding-top: var(--space-section-desktop);
  }

  .kontakt-hero-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 80px;
    align-items: stretch;
  }

  .kontakt-hero-column {
    justify-content: space-between;
    gap: var(--space-5);
    padding: var(--space-6);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.45);
  }

  .kontakt-subheading {
    margin-top: var(--space-9);
    font-size: clamp(0.95rem, 1vw, 1rem);
  }

  .kontakt-info-list {
    gap: var(--space-5);
  }

  .kontakt-hero-text {
    margin-top: var(--space-3);
  }

  .kontakt-heading {
    margin-top: -24px;
  }

  .kontakt-subheading {
    max-width: 42ch;
  }

  .kontakt-hero-divider {
    display: none;
  }

  .kontakt-hero-text {
    align-items: center;
    text-align: center;
  }

  .kontakt-info-wrapper {
    align-items: center;
    text-align: center;
  }

  .kontakt-info-list {
    align-items: center;
  }

  .kontakt-info-row {
    display: contents;
  }

  .kontakt-info-block--hours {
    order: 2;
  }

  .kontakt-info-block--phone {
    order: 1;
    margin-bottom: var(--space-2);
  }

  .kontakt-info-row .btn-hero-primary {
    order: 3;
  }

  .kontakt-info-block {
    flex-shrink: 0;
  }

  .kontakt-call-number {
    white-space: nowrap;
  }
}

.kontakt-faq-section {
  background-color: var(--surface);
  padding-block: var(--space-section-mobile);
}

.kontakt-faq-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.kontakt-faq-head h2 {
  margin-top: var(--space-2);
}

.kontakt-faq-list-wrap {
  margin-top: var(--space-6);
  max-width: 1080px;
  margin-inline: auto;
}

.kontakt-faq-list-wrap .faq-list {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .kontakt-faq-list-wrap .faq-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
  }

  .kontakt-faq-list-wrap .faq-item:nth-child(2) {
    border-top: 2px solid var(--accent-soft);
  }

  .kontakt-faq-head p {
    white-space: nowrap;
  }
}

@media (min-width: 900px) {
  .kontakt-faq-section {
    padding-block: var(--space-section-desktop);
  }
}

/* ==========================================================================
   Rechtsseiten (Datenschutz, Impressum) — schlichte Textseite, keine Karten,
   keine Glas-Effekte. Cremefarbener Hintergrund kommt vom body selbst.
   ========================================================================== */
.legal-section {
  background-color: var(--bg);
}

/* Header ist auf Mobile jetzt fixed (aus dem Fluss genommen), sonst würde
   der Seiteninhalt unter ihm verschwinden. Ersetzt (nicht addiert zu) das
   normale section-padding-top, daher volle Kompensation inklusive der
   ueblichen Section-Luft. */
@media (max-width: 899.98px) {
  .site-header--light ~ main .legal-section {
    padding-top: calc(var(--space-section-mobile) + var(--space-12));
  }
}

.legal-container {
  max-width: 720px;
}

.legal-container h1 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.2;
}

.legal-container h2 {
  margin-top: var(--space-9);
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1.3;
}

.legal-container h1 + h2 {
  margin-top: var(--space-6);
}

.legal-container p,
.legal-container ul,
.legal-container address {
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
  font-style: normal;
}

.legal-container ul {
  padding-left: 1.25rem;
}

.legal-container li {
  margin-top: var(--space-1);
}

.legal-container li:first-child {
  margin-top: 0;
}

.legal-container address a,
.legal-container p a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(31, 52, 64, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease;
}

.legal-container address a:hover,
.legal-container p a:hover {
  text-decoration-color: var(--ink);
}

.legal-meta {
  margin-top: var(--space-6);
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---- Bildnachweise ------------------------------------------------- */
.credit-container {
  max-width: 860px;
}

.credit-group {
  margin-top: var(--space-9);
}

.credit-group h2 {
  scroll-margin-top: var(--space-9);
}

.credit-row {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  margin-top: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--accent-soft);
}

.credit-row:last-child {
  border-bottom: none;
}

.credit-thumb {
  flex: 0 0 120px;
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background-color: var(--accent-soft);
}

.credit-details {
  min-width: 0;
  flex: 1;
}

.credit-filename {
  margin-top: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  word-break: break-word;
}

.credit-usage {
  margin-top: var(--space-1);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
}

.credit-note {
  margin-top: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #0F5664;
  background-color: #EEF6F8;
  border-left: 3px solid #0F5664;
  padding: var(--space-2) var(--space-3);
  border-radius: 0 6px 6px 0;
}

.credit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-3);
}

.credit-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.credit-meta-item dt {
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.credit-meta-item dd {
  margin: 0;
}

.credit-todo {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: #0F5664;
  background-color: #EEF6F8;
  border: 1px dashed #0F5664;
  border-radius: 5px;
  padding: 2px 8px;
}

/* ==========================================================================
   Bezirksseiten (Friedhofsverzeichnis-Template) — /friedhoefe/[bezirk]/
   ========================================================================== */
.district-narrow {
  max-width: 960px;
  margin-inline: auto;
}

.district-top {
  display: grid;
  grid-template-columns: 1fr 380px;
  column-gap: 120px;
  align-items: start;
}

.district-top .breadcrumb {
  grid-column: 1;
  grid-row: 1;
}

.district-top .district-title {
  grid-column: 1;
  grid-row: 2;
}

.district-top .district-hero-col {
  grid-column: 1;
  grid-row: 3;
  max-width: 768px;
}

.district-top .district-stats {
  grid-column: 2;
  grid-row: 3;
  align-self: start;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb-sep {
  color: var(--muted);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

.district-title {
  margin-top: var(--space-4);
  margin-bottom: var(--space-5);
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.2;
}

/* Nur für diese eine Seite: "Friedhöfe in Friedrichshain-Kreuzberg" ist auf Desktop
   länger als die übrigen Bezirksnamen und bricht sonst in der Titelspalte um.
   Über eine eindeutige ID bekommt nur dieser Titel die volle Zeilenbreite
   (spannt beide Grid-Spalten statt nur der Titelspalte), Schriftgröße bleibt
   unverändert. Keine andere Bezirksseite ist betroffen. */
@media (min-width: 900px) {
  #district-title-friedrichshain-kreuzberg,
  #district-title-charlottenburg-wilmersdorf,
  #district-title-steglitz-zehlendorf,
  #district-title-marzahn-hellersdorf,
  #district-title-treptow-koepenick,
  #district-title-tempelhof-schoeneberg {
    grid-column: 1 / -1;
  }

  #ortsteil-block-gatow {
    grid-column: span 2;
  }

  #row-name-friedrichshagen {
    font-size: 0.85rem;
  }

  #row-name-alt-treptow {
    font-size: 0.8rem;
  }

  #row-name-dorotheenstaedtischer-friedhof {
    font-size: 0.72rem;
  }

  #friedhof-list-gatow {
    flex-direction: row;
  }

  #friedhof-list-gatow .friedhof-row {
    flex: 1 1 0;
  }
}

.district-hero-col {
  display: flex;
  flex-direction: column;
}

.district-hero-image {
  max-width: 60ch;
  aspect-ratio: 21 / 10;
  border-radius: 20px;
  background-color: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.district-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.district-hero-placeholder-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 899.98px) {
  .district-top {
    display: block;
  }
}

.district-intro {
  margin-top: var(--space-5);
  max-width: 60ch;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.7;
}

.placeholder-tag {
  display: inline-block;
  color: var(--muted);
  font-style: italic;
  font-size: 0.85em;
}

.district-stats {
  width: 380px;
}

.district-stats-section + .district-stats-section {
  margin-top: var(--space-4);
}

.district-stats-heading {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.district-stats-list {
  margin-top: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.district-stats-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.district-stats-value {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.25;
}

.district-stats-label {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.district-stats-source {
  margin-top: 4px;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
  opacity: 0.8;
}

.district-person-desc {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.district-person-meta {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
  opacity: 0.7;
}

@media (max-width: 899.98px) {
  .district-stats {
    width: 100%;
    margin-left: 0;
    margin-top: 3rem;
  }

  .district-stats-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-5) var(--space-6);
  }
}

.district-section-divider {
  margin: var(--space-10) 0;
  border: none;
  border-top: 1px solid rgba(0, 121, 166, 0.15);
}

.district-list-section {
  margin-top: 0;
}

.ortsteil-block {
  margin-top: var(--space-8);
}

.ortsteil-block:first-child {
  margin-top: 0;
}

.ortsteil-heading {
  margin-top: 0;
  padding-left: var(--space-3);
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  font-size: 1.5rem;
}

.friedhof-list {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.friedhof-row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding: var(--space-3);
  border-radius: 12px;
  background-color: var(--surface);
  border: 1px solid var(--accent-soft);
  text-decoration: none;
  cursor: pointer;
  transition: transform 300ms ease, filter 300ms ease, border-color 150ms ease;
  filter: drop-shadow(0 12px 30px rgba(31, 52, 64, 0.3));
}

.friedhof-row-arrow {
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-3);
  width: 17px;
  height: 17px;
  color: #0F5664;
  opacity: 0.5;
  transition: opacity 200ms ease, transform 200ms ease;
}

.friedhof-row-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (min-width: 900px) {
  .friedhof-groups--multicol .friedhof-row-arrow,
  .friedhof-card-grid .friedhof-row-arrow {
    right: var(--space-4);
    bottom: var(--space-4);
  }
}

a.friedhof-row:focus-visible {
  outline: 2px solid #0F5664;
  outline-offset: 2px;
  border-color: var(--accent-green);
  transform: translateY(-5px);
  filter: drop-shadow(0 18px 38px rgba(31, 52, 64, 0.38));
}

a.friedhof-row:focus-visible .friedhof-row-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

@media (hover: hover) and (pointer: fine) {
  a.friedhof-row:hover {
    border-color: var(--accent-green);
    transform: translateY(-5px);
    filter: drop-shadow(0 18px 38px rgba(31, 52, 64, 0.38));
  }

  a.friedhof-row:hover .friedhof-row-arrow {
    opacity: 1;
    transform: translate(2px, -2px);
  }
}

.friedhof-row--static {
  opacity: 0.7;
}

.friedhof-row-name {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
}

.friedhof-row-address {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Kopier-Button fuer Friedhofsadressen (nur Detailseiten, .cd-infocard).
   stroke="currentColor" auf den SVGs + color hier: Standardfarbe
   #0F5664 wie auf hellem Untergrund ueblich; auf dem dunklen
   .cd-infocard wird color unten auf #FAFDFE umgestellt, sonst waere
   das Icon auf dessen #0F5664-Hintergrund unsichtbar. */
.copy-address-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-left: 8px;
  padding: 0;
  border: none;
  background: transparent;
  color: #0F5664;
  cursor: pointer;
  border-radius: 8px;
}

.copy-address-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* Der globale Reset "svg { display: block }" (Author-Regel) schlaegt
   sonst das UA-Default fuer [hidden] (display: none), weil Autor-
   Styles UA-Styles unabhaengig von der Spezifitaet ueberstimmen. */
.copy-address-btn svg[hidden] {
  display: none;
}

.copy-address-btn .copy-icon {
  opacity: 0.5;
  transition: opacity 150ms ease;
}

.copy-address-btn:hover .copy-icon,
.copy-address-btn:focus-visible .copy-icon {
  opacity: 1;
}

.copy-address-btn .check-icon {
  opacity: 1;
}

.copy-address-btn:focus-visible {
  outline: 2px solid #0F5664;
  outline-offset: 2px;
}

.friedhof-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.friedhof-status-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--accent-green);
}

.friedhof-status-dot--historic {
  background-color: var(--muted);
}

.friedhof-status-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
}

.district-cta {
  margin-top: var(--space-9);
  padding: var(--space-6);
  border-radius: 20px;
  background-color: var(--surface);
  text-align: center;
}

@media (max-width: 599.98px) {
  .district-cta {
    padding: var(--space-4);
  }
}

.district-cta h2 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}

@media (max-width: 599.98px) {
  .district-cta h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
}

.district-cta p {
  margin-top: var(--space-2);
  max-width: 60ch;
  margin-inline: auto;
  font-family: var(--font-body);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.district-cta .btn-hero-call {
  margin-top: var(--space-4);
  background-color: var(--accent);
  border-color: var(--accent);
  color: #FAFDFE;
}

.district-cta .btn-hero-call:hover {
  background-color: var(--accent-green);
  border-color: var(--accent-green);
  color: #FAFDFE;
}

.district-cta-actions {
  margin-top: var(--space-4);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.district-cta-actions .btn-hero-call {
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
}

.district-cta-actions .btn-secondary {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.1rem;
  border-radius: 20px;
  padding: 12px 26px;
  min-height: 44px;
}

.district-related {
  margin-top: var(--space-9);
  margin-bottom: var(--space-9);
}

.district-related h2 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  font-size: 1.5rem;
}

.district-related-list {
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  list-style: none;
  padding: 0;
}

.district-related-list a {
  font-family: var(--font-body);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(31, 52, 64, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease;
}

.district-related-list a:hover {
  text-decoration-color: var(--ink);
}

@media (max-width: 767.98px) {
  .district-facts {
    gap: var(--space-4);
  }
}

/* ==========================================================================
   Friedhof-Detailseiten — /friedhof/[slug]/
   ========================================================================== */
.friedhof-detail-status {
  margin-top: var(--space-4);
}

.friedhof-detail-facts {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 60ch;
}

.friedhof-detail-fact {
  display: flex;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.6;
}

.friedhof-detail-fact-label {
  flex: 0 0 130px;
  color: var(--muted);
}

.friedhof-detail-fact-value {
  color: var(--ink);
}

.friedhof-detail-fact-value a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(31, 52, 64, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease;
}

.friedhof-detail-fact-value a:hover {
  text-decoration-color: var(--ink);
}

/* Ortsteile mit 1-2 Friedhöfen: gruppiert im Mehrspalten-Grid (.friedhof-groups--multicol),
   ein Ortsteil pro Zelle. Nur setzen, wenn ein Bezirk mehr als 6 Friedhöfe hat, sonst bleibt
   die Liste einspaltig. Ortsteile mit 3+ Friedhöfen (.ortsteil-block--large) bekommen
   stattdessen ein eigenes Karten-Grid (.friedhof-card-grid) unter voller Breite. Beide Grids
   teilen sich dieselben Breakpoints: Mobil 1 Spalte, Tablet 2 Spalten, Desktop 3 Spalten. */
.ortsteil-block--large {
  margin-top: var(--space-6);
}

.ortsteil-block--large + .friedhof-groups--multicol {
  margin-top: var(--space-6);
}

.friedhof-card-grid {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

@media (min-width: 768px) {
  .friedhof-groups--multicol {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: var(--space-5);
    row-gap: var(--space-6);
    align-items: start;
  }

  .friedhof-groups--multicol .ortsteil-block {
    margin-top: 0;
  }

  .friedhof-groups--multicol .friedhof-list {
    gap: var(--space-1);
  }

  .friedhof-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: var(--space-5);
    row-gap: var(--space-6);
  }
}

@media (min-width: 900px) {
  .friedhof-groups--multicol {
    grid-template-columns: repeat(3, 1fr);
  }

  .friedhof-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .friedhof-groups--multicol .friedhof-row,
  .friedhof-card-grid .friedhof-row {
    padding: var(--space-4);
  }

  .friedhof-groups--multicol .friedhof-row-name,
  .friedhof-card-grid .friedhof-row-name {
    font-size: 0.9rem;
  }

  .friedhof-groups--multicol .ortsteil-heading,
  .ortsteil-block--large .ortsteil-heading {
    padding-left: var(--space-4);
  }
}

/* ==========================================================================
   Friedhofs-Detailseiten (Referenzvorlage) — /friedhoefe/[bezirk]/[friedhof]/
   ========================================================================== */
.cem-hero-eyebrow {
  margin-top: var(--space-4);
}

.cem-lead {
  margin-top: var(--space-5);
  max-width: 60ch;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.7;
}

.cem-status {
  margin-top: var(--space-5);
}

.cem-facts-grid {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: 1fr;
  column-gap: var(--space-6);
  row-gap: var(--space-3);
  max-width: 900px;
}

@media (min-width: 700px) {
  .cem-facts-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.cem-cta-strip {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background-color: var(--surface);
  border-radius: 20px;
  padding: var(--space-4) var(--space-5);
}

.cem-cta-strip h2 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.3;
}

.cem-cta-strip-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

@media (max-width: 599.98px) {
  .cem-cta-strip-actions {
    width: 100%;
  }

  .cem-cta-strip-actions .btn {
    flex: 1 1 auto;
  }
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  border-color: var(--whatsapp);
  color: #FAFDFE;
}

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: #FAFDFE;
  flex-shrink: 0;
}

.btn-whatsapp:hover {
  filter: brightness(0.92);
}

.cem-content {
  max-width: 720px;
}

.cem-content > h2:first-child,
.cem-content > h3:first-child {
  margin-top: 0;
}

.cem-content h2 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1.3;
}

.cem-content h3 {
  margin-top: var(--space-6);
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.3;
}

.cem-content h2 + h3 {
  margin-top: var(--space-4);
}

.cem-content p,
.cem-content ul,
.cem-content address {
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
  font-style: normal;
}

.cem-content h2 + p,
.cem-content h3 + p {
  margin-top: var(--space-2);
}

.cem-content ul {
  padding-left: 1.25rem;
}

.cem-content li {
  margin-top: var(--space-1);
}

.cem-content li:first-child {
  margin-top: 0;
}

.cem-content a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(31, 52, 64, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease;
}

.cem-content a:hover {
  text-decoration-color: var(--ink);
}

.cem-content-btn.btn-secondary,
.cem-content .btn-hero-call {
  margin-top: var(--space-3);
  margin-left: 0;
  text-decoration: none;
}

.cem-content-btn.btn-secondary {
  color: var(--accent);
}

.cem-content .btn-hero-call {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #FAFDFE;
}

.cem-content .btn-hero-call:hover {
  background-color: var(--accent-green);
  border-color: var(--accent-green);
  color: #FAFDFE;
}

.cem-history-block + .cem-history-block {
  margin-top: var(--space-6);
}

.cem-person-grid {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 620px) {
  .cem-person-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cem-person-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cem-person-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.3;
}

.cem-person-dates {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

.cem-person-desc {
  margin-top: var(--space-2);
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Friedhofs-Detailinhalte (Geschichte / Infokarte / Sehenswert / Persönlichkeiten)
   — Vorlage für den Bereich zwischen H1 und CTA-Block auf Friedhofsseiten
   ========================================================================== */
.cd-intro {
  margin-top: var(--space-5);
  max-width: 68ch;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
}

.cd-section {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: var(--space-section-desktop);
}

@media (max-width: 899.98px) {
  .cd-section {
    margin-top: var(--space-8);
  }
}

.cd-section--tight {
  margin-top: var(--space-6);
}

@media (max-width: 899.98px) {
  .cd-section--tight {
    margin-top: var(--space-5);
  }
}

.cd-section-title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1.3;
}

/* ---- Zweispalter: Geschichte + Infokarte -------------------------------- */
.cd-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "intro"
    "card"
    "history";
  gap: var(--space-7);
  align-items: start;
}

.cd-intro-block {
  grid-area: intro;
  min-width: 0;
}

.cd-infocard {
  grid-area: card;
  min-width: 0;
}

.cd-history {
  grid-area: history;
  min-width: 0;
  max-width: 68ch;
}

@media (min-width: 1024px) {
  .cd-columns {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-areas:
      "intro card"
      "history card";
    gap: 64px;
  }
}

.cd-history-block {
  margin-top: var(--space-6);
}

.cd-history-block:first-of-type {
  margin-top: var(--space-7);
}

.cd-history-block h2 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1.3;
}

.cd-history-block p {
  margin-top: var(--space-2);
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
}

.cd-infocard {
  margin-top: 24px;
  background-color: #0F5664;
  border-radius: var(--card-radius);
  padding: 32px;
}

@media (min-width: 1024px) {
  .cd-infocard {
    position: sticky;
    top: 1.5rem;
  }
}

.cd-infocard-title {
  margin-top: 0;
  font-family: var(--font-display);
  font-weight: 500;
  color: #FAFDFE;
  font-size: 1.3rem;
  line-height: 1.3;
}

.cd-infocard-item {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(250, 253, 254, 0.15);
}

.cd-infocard-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(250, 253, 254, 0.6);
}

.cd-infocard-value {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  color: #FAFDFE;
}

.cd-infocard-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-4);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  color: #FAFDFE;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease;
}

.cd-infocard-item .cd-infocard-link {
  display: flex;
  margin-top: 4px;
}

.cd-infocard-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.cd-infocard-value-row {
  display: flex;
  align-items: center;
}

.cd-infocard .copy-address-btn {
  color: #FAFDFE;
}

.cd-infocard .copy-address-btn:focus-visible {
  outline-color: #FAFDFE;
}

.cd-infocard-link:hover {
  text-decoration: underline;
  text-decoration-color: #FAFDFE;
}

/* ---- Sehenswert ----------------------------------------------------------- */
.cd-plain-list {
  margin-top: var(--space-5);
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 48px;
}

@media (min-width: 700px) {
  .cd-plain-list {
    grid-template-columns: 1fr 1fr;
  }
}

.cd-plain-list li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(15, 86, 100, 0.12);
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  font-size: 1rem;
}

/* ---- Persönlichkeiten ------------------------------------------------------ */
.cd-person-grid {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 24px;
}

@media (min-width: 640px) {
  .cd-person-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .cd-person-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cd-person-card {
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  border-radius: var(--card-radius);
  padding: var(--space-card);
}

.cd-person-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.3;
}

.cd-person-dates {
  margin: 4px 0 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: rgba(15, 86, 100, 0.6);
  font-size: 13px;
}

.cd-person-desc {
  margin: var(--space-2) 0 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}


/* ---- Schrift-Vergleich (nur Vorschau, später entfernen) ---- */
html.font-b { --font-display: 'Quicksand', sans-serif; --font-body: "Nunito", sans-serif; }
html.font-c { --font-display: 'Baloo 2', sans-serif; --font-body: "Mulish", sans-serif; }

/* ---- Footer mit Bild als Hintergrund ---- */
.site-footer {
  background-color: #0B2447;
  background-image:
    linear-gradient(to bottom, rgba(11, 36, 71, 0) 0%, rgba(11, 36, 71, 0) 28%, rgba(11, 36, 71, 0.78) 58%, #0B2447 100%),
    url("assets/images/footer-hintergrund.jpg");
  background-size: 100% 100%, 100% auto;
  background-position: 0 0, center top;
  background-repeat: no-repeat;
}
.site-footer .footer-inner {
  padding-top: clamp(220px, 29vw, 560px);
  padding-bottom: 32px;
}
.site-footer .footer-top {
  padding-top: 0;
}
@media (max-width: 700px) {
  .site-footer {
    background-image:
      linear-gradient(to bottom, rgba(11, 36, 71, 0) 0%, rgba(11, 36, 71, 0) 20%, rgba(11, 36, 71, 0.85) 40%, #0B2447 60%),
      url("assets/images/footer-hintergrund-mobile.jpg");
  }
  .site-footer .footer-inner {
    padding-top: 200px;
  }
}


/* ==========================================================================
   Wellenuebergaenge: weiss -> tuerkis (oben bei Einrichtungen),
   tuerkis -> weiss (unten bei Leistungen)
   ========================================================================== */
#einrichtungen,
#leistungen {
  position: relative;
}

#einrichtungen::before,
#leistungen::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: clamp(40px, 6vw, 90px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23FCF8F3' d='M0,0H1440V40C1320,72 1200,72 1080,40C960,8 840,8 720,40C600,72 480,72 360,40C240,8 120,8 0,40Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}

#einrichtungen::before {
  top: -1px;
}

#leistungen::after {
  bottom: -1px;
  transform: scaleY(-1);
}

#leistungen {
  padding-bottom: calc(var(--space-section-mobile) + 64px);
}

@media (min-width: 900px) {
  #leistungen {
    padding-bottom: calc(var(--space-section-desktop) + 80px);
  }
}

#leistungen {
  padding-top: calc(var(--space-section-mobile) + 48px);
}

@media (min-width: 900px) {
  #leistungen {
    padding-top: calc(var(--space-section-desktop) + 48px);
  }
}

#galerie {
  padding-bottom: calc(var(--space-section-mobile) + 48px);
}

@media (min-width: 900px) {
  #galerie {
    padding-bottom: calc(var(--space-section-desktop) + 48px);
  }
}

/* Platz fuer den Kartenschatten im Handy-Karussell (overflow-x clippt sonst auch unten) */
@media (max-width: 899.98px) {
  .services-grid {
    padding-top: 8px;
    padding-bottom: 32px;
    margin-top: calc(var(--space-block) - 8px);
    margin-bottom: -24px;
  }
}

/* Im Hero liegt die Navbar oben auf der Seite und scrollt mit (nicht fixed) */
.site-header--transparent.site-header--hero,
.site-header--light.site-header--hero {
  position: absolute;
}

/* Über uns: erster Satz des Subheaders in einer Zeile (Desktop) */
@media (min-width: 900px) {
  #galerie .compare-lead {
    max-width: 125ch;
  }
}

/* Navbar kuerzer (Desktop) */
@media (min-width: 900px) {
  .site-header--transparent .header-inner,
  .site-header--light .header-inner {
    width: min(1110px, calc(100vw - 64px));
  }
}

/* Navbar: Vogel-Icon vor dem Namen */
.wordmark,
.m-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wordmark-icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

/* Navbar tuerkis */
@media (min-width: 900px) {
  .site-header--transparent .header-inner {
    background: rgba(0, 121, 166, 0.6);
  }
}

.m-header-glass {
  background: rgba(0, 121, 166, 0.6);
}

.m-header-glass--open {
  background: rgba(255, 255, 255, 0.12);
}

/* Hero: mehr weisser Rand um das Bild (Desktop/Tablet) */
@media (min-width: 768px) {
  .hero-bg {
    inset: 40px;
  }
}

@media (max-width: 899.98px) {
  .hero-bg {
    inset: 0;
  }
}

/* Hero: Bild ohne dunklen Verlauf; Navbar weiter unten */
.hero-bg::before {
  background: none;
}

@media (max-width: 899.98px) {
  .hero-bg::before {
    background: none;
  }
}

@media (min-width: 900px) {
  .site-header--transparent .header-inner {
    margin-top: 64px;
  }
}

/* Hero-Bild: duenne tuerkise Umrandung */
.hero-bg {
  box-shadow: 0 0 0 1px #0079A6;
}

/* Hero: H2 unter der Ueberschrift */
.hero-subtitle {
  margin: 1rem 0 0;
  max-width: 60ch;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

@media (min-width: 900px) {
  .hero-subtitle {
    max-width: none;
  }
}

@media (max-width: 899.98px) {
  .hero-subtitle {
    text-align: center;
  }
}

/* Hero: H2 links, Buttons rechts daneben (Desktop) */
.hero-bottom-row .hero-subtitle {
  margin-top: 0;
}

@media (min-width: 900px) {
  .hero-bottom-row .hero-actions {
    margin-top: 0;
  }
}

/* Hero: H1 und H2 jeweils einzeilig */
.hero-title,
.hero-subtitle {
  max-width: none;
}

/* Hero: dunkleres Glas hinter dem Text, bessere Lesbarkeit */
.hero-text-glass {
  background: rgba(0, 0, 0, 0.58);
}

/* Hero-Box: ganze Box ist ein Link, Pfeil rechts oben */
a.hero-text-glass {
  position: relative;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.hero-text-inner {
  display: flex;
  flex-direction: column;
  align-items: inherit;
  width: 100%;
}

/* Hero-Box (Desktop mit Maus): Fußzeile mit Aufruf, Hover hebt die Box deutlich an */
.hero-cta-footer {
  display: none;
}

@media (hover: hover) and (min-width: 1024px) {
  a.hero-text-glass {
    transition: transform 300ms ease-out, box-shadow 300ms ease-out, border-color 300ms ease-out, background 300ms ease-out;
  }

  .hero-text-inner {
    transition: none;
  }

  .hero-text-glass {
    padding-block: 24px 0;
    overflow: hidden;
  }

  .hero-cta-footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    align-self: stretch;
    margin: 22px -36px 0;
    padding: 16px 36px;
  }

  /* Trennlinie bleibt; Türkis-Füllung fährt beim Hover von links über die Fußzeile */
  .hero-cta-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
    z-index: 2;
    pointer-events: none;
  }

  .hero-cta-footer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: none;
    z-index: 0;
    pointer-events: none;
  }

  .hero-cta-text,
  .hero-cta-arrow {
    position: relative;
    z-index: 1;
  }

  .hero-cta-text {
    color: #FFFFFF;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(1.1rem, 1.4vw, 1.3rem);
    line-height: 1.2;
  }

  .hero-cta-arrow {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    color: #FFFFFF;
    transition: transform 300ms ease-out;
  }

  /* Bild als eigene Ebene, damit nur das Bild zoomt und nicht der Rahmen */
  .hero-img {
    transition: transform 600ms ease-out;
  }

  .hero-bg::before {
    z-index: 0;
  }

  /* Ein einziger Rand: 1px border + 1px Ring = 2px Türkis, kein Weiß, kein Outline, kein Inset-Glanz */
  a.hero-text-glass:hover,
  a.hero-text-glass:focus-visible {
    transform: translateY(-8px);
    background: rgba(0, 0, 0, 0.78);
    border-color: var(--accent);
    outline: none;
    box-shadow:
      0 0 0 1px var(--accent),
      0 0 40px rgba(0, 121, 166, 0.7),
      0 0 12px rgba(0, 121, 166, 0.55),
      0 0 40px rgba(0, 121, 166, 0.3),
      0 34px 80px rgba(0, 0, 0, 0.55);
  }

  a.hero-text-glass:hover .hero-cta-footer::after,
  a.hero-text-glass:focus-visible .hero-cta-footer::after {
    transform: scaleX(1);
  }

  a.hero-text-glass:hover .hero-cta-arrow,
  a.hero-text-glass:focus-visible .hero-cta-arrow {
    transform: translate(4px, -4px) rotate(-45deg);
  }

  .hero:has(a.hero-text-glass:hover) .hero-img,
  .hero:has(a.hero-text-glass:focus-visible) .hero-img {
    transform: scale(1.03);
  }
}

@media (hover: hover) and (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  a.hero-text-glass,
  .hero-cta-arrow,
  .hero-img {
    transition: background-color 300ms ease-out, border-color 300ms ease-out;
  }

  a.hero-text-glass:hover,
  a.hero-text-glass:focus-visible,
  a.hero-text-glass:hover .hero-cta-arrow,
  a.hero-text-glass:focus-visible .hero-cta-arrow {
    transform: none;
  }

  .hero:has(a.hero-text-glass:hover) .hero-img,
  .hero:has(a.hero-text-glass:focus-visible) .hero-img {
    transform: none;
  }

  .hero-cta-footer::after {
    transform: scaleX(1);
    opacity: 0;
    transition: opacity 300ms ease-out;
  }

  a.hero-text-glass:hover .hero-cta-footer::after,
  a.hero-text-glass:focus-visible .hero-cta-footer::after {
    opacity: 1;
  }
}

/* Navbar: durchsichtiger Liquid-Glass-Look */
@media (min-width: 900px) {
  .site-header--transparent .header-inner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
    backdrop-filter: blur(14px) saturate(180%) brightness(1.05);
    -webkit-backdrop-filter: blur(14px) saturate(180%) brightness(1.05);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.6),
      inset 0 -1px 1px rgba(255, 255, 255, 0.15),
      0 8px 32px rgba(0, 0, 0, 0.12);
  }
}

.m-header-glass:not(.m-header-glass--open) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(14px) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(180%) brightness(1.05);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Navbar Lesbarkeit: dunkler Tint im Glas, Text mit leichtem Schatten */
@media (min-width: 900px) {
  .site-header--transparent .header-inner {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
      rgba(20, 60, 70, 0.38);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
  }
}

.m-header-glass:not(.m-header-glass--open) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(20, 60, 70, 0.38);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.site-header--transparent .wordmark,
.site-header--transparent .site-nav a,
.site-header--transparent .site-location,
.site-header--transparent .site-phone,
.m-header-glass .m-wordmark {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* FAQ Desktop: Subheader linksbuendig auf einer Linie mit Ueberschrift */
@media (min-width: 900px) {
  .faq-intro .compare-lead {
    margin-inline: 0;
  }
}

/* Einrichtungen (Desktop): Überschrift in einer Zeile, Kopfbereich nicht auf 1200px begrenzt */
@media (min-width: 900px) {
  #einrichtungen .seasons-head {
    max-width: none;
  }
}

/* Leistungen (Desktop): Subheader in einer Zeile, Kopfbereich nicht auf 1000px begrenzt */
@media (min-width: 900px) {
  .services-head {
    max-width: none;
  }

  .services-head .services-subheader--full {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
  }
}

/* Leistungskarten: letzter Infopunkt läuft nicht unter den Pfeil unten rechts */
.service-card-meta .service-meta-item:last-child {
  padding-right: 32px;
}

/* Leistungskarten (Desktop): Infotexte möglichst einzeilig, Umbruch nur wenn nötig.
   Der Pfeil bekommt stattdessen unten mehr Luft statt seitlichen Platz im Text. */
@media (min-width: 900px) {
  .service-card-meta .service-meta-value {
    font-size: 15px;
  }

  .service-card-meta .service-meta-item:last-child {
    padding-right: 0;
  }

  .service-card-body {
    padding-bottom: 42px;
  }
}

/* ==========================================================================
   Footer: türkis-blau mit welligem Übergang, Elster als Ausschnitt + Schriftzug
   ========================================================================== */
.site-footer,
.site-footer:is(*) {
  position: relative;
  background-color: var(--accent);
  background-image: none;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: clamp(40px, 6vw, 90px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23FCF8F3' d='M0,0H1440V40C1320,72 1200,72 1080,40C960,8 840,8 720,40C600,72 480,72 360,40C240,8 120,8 0,40Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}

.site-footer .footer-inner {
  padding-top: calc(clamp(40px, 6vw, 90px) + 56px);
  padding-bottom: 32px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  color: #FFFFFF;
  text-decoration: none;
}

.footer-brand-bird {
  display: block;
  width: 72px;
  height: auto;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 2.4vw, 2.3rem);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

@media (max-width: 700px) {
  .site-footer {
    background-image: none;
  }

  .site-footer .footer-inner {
    padding-top: calc(clamp(40px, 6vw, 90px) + 40px);
  }
}

/* ==========================================================================
   Sections Einrichtungen + Leistungen: Hintergrund im Footer-Blau (--accent),
   Texte direkt auf dem Hintergrund in Weiß
   ========================================================================== */
#einrichtungen,
#leistungen {
  background-color: var(--accent);
}


#einrichtungen .seasons-head h2,
#leistungen .services-head h2 {
  color: #FFFFFF;
}

#einrichtungen .seasons-subheader,
#leistungen .services-subheader {
  color: rgba(255, 255, 255, 0.9);
}

#leistungen .services-dot {
  background-color: rgba(255, 255, 255, 0.4);
}

#leistungen .services-dot.is-active {
  background-color: #FFFFFF;
}

/* ==========================================================================
   Über-uns-Boxen: Footer-Blau; das alte helle Türkis (#C6E9ED) wird zum Akzent
   ========================================================================== */
.about-benefit-card {
  background-color: var(--accent);
}

.about-benefit-icon {
  color: #FFFFFF;
}

.about-benefit-title {
  color: #FFFFFF;
}

.about-benefit-text {
  color: rgba(255, 255, 255, 0.9);
}


#leistungen .services-dot.is-active {
  background-color: #C6E9ED;
}

/* Footer größer: mehr Höhe, größere Elster, Platz für Subheader unter dem Schriftzug */
.site-footer .footer-inner {
  padding-top: calc(clamp(40px, 6vw, 90px) + 88px);
  padding-bottom: 56px;
}

.footer-brand {
  gap: 22px;
  margin-bottom: 40px;
}

.footer-brand-bird {
  width: 104px;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand-name {
  font-size: clamp(2.2rem, 3vw, 3rem);
}

.footer-brand-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.3;
  color: #FFFFFF;
}

.site-footer .footer-top {
  gap: var(--space-7);
}

@media (max-width: 700px) {
  .site-footer .footer-inner {
    padding-top: calc(clamp(40px, 6vw, 90px) + 56px);
    padding-bottom: 40px;
  }

  .footer-brand-bird {
    width: 76px;
  }

  .footer-brand-name {
    font-size: 1.9rem;
  }
}

/* Footer: Navigation und Kontakt in reinem Weiß für bessere Lesbarkeit */
.site-footer .footer-heading,
.site-footer .footer-list,
.site-footer .footer-list li,
.site-footer .footer-list a {
  color: #FFFFFF;
}

.site-footer .footer-list a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.site-footer .footer-copyright {
  color: rgba(255, 255, 255, 0.9);
}

/* Footer-Button: ohne Hover transparent mit weißem Rand und weißer Schrift;
   beim Hover weiß gefüllt mit türkisem Rand und türkiser Schrift */
.site-footer .footer-cta-button {
  color: #FFFFFF;
  background-color: transparent;
  border: 2px solid #FFFFFF;
  box-shadow: none;
}

.site-footer .footer-cta-button .btn-pill-icon {
  color: #FFFFFF;
}

.site-footer .footer-cta-button:hover,
.site-footer .footer-cta-button:focus-visible {
  color: var(--accent);
  background-color: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.site-footer .footer-cta-button:hover .btn-pill-icon,
.site-footer .footer-cta-button:focus-visible .btn-pill-icon {
  color: var(--accent);
}

/* Footer: runder "Nach oben"-Button rechts unten (smooth scroll über html { scroll-behavior }) */
.site-footer .footer-top {
  position: relative;
}

.footer-to-top {
  position: absolute;
  right: 0;
  bottom: 3px; /* mittig zum Kontakt-Button (58px hoch) */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  background-color: transparent;
  color: #FFFFFF;
  transition: background-color 250ms ease, color 250ms ease, box-shadow 250ms ease;
}

.footer-to-top svg {
  width: 22px;
  height: 22px;
  transition: transform 250ms ease;
}

.footer-to-top:hover,
.footer-to-top:focus-visible {
  background-color: #FFFFFF;
  color: var(--accent);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  outline: none;
}

.footer-to-top:hover svg,
.footer-to-top:focus-visible svg {
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .footer-to-top svg,
  .footer-to-top:hover svg,
  .footer-to-top:focus-visible svg {
    transform: none;
  }
}

/* ==========================================================================
   Dunkle Abschnitte (.section--dark): Glas-Pille und umgekehrte Textmarkierung
   ========================================================================== */
::selection {
  background: var(--accent);
  color: #FFFFFF;
}

::-moz-selection {
  background: var(--accent);
  color: #FFFFFF;
}

.section--dark .section-eyebrow {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.section--dark ::selection {
  background: #FFFFFF;
  color: var(--accent);
}

.section--dark ::-moz-selection {
  background: #FFFFFF;
  color: var(--accent);
}

/* Weiße Karten in dunklen Abschnitten behalten die normale Markierung */
.section--dark .season-card::selection,
.section--dark .season-card ::selection,
.section--dark .service-card::selection,
.section--dark .service-card ::selection {
  background: var(--accent);
  color: #FFFFFF;
}

.section--dark .season-card::-moz-selection,
.section--dark .season-card ::-moz-selection,
.section--dark .service-card::-moz-selection,
.section--dark .service-card ::-moz-selection {
  background: var(--accent);
  color: #FFFFFF;
}

/* Nach-oben-Button weiter rechts, damit er nicht wie ein Pfeil auf "Impressum" wirkt (nur wo Platz ist) */
@media (min-width: 1200px) {
  .footer-to-top {
    right: -72px;
  }
}

/* ==========================================================================
   Seifenblasen (.section--bubbles): dekorative Ebene hinter dem Inhalt
   Anpassen: Anzahl, Deckkraft, Größe, Geschwindigkeit in script.js (BUBBLE_PRESETS)
   ========================================================================== */
.section--bubbles {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.bubbles {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  /* Blasen blenden zum Abschnittsrand aus, statt hart abgeschnitten zu werden */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 70px, #000 calc(100% - 70px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 70px, #000 calc(100% - 70px), transparent 100%);
}

.bubble {
  position: absolute;
  display: block;
  will-change: transform;
}

.bubble-pop {
  display: block;
  width: 100%;
  height: 100%;
}

.bubble-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 1.5px solid #FFFFFF;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  animation: bubble-sway 11s ease-in-out infinite;
}

/* Glanzbogen oben links: feiner Lichtreflex (1px, ca. 1/8 Kreisumfang, halb so hell wie der Rand) */
.bubble-inner::before {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  -webkit-mask-image: conic-gradient(from 292deg, #000 0 45deg, transparent 45deg 360deg);
  mask-image: conic-gradient(from 292deg, #000 0 45deg, transparent 45deg 360deg);
}

@keyframes bubble-sway {
  0%, 100% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .bubble-inner {
    animation: none;
  }
}

/* ==========================================================================
   Seifenblasen platzen (Desktop mit Maus, siehe script.js: POP_* und REGROW_*)
   Platz-Dauer: --bubble-pop-duration (muss zu POP_DURATION_MS passen);
   Nachwachsen: --bubble-regrow-duration (muss zu REGROW_DURATION_MS passen)
   ========================================================================== */
.bubbles {
  --bubble-pop-duration: 350ms;
  --bubble-regrow-duration: 600ms;
}

.bubble-pop.is-popping {
  animation: bubble-pop var(--bubble-pop-duration) linear forwards;
}

.bubble-pop.is-popped {
  opacity: 0;
}

.bubble-pop.is-regrowing {
  animation: bubble-regrow var(--bubble-regrow-duration) ease-out both;
}

/* Die Haut reißt an der Berührungsstelle (--hit) auf: das Loch (--cut) wandert in beide Richtungen
   um die Blase herum, die Blase wabbelt davor kurz unter Spannung und dehnt sich beim Reißen leicht. */
@property --cut {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.bubble-pop.is-popping {
  --hit: 0deg;
  -webkit-mask-image: conic-gradient(from calc(var(--hit) - var(--cut) / 2), transparent 0deg var(--cut), #000 var(--cut) 360deg);
  mask-image: conic-gradient(from calc(var(--hit) - var(--cut) / 2), transparent 0deg var(--cut), #000 var(--cut) 360deg);
}

@keyframes bubble-pop {
  0%     { transform: scale(1, 1); opacity: 1; --cut: 0deg; }
  10%    { transform: scale(1.05, 0.96); opacity: 1; --cut: 0deg; }
  17%    { transform: scale(0.98, 1.04); opacity: 1; --cut: 0deg; }
  51%    { transform: scale(1.12, 1.12); opacity: 1; --cut: 360deg; }
  51.1%  { transform: scale(1.12, 1.12); opacity: 0; --cut: 360deg; }
  100%   { transform: scale(1.12, 1.12); opacity: 0; --cut: 360deg; }
}

@keyframes bubble-regrow {
  from { transform: scale(0.3); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Tröpfchen: schneller Start, bremsen ab, sinken dabei leicht (Schwerkraft) */
.bubble-drop {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: #FFFFFF;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  animation: bubble-drop 350ms cubic-bezier(0.1, 0.7, 0.3, 1) both;
}

@keyframes bubble-drop {
  0%   { transform: translate(var(--x0), var(--y0)); opacity: 0; }
  4%   { transform: translate(var(--x0), var(--y0)); opacity: 0.9; }
  65%  { transform: translate(var(--x1), var(--y1)); opacity: 0.7; }
  100% { transform: translate(var(--x1), calc(var(--y1) + var(--gy))); opacity: 0; }
}

/* Bruchstücke der Blasenhaut: Bogenstücke des Rands, die auseinanderreißen */
.bubble-shard {
  position: absolute;
  display: block;
  border: 1px solid #FFFFFF;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  -webkit-mask-image: conic-gradient(from var(--from), #000 0 var(--span), transparent var(--span) 360deg);
  mask-image: conic-gradient(from var(--from), #000 0 var(--span), transparent var(--span) 360deg);
  will-change: transform, opacity;
  animation: bubble-shard 320ms cubic-bezier(0.15, 0.7, 0.3, 1) both;
}

@keyframes bubble-shard {
  0%   { transform: translate(0, 0) scale(1.12) rotate(0deg); opacity: 0; }
  4%   { transform: translate(0, 0) scale(1.12) rotate(0deg); opacity: var(--o); }
  100% { transform: translate(var(--tx), var(--ty)) scale(1.3) rotate(var(--rot)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bubble-pop.is-popping,
  .bubble-pop.is-regrowing {
    animation: none;
  }

  .bubble-drop,
  .bubble-shard {
    display: none;
  }
}

/* ==========================================================================
   Kontaktseite: Hero als Panel mit weißem Rand wie auf der Startseite
   (40px Rand, 20px Rundung, dünne türkise Umrandung). Der Navbar-Abstand von oben
   (64px) kommt aus der gemeinsamen Regel für .site-header--transparent.
   ========================================================================== */
html:has(.kontakt-hero),
body:has(.kontakt-hero) {
  background-color: var(--bg);
}

/* Panel in derselben Farbe wie der Footer */
.kontakt-hero {
  background-color: var(--accent);
}

body:has(.kontakt-hero) .site-header--static {
  background-color: var(--accent);
}

@media (min-width: 768px) {
  .kontakt-hero {
    margin: 40px;
    border-radius: 20px;
    box-shadow: 0 0 0 1px var(--accent);
  }
}

/* Der Rand schiebt das Panel 40px nach unten, die Oberkante der Navbar bleibt bei 64px:
   Innenabstand oben um 40px reduzieren, damit der Inhalt auf gleicher Höhe bleibt. */
@media (min-width: 900px) {
  .kontakt-hero {
    padding-top: 180px;
  }

  .site-header--static ~ main .kontakt-hero {
    padding-top: var(--space-section-desktop);
  }
}

/* Kontaktseite: FAQ-Bereich reines Weiß */
.kontakt-faq-section {
  background-color: var(--bg);
}

/* Kontaktseite: Textbox und Formularbox 15 % kleiner (Desktop/Tablet).
   zoom skaliert Inhalt, Abstände und Höhe gemeinsam; die Breite bleibt bei 592px (Layout-Einheiten),
   die Boxen sitzen mittig zur Spaltenfuge. */
@media (min-width: 900px) {
  .kontakt-hero-column,
  .kontakt-form-column {
    zoom: 0.85;
    width: 592px;
    max-width: 100%;
    align-self: stretch;
  }

  .kontakt-hero-column {
    justify-self: end;
  }

  .kontakt-form-column {
    justify-self: start;
  }
}

/* Vorher/Nachher: echte Fotos, beide gleich mittig ausgerichtet, damit die Bilder am Schieber nahtlos ineinander übergehen */
.compare-before {
  background-image: url("assets/images/vorher.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.compare-after {
  background-image: url("assets/images/nacher.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Navbar: Telefonnummer als weiße Pill (Desktop) */
@media (min-width: 900px) {
  .site-header .site-phone {
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    text-shadow: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  }

  .site-header .site-phone svg {
    stroke: currentColor;
  }

  .site-header .site-phone:hover,
  .site-header .site-phone:focus-visible {
    background: var(--accent);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    text-decoration: none;
  }

  .site-header .site-phone:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
  }
}

/* 900 bis 1099px: etwas kompakter, damit die Navbar nicht überläuft */
@media (min-width: 900px) and (max-width: 1099.98px) {
  .site-header--transparent .wordmark {
    font-size: 1.15rem;
  }

  .site-header .site-nav {
    gap: 16px;
  }

  .site-header .site-nav a,
  .site-header .site-location,
  .site-header .site-phone {
    font-size: 0.82rem;
  }

  .site-header .site-location {
    margin-left: 16px;
  }

  .site-header .site-phone {
    margin-left: 14px;
    padding: 5px 10px;
  }
}

/* Nach-oben-Button: mittig im Footer (Desktop/Tablet) */
@media (min-width: 900px) {
  .footer-to-top,
  .footer-to-top:hover,
  .footer-to-top:focus-visible {
    left: 50%;
    right: auto;
    margin-left: -26px;
  }
}

/* Footer-Spalten (Marke, Kontakt, Navigation) etwas nach links; Nach-oben-Button und Copyright bleiben mittig */
@media (min-width: 900px) {
  .site-footer .footer-col {
    position: relative;
    left: -48px;
  }
}

/* Footer-CTA etwas weiter rechts als die übrigen Inhalte der Markenspalte */
@media (min-width: 900px) {
  .site-footer .footer-cta-button {
    position: relative;
    left: 126px; /* bündig mit dem Schriftzug Elster-Glanz (Vogel 104px + Abstand) */
  }
}

/* Navbar: Menüpunkte besser lesbar (voll weiß, etwas kräftiger, stärkerer Schatten) */
@media (min-width: 900px) {
  .site-header--transparent .site-nav a {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 1rem;
    /* drop-shadow statt text-shadow: sonst erscheint der Schatten der (transparenten) Unterstreichung als dunkle Linie */
    text-shadow: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  }
}

@media (min-width: 900px) and (max-width: 1099.98px) {
  .site-header--transparent .site-nav a {
    font-size: 0.86rem;
  }
}

/* Hero auf Mobile: Hintergrundbild fast mittig (leicht links von der Mitte der Vorversion, damit mehr Seifenblasen sichtbar sind) */
@media (max-width: 899.98px) {
  .hero-img {
    object-position: 49% center;
  }
}

/* Hero: zusätzliche Seifenblasen über dem Foto (nur Handy/Tablet), hinter der Box */
.hero-bubbles {
  display: none;
}

@media (max-width: 899.98px) {
  .hero-bubbles {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
  }

  .hero-bubbles span {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    background:
      radial-gradient(circle at 28% 26%, rgba(255, 255, 255, 0.85) 0 7%, rgba(255, 255, 255, 0) 22%),
      radial-gradient(circle at 70% 78%, rgba(160, 220, 255, 0.45) 0 10%, rgba(160, 220, 255, 0) 30%),
      radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04) 0 58%, rgba(150, 215, 255, 0.28) 100%);
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.25), 0 0 10px rgba(180, 225, 255, 0.2);
    animation: hero-bubble-float var(--t) ease-in-out var(--d) infinite;
  }
}

@keyframes hero-bubble-float {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(6px, -14px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bubbles span {
    animation: none;
  }
}

/* Hero: blauer Button unter der Box, nur wo die Fußzeile der Box nicht sichtbar ist (Handy, Tablet, Touch) */
.hero-mobile-cta {
  display: none;
}

@media (max-width: 1023.98px), (hover: none) {
  .hero-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    align-self: stretch;
    margin-top: 12px;
    min-height: 52px;
    padding: 12px 24px;
    border: 2px solid #FFFFFF;
    border-radius: 20px; /* gleiche Rundung wie die Navbar-Pill auf dem Handy */
    background: var(--accent);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: background-color 200ms ease, transform 200ms ease;
  }

  .hero-mobile-cta svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .hero-mobile-cta:hover,
  .hero-mobile-cta:focus-visible {
    background: #005F87;
    transform: translateY(-1px);
  }
}

/* Hero-Foto: ganz langsames, sanftes Schweben, damit die Foto-Blasen leicht in Bewegung wirken */
@keyframes hero-photo-pan {
  from { object-position: 46% center; }
  to   { object-position: 53% center; }
}

@keyframes hero-photo-drift {
  0%   { translate: -1.2% 0.8%; }
  100% { translate: 1.2% -0.8%; }
}

/* Handy: Foto wandert minimal zur Seite */
@media (max-width: 899.98px) {
  .hero-img {
    animation: hero-photo-pan 20s ease-in-out infinite alternate;
  }
}

/* Desktop mit Maus: Foto-Ebene leicht vergrößert und sanft versetzt (Hover-Zoom bleibt unabhängig über transform) */
@media (hover: hover) and (min-width: 1024px) {
  .hero-img {
    scale: 1.05;
    animation: hero-photo-drift 18s ease-in-out infinite alternate;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg,
  .hero-img {
    animation: none;
  }
}

/* Leistungen (Handy): gleicher Subheader wie am Desktop, in lesbarer Größe */
@media (max-width: 899.98px) {
  .services-subheader--full {
    font-size: 1rem;
    line-height: 1.5;
  }
}

/* Footer auf Handy: Elster über dem Schriftzug, Nach-oben-Button mittig über dem Copyright */
@media (max-width: 899.98px) {
  .site-footer .footer-brand {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .site-footer .footer-brand-text {
    align-items: center;
    text-align: center;
  }

  /* Elster etwas höher und leicht nach links */
  .site-footer .footer-brand-bird {
    position: relative;
    top: -16px;
    left: -12px;
  }

  .site-footer .footer-to-top {
    position: static;
    margin: 28px auto 0;
    flex-shrink: 0;
  }
}

/* Hero-Box auf Handy: weiße Umrandung, passend zum Button darunter */
@media (max-width: 899.98px) {
  .hero-text-glass {
    border: 2px solid #FFFFFF;
  }
}

/* ==========================================================================
   Vorteils-Boxen (Über uns): dekorative Seifenblasen, nur Handy (unter 768px).
   Rein CSS; die Animation startet erst, wenn die Box sichtbar ist (Klasse .is-visible per script.js).
   ========================================================================== */
.benefit-bubbles {
  display: none;
}

@media (max-width: 767.98px) {
  .about-benefit-card {
    position: relative;
    overflow: hidden;
  }

  .about-benefit-card > :not(.benefit-bubbles) {
    position: relative;
    z-index: 1;
  }

  .benefit-bubbles {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    --rise: 300px;
  }

  .benefit-bubbles i {
    position: absolute;
    left: var(--x);
    bottom: calc(var(--s) * -1.2);
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background:
      radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.95) 0 7%, rgba(255, 255, 255, 0) 22%),
      radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 52%, rgba(255, 190, 235, 0.38) 74%, rgba(140, 225, 255, 0.45) 100%),
      linear-gradient(135deg, rgba(255, 170, 225, 0.16), rgba(140, 230, 255, 0.16) 55%, rgba(255, 240, 160, 0.14));
    box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.25);
    opacity: 0;
    will-change: transform, opacity;
    /* x1.5: gleiche Steiggeschwindigkeit (ca. 20px/s) wie die Blasen in den Abschnitten darunter */
    animation: benefit-bubble-rise calc(var(--t) * 1.5) linear calc(var(--d) * 1.5) infinite;
    animation-play-state: paused;
  }

  .about-benefit-card.is-visible .benefit-bubbles i {
    animation-play-state: running;
  }
}

@keyframes benefit-bubble-rise {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  12%  { opacity: var(--o); }
  25%  { transform: translate3d(var(--sw), calc(var(--rise) * -0.25), 0); }
  50%  { transform: translate3d(calc(var(--sw) * -0.8), calc(var(--rise) * -0.5), 0); }
  75%  { transform: translate3d(calc(var(--sw) * 0.7), calc(var(--rise) * -0.75), 0); opacity: var(--o); }
  100% { transform: translate3d(calc(var(--sw) * -0.3), calc(var(--rise) * -1), 0); opacity: 0; }
}

@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  .benefit-bubbles i {
    animation: none;
    opacity: var(--o);
    transform: translateY(var(--st));
  }
}

/* Handy (unter 768px): Seifenblasen in den blauen Abschnitten und im Footer steigen zusätzlich
   von selbst langsam nach oben, wie in den Vorteils-Boxen. Dauer und Verzögerung kommen je Blase
   aus script.js (animationDuration/-Delay), die Strecke steht in --bubble-rise. */
@keyframes bubble-rise {
  0%   { translate: 0 var(--bubble-rise, 120px); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { translate: 0 calc(var(--bubble-rise, 120px) * -1); opacity: 0; }
}

@media (max-width: 767.98px) {
  .bubbles {
    --bubble-rise: 120px;
  }

  .bubble-inner {
    animation: bubble-sway 11s ease-in-out infinite, bubble-rise 11s linear infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bubble-inner {
    animation: none;
  }
}

/* Navbar auf Handy: weiße Umrandung wie Hero-Box und Hero-Button */
@media (max-width: 899.98px) {
  .m-header-glass,
  .m-header-glass:not(.m-header-glass--open) {
    border: 2px solid #FFFFFF;
  }
}

/* Seifenblasen in den Abschnitten (alle Bildschirmgrößen) im selben realistischen Look wie in den Vorteils-Boxen
   (Glanzpunkt oben links, Regenbogenschimmer, feiner weißer Rand) */
.bubble-inner {
  border: 1px solid rgba(255, 255, 255, 0.65);
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.95) 0 7%, rgba(255, 255, 255, 0) 22%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 52%, rgba(255, 190, 235, 0.38) 74%, rgba(140, 225, 255, 0.45) 100%),
    linear-gradient(135deg, rgba(255, 170, 225, 0.16), rgba(140, 230, 255, 0.16) 55%, rgba(255, 240, 160, 0.14));
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.25);
}

.bubble-inner::before {
  display: none;
}


/* Kontaktseite, Handy: "Telefon" und "Erreichbarkeit" besser lesbar (größer, volle Deckkraft, fetter) */
@media (max-width: 899.98px) {
  .kontakt-info-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #FFFFFF;
  }

  .kontakt-call-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #FFFFFF;
  }

  .kontakt-call-day,
  .kontakt-call-time {
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFFFFF;
  }
}

/* Kontaktseite, Handy: Wellenübergang türkis -> weiß zur FAQ (wie unten bei "Unsere Leistungen") */
@media (max-width: 767.98px) {
  .kontakt-hero {
    position: relative;
    padding-bottom: calc(var(--space-section-mobile) + 64px);
  }

  .kontakt-hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: clamp(40px, 6vw, 90px);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23FCF8F3' d='M0,0H1440V40C1320,72 1200,72 1080,40C960,8 840,8 720,40C600,72 480,72 360,40C240,8 120,8 0,40Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    transform: scaleY(-1);
    pointer-events: none;
  }
}

/* ===== Elster-Logo (animiert), Block aus elster-nav.html unverändert ===== */
.elster-logo{
  --e-rand:#FCF8F3;          /* Farbe des Rands um die Elster */
  --e-randb:18px;         /* Breite des Rands (0 = kein Rand) */
  --e-schwarz:#0a0d11;
  --e-weiss:#faf7f4;
  --e-bein:#faf7f4;       /* Beine und Fuesse */
  --e-ast:#0b241e;
  --e-astrand:#faf7f4;    /* heller Streifen oben auf dem Ast */
  height:56px;            /* Groesse in der Navbar */
  width:auto;overflow:visible;flex:none;vertical-align:middle
}
/* Fuer helle Navbars: Klasse elster--hell ergaenzen */
.elster-logo.elster--hell{--e-rand:#b9c4bf;--e-randb:7px;--e-bein:#1b2227;--e-astrand:#b9c4bf}
.elster-logo .k{fill:var(--e-schwarz)}
.elster-logo .w{fill:var(--e-weiss)}
.elster-logo .e-ast{fill:var(--e-ast)}
.elster-logo .e-astw{fill:var(--e-astrand)}
.elster-logo .e-leg{fill:none;stroke:var(--e-bein);stroke-width:16px;stroke-linecap:round;stroke-linejoin:round}
.elster-logo .e-foot{fill:var(--e-bein)}
.elster-logo .e-nk{stroke:var(--e-schwarz);stroke-width:66px;stroke-linecap:round}
.elster-logo .e-sn{fill:#8b9293}
.elster-logo .e-sn2{fill:#a2a6a6}
.elster-logo .e-mund{fill:#2a0f12}
.elster-logo .e-teal{fill:url(#eg-wt)}
.elster-logo .e-v .e-teal{fill:#232a30}
.elster-logo .e-v .e-scap{display:none}
.elster-logo g.e-out path{fill:var(--e-rand);stroke:var(--e-rand);stroke-width:var(--e-randb);stroke-linejoin:round}
.elster-logo g.e-out line{stroke:var(--e-rand);stroke-width:calc(66px + var(--e-randb))}
.elster-logo:not(.e-ready) .e-bird{opacity:0}

/* Elster-Logo: Platzierung (nur Höhe, Breite ergibt sich; Navbar-Höhe bleibt unverändert) */
.wordmark,
.m-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wordmark .elster-logo,
.m-wordmark .elster-logo {
  height: 52px;
  margin-block: -14px;
}

.footer-brand {
  gap: 10px;
}

.footer-brand .elster-logo {
  height: 84px;
}

@media (max-width: 639.98px) {
  .wordmark .elster-logo,
  .m-wordmark .elster-logo {
    height: 42px;
    margin-block: -10px;
  }

  .footer-brand .elster-logo {
    height: 64px;
  }
}

/* Elster-Logo: Umrandung bei kleiner Darstellung kräftiger und glatter */
.elster-logo {
  shape-rendering: geometricPrecision;
}

.wordmark .elster-logo:not(.elster--hell),
.m-wordmark .elster-logo {
  --e-randb: 30px;
}

.wordmark .elster-logo.elster--hell {
  --e-randb: 14px;
}

.footer-brand .elster-logo {
  --e-randb: 22px;
}

/* Handy: Firmenname in der Navbar 20 % größer */
.m-wordmark {
  font-size: clamp(1.02rem, 5.52vw, 1.56rem);
}

/* Handy: Hero-Foto etwas höher ziehen (Bild unten verankert und leicht größer, oben wird mehr abgeschnitten) */
@media (max-width: 899.98px) {
  .hero-img {
    inset: auto 0 0 0;
    height: 122%;
  }
}

/* CoC-Siegel (coc-siegel.svg, inline eingebunden) */
.coc-siegel {
  display: block;
  flex: none;
  height: auto;
}

/* Karte mit Siegel: Siegel wie die Icons der anderen Karten oben links, gleiche Kartenhöhe */
.about-benefit-siegel {
  width: 28px;
  height: 28px;
  margin: -2px 0 -2px;
}

.footer-siegel {
  width: 64px;
  margin-left: 6px;
}

@media (max-width: 640px) {
  .footer-siegel {
    width: 140px;
    margin-top: 64px;
    margin-bottom: 0;
  }
}

/* Hero: Box-Wrapper, damit das Badge nicht vom overflow der Box beschnitten wird */
.hero-box {
  position: relative;
  display: flex;
  align-self: flex-start;
  max-width: 100%;
}

.hero-box > .hero-text-glass {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 899.98px) {
  .hero-box {
    align-self: stretch;
    width: 100%;
  }
}

/* Desktop: Badge hebt sich beim Hover mit der Box an (Box: translateY(-8px)) und dreht leicht weiter */
@media (hover: hover) and (min-width: 1024px) {
  .hero-badge {
    transition: transform 300ms ease-out;
  }

  .hero-box:has(a.hero-text-glass:hover) .hero-badge,
  .hero-box:has(a.hero-text-glass:focus-visible) .hero-badge {
    transform: translate(50%, calc(-50% - 8px)) rotate(14deg);
  }
}

@media (hover: hover) and (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .hero-box:has(a.hero-text-glass:hover) .hero-badge,
  .hero-box:has(a.hero-text-glass:focus-visible) .hero-badge {
    transform: translate(50%, -50%) rotate(8deg);
  }
}

/* CoC-Badge: Mittelpunkt auf der oberen rechten Ecke der Hero-Box */
.hero-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  transform: translate(50%, -50%) rotate(8deg);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 640px) {
  .hero-badge {
    width: 120px;
    height: 120px;
    /* etwas nach innen, damit das Badge nicht am Bildschirmrand abgeschnitten wird */
    transform: translate(calc(50% - 57px), -50%) rotate(8deg);
  }

  /* mehr Luft oben in der Box, damit das Badge keinen Text berührt */
  .hero-box > .hero-text-glass {
    padding-top: 64px;
  }

  /* Eyebrow in einer Zeile */
  .hero-box .hero-eyebrow {
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
  }
}


/* ==========================================================================
   CoC-Fenster (nutzt die .season-modal-Klassen der Einrichtungen) und Ausloeser
   ========================================================================== */
#season-modal-coc {
  aspect-ratio: auto;
  max-width: 640px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
}

#season-modal-coc .season-modal-illustration {
  flex: 0 0 auto;
  aspect-ratio: auto;
  height: 150px;
  background-color: var(--accent);
}

#season-modal-coc .season-modal-siegel {
  width: 100px;
  height: 100px;
}

#season-modal-coc .season-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

#season-modal-coc .season-modal-coc-list {
  margin-top: var(--space-item);
}

#season-modal-coc .season-modal-coc-list li strong {
  font-weight: 600;
  color: var(--ink);
}

#season-modal-coc .season-modal-result {
  margin-top: var(--space-item);
}

/* Hero-Siegel als Button */
.hero-badge.coc-open {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.hero-badge.coc-open .coc-siegel {
  width: 100%;
  height: 100%;
  transition: transform 250ms ease;
}

.hero-badge.coc-open:focus-visible {
  outline: 3px solid var(--accent-green);
  outline-offset: 4px;
  border-radius: 50%;
}

@media (hover: hover) {
  .hero-badge.coc-open:hover .coc-siegel {
    transform: scale(1.08);
  }
}

/* Karte "Verhaltenskodex" */
.about-benefit-card--coc {
  position: relative;
  cursor: pointer;
  transition: transform 250ms ease, box-shadow 250ms ease;
  -webkit-tap-highlight-color: transparent;
}

.about-benefit-card--coc:focus-visible {
  outline: 3px solid var(--accent-green);
  outline-offset: 3px;
}

.about-benefit-card--coc .about-benefit-arrow {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 22px;
  height: 22px;
  color: #FFFFFF;
  transition: transform 250ms ease;
}

@media (hover: hover) {
  .about-benefit-card--coc:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
  }

  .about-benefit-card--coc:hover .about-benefit-arrow {
    /* gleiche Spezifitaet wie oben, Reihenfolge entscheidet */
    transform: translate(4px, -4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-benefit-card--coc,
  .about-benefit-arrow,
  .hero-badge.coc-open .coc-siegel {
    transition: none;
  }
}

/* Footer-Siegel als Link bzw. Button auf das CoC-Fenster */
.footer-siegel-link {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
  transition: transform 250ms ease;
  -webkit-tap-highlight-color: transparent;
}

.footer-siegel-link:focus-visible {
  outline: 3px solid var(--accent-green);
  outline-offset: 4px;
  border-radius: 50%;
}

@media (hover: hover) {
  .footer-siegel-link:hover {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-siegel-link {
    transition: none;
  }
}

/* Footer: Logo+Text bleiben ein Link, das Siegel ist ein eigener Ausloeser daneben */
.footer-brand-home {
  display: contents;
  color: inherit;
  text-decoration: none;
}

/* Über uns und FAQ: Pillen in der lila Grundfarbe */
#galerie .section-eyebrow,
#faq .section-eyebrow {
  background: var(--accent);
  color: #FFFFFF;
}
