/* ============================================================
   HORN-LINDEN v3 · base.css
   Gemeinsame Struktur & Komponenten aller Seiten. Farben, Schriften
   und Layout-Konstanten kommen aus css/tokens-i.css, seitenspezifisches
   CSS aus css/seiten/<vorlage>.css. Dunkelmodus: .hl-dark auf <html>.
   Body-Klassen: hl-gold (Gold-Akzente), hl-cwave-dark (Original-Wellen).
   ============================================================ */

:root {
  --nav-h: 74px;
  --maxw: 1200px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  padding-top: var(--nav-h);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.hl-icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex: none; }

/* ---------- Typografie ---------- */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.02em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 600; line-height: 1.18; letter-spacing: -0.01em;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 600; line-height: 1.3;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--grey-border);
  transition: box-shadow var(--transition), background var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); padding: 0 var(--pad);
  max-width: var(--maxw); margin: 0 auto;
}
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img, .nav__logo-img { height: 46px; max-width: 210px; width: auto; }

.nav__links { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav__links > li { position: relative; display: flex; align-items: center; height: var(--nav-h); }
.nav__links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text);
  transition: color var(--transition); position: relative; letter-spacing: 0.01em;
}
.nav__links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 2px; background: var(--accent); transition: width var(--transition);
}
.nav__links a:hover { color: var(--accent); }
.nav__links a:hover::after,
.nav__links .current-menu-item > a::after,
.nav__links .current-menu-parent > a::after { width: 100%; }
.nav__links .current-menu-item > a,
.nav__links .current-menu-parent > a,
.nav__links .current-menu-ancestor > a { color: var(--accent); }

/* Dropdowns */
.nav__links .menu-item-has-children > a { padding-right: 15px; }
.nav__links .menu-item-has-children > a::before {
  content: ''; position: absolute; right: 0; top: 50%; width: 7px; height: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg); opacity: 0.6;
}
.nav__links .sub-menu {
  list-style: none; margin: 0; padding: 0.4rem 0;
  position: absolute; top: 100%; left: -0.6rem; min-width: 232px;
  background: var(--white); border: 1px solid var(--grey-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease; z-index: 1001;
}
.nav__links .menu-item-has-children:hover > .sub-menu,
.nav__links .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__links .sub-menu li { display: block; width: 100%; }
.nav__links .sub-menu a { display: block; padding: 0.6rem 1.1rem; font-size: 0.86rem; white-space: nowrap; border-left: 2px solid transparent; }
.nav__links .sub-menu a::after { display: none; }
.nav__links .sub-menu a:hover { color: var(--accent); background: var(--lila-light); border-left-color: var(--gold); }

.nav__cta { display: flex; gap: 0.6rem; align-items: center; }
.nav__tel-badge {
  display: inline-block; background: rgba(255,255,255,0.25); color: #fff;
  font-size: 0.62rem; font-weight: 700; padding: 0.1rem 0.4rem; border-radius: 3px; letter-spacing: 0.04em;
}
.nav__hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; }
.nav__hamburger span { display: block; width: 24px; height: 2px; background: var(--text); transition: all var(--transition); }

/* Mobile */
.nav__mobile { display: none; }
.nav__mobile.open {
  display: flex; flex-direction: column;
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--grey-border);
  padding: 0.5rem 1.25rem 1.25rem; gap: 0;
  max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  border-radius: 0 0 16px 16px; box-shadow: var(--shadow-lg);
}
.nav__mobile-list { list-style: none; margin: 0; padding: 0; width: 100%; }
.nav__mobile-list > li { border-bottom: 1px solid var(--grey-border); }
.nav__mobile-list > li:last-child { border-bottom: none; }
.nav__mobile.open .nav__mobile-list > li > a { display: block; padding: 0.95rem 0.25rem; font-size: 1.05rem; font-weight: 500; color: var(--text); }
.nav__mobile.open .btn { width: 100%; justify-content: center; margin-top: 0.85rem; }
.nav__mobile-list .menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; }
.nav__mobile-list .menu-item-has-children > a { flex: 1 1 auto; }
.nav__mobile-toggle { flex: 0 0 auto; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; color: var(--accent); }
.nav__mobile-toggle .caret { display: inline-block; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; transition: transform .25s ease; }
.nav__mobile-list .menu-item-has-children.open > .nav__mobile-toggle .caret { transform: rotate(225deg); margin-top: 3px; }
.nav__mobile-list .sub-menu { list-style: none; margin: 0; padding: 0; flex-basis: 100%; max-height: 0; overflow: hidden; opacity: 0; background: var(--lila-light); border-radius: var(--radius-lg); transition: max-height .3s ease, opacity .3s ease, margin .3s ease; }
.nav__mobile-list .menu-item-has-children.open > .sub-menu { max-height: 560px; opacity: 1; margin: 0 0 0.85rem; }
.nav__mobile.open .nav__mobile-list .sub-menu a { display: block; padding: 0.72rem 1rem 0.72rem 1.6rem; font-size: 0.98rem; font-weight: 400; color: var(--accent-deep); position: relative; }
.nav__mobile-list .sub-menu li + li a { border-top: 1px solid color-mix(in srgb, var(--accent) 14%, transparent); }
.nav__mobile-list .sub-menu a::before { content: ''; position: absolute; left: 0.75rem; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); transform: translateY(-50%); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.78rem 1.6rem; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition); border: 1.5px solid transparent;
  white-space: nowrap; line-height: 1;
}
.btn--primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--outline { background: var(--white); color: var(--accent); border-color: var(--accent); }
.btn--outline:hover { background: var(--lila-light); }
.btn--white { background: #fff; color: var(--accent-deep); border-color: #fff; }
.btn--white:hover { background: var(--lila-light); transform: translateY(-1px); }
.btn--ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.45); }
.btn--ghost:hover { background: rgba(255,255,255,0.22); }
.btn--lg { padding: 0.95rem 2.1rem; font-size: 0.98rem; }
.btn--full { width: 100%; justify-content: center; }

