/**
 * Überschreibungen für seitenindividuelle Bereichsfarben.
 * Standardfarben bleiben in shared.css / kontakt.css / subpage.css.
 */

.kontakt-main.has-custom-section-colors.section-bridge--from-hero .section-panel--top::before,
.kontakt-main.has-custom-section-colors.section-bridge--to-green .section-panel--top::before {
  background: var(--page-section-top-bg);
}

/* Header teilt die Hero-Farbe (full-bleed via ::before) */
.page--subpage.has-custom-section-colors .site-header::before,
.page--kontakt.has-custom-section-colors .site-header::before {
  background: var(--page-section-top-bg);
}

.page--subpage-hand .site-header::before {
  background: var(--hand-lavendel);
}

.page--subpage-hand.has-custom-section-colors .site-header::before {
  background: var(--page-section-top-bg);
}

.page--subpage-subnav.has-custom-section-colors .site-header::before {
  background: var(--page-section-top-bg);
}

.page--subpage-subnav .subnav-main.has-custom-section-colors .subnav-band__text :is(h1, .subnav-band__lead, .subnav-band__body, .subnav-band__body h2, .subnav-band__body h3, .subnav-band__body h4, .subnav-band__body p, .subnav-band__body li, .subnav-band__body a, .subnav-band__body strong) {
  color: var(--page-section-top-text);
}

.kontakt-main.has-custom-section-colors.section-bridge--to-green {
  background: var(--page-section-bottom-bg);
}

.page--subpage.has-custom-section-colors .kontakt-main.section-bridge--to-beige,
.page--kontakt.has-custom-section-colors .kontakt-main.section-bridge--to-beige {
  background: var(--page-section-top-bg);
}

.page--subpage.has-custom-section-colors .kontakt-form.section-panel--bottom::after,
.page--kontakt.has-custom-section-colors .kontakt-form.section-panel--bottom::after {
  background: var(--page-section-bottom-bg);
}

/* Schwung bleibt Hero-Farbe (wie Standard .section-curve--down → --hero-bg),
   sonst verschwindet der Bogen auf dem Inhalts-Hintergrund. */
.kontakt-main.has-custom-section-colors .section-curve--down:not(.section-curve--surface-white):not(.section-curve--surface-beige) {
  background: var(--page-section-top-bg);
}

.page--subpage-simple .kontakt-main.has-custom-section-colors .subpage-hero__text :is(h1, .lead, .subpage-hero__body, .subpage-hero__body h2, .subpage-hero__body h3, .subpage-hero__body h4, .subpage-hero__body p, .subpage-hero__body li, .subpage-hero__body a, .subpage-hero__body strong) {
  color: var(--page-section-top-text);
}

.page--subpage-simple .kontakt-main.has-custom-section-colors .kontakt-content__inner :is(h2, h3, h4, p, li, a:not(.ezh-btn), blockquote) {
  color: var(--page-section-bottom-text);
}

.page--subpage-simple .kontakt-main.has-custom-section-colors .kontakt-content__inner blockquote {
  border-left-color: var(--page-section-bottom-text);
}

.page--subpage-hand.hand-main.has-custom-section-colors,
.page--subpage-hand .hand-main.has-custom-section-colors {
  --hand-header-bg: var(--page-section-top-bg);
  --hand-content-bg: var(--page-section-bottom-bg);
}

.page--subpage-hand .hand-main.has-custom-section-colors .hand-header__copy :is(h1, p, li, strong),
.page--subpage-hand .hand-main.has-custom-section-colors .hand-header__body :is(p, li, strong) {
  color: var(--page-section-top-text);
}

.page--subpage-hand .hand-main.has-custom-section-colors .hand-aktuelles__title,
.page--subpage-hand .hand-main.has-custom-section-colors .hand-news-card :is(.hand-news-card__title a, .hand-news-card__excerpt, .hand-news-card__badge) {
  color: var(--page-section-bottom-text);
}

.page--subpage .kontakt-main.has-custom-section-colors .subpage-hero__text :is(h1, .lead, .subpage-hero__body, .subpage-hero__body h2, .subpage-hero__body h3, .subpage-hero__body h4, .subpage-hero__body p, .subpage-hero__body li, .subpage-hero__body a, .subpage-hero__body strong),
.page--kontakt .kontakt-main.has-custom-section-colors .kontakt-hero__text :is(h1, .lead, .kontakt-hero__body, .kontakt-hero__body h2, .kontakt-hero__body h3, .kontakt-hero__body h4, .kontakt-hero__body p, .kontakt-hero__body li, .kontakt-hero__body a, .kontakt-hero__body strong) {
  color: var(--page-section-top-text);
}

.page--subpage-text .textpage-main.has-custom-section-colors.section-bridge--to-white .section-panel--top::before {
  background: var(--page-section-top-bg);
}

.page--subpage-text .textpage-main.has-custom-section-colors .textpage-content__inner h1,
.page--subpage-text .textpage-main.has-custom-section-colors .textpage-content__body :is(h2, h3, h4, p, li, a:not(.ezh-btn), blockquote) {
  color: var(--page-section-top-text);
}

.page--subpage-text .textpage-main.has-custom-section-colors .textpage-content__body blockquote {
  border-left-color: var(--page-section-top-text);
}

/* Subpage (erweitert): Farbe Zusatzbereich vor Footer */
.page--subpage-extended.has-custom-section-colors .subpage-extended::before {
  background: var(--page-section-extended-bg);
}

.page--subpage-extended.has-custom-section-colors .subpage-extended__schwung.section-curve--up {
  background: var(--page-section-extended-bg);
}

.page--subpage-extended.has-custom-section-colors .subpage-extended__body :is(h2, h3, h4, p, li, a:not(.ezh-btn), blockquote) {
  color: var(--page-section-extended-text);
}

.page--subpage-extended.has-custom-section-colors .subpage-extended__body blockquote {
  border-left-color: var(--page-section-extended-text);
}