/* ============================================================
   NOTFALL-BAND
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); }
.hero__content {
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: end; gap: 3rem;
  max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 6vw, 6rem) var(--pad) 0;
  width: 100%;
}
.hero__text { align-self: start; padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.hero__eyebrow { margin-bottom: 1.25rem; display: inline-flex; align-items: center; gap: 0.75rem; }
.hero__eyebrow::before { content: ''; width: 34px; height: 1.5px; background: var(--gold); display: inline-block; }
.hero__title { margin-bottom: 1.5rem; color: var(--accent-deep); }
.hero__title em { font-style: italic; color: var(--accent); }
.hero__subtitle { color: var(--text-muted); max-width: 480px; margin-bottom: 2.5rem; font-size: 1.08rem; line-height: 1.8; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
/* Engel unten bündig zum nächsten Abschnitt, vor den Wellen */
.hero__image { display: flex; justify-content: center; align-items: flex-end; align-self: end; }
.hero__image img { max-height: clamp(360px, 40vw, 560px); width: auto; display: block; margin-bottom: 0; }

/* ============================================================
   STERBEFALL-CTA
   ============================================================ */
.cta-sterbefall { background: linear-gradient(150deg, var(--accent-deep) 0%, var(--accent) 100%); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-sterbefall::before { content: ''; position: absolute; top: -40%; left: -8%; width: 320px; height: 320px; background: rgba(255,255,255,0.06); border-radius: 50%; }
.cta-sterbefall::after { content: ''; position: absolute; bottom: -45%; right: -6%; width: 360px; height: 360px; background: rgba(255,255,255,0.05); border-radius: 50%; }
.cta-sterbefall__inner { position: relative; z-index: 1; }
.cta-sterbefall .eyebrow { color: rgba(255,255,255,0.72); margin-bottom: 1rem; }
.cta-sterbefall h2 { margin-bottom: 1rem; color: #fff; }
.cta-sterbefall > .container > .cta-sterbefall__inner > p { max-width: 580px; margin: 0 auto 2.5rem; opacity: 0.9; font-size: 1.05rem; line-height: 1.8; }
.cta-sterbefall__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-sterbefall__promise { margin: 2rem auto 0; max-width: 620px; font-size: 0.98rem; color: #fff; display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center; opacity: 0.96; }
.cta-sterbefall__promise .hl-icon { width: 1.2em; height: 1.2em; color: var(--gold); }
.erste-schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; max-width: 900px; margin: 0 auto 2.5rem; text-align: left; }
.erste-schritte__step { background: rgba(255,255,255,0.96); border-radius: var(--radius-lg); padding: 1.5rem 1.4rem; color: var(--text); }
.erste-schritte__num { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 0.95rem; margin-bottom: 0.8rem; }
.erste-schritte__step h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--accent-deep); margin: 0 0 0.4rem; }
.erste-schritte__step p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ============================================================
   LEISTUNGEN
   ============================================================ */
.leistungen { background: var(--grey-bg); }
.leistungen__header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.leistungen__header .eyebrow { margin-bottom: 0.85rem; }
.leistungen__header p { color: var(--text-muted); margin-top: 1rem; }
.leistungen__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.leistung-card { background: var(--white); border-radius: var(--radius-lg); padding: 2.1rem; transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition); border: 1px solid var(--grey-border); }
.leistung-card:hover { box-shadow: var(--shadow-lg); border-color: var(--lila-mid); transform: translateY(-3px); }
.leistung-card__icon { width: 54px; height: 54px; border-radius: var(--radius-lg); background: var(--lila-light); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.3rem; }
.leistung-card__title { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; margin-bottom: 0.6rem; color: var(--accent-deep); }
.leistung-card__text { font-size: 0.93rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.25rem; }
.leistung-card__link { font-size: 0.86rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 0.3rem; transition: gap var(--transition); }
.leistung-card__link:hover { gap: 0.6rem; }

/* ============================================================
   STANDORTE
   ============================================================ */
.standorte { background: var(--white); }
.standorte__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.standort-card { border: 1px solid var(--grey-border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow var(--transition), transform var(--transition); background: var(--white); }
.standort-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.standort-card__header { background: linear-gradient(150deg, var(--accent) 0%, var(--accent-deep) 100%) !important; padding: 2rem 2rem 1.6rem; color: #fff; }
.standort-card__header--photo { display: flex; align-items: center; gap: 14px; }
.standort-card__thumb { width: 60px; height: 60px; flex-shrink: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1.5px solid var(--gold); }
.standort-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.standort-card__headtext { min-width: 0; }
.standort-card__header .eyebrow { color: rgba(255,255,255,0.75); margin-bottom: 0.5rem; }
.standort-card__title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-bottom: 0.25rem; }
.standort-card__adresse { font-size: 0.9rem; opacity: 0.88; }
.standort-card__body { padding: 1.8rem 2rem 2rem; }
.standort-card__body > p:first-child { font-size: 0.93rem; color: var(--text-muted); line-height: 1.7; }
.standort-card__features { list-style: none; margin: 1rem 0 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; }
.standort-card__features li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.94rem; }
.standort-card__features li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.standort-card__tel { font-weight: 600; color: var(--accent); font-size: 1.05rem; display: block; margin-bottom: 0.4rem; }
.standort-card__hours { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.25rem; }

/* ============================================================
   KOLUMBARIUM
   ============================================================ */
.kolumbarium { background: var(--accent-deep); color: #fff; padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.kolumbarium__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.kolumbarium__text .eyebrow { color: var(--gold); margin-bottom: 0.85rem; }
.kolumbarium__text h2 { color: #fff; margin-bottom: 1.25rem; }
.kolumbarium__text p { opacity: 0.86; line-height: 1.8; margin-bottom: 1rem; }
.kolumbarium__text p:last-of-type { margin-bottom: 2rem; }
.kolumbarium__features { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.kol-feature { background: rgba(255,255,255,0.08); border-radius: var(--radius-lg); padding: 1.1rem; border: 1px solid rgba(255,255,255,0.14); }
.kol-feature__icon { font-size: 1.3rem; margin-bottom: 0.4rem; color: var(--gold); }
.kol-feature__label { font-size: 0.74rem; opacity: 0.72; text-transform: uppercase; letter-spacing: 0.1em; }
.kol-feature__val { font-size: 0.92rem; font-weight: 500; margin-top: 0.2rem; }
.kolumbarium__img { border-radius: var(--radius-lg); overflow: hidden; height: 400px; background: var(--accent); }
.kolumbarium__img img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   ÜBER UNS / TEAM
   ============================================================ */
.ueber-uns { background: var(--white); }
.ueber-uns__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.ueber-uns__text .eyebrow { margin-bottom: 0.85rem; }
.ueber-uns__text h2 { margin-bottom: 1.5rem; }
.ueber-uns__text p { color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.8; }
.ueber-uns__stats { display: flex; gap: 2.5rem; margin: 2rem 0 0; }
.stat__number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--accent); line-height: 1; }
.stat__label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; text-transform: uppercase; letter-spacing: 0.08em; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.team-card { background: var(--grey-bg); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--grey-border); transition: box-shadow var(--transition), transform var(--transition); }
.team-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.team-card__photo { width: 100%; aspect-ratio: 3/4; overflow: hidden; background: var(--lila-light); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.team-card:hover .team-card__photo img { transform: scale(1.04); }
.team-card__body { padding: 1.1rem; }
.team-card__name { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; color: var(--accent-deep); }
.team-card__roles { list-style: none; margin-top: 0.4rem; display: flex; flex-direction: column; gap: 0.15rem; }
.team-card__roles li { font-size: 0.78rem; color: var(--text-muted); padding-left: 0.8rem; position: relative; }
.team-card__roles li::before { content: '–'; position: absolute; left: 0; color: var(--gold); }

/* ============================================================
   NACHSORGE
   ============================================================ */
.nachsorge { background: var(--grey-bg); }
.nachsorge__header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.nachsorge__header .eyebrow { margin-bottom: 0.85rem; }
.nachsorge__header p { color: var(--text-muted); margin-top: 1rem; line-height: 1.7; }
.nachsorge__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.nachsorge-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--grey-border); transition: box-shadow var(--transition), transform var(--transition); display: flex; flex-direction: column; }
.nachsorge-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.nachsorge-card__icon { width: 56px; height: 56px; border-radius: var(--radius-lg); background: var(--lila-light); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 1.25rem; flex-shrink: 0; }
.nachsorge-card__eyebrow { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.4rem; }
.nachsorge-card__title { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; color: var(--accent-deep); margin-bottom: 0.75rem; line-height: 1.3; }
.nachsorge-card__text { font-size: 0.93rem; color: var(--text-muted); line-height: 1.7; flex: 1; margin-bottom: 1.5rem; }
.nachsorge-card__link { font-size: 0.86rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 0.3rem; margin-top: auto; transition: gap var(--transition); }
.nachsorge-card__link:hover { gap: 0.6rem; }
.nachsorge__hint { margin-top: 2.5rem; background: var(--lila-light); border-radius: var(--radius-lg); padding: 1.5rem 2rem; border-left: 4px solid var(--gold); display: flex; align-items: flex-start; gap: 1rem; }
.nachsorge__hint-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 0.1rem; color: var(--accent); }
.nachsorge__hint p { font-size: 0.93rem; color: var(--text); line-height: 1.7; }
.nachsorge__hint strong { color: var(--accent-deep); }

/* ============================================================
   VORSORGE-CTA (Startseite)
   ============================================================ */
.vorsorge-cta { background: var(--white); }
.vorsorge-cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.vorsorge-cta__text .eyebrow { margin-bottom: 0.85rem; }
.vorsorge-cta__text h2 { margin-bottom: 1rem; }
.vorsorge-cta__text p { color: var(--text-muted); margin-bottom: 1.75rem; line-height: 1.8; }
.vorsorge-cta__box { background: var(--grey-bg); border-radius: var(--radius-lg); padding: 2.1rem; border: 1px solid var(--grey-border); box-shadow: var(--shadow); }
.vorsorge-cta__box h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 1rem; color: var(--accent-deep); }
.vorsorge-list { list-style: none; margin-bottom: 1.5rem; }
.vorsorge-list li { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.5rem 0; border-bottom: 1px solid var(--grey-border); font-size: 0.92rem; color: var(--text-muted); }
.vorsorge-list li:last-child { border-bottom: none; }
.vorsorge-list li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ============================================================
   PARTNER-STRIP
   ============================================================ */
.partner-strip { background: var(--white); border-top: 1px solid var(--grey-border); }
.partner-strip__seals { display: flex; align-items: center; justify-content: center; gap: 2.75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.partner-strip__seals img { height: 54px; width: auto; }
.partner-strip__textseal { font-family: var(--font-display); font-size: 1.05rem; color: var(--accent-deep); }
.partner-strip__sublabel { text-align: center; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin: 0 auto 1.1rem; }
.partner-strip__logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem 2.5rem; background: linear-gradient(150deg, var(--accent-deep), color-mix(in srgb, var(--accent) 70%, var(--accent-deep))); border-radius: var(--radius-lg); padding: 1.85rem 2rem; max-width: 900px; margin: 0 auto; }
.partner-strip__logos img { height: 30px; width: auto; opacity: 0.92; filter: brightness(0) invert(1); transition: opacity .18s ease; }
.partner-strip__logos a { display: inline-flex; align-items: center; }
.partner-strip__logos a:hover img { opacity: 1; }

/* ============================================================
   PAGE-HERO / GENERISCHE SEITEN (page.php)
   ============================================================ */
.page-hero { background: var(--hero-bg); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; color: var(--accent-deep); letter-spacing: -0.02em; line-height: 1.12; }
.page-content { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.entry-content { max-width: 820px; }
.entry-content h2 { font-family: var(--font-display); font-size: 1.7rem; color: var(--accent-deep); margin: 2rem 0 1rem; font-weight: 600; }
.entry-content h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--accent-deep); margin: 1.5rem 0 0.75rem; font-weight: 600; }
.entry-content p { color: var(--text-muted); line-height: 1.85; margin-bottom: 1.2rem; }
.entry-content a:not([class]) { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2rem 1.25rem; color: var(--text-muted); line-height: 1.8; }
.entry-content img { border-radius: var(--radius-lg); margin: 1.5rem 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--accent-deep); color: rgba(255,255,255,0.85); padding: 4rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer__brand img { height: 46px; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: 0.92; }
.footer__brand p { font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
.footer__col-title { font-family: var(--font-display); font-size: 0.98rem; font-weight: 600; color: #fff; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.18); }
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer__links a, .footer__contact a { font-size: 0.88rem; color: rgba(255,255,255,0.72); transition: color var(--transition); }
.footer__links a:hover, .footer__contact a:hover { color: var(--gold); }
.footer__contact p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 0.2rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; color: rgba(255,255,255,0.55); }
.footer__bottom a { color: rgba(255,255,255,0.55); }
.footer__bottom a:hover { color: rgba(255,255,255,0.9); }

/* ============================================================
   FIXE ANRUF-LEISTE (mobil)
   ============================================================ */
.callbar { display: none; }

/* ============================================================
   SCROLL-ANIMATION
   ============================================================ */
/* Einblenden beim Scrollen – nur mit JavaScript (.js auf <html>). Ohne JS, bei
   reduzierter Bewegung und beim Drucken bleibt alles sichtbar. */
.js .fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .fade-in.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .js .fade-in { opacity: 1; transform: none; transition: none; } }
@media print { .js .fade-in { opacity: 1 !important; transform: none !important; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .leistungen__grid, .nachsorge__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 880px) {
  .hero__content { grid-template-columns: 1fr; gap: 2rem; }
  .hero__image { display: none; }
  .kolumbarium__inner, .ueber-uns__inner, .vorsorge-cta__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .standorte__grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .leistungen__grid, .nachsorge__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .erste-schritte { grid-template-columns: 1fr; gap: 0.75rem; }
  .ueber-uns__stats { gap: 1.5rem; flex-wrap: wrap; }
  .nachsorge__hint { flex-direction: column; }
  .callbar {
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
    background: var(--accent); color: #fff; font-size: 1.05rem; font-weight: 500;
    padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 18px rgba(0,0,0,0.18);
  }
  .callbar strong { font-weight: 700; }
  .callbar .hl-icon { width: 1.25em; height: 1.25em; }
  body { padding-bottom: 64px; }
}
@media (max-width: 480px) {
  .hero__actions, .cta-sterbefall__actions { flex-direction: column; align-items: stretch; }
  .team-grid { grid-template-columns: 1fr; }
  .kolumbarium__features { grid-template-columns: 1fr; }
}

/* ============================================================
   WELLEN-MOTIV (Marken-Signatur · lila/gold, tokenisiert per Maske)
   ============================================================ */
.hero { isolation: isolate; }
.hero__content { position: relative; z-index: 2; }
/* dekorative Wellenlinie im unteren Hero-Bereich */
.hero::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(150px, 16vw, 300px); z-index: 0;
  background: var(--wave, var(--lila-mid)); opacity: 0.45;
  -webkit-mask: url(../svg/wave-line.svg) center bottom / 100% 100% no-repeat;
          mask: url(../svg/wave-line.svg) center bottom / 100% 100% no-repeat;
  pointer-events: none;
}
/* Übergangswelle vom Hero in die folgende (dunkle) Sektion */
.hero::after {
  content: ''; position: absolute; left: -2px; right: -2px; bottom: -1px; height: 60px; z-index: 1;
  background: var(--accent-deep);
  -webkit-mask: url(../svg/wave-sep.svg) bottom / 100% 100% no-repeat;
          mask: url(../svg/wave-sep.svg) bottom / 100% 100% no-repeat;
  pointer-events: none;
}
/* Übergangswelle am unteren Rand der Unterseiten-Hero */
.page-hero { position: relative; overflow: hidden; }
.page-hero::after {
  content: ''; position: absolute; left: -2px; right: -2px; bottom: -1px; height: 52px;
  background: var(--white);
  -webkit-mask: url(../svg/wave-sep.svg) bottom / 100% 100% no-repeat;
          mask: url(../svg/wave-sep.svg) bottom / 100% 100% no-repeat;
  pointer-events: none;
}
.page-content { position: relative; }
/* Übergangswelle in den Footer */
.footer::before {
  content: ''; position: absolute; left: -2px; right: -2px; top: 0; transform: translateY(-59px);
  height: 60px; background: var(--accent-deep);
  -webkit-mask: url(../svg/wave-sep.svg) bottom / 100% 100% no-repeat;
          mask: url(../svg/wave-sep.svg) bottom / 100% 100% no-repeat;
  pointer-events: none;
}

/* ============================================================
   GOLD-AKZENTE (Body-Klasse hl-gold)
   ============================================================ */
body.hl-gold .eyebrow { color: var(--gold); }
body.hl-gold .hero__title em, body.hl-gold .display-lg em { color: var(--gold); font-style: italic; }
body.hl-gold .leistung-card__link, body.hl-gold .nachsorge-card__link { color: var(--gold); }
body.hl-gold .leistung-card { border-top: 3px solid var(--gold); }
body.hl-gold .leistungen__header .display-lg::after, body.hl-gold .nachsorge__header .display-lg::after {
  content: ''; display: block; width: 54px; height: 2px; background: var(--gold); margin: 1.1rem auto 0;
}

/* ============================================================
   GLOBALE WIDGETS aus hl-helpers (mu-plugin, fest lila) – in der
   Vorschau auf die Variantenfarben umstellen. Höhere Spezifität
   (body.hl-redesign …), damit die Inline-Styles des mu-plugins
   überschrieben werden. Live-Theme bleibt unberührt.
   ============================================================ */
body.hl-redesign .hl-map-consent { background: var(--lila-light); }
body.hl-redesign .hl-map-consent__title { font-family: var(--font-display); color: var(--accent-deep); }
body.hl-redesign .hl-map-consent__text { color: var(--text-muted); }
body.hl-redesign .hl-map-consent__text a { color: var(--accent); }
body.hl-redesign .hl-map-consent__btn { background: var(--accent); border-radius: var(--radius); }
body.hl-redesign .hl-map-consent__btn:hover { background: var(--accent-deep); }
body.hl-redesign .hl-map-consent__remember { color: var(--text-muted); }

body.hl-redesign .hl-fbpost { border-color: var(--grey-border); border-radius: var(--radius-lg); }
body.hl-redesign .hl-fbpost__date { color: var(--text-muted); }
body.hl-redesign .hl-fbpost__text { color: var(--text); }
body.hl-redesign .hl-fbpost__link,
body.hl-redesign .hl-fbfeed__all { color: var(--accent); }
body.hl-redesign .hl-fbfeed--empty { color: var(--text-muted); }
body.hl-redesign .hl-fbfeed__btn { background: var(--accent); border-radius: var(--radius); }

/* ============================================================
   DUNKELMODUS (.hl-dark auf <html>)
   ============================================================ */
.hl-dark .hero__title { color: #F6F0E8; }
.hl-dark .hero__title em { color: var(--lila); }
.hl-dark .eyebrow { color: var(--gold); letter-spacing: 0.20em; }

/* Übergangswellen dunkel (accent-deep ist in G hell) + Gold-Saum */
.hl-dark .hero::after { background: #2A1738; box-shadow: 0 1px 0 0 var(--gold); }
.hl-dark .footer::before { background: #0F0816; }

/* erste-schritte: weiße Kacheln -> Glas */
.hl-dark .erste-schritte__step { background: rgba(255,255,255,0.06); color: var(--text); }
.hl-dark .erste-schritte__step h3 { color: #F6F0E8; }
.hl-dark .erste-schritte__step p { color: var(--text-muted); }

/* Buttons */
.hl-dark .btn--white { background: rgba(142,111,184,0.18); color: var(--text); border-color: var(--gold); }
.hl-dark .btn--white:hover { background: rgba(142,111,184,0.30); }
.hl-dark .btn--outline { background: #221530; border-color: var(--gold); color: var(--text); }
.hl-dark .btn--outline:hover { background: rgba(142,111,184,0.22); }

/* dunkle Sektionen neu differenzieren (sonst Hell-Inseln) */
.hl-dark .cta-sterbefall { background: linear-gradient(150deg,#3A1F4D 0%,#2A1738 100%); }
.hl-dark .kolumbarium { background: #211433; }
.hl-dark .footer { background: #0F0816; }
.hl-dark .partner-strip__logos { background: linear-gradient(150deg,#211433,#2A1738); }

/* standort-card__header: base !important-Gradient + Widdert Inline-Gradient */
.hl-dark .standort-card__header { background: linear-gradient(150deg,#3A1F4D 0%,#2A1738 100%) !important; }
.hl-dark .standort-card__header[style] { background: linear-gradient(150deg,#3A1F4D 0%,#2A1738 100%) !important; }

/* Karten dunkel anheben + Gold-Haarlinie (Signatur) */
.hl-dark .leistung-card,
.hl-dark .nachsorge-card,
.hl-dark .standort-card,
.hl-dark .team-card,
.hl-dark .vorsorge-cta__box {
  background: #221530; border-color: rgba(201,169,110,0.22); border-top: 1.5px solid var(--gold);
}
.hl-dark .leistung-card:hover, .hl-dark .nachsorge-card:hover, .hl-dark .standort-card:hover { border-color: var(--gold); }

/* Card-Icons: Lila-Glas */
.hl-dark .leistung-card__icon, .hl-dark .nachsorge-card__icon { background: rgba(142,111,184,0.16); color: var(--lila); }

/* Logo auf dunklem Nav sichtbar machen */
.hl-dark .nav__logo-img { filter: brightness(0) invert(1); }

/* ============================================================
   ORIGINAL-WELLEN (Body-Klasse hl-cwave-dark)
   wellen.png (weiche bunte Bänder auf Weiß) von Rand zu Rand: hell per
   multiply (Weiß fällt weg), dunkel als gedämpfter Abendschimmer.
   Kommt NACH dem Dunkelmodus-Block und ersetzt dessen Hero-Übergang.
   ============================================================ */
body.hl-cwave-dark .hero::before { display: none; }
body.hl-cwave-dark .hero::after {
  background: url(../assets/images/wellen.png) center bottom / 100% 100% no-repeat;
  -webkit-mask: none; mask: none; mix-blend-mode: multiply; box-shadow: none;
  height: clamp(150px, 16vw, 320px); opacity: 0.95; z-index: 1;
}
body.hl-cwave-dark .leistungen,
body.hl-cwave-dark .standorte,
body.hl-cwave-dark .nachsorge,
body.hl-cwave-dark .partner-strip { position: relative; overflow: hidden; }
body.hl-cwave-dark .leistungen > .container,
body.hl-cwave-dark .standorte > .container,
body.hl-cwave-dark .nachsorge > .container,
body.hl-cwave-dark .partner-strip > .container { position: relative; z-index: 1; }
body.hl-cwave-dark .leistungen::after,
body.hl-cwave-dark .standorte::after,
body.hl-cwave-dark .nachsorge::after,
body.hl-cwave-dark .partner-strip::after {
  content: ''; position: absolute; left: -2px; right: -2px; bottom: -1px; z-index: 0;
  background: url(../assets/images/wellen.png) center bottom / 100% 100% no-repeat;
  mix-blend-mode: multiply;
  pointer-events: none; height: clamp(70px, 8vw, 150px);
}
body.hl-cwave-dark .leistungen::after { opacity: 0.78; }
body.hl-cwave-dark .standorte::after { opacity: 0.9; height: clamp(80px, 9vw, 170px); }
body.hl-cwave-dark .nachsorge::after { opacity: 0.7; }
body.hl-cwave-dark .partner-strip::after { opacity: 0.8; }

/* Variante I: Gold-Akzente (hl-gold) in BEIDEN Modi gleich – Karten-Goldkante
   konstant 3px, damit der Hell/Dunkel-Toggle nicht springt (Dark würde sonst
   1.5px setzen). */
body.hlv-i .leistung-card { border-top: 3px solid var(--gold); }

/* Dunkelmodus: Verbände-Siegel der Startseiten-Leiste auf helle Logo-Plates,
   damit die farbigen Logos & der Text-Siegel lesbar bleiben (wie Partnerseite). */
.hl-dark .partner-strip__seals a,
.hl-dark .partner-strip__textseal {
  background: #fff;
  border: 1px solid rgba(201,169,110,0.5);
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  display: inline-flex;
  align-items: center;
}
.hl-dark .partner-strip__textseal { color: #4A3470; }

/* ===== Feedback 2026-06-25: Team-Platzhalter + Hero-Badge-Kontrast ===== */
.team-card__photo--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--lila-light); color: var(--accent);
}
.team-card__photo--placeholder span {
  font-family: var(--font-display); font-size: 4.5rem; font-weight: 700;
  line-height: 1; opacity: 0.5;
}
.team-card__text {
  margin-top: 0.5rem; font-size: 0.82rem; color: var(--text-muted); line-height: 1.55;
}
.team-card--coming { border-style: dashed; }
/* Hero-Badges: kontrastreich & modus-adaptiv (auf hellem Hero-Verlauf / über den Wellen lesbar) */
.hero .hero-badge {
  background: rgba(34, 21, 48, 0.72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* ============================================================
   v3 (13.10.2026): Original-Entwurf + zwei Übernahmen aus v2
   1) Original-Wellen (wellen.png, weiche bunte Bänder) statt der
      stilisierten SVG-Linien – von Rand zu Rand.
   2) Große Standortfotos oben in den Standortkarten der Startseite.
   ============================================================ */

/* dunkel: dieselbe Datei als gedämpfter Abendschimmer (Weiß → Schwarz, Farben bleiben) */
.hl-dark body.hl-cwave-dark .hero::after,
.hl-dark body.hl-cwave-dark .leistungen::after,
.hl-dark body.hl-cwave-dark .standorte::after,
.hl-dark body.hl-cwave-dark .nachsorge::after,
.hl-dark body.hl-cwave-dark .partner-strip::after {
  filter: invert(1) hue-rotate(180deg);
  mix-blend-mode: screen;
}

/* 2  Standortkarten: großes Foto über dem lila Kopf */
.standort-card__foto { aspect-ratio: 16 / 9; overflow: hidden; background: var(--lila-light); }
.standort-card__foto img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 3  Dunkelmodus lesbar machen (13.10.2026)
   --lila wird im Dunkelmodus hell (#C7A4E8). Seitenvorlagen und DB-Inhalte nutzen
   es aber als FLÄCHE für weiße Schrift → helle Inseln mit unlesbarem Text.
   Hier bekommen diese Flächen im Dunkelmodus ein festes dunkles Lila. */
.hl-dark body.page-template .hero {
  background: linear-gradient(135deg, #2A1738 0%, #3A1F4D 55%, #4A2B63 100%) !important;
}
.hl-dark body.page-template .hero h1 { color: #FFFFFF; }
.hl-dark body.page-template .hero-lead { color: rgba(255, 255, 255, 0.86); }
.hl-dark .nachhaltig-banner { background: linear-gradient(135deg, #3A1F4D 0%, #2A1738 100%); }
.hl-dark .entry-content .hl-standort-head { background: linear-gradient(135deg, #3A1F4D 0%, #2A1738 100%) !important; }
/* fest kodierte dunkle Fließtextfarbe (#4A4060) auf Standort Ohligs */
.hl-dark .body-text { color: var(--text-muted); }
/* Kolumbarium „Im Detail“: Kennzahlen (2011 · Ohligs · 0 €) im Dunkelmodus lesbar */
.hl-dark .detail-stat-num { color: #EDE6F2; }

/* 4  Kachelraster ohne Lücke (seit die Tierbestattung entfallen ist: 5 Leistungen,
      4 Nachsorge-Kacheln): unvollständige letzte Reihe wird mittig gesetzt. */
@media (min-width: 1025px) {
  .leistungen__grid, .nachsorge__grid { grid-template-columns: repeat(6, 1fr); }
  .leistungen__grid > *, .nachsorge__grid > * { grid-column: span 2; }
  .leistungen__grid > :nth-last-child(2):nth-child(3n+1),
.nachsorge__grid > :nth-last-child(2):nth-child(3n+1) { grid-column: 2 / span 2; }
  .leistungen__grid > :last-child:nth-child(3n+1),
.nachsorge__grid > :last-child:nth-child(3n+1) { grid-column: 3 / span 2; }
}
/* Nachsorge-Kacheln: vier in einer Reihe statt 3 + 1 */
@media (min-width: 1025px) {
  .nachsorge__grid { grid-template-columns: repeat(4, 1fr); }
  .nachsorge__grid > *, .nachsorge__grid > :last-child:nth-child(3n+1) { grid-column: auto; }
}

/* ============================================================
   HELL/DUNKEL-UMSCHALTER (früher Inline-Style in parts/mode-toggle.php)
   ============================================================ */
.hlmode-btn{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;
  border-radius:50%;border:1.5px solid var(--grey-border);background:transparent;color:var(--text);
  cursor:pointer;margin-left:8px;flex:0 0 auto;transition:background .2s,border-color .2s,color .2s;}
.hlmode-btn:hover{background:var(--lila-light);border-color:var(--accent);color:var(--accent);}
.hlmode-btn svg{width:20px;height:20px;display:block;}
.hlmode-btn .hl-sun{display:none;}
.hlmode-btn .hl-moon{display:block;}
.hl-dark .hlmode-btn .hl-sun{display:block;}
.hl-dark .hlmode-btn .hl-moon{display:none;}
@media(max-width:768px){.hlmode-btn{width:40px;height:40px;margin:0 4px 0 0;}}

/* ============================================================
   BARRIEREFREIHEIT (aus v2 übernommen, ohne sichtbare Änderung)
   ============================================================ */
/* Sprungmarke: unsichtbar, bis sie per Tastatur den Fokus bekommt */
.sprungmarke {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  padding: 12px 18px; border-radius: var(--radius);
  background: var(--accent-deep); color: #fff; font-weight: 600; text-decoration: none;
}
.sprungmarke:focus { top: 12px; }
main:focus { outline: none; }

/* Sichtbarer Tastatur-Fokus (nur bei Tastaturbedienung, nicht bei Maus/Touch) */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.cta-sterbefall :focus-visible, .kolumbarium :focus-visible,
.footer :focus-visible, .callbar:focus-visible, .partner-strip__logos :focus-visible,
.standort-card__header :focus-visible, body.page-template .hero :focus-visible,
.hl-dark :focus-visible { outline-color: var(--gold); }
.btn:focus-visible, .callbar:focus-visible { outline-offset: 3px; }

/* Zugeklappte Untermenüs im Handy-Menü sind nicht per Tastatur erreichbar */
/* (visibility wechselt beim Zuklappen erst nach der Animation) */
.nav__mobile-list .sub-menu { visibility: hidden; transition: max-height .3s ease, opacity .3s ease, margin .3s ease, visibility 0s linear .3s; }
.nav__mobile-list .menu-item-has-children.open > .sub-menu { visibility: visible; transition: max-height .3s ease, opacity .3s ease, margin .3s ease, visibility 0s; }

/* Wer im System „Bewegung reduzieren“ eingestellt hat, bekommt keine Animationen */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Drucken: ohne Navigation, Anrufleiste und Umschalter; Inhalte, Nummern, Adressen bleiben */
@media print {
  .nav, .nav__mobile, .callbar, .hlmode-btn, .sprungmarke, .hl-map-consent { display: none !important; }
  body { padding-top: 0; }
}

/* ============================================================
   4  WELLEN-REGEL (14.10.2026)
   Die Original-Welle ist die Signatur und steht auf JEDER Seite genau
   einmal: als Abschluss des Seitenkopfs, überall gleich hoch. Dazwischen
   trennen nur die wechselnden Hintergründe die Abschnitte; unten schließt
   der geschwungene Footer-Rand die Seite (ebenfalls auf jeder Seite gleich).
   ============================================================ */
body.hl-cwave-dark .leistungen::after,
body.hl-cwave-dark .standorte::after,
body.hl-cwave-dark .nachsorge::after,
body.hl-cwave-dark .partner-strip::after { content: none; }

/* helle Seitenköpfe (Inhaltsseiten, Vorsorge, Nachsorge) bekommen dieselbe Welle
   wie die lila Köpfe statt der weißen Kante */
body.hl-cwave-dark .page-hero { padding-bottom: calc(2.5rem + clamp(110px, 12vw, 240px)); }
body.hl-cwave-dark .page-hero::after {
  background: url(../assets/images/wellen.png) center bottom / 100% 100% no-repeat;
  -webkit-mask: none; mask: none; mix-blend-mode: multiply;
  height: clamp(150px, 16vw, 320px); opacity: 0.95;
}
.hl-dark body.hl-cwave-dark .page-hero::after { filter: invert(1) hue-rotate(180deg); mix-blend-mode: screen; }
/* geschwungener Footer-Rand: ::before ist absolut positioniert und brauchte den
   Footer als Bezugsrahmen – ohne position:relative lag er unsichtbar am Seitenanfang */
.footer { position: relative; }

/* ============================================================
   5  KOPFZEILE: LUFT (14.10.2026)
   Logo, Menü und Telefon-Knopf standen per space-between ohne Mindestabstand
   und berührten sich (0–5 px); unter ~1250 px ragte die Leiste rechts aus dem
   Bild. Jetzt: fester Abstand, Kopfzeile etwas breiter als der Inhalt, und
   wo das volle Menü nicht passt, klappt es in den Hamburger – Telefon-Knopf
   und Hell/Dunkel bleiben sichtbar.
   ============================================================ */
.nav__inner { gap: 2rem; max-width: calc(var(--maxw) + 160px); }
.nav__links a, .nav__cta .btn { white-space: nowrap; }
@media (min-width: 769px) and (max-width: 1279px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__inner > .nav__cta { margin-left: auto; }
}
/* Klappmenü nie neben dem vollen Menü zeigen (z. B. nach Verbreitern des Fensters) */
@media (min-width: 1280px) { .nav__mobile.open { display: none; } }
