/* =========================================================
   JUVENTA · Brückenmühle Gernsbach
   Design System
   ========================================================= */

:root {
  /* Juventa Markenfarben (BSP-System-Mapping) */
  --primary:       #2F5B5C;
  --primary-dark:  #244848;
  --primary-light: #3d7273;
  --primary-soft:  rgba(47, 91, 92, 0.1);
  --primary-glow:  rgba(47, 91, 92, 0.18);

  --accent-1:      #BE8871;
  --accent-1-dark: #A5715C;
  --accent-1-soft: rgba(190, 136, 113, 0.14);
  --accent-1-glow: rgba(190, 136, 113, 0.28);

  --accent-2:      #AF9E88;
  --accent-2-dark: #96836d;
  --accent-2-soft: rgba(175, 158, 136, 0.18);
  --accent-2-glow: rgba(175, 158, 136, 0.28);

  --btn-solid:     var(--primary);
  --btn-solid-hover: var(--primary-dark);

  --c-terracotta:      var(--accent-1);
  --c-terracotta-dark: var(--accent-1-dark);
  --c-sand:            var(--accent-2);
  --c-forest:          var(--primary);
  --c-forest-dark:     var(--primary-dark);
  --c-cream:           #F3ECE4;
  --c-cream-deep:      #E8DDD0;
  --c-warm-white:      #FFFAF8;
  --c-ink:             #1e2d33;
  --c-ink-soft:        #5c6d74;
  --c-anthracite:      #424241;
  --c-line:            rgba(47, 91, 92, 0.12);
  --c-white:           #ffffff;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Manrope", var(--font-sans);

  --fs-hero:   clamp(2.2rem, 5.4vw, 4.2rem);
  --fs-h2:     clamp(1.9rem, 4vw, 3rem);
  --fs-h3:     clamp(1.2rem, 2vw, 1.45rem);
  --fs-lead:   clamp(1.05rem, 1.4vw, 1.2rem);
  --fs-body:   1.0625rem;
  --fs-small:  0.9rem;

  --maxw: 1280px;
  --gutter: clamp(1.25rem, 4vw, 1.75rem);
  --header-h: 82px;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --shadow-xs: 0 4px 20px rgba(30, 45, 51, 0.04);
  --shadow-sm: 0 8px 32px rgba(30, 45, 51, 0.07);
  --shadow-md: 0 20px 50px rgba(30, 45, 51, 0.1);
  --shadow-lg: 0 32px 80px rgba(30, 45, 51, 0.14);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.7s;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

[hidden] { display: none !important; }

/* Complianz reveals its consent-management launcher after a choice is saved.
   The site keeps consent controls in the cookie dialog itself, so do not
   leave a second fixed launcher at the bottom of the page. */
body[data-cmplz="1"] #cmplz-manage-consent,
body[data-cmplz="1"] .cmplz-manage-consent {
  display: none !important;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.75;
  color: var(--c-ink);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
  letter-spacing: 0.02em;
  color: var(--c-ink);
}

p { margin: 0 0 1rem; }
a { color: inherit; }

::selection { background: var(--c-terracotta); color: #fff; }

:focus-visible {
  outline: 3px solid var(--c-forest);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4.5rem, 9vw, 6.5rem); }
.section--cream { background: var(--c-warm-white); }
.section--white { background: var(--c-white); }

/* BSP: Section-Label & Headline-Akzent */
.section-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 1.1rem;
}
.section-label::before,
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-1);
}
.eyebrow--light { color: rgba(255,255,255,0.92); }
.eyebrow--light::before { background: var(--accent-1); }

.headline-accent {
  font-weight: 400;
  background: linear-gradient(135deg, var(--primary), var(--accent-1));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.headline-accent--warm {
  background: linear-gradient(135deg, var(--accent-2-dark), var(--accent-1));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.headline-accent--light {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
}

.lead {
  font-size: var(--fs-lead);
  color: var(--c-ink);
  line-height: 1.55;
}

.section-head { max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-head h2 { font-size: var(--fs-h2); color: var(--c-ink); margin-bottom: 1rem; }
.section-head__sub { color: var(--c-ink-soft); font-size: var(--fs-lead); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--c-forest);
  text-decoration: none;
  padding-block: 0.25rem;
}
.link-arrow span { transition: transform 0.3s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }
.link-arrow:hover { color: var(--c-terracotta-dark); }

/* Tick-Listen */
.ticks { list-style: none; margin: 1.25rem 0; padding: 0; display: grid; gap: 0.65rem; }
.ticks li {
  position: relative;
  padding-left: 2rem;
  color: var(--c-ink);
}
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--c-terracotta);
  border-bottom: 2.5px solid var(--c-terracotta);
  transform: rotate(-45deg);
}
.ticks--lg li { font-size: 1.15rem; padding-block: 0.15rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 9999;
  background: var(--primary); color: #fff; padding: 12px 20px;
}
.skip-link:focus { left: 0; }

/* =========================================================
   Buttons (BSP-Stil)
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  padding: 15px 18px 15px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.35s var(--ease);
}
.btn--lg { padding: 17px 20px 17px 32px; font-size: 16px; }
.btn--primary,
.btn--secondary {
  background: var(--btn-solid);
  color: #fff;
  box-shadow: 0 12px 28px rgba(36, 72, 72, 0.35);
}
.btn--primary:hover,
.btn--secondary:hover {
  background: var(--btn-solid-hover);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(36, 72, 72, 0.42);
  color: #fff;
}
.btn--outline-accent {
  background: transparent;
  color: var(--c-ink);
  border: 1.5px solid var(--accent-1);
  padding: 14px 30px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: none;
}
.btn--outline-accent:hover {
  background: var(--accent-1);
  color: #fff;
  border-color: var(--accent-1);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--accent-1-glow);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid rgba(47, 91, 92, 0.35);
  padding: 14px 28px;
  box-shadow: none;
}
.btn--outline:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(36, 72, 72, 0.35);
}
.btn--ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.45);
  padding: 14px 28px;
  box-shadow: none;
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
  transform: translateY(-3px);
}
.btn--light {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}
.btn--light:hover { background: var(--c-cream); transform: translateY(-3px); }
.btn--outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.55);
  padding: 14px 28px;
  box-shadow: none;
}
.btn--outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.75);
  transform: translateY(-3px);
}
.btn--soft {
  background: var(--btn-solid);
  color: #fff;
  box-shadow: 0 12px 28px rgba(36, 72, 72, 0.35);
}
.btn--soft:hover {
  background: var(--btn-solid-hover);
}
.btn--block { width: 100%; }

.btn__arrow {
  width: 26px; height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255,255,255,0.28);
  display: grid;
  place-items: center;
}
.btn__arrow svg {
  width: 12px; height: 12px;
  stroke: #fff; fill: none; stroke-width: 2.5;
}

/* =========================================================
   Header – Logo mittig zwischen Navigationspunkten
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.35s, box-shadow 0.35s;
}
.header.scrolled { box-shadow: var(--shadow-sm); }

.header__bar {
  position: relative;
  width: 100%;
  max-width: 100vw;
}

.header__logo { display: block; line-height: 0; flex-shrink: 0; }
.header__logo img {
  height: 92px;
  width: auto;
  transition: height 0.3s, filter 0.35s var(--ease);
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.18));
}
.header--overlay:not(.scrolled) .header__logo img {
  filter: brightness(0) invert(1) drop-shadow(0 2px 12px rgba(0, 0, 0, 0.22));
}
.header.scrolled .header__logo img { height: 74px; }
.header__logo--mobile { display: none; }

.header--overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  /* Keep the mobile drawer above its page-dimming overlay. A low stacking
     context here caused the overlay to cover (and blur) the drawer itself. */
  z-index: 200;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.header--overlay.scrolled {
  position: fixed;
  background: rgba(255, 250, 248, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav { width: 100%; }

.nav__inner {
  width: calc(100% - 100px);
  max-width: calc(100vw - 100px);
  margin-inline: 50px;
}

.nav__track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-block: 8px;
  gap: clamp(0.65rem, 1.4vw, 1.35rem);
}
.header.scrolled .nav__track { padding-block: 6px; }

.header__logo--desktop {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.nav__link {
  position: relative;
  display: block;
  flex-shrink: 0;
  color: var(--c-ink);
  font-weight: 500;
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  padding: 8px 2px 10px;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.38s var(--ease);
}
.nav__link:hover { color: var(--primary); }
.nav__link:hover::after,
.nav__link.active::after { transform: scaleX(1); }
.nav__link.active { color: var(--primary); font-weight: 600; }

.nav__item {
  position: relative;
  flex-shrink: 0;
}

.nav__item--has-sub:hover .nav__sub,
.nav__item--has-sub:focus-within .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__sub {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 50%;
  transform: translate(-50%, 6px);
  min-width: 15.5rem;
  margin: 0;
  padding: 0.65rem 0;
  list-style: none;
  background: var(--c-white);
  border: 1px solid rgba(47, 91, 92, 0.12);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 40;
}

.nav__sub a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--c-ink);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.nav__sub a:hover {
  background: rgba(47, 91, 92, 0.08);
  color: var(--primary);
}

.header--overlay:not(.scrolled) .nav__sub {
  background: rgba(20, 28, 28, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
}

.header--overlay:not(.scrolled) .nav__sub a { color: rgba(255, 255, 255, 0.9); }
.header--overlay:not(.scrolled) .nav__sub a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav__drawer-group { margin-bottom: 0.35rem; }

.nav__drawer-toggle { display: none; }

.nav__drawer-sub {
  list-style: none;
  margin: 0.15rem 0 0.75rem;
  padding: 0 0 0 0.85rem;
}

.nav__drawer-sub a {
  display: block;
  padding: 0.4rem 0;
  color: var(--c-muted, #6b6560);
  font-size: 0.92rem;
  text-decoration: none;
}

.nav__drawer-sub a:hover { color: var(--primary); }

.header--overlay:not(.scrolled) .nav__link { color: rgba(255,255,255,0.88); }
.header--overlay:not(.scrolled) .nav__link:hover { color: #fff; }
.header--overlay:not(.scrolled) .nav__link.active { color: #fff; }
.header--overlay:not(.scrolled) .nav__toggle span { background: #fff; }

.nav__cta {
  flex-shrink: 0;
  font-size: clamp(0.75rem, 0.95vw, 0.85rem);
  padding: 11px 12px 11px 18px;
}
.nav__cta .btn__arrow { width: 22px; height: 22px; }

.nav__list.nav__list--drawer,
.nav__cta.nav__cta--drawer { display: none; }

.nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__close {
  display: none;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--c-ink);
}
.nav__toggle {
  display: none;
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: 0.3s;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  /* Visual state only. Pointer handling lives on the document so this layer
     can never sit above the drawer and consume navigation clicks. */
  background: transparent;
  z-index: 190;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav-overlay.show { opacity: 1; }

@media (max-width: 1200px) {
  .header__logo--mobile {
    display: block;
    margin-inline: auto;
    padding: 14px 0;
  }
  .header__logo--desktop { display: none; }
  .nav__inner { display: none; }
  .nav__toggle { display: flex; }
  .header__bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: 50px;
    width: calc(100% - 100px);
    min-height: 72px;
  }
  .nav {
    position: fixed;
    top: 0; right: -100%;
    width: min(85vw, 360px);
    height: 100vh;
    background: #fff;
    padding: 80px 32px 32px;
    box-shadow: -24px 0 60px rgba(0,0,0,0.12);
    transition: right 0.4s var(--ease);
    z-index: 195;
  }
  .nav.open { right: 0; }
  .nav__list.nav__list--drawer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 4px;
  }
  .nav__cta.nav__cta--drawer {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    font-size: 0.95rem;
    padding: 14px 18px 14px 24px;
  }
  .nav__link {
    padding: 14px 12px 14px 18px;
    font-size: 1.05rem;
    border-radius: var(--r-sm);
    color: var(--c-ink);
    text-align: left;
  }
  /* The transparent desktop header uses white links over the hero. Its more
     specific rule must not leak into the white tablet/mobile drawer. */
  .header--overlay:not(.scrolled) .nav.open .nav__link {
    color: var(--c-ink);
  }
  .header--overlay:not(.scrolled) .nav.open .nav__link:hover,
  .header--overlay:not(.scrolled) .nav.open .nav__link:focus-visible,
  .header--overlay:not(.scrolled) .nav.open .nav__link.active {
    color: var(--primary);
  }
  .nav__link::after {
    left: 0;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 3px;
    height: 52%;
    transform: translateY(-50%) scaleY(0);
    transform-origin: center;
  }
  .nav__link:hover { color: var(--primary); }
  .nav__link:hover::after,
  .nav__link.active::after { transform: translateY(-50%) scaleY(1); }
  .nav__close { display: block; position: absolute; top: 20px; right: 20px; }

  .nav__drawer-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    margin-bottom: 0.2rem;
  }

  .nav__drawer-group > .nav__link {
    min-width: 0;
  }

  .nav__drawer-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(47, 91, 92, 0.14);
    border-radius: 50%;
    background: rgba(47, 91, 92, 0.06);
    color: var(--primary);
    cursor: pointer;
  }

  .nav__drawer-toggle:hover,
  .nav__drawer-toggle:focus-visible {
    background: rgba(47, 91, 92, 0.12);
  }

  .nav__drawer-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s var(--ease);
  }

  .nav__drawer-toggle[aria-expanded="true"] .nav__drawer-arrow {
    transform: translateY(2px) rotate(225deg);
  }

  .nav__drawer-sub {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   HERO – BSP-Stil: Vollbild-Slider, Text links, 4 Kategorie-Karten
   ========================================================= */
/* Über allen Abschnitten, denn die Navigation liegt in dieser Ebene */
.hero-shell { position: relative; z-index: 100; }

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
}

.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1.4s ease, visibility 1.4s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 28%;
  transform: scale(1); transition: transform 7s ease;
}
.hero__slide.is-active img { transform: scale(1.06); }
.hero__slide--mirrored img { transform: scaleX(-1); }
.hero__slide--mirrored.is-active img { transform: scale(-1.06, 1.06); }

.hero__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(22, 35, 40, 0.34) 0%, rgba(22, 35, 40, 0.16) 24%, rgba(22, 35, 40, 0.04) 48%, transparent 68%),
    linear-gradient(90deg, rgba(30, 45, 51, 0.48) 0%, rgba(30, 45, 51, 0.30) 40%, rgba(30, 45, 51, 0.05) 68%, transparent 84%),
    linear-gradient(to top, rgba(30, 45, 51, 0.32) 0%, transparent 42%);
}

/* Weicher Schatten hält die Schrift auf dem helleren Verlauf lesbar */
.hero__eyebrow,
.hero__title,
.hero__sub {
  text-shadow: 0 1px 2px rgba(22, 35, 40, 0.4), 0 2px 18px rgba(22, 35, 40, 0.45);
}

.hero__body {
  position: relative; z-index: 5;
  flex: 1; display: flex; align-items: center;
  padding: 150px 0 210px;
}

.hero__content { max-width: 620px; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff;
  margin-bottom: 22px;
}
.hero__eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--accent-1);
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5.4vw, 4.1rem);
  margin-bottom: 22px;
  letter-spacing: 0.02em;
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
}
.hero__title .headline-accent--light {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-1) 80%, #fff), color-mix(in srgb, var(--accent-2) 75%, #fff));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 1px 1px rgba(22, 35, 40, 0.55)) drop-shadow(0 2px 14px rgba(22, 35, 40, 0.6));
}

.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,0.9);
  line-height: 1.8;
  margin-bottom: 0;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: clamp(2.75rem, 5vw, 4rem);
}

.hero__play {
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none; color: inherit;
}
.hero__play-icon {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.35);
  display: grid; place-items: center; transition: all 0.3s var(--ease);
}
.hero__play-icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.9; }
.hero__play:hover .hero__play-icon { background: #fff; transform: scale(1.06); }
.hero__play:hover .hero__play-icon svg { stroke: var(--primary); }
.hero__play-text { display: flex; flex-direction: column; line-height: 1.25; }
.hero__play-text small { font-size: 13px; color: rgba(255,255,255,0.72); }
.hero__play-text strong { font-size: 18px; color: #fff; font-weight: 600; }

/* Vier Kategorie-Karten – 75vw, am rechten Bildschirmrand */
.hero__cards {
  position: absolute;
  z-index: 6;
  right: 0;
  left: auto;
  bottom: -80px;
  width: 75vw;
  overflow: visible;
}
.hero__cards .container {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
}
.hero__cards-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  overflow: visible;
  border-radius: var(--r-md) 0 0 var(--r-md);
  box-shadow: var(--shadow-lg);
}

.hero__cards-inner--dual {
  grid-template-columns: repeat(2, 1fr);
}

.hero__cards-inner--hex {
  grid-template-columns: repeat(3, 1fr);
  border-radius: var(--r-md) 0 0 var(--r-md);
}

.hero__cards-inner--hex .hero__card:nth-child(3n) {
  border-right: none;
}

.hero__cards-inner--hex .hero__card:first-child {
  border-radius: var(--r-md) 0 0 var(--r-md);
}

.hero__cards-inner--hex .hero__card:nth-child(3) {
  border-radius: 0;
}

.hero__cards-inner--hex .hero__card:nth-child(4) {
  border-radius: 0;
}

.hero__cards-inner--hex .hero__card:last-child {
  border-radius: 0;
  border-right: none;
}

.hero__card {
  display: block;
  padding: 34px 24px;
  background: var(--c-warm-white);
  color: var(--c-ink);
  text-decoration: none;
  position: relative;
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
  border-right: 1px solid rgba(47, 91, 92, 0.08);
  box-shadow: none;
}
.hero__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-1);
  border-radius: inherit;
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.55s var(--ease);
  z-index: 0;
}
.hero__card:hover::before { transform: scaleY(1); }
.hero__card:last-child { border-right: none; }
.hero__card:first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
.hero__card:last-child { border-radius: 0; }

.hero__card-icon {
  position: relative;
  z-index: 1;
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary-soft);
  margin-bottom: 14px;
  transition: background 0.45s var(--ease);
}
.hero__card-num {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 12px;
  transition: color 0.45s var(--ease);
}
.hero__card-icon svg {
  width: 24px; height: 24px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.9;
  transition: stroke 0.45s var(--ease);
}
.hero__card h2 {
  position: relative;
  z-index: 1;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  margin: 0 0 8px;
  color: var(--accent-1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
  transition: color 0.45s var(--ease);
}
.hero__card p {
  position: relative;
  z-index: 1;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--c-ink-soft);
  margin: 0;
  transition: color 0.45s var(--ease);
}
.hero__card:hover h2 { color: #fff; }
.hero__card:hover p { color: rgba(255, 255, 255, 0.88); }
.hero__card:hover .hero__card-icon { background: rgba(255, 255, 255, 0.22); }
.hero__card:hover .hero__card-icon svg { stroke: #fff; }
.hero__card:hover .hero__card-num { color: #fff; }

.hero-shell + main {
  padding-top: clamp(5.5rem, 10vw, 8rem);
}

/* =========================================================
   Story – BSP Intro-Collage
   ========================================================= */
.story__grid,
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.story__collage,
.about__collage {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 18px;
  align-items: stretch;
}
.story__collage-stack,
.about__collage-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.story__collage-img,
.about__collage-img {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.story__collage-img img,
.about__collage-img img,
.story__video-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease);
}
.story__collage-img--face img {
  object-position: center top;
}
.story__collage-img--right img {
  object-position: right center;
}
.story__collage-img--job-focus img {
  object-position: 82% center;
}
.story__video-preview {
  pointer-events: none;
}

.story__collage-img:hover img,
.about__collage-img:hover img,
.story__video-trigger:hover .story__video-preview { transform: scale(1.03); }
.story__collage-img--tall,
.about__collage-img--tall {
  min-height: 0;
  height: 100%;
}
.story__collage-img--tall img,
.about__collage-img--tall img { min-height: 480px; }
.story__collage-img--top,
.about__collage-img--top {
  aspect-ratio: 4 / 3.2;
  flex-shrink: 0;
}
.story__collage-img--bottom,
.about__collage-img--bottom {
  aspect-ratio: 4 / 3.2;
  flex-shrink: 0;
  width: 86%;
  align-self: flex-start;
}

.story__collage--single,
.about__collage--single {
  grid-template-columns: 1fr;
}

.story__collage--single .story__collage-img--tall img,
.about__collage--single .about__collage-img--tall img {
  min-height: 420px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.story__video-trigger {
  display: block;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
  background: none;
  position: relative;
}

.story__video-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 45, 51, 0.18);
  transition: background 0.35s var(--ease);
  pointer-events: none;
}

.story__video-trigger:hover::after,
.story__video-trigger:focus-visible::after {
  background: rgba(30, 45, 51, 0.32);
}

.story__video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  box-shadow: 0 12px 32px rgba(30, 45, 51, 0.2);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
  pointer-events: none;
}

.story__video-play svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
  margin-left: 3px;
}

.story__video-trigger:hover .story__video-play,
.story__video-trigger:focus-visible .story__video-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--primary);
  color: #fff;
}

/* Video-Lightbox */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
}

.video-lightbox[hidden] { display: none; }

.video-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(30, 45, 51, 0.88);
  cursor: pointer;
}

.video-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  animation: videoLightboxIn 0.35s var(--ease);
}

@keyframes videoLightboxIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.video-lightbox__close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}

.video-lightbox__close:hover { background: rgba(255, 255, 255, 0.28); }

.video-lightbox__player {
  width: 100%;
  max-height: min(80vh, 540px);
  display: block;
  border-radius: var(--r-md);
  background: #000;
  box-shadow: var(--shadow-lg);
}

.story__text h2,
.about__text h2 {
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.2;
  color: var(--c-ink);
  margin-bottom: 1.35rem;
}
.story__lead,
.about__lead {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  color: var(--c-ink-soft);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.story__text p,
.about__text p {
  color: var(--c-ink-soft);
  margin-bottom: 1.75rem;
  font-size: 1.0625rem;
  line-height: 1.8;
}
.story__text .btn { margin-top: 0.25rem; }
.story__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.about__people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  margin: 0 0 1.75rem;
}

.about__person {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.35rem;
}

.about__person-photo {
  width: clamp(6.5rem, 14vw, 8.5rem);
  aspect-ratio: 1;
  margin-bottom: 0.55rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(47, 91, 92, 0.12);
  box-shadow: 0 10px 28px rgba(30, 45, 51, 0.1);
  background: var(--c-cream);
}

.about__person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about__person strong {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--c-ink);
}

.about__person span {
  font-size: 0.88rem;
  color: var(--c-ink-soft);
  line-height: 1.4;
}

/* =========================================================
   Vier Bereiche – horizontales Akkordeon
   ========================================================= */
.areas__accordion {
  display: flex;
  gap: 14px;
  height: 520px;
}
.areas-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: flex 0.55s cubic-bezier(0.5, 0, 0.15, 1);
}
.areas-panel.is-open { flex: 4 1 0; }

.areas-panel__trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: none;
  text-align: left;
  font-family: inherit;
  overflow: hidden;
  border-radius: inherit;
}
.areas-panel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.areas-panel.is-open .areas-panel__img { transform: scale(1.05); }
.areas-panel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 45, 51, 0.9) 0%, rgba(30, 45, 51, 0.48) 45%, rgba(30, 45, 51, 0.28) 100%);
  transition: background 0.55s var(--ease);
}
.areas-panel.is-open .areas-panel__overlay {
  background: linear-gradient(to top, rgba(30, 45, 51, 0.92) 0%, rgba(30, 45, 51, 0.55) 55%, rgba(30, 45, 51, 0.2) 100%);
}

.areas-panel__label {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  opacity: 1;
  transition: opacity 0.35s var(--ease);
}
.areas-panel.is-open .areas-panel__label { opacity: 0; pointer-events: none; }
.areas-panel__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
}
.areas-panel__icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.8; }
.areas-panel__title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.areas-panel__content {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 480px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s 0.15s, transform 0.5s 0.15s;
  pointer-events: none;
}
.areas-panel.is-open .areas-panel__content {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.areas-panel__num {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-1);
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}
.areas-panel__heading {
  color: #fff;
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.2;
  margin: 0 0 0.85rem;
  font-weight: 500;
}
.areas-panel__text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1.35rem;
}

/* =========================================================
   Apartments – asymmetrisch: Intro links, Feature-Grid rechts
   ========================================================= */
.apartments__layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) 1.35fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: stretch;
}
.apartments__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  padding: clamp(0.5rem, 2vw, 1.5rem) 0 clamp(1rem, 3vw, 2rem);
}
.apartments__intro h2 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.14;
  margin: 0 0 1rem;
  max-width: 17ch;
}
.apartments__scroll {
  margin-top: auto;
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-1);
  color: var(--c-ink);
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.apartments__scroll svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.apartments__scroll:hover {
  background: var(--accent-1);
  border-color: var(--accent-1);
  color: #fff;
  transform: translateY(3px);
}
.apartments__features {
  list-style: none;
  margin: 0;
  padding: clamp(0.5rem, 2vw, 1.5rem) 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.25rem, 4.5vw, 3.75rem) clamp(2rem, 5vw, 4.5rem);
  align-content: start;
}
.apartments__features li {
  max-width: 22rem;
}
.apartments__feature-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1.15rem;
}
.apartments__feature-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent-1);
  fill: none;
  stroke-width: 1.6;
}
.apartments__features h3 {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 500;
  margin: 0 0 0.65rem;
  line-height: 1.25;
}
.apartments__features p {
  color: var(--c-ink-soft);
  font-size: clamp(0.95rem, 1.05vw, 1.02rem);
  line-height: 1.7;
  margin: 0;
}

/* Apartments – Bild-Slider */
.apartments__slider {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  position: relative;
}
.apartments__slider-media {
  position: relative;
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
  width: min(82vw, 1180px);
  margin-left: auto;
  margin-right: 0;
  aspect-ratio: 16 / 8.5;
  max-height: min(72vh, 720px);
  background: var(--c-ink);
  border-radius: var(--r-lg);
}
.apartments__slider-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s var(--ease), visibility 0.65s;
}
.apartments__slider-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.apartments__slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}
.apartments__slider-num {
  position: absolute;
  right: clamp(1.25rem, 5vw, 4.5rem);
  bottom: clamp(0.5rem, 2vw, 1.5rem);
  z-index: 2;
  font-family: var(--font-head);
  font-size: clamp(4.5rem, 13vw, 9.5rem);
  line-height: 0.9;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: -0.02em;
  pointer-events: none;
  user-select: none;
}
.apartments__slider-hover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 45, 51, 0);
  color: #fff;
  text-decoration: none;
  border-radius: inherit;
  transition: background 0.4s var(--ease);
}
.apartments__slider-hover-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.apartments__slider-hover-label svg {
  width: 1.15em;
  height: 1.15em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  transition: transform 0.35s var(--ease);
}
.apartments__slider-media:hover .apartments__slider-hover,
.apartments__slider-hover:focus-visible {
  background: rgba(30, 45, 51, 0.58);
}
.apartments__slider-media:hover .apartments__slider-hover-label,
.apartments__slider-hover:focus-visible .apartments__slider-hover-label {
  opacity: 1;
  transform: none;
}
.apartments__slider-media:hover .apartments__slider-hover-label svg,
.apartments__slider-hover:focus-visible .apartments__slider-hover-label svg {
  transform: translateX(4px);
}
.apartments__slider-foot {
  position: relative;
  z-index: 5;
  pointer-events: auto;
}
.apartments__slider-bar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  background: var(--c-white);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.75rem, 4vw, 3rem);
  margin-top: clamp(-5.5rem, -10vw, -8rem);
  max-width: min(920px, 92%);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.apartments__slider-copy { max-width: 36rem; }
.apartments__slider-copy .eyebrow { margin-bottom: 1rem; }
.apartments__slider-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}
.apartments__slider-text {
  color: var(--c-ink-soft);
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.75;
  margin: 0;
  max-width: 38ch;
}
.apartments__slider-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  padding-bottom: 0.15rem;
}
.apartments__slider-btn {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-1);
  background: transparent;
  color: var(--c-ink);
  cursor: pointer;
  padding: 0;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.apartments__slider-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.apartments__slider-btn:hover {
  background: var(--accent-1);
  border-color: var(--accent-1);
  color: #fff;
}

/* =========================================================
   Service
   ========================================================= */
.service__columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.servicecol {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-lg);
  padding: 2rem 1.9rem 2.2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(47, 91, 92, 0.06);
  background: #fff;
}
.servicecol::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-1);
  border-radius: inherit;
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.55s var(--ease);
  z-index: 0;
}
.servicecol:hover::before { transform: scaleY(1); }
.servicecol__icon {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.15rem;
  border-radius: 14px;
  background: var(--accent-1-soft);
  transition: background 0.45s var(--ease);
}
.servicecol__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent-1);
  fill: none;
  stroke-width: 1.8;
  transition: stroke 0.45s var(--ease);
}
.servicecol__kicker {
  position: relative;
  z-index: 1;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1.1rem;
  color: var(--c-ink);
  transition: color 0.45s var(--ease);
}
.servicelist {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.servicelist li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 1.05rem;
  transition: color 0.45s var(--ease);
}
.servicelist li::before {
  content: "";
  position: absolute; left: 0; top: 0.6em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-1);
  transition: background 0.45s var(--ease);
}
.servicecol:hover .servicecol__kicker { color: #fff; }
.servicecol:hover .servicelist li { color: rgba(255, 255, 255, 0.9); }
.servicecol:hover .servicecol__icon { background: rgba(255, 255, 255, 0.22); }
.servicecol:hover .servicecol__icon svg { stroke: #fff; }
.servicecol:hover .servicelist li::before { background: #fff; }
.service__cta {
  text-align: center;
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* =========================================================
   Pflege
   ========================================================= */
.care__wrap {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}
.care__layout {
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 60%);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.care__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.care__intro h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  max-width: 12ch;
}
.care__intro .lead {
  color: var(--c-ink-soft);
  margin: 0 0 1.5rem;
}
.care__intro .btn { margin-top: 0.25rem; }
.care__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3.25rem) clamp(1.5rem, 3vw, 2.75rem);
  align-content: start;
}
.care__features li { max-width: none; }
.care__feature-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1.15rem;
}
.care__feature-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent-1);
  fill: none;
  stroke-width: 1.6;
}
.care__features h3 {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 500;
  margin: 0 0 0.65rem;
  line-height: 1.25;
}
.care__features h3 a {
  color: inherit;
  text-decoration: none;
}
.care__features h3 a:hover {
  color: var(--accent-1);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.care__features p {
  color: var(--c-ink-soft);
  font-size: clamp(0.95rem, 1.05vw, 1.02rem);
  line-height: 1.7;
  margin: 0;
}
.care__note {
  margin-top: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(128deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(2.25rem, 4.5vw, 3.5rem);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.care__note::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 90% at 100% 50%, rgba(190, 136, 113, 0.14) 0%, transparent 68%);
  pointer-events: none;
}
.care__note-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: start;
}
.care__quote {
  margin: 0;
  display: grid;
  grid-template-columns: 3px 1fr;
  column-gap: clamp(1rem, 2vw, 1.5rem);
  align-self: start;
}
.care__quote::before {
  content: "";
  grid-row: 1;
  width: 3px;
  background: var(--accent-1);
  align-self: stretch;
}
.care__quote p {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 1.28;
  margin: 0;
}
.care__note-kicker {
  margin: 5px 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.care__meta {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.75;
  margin: 0;
  max-width: 34ch;
}

/* =========================================================
   Café – gespiegeltes Story-Layout (Text links, Bild rechts)
   ========================================================= */
.cafe.section { overflow: visible; }
.cafe__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: stretch;
  overflow: visible;
}
.cafe__text {
  position: relative;
  z-index: 2;
  align-self: center;
}
.cafe__text h2 { font-size: var(--fs-h2); margin-bottom: 1.4rem; }
.cafe__text .lead { color: var(--c-ink); margin-bottom: 1.2rem; }
.cafe__list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.cafe__list li {
  position: relative;
  padding-left: 2rem;
  color: var(--c-ink-soft);
  font-size: 1.08rem;
}
.cafe__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--accent-1);
  border-bottom: 2.5px solid var(--accent-1);
  transform: rotate(-45deg);
}
.cafe__text .btn { margin-top: 0.25rem; }
.cafe__media {
  display: flex;
  align-items: center;
  min-height: 0;
  height: 100%;
  width: min(50vw, 1180px);
  max-width: none;
  margin-right: calc(-1 * (var(--gutter) + max(0px, (100vw - var(--maxw)) / 2)));
  margin-left: auto;
}
.cafe__media-frame {
  position: relative;
  width: 100%;
  height: calc(100% - clamp(2.5rem, 5vh, 4rem));
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  background: var(--c-ink);
}
.cafe__media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.cafe__badge {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 2;
  background: rgba(255, 250, 248, 0.95);
  color: var(--c-ink);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}

/* Café-Variante: Bild links (Bleed nach links statt rechts) */
.cafe__grid--media-start {
  grid-template-columns: 1.05fr 1fr;
}

.cafe__grid--media-start .cafe__media {
  order: -1;
  margin-right: auto;
  margin-left: calc(-1 * (var(--gutter) + max(0px, (100vw - var(--maxw)) / 2)));
}

.cafe__grid--media-start .cafe__media-frame {
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
}

.cafe__grid--media-start .cafe__badge {
  right: auto;
  left: 1.5rem;
}

/* =========================================================
   Standort – Vollflächige Video-Sektion
   ========================================================= */
.location.section {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  background: transparent;
}
.location.section.section--cream {
  background: var(--c-warm-white);
  padding-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

#einzugsgebiet.section {
  padding-top: clamp(2rem, 4vw, 3.25rem);
}
.location__panel {
  position: relative;
  color: #fff;
  overflow: hidden;
  margin-inline: 30px;
  border-radius: var(--r-lg);
  padding-block: clamp(5rem, 12vw, 10rem);
}
.location__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
}
.location__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.location__bg-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(36, 72, 72, 0.92) 0%, rgba(36, 72, 72, 0.75) 45%, rgba(36, 72, 72, 0.35) 100%);
}
.location__inner { position: relative; z-index: 1; }
.location__text { max-width: 620px; }
.location__text h2 { font-size: var(--fs-h2); color: #fff; margin-bottom: 1.4rem; }
.location__text .lead { color: rgba(255, 255, 255, 0.92); margin-bottom: 1.5rem; }
.location__list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0.7rem; }
.location__list li { position: relative; padding-left: 2rem; font-size: 1.1rem; }
.location__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--accent-1);
  border-bottom: 2.5px solid var(--accent-1);
  transform: rotate(-45deg);
}

/* =========================================================
   FAQ
   ========================================================= */
.faq__wrap {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.faq__media {
  position: sticky;
  top: calc(var(--header-h, 88px) + 2rem);
  padding-bottom: 2.5rem;
}

.faq__img {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(30, 45, 51, 0.12);
}

.faq__img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.faq__img:hover img { transform: scale(1.03); }

.faq__badge {
  position: absolute;
  left: 1.75rem;
  width: 60%;
  bottom: -1.5rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-1-dark));
  color: #fff;
  padding: 1.375rem 1.5rem;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 0 20px 44px var(--accent-1-glow);
}

.faq__badge-icon {
  display: inline-grid;
  place-items: center;
  width: 2.625rem;
  height: 2.625rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.faq__badge-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: #fff;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.faq__content { min-width: 0; }

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.faq__item {
  position: relative;
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid rgba(47, 91, 92, 0.1);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.faq__item.is-open {
  border-color: rgba(47, 91, 92, 0.16);
  box-shadow: var(--shadow-sm);
}

.faq__question { margin: 0; position: relative; z-index: 1; }

.faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-ink);
  transition: color 0.25s;
}

.faq__trigger:hover { color: var(--primary); }

.faq__toggle {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  flex-shrink: 0;
  color: #fff;
  background: var(--primary);
  box-shadow:
    0 6px 18px var(--primary-glow),
    0 0 0 5px var(--primary-soft);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s, box-shadow 0.35s;
}

.faq__toggle svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__item.is-open .faq__toggle {
  background: var(--accent-1);
  box-shadow:
    0 8px 22px var(--accent-1-glow),
    0 0 0 5px var(--accent-1-soft);
}

.faq__item.is-open .faq__toggle svg { transform: rotate(45deg); }

.faq__panel {
  position: relative;
  z-index: 1;
  padding: 0 1.75rem 1.625rem;
}

.faq__panel[hidden] { display: none; }

.faq__panel p {
  margin: 0;
  color: var(--c-ink-soft);
  font-size: 1rem;
  line-height: 1.75;
  border-top: 1px solid rgba(47, 91, 92, 0.1);
  padding-top: 1.125rem;
}

.faq__cta {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.125rem;
}

.faq__cta p {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--c-ink);
}

/* =========================================================
   Kontakt
   ========================================================= */
.contact__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(47, 91, 92, 0.08);
}

.contact__panel {
  background: linear-gradient(160deg, var(--primary-dark), var(--primary));
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(2rem, 4vw, 3rem);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.contact__panel::before {
  content: "";
  position: absolute;
  top: -3.75rem;
  right: -3.75rem;
  width: 12.5rem;
  height: 12.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.contact__panel .section-label { color: #fff; }
.contact__panel .section-label::before { background: var(--accent-1); }

.contact__panel h1,
.contact__panel h2 {
  color: #fff;
  font-size: clamp(1.625rem, 3vw, 2.375rem);
  margin-bottom: 1rem;
  font-weight: 400;
  line-height: 1.22;
}

.contact__panel h1 .headline-accent,
.contact__panel h2 .headline-accent {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact__panel > p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2.25rem;
  font-size: 1rem;
  line-height: 1.65;
  max-width: 42ch;
}

.contact__items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact__item-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact__item-icon svg {
  width: 1.375rem;
  height: 1.375rem;
  stroke: #fff;
  fill: none;
  stroke-width: 1.75;
}

.contact__item strong {
  display: block;
  font-size: 0.8125rem;
  opacity: 0.7;
  margin-bottom: 0.125rem;
  font-weight: 500;
}

.contact__item a,
.contact__item span {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.contact__item a:hover { text-decoration: underline; }

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact__panel .btn--primary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
  padding: 0.8125rem 1.125rem 0.8125rem 1.75rem;
}

.contact__panel .btn--primary.btn--lg {
  padding: 0.9375rem 1.25rem 0.9375rem 2rem;
}

.contact__panel .btn--primary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-3px);
  box-shadow: none;
  color: #fff;
}

.contact__panel .btn--primary .btn__arrow {
  background: rgba(255, 255, 255, 0.22);
}

.contact__panel .btn--outline-light .btn__arrow {
  background: rgba(255, 255, 255, 0.22);
}

.contact__visual {
  position: relative;
  min-height: 25rem;
  overflow: hidden;
}

.contact__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.6s var(--ease);
}

.contact__visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--primary-dark), transparent 50%);
  opacity: 0.3;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}

.contact__visual:hover img { transform: scale(1.03); }
.contact__visual:hover .contact__visual-overlay { opacity: 0.18; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--c-anthracite);
  color: rgba(255, 255, 255, 0.75);
  padding-top: clamp(3rem, 6vw, 5rem);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
}
.site-footer__brand img { height: 56px; width: auto; margin-bottom: 1rem; }
.site-footer__brand p { max-width: 26ch; font-size: 1rem; }
.site-footer__col h3 { font-family: var(--font-sans); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; color: #fff; margin-bottom: 1rem; font-weight: 600; }
.site-footer__subhead { margin-top: 2.25rem; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.site-footer__col a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.25s var(--ease); }
.site-footer__col a:hover { color: var(--c-terracotta); }
.site-footer__col a[href^="tel:"],
.contact__item a[href^="tel:"],
.hero__play strong {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-block: 1.5rem; font-size: 0.9rem; }
.site-footer__bottom p { margin: 0; }

/* =========================================================
   Coming Soon, News
   ========================================================= */
.coming {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.coming__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  overflow: hidden;
  border-radius: var(--r-md);
  background:
    linear-gradient(135deg, rgba(47, 91, 92, 0.92), rgba(66, 66, 65, 0.88)),
    url("../assets/images/pflege-rollstuhl-garten.webp") center/cover;
  color: #fff;
}

.coming__badge {
  position: relative;
  top: auto;
  right: auto;
  z-index: 2;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 7.25rem;
  height: 7.25rem;
  margin: 0.35rem 0.5rem 0.35rem 0;
  padding: 0.65rem;
  border-radius: 50%;
  background: var(--accent-1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  color: #fff;
  transform: rotate(10deg);
}

.coming__content {
  padding: 0;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.coming__content .eyebrow { color: rgba(255, 255, 255, 0.75); }
.coming__content h2 {
  color: #fff;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin: 0.35rem 0 0.85rem;
  max-width: none;
}
.coming__content p {
  max-width: none;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.coming__cta {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  font-weight: 700;
}

.coming__cta .btn__arrow {
  background: var(--primary);
  color: #fff;
}

.coming__cta .btn__arrow svg {
  stroke: #fff;
}

.coming__cta:hover {
  background: #fff;
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.care .coming__panel {
  margin-top: 0.25rem;
}

@media (max-width: 720px) {
  .coming__panel {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .coming__badge {
    justify-self: end;
    width: 5.75rem;
    height: 5.75rem;
    font-size: 0.7rem;
    margin: 0;
    order: -1;
  }
}

.news {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--c-warm-white);
}

.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news__card {
  padding: 0;
  background: var(--c-white);
  border-radius: var(--r-md);
  border: 1px solid rgba(47, 91, 92, 0.1);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.news__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(30, 45, 51, 0.1);
}

.news__card-link {
  display: grid;
  height: 100%;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  color: inherit;
}

.news__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-cream);
}

.news__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease);
}

.news__card:hover .news__media img {
  transform: scale(1.04);
}

.news__body {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.35rem 1.5rem;
}

.news__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 0.65rem;
}

.news__tag {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-1);
}

.news__meta time {
  font-size: 0.82rem;
  color: var(--c-ink-soft);
}

.news__card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin: 0 0 0.55rem;
  color: var(--c-ink);
  line-height: 1.3;
}

.news__card p {
  margin: 0 0 1.15rem;
  color: var(--c-ink-soft);
  line-height: 1.65;
  font-size: 0.98rem;
  flex: 1;
}

.news__more {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

.news__card:hover .news__more {
  color: var(--primary-dark);
}

.news__cta {
  margin-top: 2rem;
  text-align: center;
}

.news__hint {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--c-ink-soft);
}

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

/* =========================================================
   Scroll-Reveal
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .header--overlay:not(.scrolled) .nav__toggle span { background: var(--c-ink); }
  .hero__cards { width: 75vw; right: 0; left: auto; }
  .hero__cards-inner { grid-template-columns: repeat(2, 1fr); border-radius: var(--r-md) 0 0 var(--r-md); }
  .hero__cards-inner--dual { grid-template-columns: 1fr 1fr; }
  .hero__card:first-child { border-radius: var(--r-md) 0 0 0; }
  .hero__card:nth-child(2) { border-radius: 0; }
  .hero__card:nth-child(3) { border-radius: 0 0 0 var(--r-md); }
  .hero__card:last-child { border-radius: 0; }
  .areas__accordion { height: 460px; }
  .story__grid,
  .about__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .apartments__layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .apartments__intro h2 { max-width: none; margin-bottom: 1rem; }
  .apartments__features { grid-template-columns: repeat(2, 1fr); }
  .care__layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .care__intro h2 { max-width: none; margin-bottom: 1rem; }
  .care__features { grid-template-columns: repeat(2, 1fr); }
  .cafe__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .faq__wrap { grid-template-columns: 1fr; gap: 3.5rem; }
  .faq__media {
    position: relative;
    top: auto;
    max-width: 520px;
    margin-inline: auto;
  }
  .faq__img img { aspect-ratio: 4 / 3.4; }
  .faq__cta { align-items: center; text-align: center; }
  .contact__wrap { grid-template-columns: 1fr; }
  .contact__visual { min-height: 18.75rem; }
  .contact__panel { padding: 2.5rem 1.75rem; }
  .apartments__slider-media {
    width: 100%;
    margin-left: 0;
  }
  .apartments__slider-bar {
    flex-direction: column;
    align-items: flex-start;
    max-width: none;
  }
  .apartments__slider-nav { align-self: flex-end; }
  .service__columns { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .hero { min-height: auto; }
  .hero__body { padding: 130px 0 60px; }
  .hero__title { font-size: clamp(2rem, 7vw, 2.75rem); }
  .hero__cards {
    position: static;
    margin-top: 8px;
    width: auto;
    right: auto;
    left: auto;
  }
  .hero__cards .container { padding: 0; justify-content: stretch; }
  .hero__cards-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    max-width: none;
    margin-left: 0;
    padding-inline: var(--gutter);
    padding-bottom: 0;
    box-shadow: none;
    background: transparent;
  }
  .hero__card,
  .hero__card:first-child,
  .hero__card:last-child {
    border-radius: var(--r-md);
    border-right: none;
  }
  .hero-shell + main { padding-top: 2.5rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__play { justify-content: center; }

  .story__grid,
  .cafe__grid,
  .care__layout,
  .about__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .story__collage,
  .about__collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }
  /* Single-image story blocks must use the full phone width. Without this
     override the two-column collage grid leaves the only image in column one,
     making it look like an unoptimized narrow thumbnail on mobile. */
  .story__collage--single,
  .about__collage--single {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    width: 100%;
  }
  .story__collage--single .story__collage-img--tall,
  .about__collage--single .about__collage-img--tall {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
  }
  .story__collage-stack,
  .about__collage-stack { display: contents; }
  .story__collage-img--top,
  .about__collage-img--top { grid-column: 1 / 3; grid-row: 1; width: 100%; }
  .story__collage-img--tall,
  .about__collage-img--tall { grid-column: 1; grid-row: 2; }
  .story__collage-img--bottom,
  .about__collage-img--bottom { grid-column: 2; grid-row: 2; width: 100%; }
  .story__collage-img--tall img,
  .about__collage-img--tall img { min-height: 0; aspect-ratio: 3 / 4; }
  .story__collage--single .story__collage-img--tall img,
  .about__collage--single .about__collage-img--tall img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }
  .cafe__media {
    display: block;
    height: auto;
    width: 100%;
    margin-right: calc(-1 * var(--gutter));
  }
  .cafe__grid--media-start .cafe__media {
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
  }
  .cafe__media-frame {
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: var(--r-lg);
  }
  .cafe__grid--media-start .cafe__media-frame {
    border-radius: var(--r-lg);
  }
  .care__note-inner { grid-template-columns: 1fr; gap: 2rem; }
  .care__meta { max-width: none; }
  .faq__trigger { padding: 1.25rem 1.375rem; font-size: 1rem; }
  .faq__panel { padding: 0 1.375rem 1.375rem; }
  .a11y { top: auto; bottom: 6.25rem; transform: none; }
  .a11y__panel {
    top: auto;
    bottom: 0;
    transform: none;
    max-height: min(70vh, 520px);
    overflow-y: auto;
  }
  .a11y__panel:not([hidden]) { animation: a11ySlideUp 0.25s ease; }
  @keyframes a11ySlideUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 560px) {
  :root { --fs-body: 1.08rem; }
  .areas__accordion {
    flex-direction: column;
    height: auto;
    gap: 12px;
  }
  .areas-panel {
    flex: none;
    height: 88px;
    transition: height 0.55s cubic-bezier(0.5, 0, 0.15, 1);
  }
  .areas-panel.is-open {
    flex: none;
    height: 360px;
  }
  .areas-panel__label {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    padding: 0 24px;
  }
  .areas-panel__title {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.1rem;
  }
  .areas-panel__content {
    max-width: none;
    padding: 1.75rem 1.5rem;
  }
  .apartments__features,
  .care__features { grid-template-columns: 1fr; }
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1rem;
  }
  .site-footer__col h3 {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    line-height: 1.25;
  }
  .site-footer__col ul { gap: 0.35rem; }
  .site-footer__col a { overflow-wrap: anywhere; }
  .contact__actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 820px) {
  /* Convert dense pricing tables into readable stacked cards instead of a
     horizontal scroller. The header text is copied to each cell by main.js. */
  .bw-rates-table-wrap {
    overflow: hidden;
    padding: 1.1rem;
  }
  .bw-rates-table-head {
    display: block;
    margin-bottom: 0.75rem;
  }
  .bw-rates-table-head p {
    margin-top: 0.45rem;
    line-height: 1.45;
  }
  .bw-rates-table {
    display: block;
  }
  .bw-rates-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .bw-rates-table tbody {
    display: grid;
    gap: 0.65rem;
  }
  .bw-rates-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(7rem, 0.9fr);
    gap: 0.65rem 0.9rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--c-line);
  }
  .bw-rates-table tbody tr:last-child { border-bottom: 0; }
  .bw-rates-table td,
  .bw-rates-table td:first-child,
  .bw-rates-table td:last-child {
    min-width: 0;
    padding: 0;
    border: 0;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 0.92rem;
    line-height: 1.4;
  }
  .bw-rates-table td:nth-child(even) { text-align: right; }
  .bw-rates-table td::before {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--c-ink-soft);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
    content: attr(data-label);
  }
  .bw-rates-table td:last-child { color: var(--primary); }
}

/* =========================================================
   Barrierefreiheit
   ========================================================= */
.a11y {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 185;
}

.a11y__toggle {
  display: grid;
  place-items: center;
  width: 2.875rem;
  height: 2.875rem;
  border: none;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: linear-gradient(160deg, var(--primary-dark), var(--primary));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--primary-glow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.a11y__toggle svg {
  width: 1.375rem;
  height: 1.375rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.a11y__toggle:hover,
.a11y__toggle:focus-visible {
  transform: translateX(2px);
  box-shadow: 0 10px 28px var(--primary-glow);
  outline: none;
}

.a11y.is-open .a11y__toggle {
  background: var(--accent-1);
  box-shadow: 0 10px 28px var(--accent-1-glow);
}

.a11y__panel {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  width: min(300px, calc(100vw - 80px));
  background: var(--c-white);
  border: 1px solid rgba(47, 91, 92, 0.14);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.a11y__panel:not([hidden]) { animation: a11ySlideIn 0.25s ease; }

@keyframes a11ySlideIn {
  from { opacity: 0; transform: translateY(-50%) translateX(-8px); }
  to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.a11y__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  background: linear-gradient(160deg, var(--primary-dark), var(--primary));
  color: #fff;
}

.a11y__title {
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0;
}

.a11y__close {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.a11y__close:hover { background: rgba(255, 255, 255, 0.28); }

.a11y__body { padding: 1rem 1.125rem 1.125rem; }

.a11y__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 0.625rem;
}

.a11y__group + .a11y__group { margin-top: 1rem; }

.a11y__font-btns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.a11y__font-btn {
  border: 1px solid rgba(47, 91, 92, 0.18);
  background: var(--c-warm-white);
  color: var(--c-ink);
  border-radius: 10px;
  padding: 0.625rem 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.a11y__font-btn:hover { border-color: var(--primary); color: var(--primary-dark); }

.a11y__font-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.a11y__option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.6875rem 0.75rem;
  border: 1px solid rgba(47, 91, 92, 0.12);
  border-radius: 12px;
  background: var(--c-warm-white);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.a11y__option + .a11y__option { margin-top: 0.5rem; }

.a11y__option:hover { border-color: rgba(47, 91, 92, 0.24); }

.a11y__option[aria-pressed="true"] {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.a11y__option-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--c-white);
  color: var(--primary);
  box-shadow: 0 0 0 4px rgba(47, 91, 92, 0.06);
}

.a11y__option-icon svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.a11y__reset {
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px dashed rgba(47, 91, 92, 0.3);
  border-radius: 12px;
  background: transparent;
  color: var(--c-ink-soft);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.a11y__reset:hover {
  color: var(--primary-dark);
  border-color: var(--primary);
}

html[data-a11y-font="sm"] { zoom: 0.875; }
html[data-a11y-font="lg"] { zoom: 1.125; }
html[data-a11y-font="xl"] { zoom: 1.25; }

@supports not (zoom: 1) {
  html { font-size: 100%; }
  html[data-a11y-font="sm"] { zoom: normal; font-size: 87.5%; }
  html[data-a11y-font="lg"] { zoom: normal; font-size: 112.5%; }
  html[data-a11y-font="xl"] { zoom: normal; font-size: 125%; }
}

html.a11y-line-height body { line-height: 2.1; }
html.a11y-line-height p,
html.a11y-line-height li { line-height: 2.1; }

html.a11y-underline-links a:not(.btn):not(.nav__cta) {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

html.a11y-reduced-motion *,
html.a11y-reduced-motion *::before,
html.a11y-reduced-motion *::after {
  animation: none !important;
  transition-duration: 0.01ms !important;
}

html.a11y-reduced-motion .reveal {
  opacity: 1 !important;
  transform: none !important;
}

html.a11y-reduced-motion .hero__slide img {
  transform: none !important;
}
html.a11y-reduced-motion .hero__slide--mirrored img {
  transform: scaleX(-1) !important;
}

html.a11y-contrast {
  --c-ink: #000;
  --c-ink-soft: #111;
  --c-cream: #fff;
  --c-warm-white: #fff;
  --c-white: #fff;
  --primary: #004466;
  --primary-dark: #002233;
  --primary-light: #005577;
  --primary-soft: #e8f4fa;
  --c-line: rgba(0, 0, 0, 0.35);
}

html.a11y-contrast body {
  background: #fff;
  color: #000;
}

html.a11y-contrast .headline-accent {
  background: none !important;
  -webkit-text-fill-color: #004466;
  color: #004466;
}

html.a11y-contrast .btn--primary,
html.a11y-contrast .btn--secondary {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #000 !important;
  box-shadow: none !important;
}

html.a11y-contrast .btn--primary .btn__arrow,
html.a11y-contrast .btn--secondary .btn__arrow {
  background: #fff !important;
}

html.a11y-contrast .btn--primary .btn__arrow svg,
html.a11y-contrast .btn--secondary .btn__arrow svg {
  stroke: #000 !important;
}

html.a11y-contrast .btn--outline {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #000 !important;
}

html.a11y-contrast .hero .headline-accent--light,
html.a11y-contrast .contact__panel .headline-accent {
  background: none !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
}

html.a11y-contrast .hero__title,
html.a11y-contrast .hero__sub,
html.a11y-contrast .hero__eyebrow,
html.a11y-contrast .hero__card h3,
html.a11y-contrast .hero__card p,
html.a11y-contrast .contact__panel h2,
html.a11y-contrast .contact__panel h1,
html.a11y-contrast .contact__panel .section-label,
html.a11y-contrast .contact__panel > p,
html.a11y-contrast .contact__item a,
html.a11y-contrast .contact__item span,
html.a11y-contrast .contact__item strong,
html.a11y-contrast .areas-panel__heading,
html.a11y-contrast .areas-panel__text,
html.a11y-contrast .areas-panel__title,
html.a11y-contrast .care__note,
html.a11y-contrast .care__note p,
html.a11y-contrast .site-footer,
html.a11y-contrast .site-footer a,
html.a11y-contrast .site-footer p,
html.a11y-contrast .site-footer h3 {
  color: #fff !important;
}

html.a11y-contrast .header--overlay:not(.scrolled) .nav__link {
  color: #fff !important;
}

html.a11y-contrast .header--overlay:not(.scrolled) .nav__link.active {
  color: #fff !important;
  text-decoration: underline;
}

html.a11y-contrast .contact__panel .section-label::before {
  background: #fff !important;
}

html.a11y-contrast .hero .btn--primary,
html.a11y-contrast .contact__panel .btn--primary,
html.a11y-contrast .areas-panel .btn--primary {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #fff !important;
  box-shadow: none !important;
}

html.a11y-contrast .hero .btn--primary .btn__arrow,
html.a11y-contrast .contact__panel .btn--primary .btn__arrow,
html.a11y-contrast .areas-panel .btn--primary .btn__arrow {
  background: #000 !important;
}

html.a11y-contrast .hero .btn--primary .btn__arrow svg,
html.a11y-contrast .contact__panel .btn--primary .btn__arrow svg,
html.a11y-contrast .areas-panel .btn--primary .btn__arrow svg {
  stroke: #fff !important;
}

html.a11y-contrast .nav__cta.btn--primary {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 42%, var(--accent-1) 100%) !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  box-shadow: none !important;
}

html.a11y-contrast .nav__cta.btn--primary .btn__arrow {
  background: rgba(255, 255, 255, 0.25) !important;
}

html.a11y-contrast .nav__cta.btn--primary .btn__arrow svg {
  stroke: #fff !important;
}

html.a11y-contrast .contact__panel .btn--outline-light {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  box-shadow: none !important;
}

html.a11y-contrast .contact__panel .btn--outline-light .btn__arrow {
  background: rgba(255, 255, 255, 0.25) !important;
}

html.a11y-contrast .contact__panel .btn--outline-light .btn__arrow svg {
  stroke: #fff !important;
}

html.a11y-contrast .faq__badge {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  box-shadow: none !important;
}

html.a11y-contrast .a11y__head {
  background: #000 !important;
  border-bottom: 2px solid #fff;
}

html.a11y-contrast .a11y__title {
  color: #fff !important;
}

html.a11y-contrast img {
  filter: contrast(1.08);
}

/* =========================================================
   Unterseite · Betreutes Wohnen
   ========================================================= */
.bw-checklist {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.bw-checklist li {
  position: relative;
  padding-left: 1.55rem;
  color: var(--c-ink-soft);
  font-size: var(--fs-body);
  line-height: 1.45;
}

.bw-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent-1);
}

.bw-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.bw-pillars--quad {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bw-pillar {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(47, 91, 92, 0.06);
  box-shadow: var(--shadow-sm);
}

.bw-pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-1);
  border-radius: inherit;
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.55s var(--ease);
  z-index: 0;
}

.bw-pillar:hover::before { transform: scaleY(1); }

.bw-pillar__icon {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-1-soft);
  margin-bottom: 0.95rem;
  transition: background 0.45s var(--ease);
}

.bw-pillar__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-1);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.45s var(--ease);
}

.bw-pillar h3 {
  position: relative;
  z-index: 1;
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 0.65rem;
  transition: color 0.45s var(--ease);
}

.bw-pillar p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--c-ink-soft);
  line-height: 1.55;
  transition: color 0.45s var(--ease);
}

.bw-pillar:hover h3,
.bw-pillar:hover p { color: #fff; }

.bw-pillar h3 a { text-decoration: none; }

.bw-pillar:hover .bw-pillar__icon { background: rgba(255, 255, 255, 0.22); }
.bw-pillar:hover .bw-pillar__icon svg { stroke: #fff; }

.bw-types {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.bw-type {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow-sm);
}

.bw-type:nth-child(even) {
  grid-template-columns: 0.85fr 1.15fr;
}

.bw-type__gallery {
  min-width: 0;
}

.bw-type__stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  aspect-ratio: 16 / 11;
  background: var(--c-cream);
}

.bw-type__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}

.bw-type__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.bw-type__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bw-type__gallery-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
}

.bw-type__counter {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-ink-soft);
}

.bw-type__nav {
  display: flex;
  gap: 0.55rem;
}

.bw-type__content {
  min-width: 0;
}

.bw-floorplan__kicker {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-1);
}

.bw-type__content h3 {
  margin: 0 0 0.75rem;
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--primary);
}

.bw-type__content > p {
  margin: 0 0 1rem;
  color: var(--c-ink-soft);
  line-height: 1.55;
}

.bw-type__content ul {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.bw-type__content li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--c-ink);
  font-size: var(--fs-small);
}

.bw-type__content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--primary);
}

.bw-type__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.plan-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.plan-lightbox[hidden] { display: none; }

.plan-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(30, 45, 51, 0.72);
  cursor: pointer;
}

.plan-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(90vh, 860px);
  overflow: auto;
  background: var(--c-white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem 1.25rem 1.5rem;
}

.plan-lightbox__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--c-cream);
  color: var(--c-ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.plan-lightbox__title {
  margin: 0 2.5rem 1rem 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
}

.plan-lightbox__figure {
  margin: 0;
  background: #F7F2EC;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-line);
}

.plan-lightbox__figure img {
  width: 100%;
  height: auto;
  display: block;
}

.plan-lightbox__hint {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--c-ink-soft);
}

.bw-rates {
  display: grid;
  grid-template-columns: minmax(16rem, 0.85fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.bw-rates__intro .eyebrow { margin-bottom: 0.85rem; }

.bw-rates__intro h2 {
  margin: 0 0 1rem;
  font-size: var(--fs-h2);
}

.bw-rates__intro p {
  margin: 0 0 1.5rem;
  color: var(--c-ink-soft);
  line-height: 1.6;
  max-width: 28rem;
}

.bw-rates__ladder {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(47, 91, 92, 0.18);
}

.bw-rate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem 2rem;
  align-items: end;
  padding: 1.45rem 0.15rem 1.45rem 0;
  border-bottom: 1px solid rgba(47, 91, 92, 0.18);
  color: inherit;
}

.bw-rate__meta {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.bw-rate__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-1);
}

.bw-rate__name {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.bw-rate__desc {
  color: var(--c-ink-soft);
  font-size: var(--fs-small);
  line-height: 1.45;
}

.bw-rate__sum {
  display: grid;
  justify-items: end;
  text-align: right;
  gap: 0.15rem;
}

.bw-rate__from {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-ink-soft);
}

.bw-rate__amount {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 4vw, 2.85rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.bw-rate__period {
  font-size: 0.8rem;
  color: var(--c-ink-soft);
  max-width: 11rem;
}

.bw-rates-include {
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  padding: clamp(1.4rem, 3vw, 1.85rem);
  background: var(--c-white);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-xs);
}

.bw-rates-include h3 {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
}

.bw-rates-include ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.bw-rates-include li {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.bw-rates-include__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0.25rem;
  border-radius: 12px;
  background: var(--accent-1-soft);
}

.bw-rates-include__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-1);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bw-rates-include strong {
  color: var(--primary);
  font-size: 0.98rem;
}

.bw-rates-include li > span:last-child {
  color: var(--c-ink-soft);
  font-size: 0.88rem;
  line-height: 1.4;
}

.bw-rates-table-wrap {
  background: var(--c-white);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  padding: clamp(1.35rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-xs);
  overflow-x: auto;
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.bw-rates-table-wrap + .bw-rates-table-wrap {
  margin-top: 0;
}

.bw-rates-table-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1rem;
}

.bw-rates-table-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
}

.bw-rates-table-head p {
  margin: 0;
  color: var(--c-ink-soft);
  font-size: var(--fs-small);
}

.bw-rates-table {
  width: 100%;
  border-collapse: collapse;
}

.bw-rates-table th,
.bw-rates-table td {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--c-line);
  text-align: left;
  vertical-align: baseline;
}

.bw-rates-table th {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  font-weight: 700;
}

.bw-rates-table td:last-child,
.bw-rates-table th:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.bw-rates-table td:first-child {
  color: var(--c-ink);
  padding-right: 1rem;
}

.bw-rates-table tbody tr:last-child td {
  border-bottom: 0;
}

.bw-rates-table__note {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: rgba(47, 91, 92, 0.3);
  text-underline-offset: 0.18em;
  transition: text-decoration-color 0.25s var(--ease);
}

.bw-rates-table__note svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}

.bw-rates-table__note:hover {
  text-decoration-color: currentColor;
}

.bw-rates-table__note:hover svg {
  transform: translateX(3px);
}

@media (max-width: 820px) {
  /* 7 Felder: der Gesamtpreis bekommt eine eigene, volle Zeile. */
  .bw-rates-table-wrap .bw-rates-table.bw-rates-table--apartments tr {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .bw-rates-table-wrap .bw-rates-table.bw-rates-table--apartments td:last-child {
    grid-column: 1 / -1;
    text-align: right;
  }

  .bw-rates-table__note {
    gap: 0.25rem;
    max-width: 100%;
    font-size: 0.84rem;
    white-space: normal;
  }
}

.bw-rates-footnote {
  margin: 1.15rem 0 0;
  padding-top: 1rem;
  border-top: 1px dashed rgba(47, 91, 92, 0.2);
  color: var(--c-ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.bw-rates-footnote a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Preisliste als Akkordeon: native <details>, funktioniert ohne JavaScript. */
.bw-rates-accordion__head,
.bw-rates-accordion__summary {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1rem;
}

.bw-rates-accordion__head {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bw-rates-accordion__head span:first-child {
  grid-column: 2;
}

.bw-rates-accordion__head span:last-child {
  text-align: right;
}

.bw-rates-accordion__item {
  border-bottom: 1px solid var(--c-line);
}

.bw-rates-accordion__item:last-child {
  border-bottom: 0;
}

.bw-rates-accordion__summary {
  padding: 0.95rem 0;
  cursor: pointer;
  list-style: none;
}

.bw-rates-accordion__summary::-webkit-details-marker {
  display: none;
}

.bw-rates-accordion__name {
  color: var(--c-ink);
  transition: color 0.25s var(--ease);
}

.bw-rates-accordion__summary:hover .bw-rates-accordion__name,
.bw-rates-accordion__item[open] .bw-rates-accordion__name {
  color: var(--primary);
}

.bw-rates-accordion__price {
  color: var(--primary);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.bw-rates-accordion__toggle {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: var(--primary);
  background: var(--c-cream);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.bw-rates-accordion__toggle svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}

.bw-rates-accordion__item[open] .bw-rates-accordion__toggle {
  color: #fff;
  background: var(--primary);
}

.bw-rates-accordion__item[open] .bw-rates-accordion__toggle svg {
  transform: rotate(90deg);
}

.bw-rates-accordion__detail {
  margin: 0;
  max-width: 62ch;
  padding: 0 0 1.1rem 3rem;
  color: var(--c-ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Sanftes Aufklappen, wo der Browser es unterstützt. */
@supports (interpolate-size: allow-keywords) {
  .bw-rates-accordion {
    interpolate-size: allow-keywords;
  }

  .bw-rates-accordion__item::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete;
  }

  .bw-rates-accordion__item[open]::details-content {
    block-size: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bw-rates-accordion__item::details-content,
  .bw-rates-accordion__toggle svg {
    transition: none;
  }
}

@media (max-width: 560px) {
  .bw-rates-accordion__head {
    display: none;
  }

  .bw-rates-accordion__summary {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.2rem 0.75rem;
    padding: 0.85rem 0;
  }

  .bw-rates-accordion__name {
    font-size: 0.95rem;
  }

  .bw-rates-accordion__price {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.9rem;
    text-align: left;
    white-space: normal;
  }

  .bw-rates-accordion__toggle {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .bw-rates-accordion__detail {
    padding-left: 2.75rem;
    font-size: 0.92rem;
  }
}

/* =========================================================
   Pflege & Beratung – Unterseite
   ========================================================= */
.story__grid--flip {
  direction: rtl;
}

.story__grid--flip > * {
  direction: ltr;
}

.pb-relief {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--c-warm-white);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
}

.pb-relief__media {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.pb-relief__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pb-relief__text .eyebrow {
  margin-bottom: 0.75rem;
}

.pb-relief__text h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 1rem;
}

.pb-relief__text > p {
  color: var(--c-ink-soft);
  line-height: 1.65;
  margin: 0 0 1.15rem;
}

.pb-relief__text .bw-checklist {
  margin-bottom: 1.75rem;
}

.pb-relief__text .btn {
  margin-top: 0.35rem;
}

.pb-finance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.25rem);
}

.pb-finance__card {
  position: relative;
  padding: 1.35rem 1.2rem 1.4rem;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.pb-finance__num {
  display: block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-1);
  margin-bottom: 0.85rem;
}

.pb-finance__card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
}

.pb-finance__card p {
  margin: 0;
  color: var(--c-ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.pb-finance-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.25rem, 2.5vw, 1.6rem) clamp(1.35rem, 3vw, 1.85rem);
  background: var(--c-white);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-xs);
}

.pb-finance-note__text h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  color: var(--primary);
}

.pb-finance-note__text p {
  margin: 0;
  color: var(--c-ink-soft);
  line-height: 1.55;
  max-width: 46rem;
}

/* Finanzierung – Prozesspfad */
.pb-path {
  list-style: none;
  margin: 0 0 clamp(2rem, 4vw, 2.75rem);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  position: relative;
}

.pb-path::before {
  content: "";
  position: absolute;
  top: 1.55rem;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-1) 12%, var(--accent-1) 88%, transparent);
  opacity: 0.45;
  pointer-events: none;
}

.pb-path__step {
  position: relative;
  z-index: 1;
  padding: 0 0.15rem;
}

.pb-path__top {
  display: flex;
  align-items: center;
  margin-bottom: 1.15rem;
}

.pb-path__icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-white);
  border: 2px solid var(--accent-1);
  box-shadow: var(--shadow-sm);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.pb-path__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-1);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.4s var(--ease);
}

.pb-path__step:hover .pb-path__icon {
  background: var(--accent-1);
  transform: translateY(-3px);
}

.pb-path__step:hover .pb-path__icon svg {
  stroke: #fff;
}

.pb-path__step h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.25;
}

.pb-path__step p {
  margin: 0;
  color: var(--c-ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 18rem;
}

.pb-path--tri {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2.25rem, 4vw, 3rem);
}

.pb-path--tri .pb-path__step p {
  max-width: 22rem;
}

.section--white .pb-path__icon {
  background: var(--c-warm-white);
}

.pb-finance-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.75rem, 3.5vw, 2.35rem) clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: var(--r-lg);
  background: linear-gradient(128deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.pb-finance-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 90% at 100% 50%, rgba(190, 136, 113, 0.2) 0%, transparent 68%);
  pointer-events: none;
}

.pb-finance-cta__copy,
.pb-finance-cta .btn {
  position: relative;
  z-index: 1;
}

.pb-finance-cta__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.pb-finance-cta__copy h3 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 600;
  color: #fff;
}

.pb-finance-cta__copy p {
  margin: 0;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  font-size: 0.98rem;
}

.pb-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: clamp(2.25rem, 4vw, 3rem);
}

.pb-step {
  padding: 1.4rem 1.25rem 1.5rem;
  background: var(--c-cream, #F7F1EA);
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
}

.pb-step__num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.pb-step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--primary);
}

.pb-step p {
  margin: 0;
  color: var(--c-ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .bw-pillars { grid-template-columns: 1fr; }
  .bw-pillars--quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bw-rates { grid-template-columns: 1fr; align-items: start; }
  .bw-rates-include ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bw-type,
  .bw-type:nth-child(even) { grid-template-columns: 1fr; }
  .hero__cards-inner--hex { grid-template-columns: repeat(2, 1fr); }
  .hero__cards-inner--hex .hero__card:nth-child(3n) { border-right: 1px solid rgba(47, 91, 92, 0.08); }
  .hero__cards-inner--hex .hero__card:nth-child(2n) { border-right: none; }
  .pb-relief { grid-template-columns: 1fr; }
  .pb-finance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pb-finance-note { flex-direction: column; align-items: flex-start; }
  .pb-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1.5rem;
  }
  .pb-path--tri {
    grid-template-columns: 1fr;
  }
  .pb-path::before { display: none; }
  .pb-finance-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .pb-steps { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .bw-type { padding: 1rem; }
  .bw-pillars--quad { grid-template-columns: 1fr; }
  .bw-rate {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .bw-rate__sum { justify-items: start; text-align: left; }
  .bw-rates-include ul { grid-template-columns: 1fr; }
  .hero__cards-inner--hex { grid-template-columns: 1fr; }
  .pb-finance { grid-template-columns: 1fr; }
  .pb-path { grid-template-columns: 1fr; }
  .pb-path__step p { max-width: none; }
}

/* =========================================================
   Betreuung & Service – Unterseite
   ========================================================= */
.hero__cards-inner--penta {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.hero__cards-inner--penta .hero__card {
  padding: 1.7rem 1.05rem;
}

.hero__cards-inner--hexa {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-radius: var(--r-md) 0 0 var(--r-md);
}

.hero__cards-inner--hexa .hero__card {
  padding: 1.7rem 1rem;
}

.hero__cards-inner--hexa .hero__card:first-child {
  border-radius: var(--r-md) 0 0 var(--r-md);
}

.hero__cards-inner--hexa .hero__card:last-child {
  border-radius: 0;
  border-right: none;
}

.bs-layers {
  display: grid;
  grid-template-columns: 1.08fr 1fr 1fr;
  gap: 1rem;
  margin-top: 0.35rem;
}

.bs-layer {
  position: relative;
  overflow: hidden;
  padding: clamp(1.6rem, 3vw, 2.15rem) clamp(1.35rem, 2.4vw, 1.85rem) 1.85rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  background: var(--c-white);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.bs-layer:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.bs-layer--core {
  background: linear-gradient(148deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: transparent;
  color: #fff;
}

.bs-layer__kicker {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-1);
}

.bs-layer--core .bs-layer__kicker {
  color: rgba(255, 255, 255, 0.7);
}

.bs-layer h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.bs-layer--core h3 { color: #fff; }

.bs-layer p {
  margin: 0 0 1.25rem;
  color: var(--c-ink-soft);
  line-height: 1.6;
  font-size: 0.98rem;
}

.bs-layer--core p { color: rgba(255, 255, 255, 0.88); }

.bs-layer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.bs-layer li {
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--c-ink);
}

.bs-layer--core li { color: rgba(255, 255, 255, 0.92); }

.bs-layer li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-1);
}

.bs-layer--core li::before { background: #fff; }

.bs-layer__hint {
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-1);
}

.bs-layer--core .bs-layer__hint { color: rgba(255, 255, 255, 0.75); }

.apartments__features--spaced {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.apartments__features--tri {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.apartments__features--tri li {
  max-width: none;
}

@media (max-width: 1100px) {
  .hero__cards-inner--penta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero__cards-inner--penta .hero__card {
    padding: 1.7rem 1.25rem;
  }
  .hero__cards-inner--hexa {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero__cards-inner--hexa .hero__card:nth-child(3n) {
    border-right: none;
  }
  .bs-layers { grid-template-columns: 1fr; }
  .apartments__features--tri { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero__cards-inner--penta { grid-template-columns: 1fr; }
  .hero__cards-inner--hexa { grid-template-columns: 1fr; }
  .hero__cards-inner--hexa .hero__card:first-child {
    border-radius: var(--r-md) var(--r-md) 0 0;
  }
  .hero__cards-inner--hexa .hero__card {
    border-right: none;
    border-bottom: 1px solid rgba(47, 91, 92, 0.08);
  }
  .hero__cards-inner--hexa .hero__card:last-child {
    border-bottom: none;
    border-radius: 0 0 var(--r-md) var(--r-md);
  }
}

/* =========================================================
   Unterseite · Über Juventa
   ========================================================= */
.uj-places {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.uj-place {
  background: var(--c-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(47, 91, 92, 0.06);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.uj-place__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.uj-place__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.uj-place:hover .uj-place__media img {
  transform: scale(1.04);
}

.uj-place__body {
  padding: 1.75rem 1.5rem 1.75rem;
  display: grid;
  gap: 0.85rem;
}

.uj-place__body h3 {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  margin: 0;
  color: var(--c-ink);
}

.uj-place__body > p {
  margin: 0;
  color: var(--c-ink-soft);
  line-height: 1.55;
}

.uj-place__body .bw-checklist {
  margin-top: 0.25rem;
}

.uj-place__body .btn {
  justify-self: start;
  margin-top: 0.35rem;
}

.uj-team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.uj-team__card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(47, 91, 92, 0.06);
  box-shadow: var(--shadow-sm);
  min-height: 100%;
  transition: box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.uj-team__card:hover {
  box-shadow: 0 18px 42px rgba(47, 91, 92, 0.12);
  transform: translateY(-3px);
}

.uj-team__body {
  padding: clamp(1.5rem, 2.5vw, 1.9rem) clamp(1.35rem, 2.2vw, 1.75rem) 1.7rem;
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.uj-team__head {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
}

.uj-team__photo {
  width: 9.5rem;
  height: 9.5rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-1-soft);
  border: 3px solid var(--c-white);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.uj-team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.uj-team__card:hover .uj-team__photo img {
  transform: scale(1.05);
}

.uj-team__intro {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.uj-team__role {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-1);
}

.uj-team__body h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  line-height: 1.15;
  color: var(--c-ink);
}

.uj-team__lead {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--primary);
}

.uj-team__body > p:not(.uj-team__role):not(.uj-team__lead) {
  margin: 0;
  color: var(--c-ink-soft);
  line-height: 1.6;
}

.uj-team__focus {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.uj-team__focus li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--c-ink);
  font-size: 0.95rem;
  line-height: 1.4;
}

.uj-team__focus li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent-1);
}

.uj-team__body .link-arrow {
  margin-top: 0.2rem;
  justify-self: start;
}

.uj-values {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.uj-jobs__panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.uj-jobs__item {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(47, 91, 92, 0.06);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.uj-jobs__item h3 {
  margin: 0;
  font-size: 1.35rem;
}

.uj-jobs__item p {
  margin: 0;
  color: var(--c-ink-soft);
  line-height: 1.55;
}

.uj-jobs__item .btn {
  justify-self: start;
  margin-top: 0.35rem;
}

.uj-staff {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
}

.uj-staff__item {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  text-align: center;
}

.uj-staff__item img {
  width: 100%;
  max-width: 9.5rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--c-white);
  box-shadow: var(--shadow-sm);
  background: var(--accent-1-soft);
}

.uj-staff__meta {
  display: grid;
  gap: 0.2rem;
  justify-items: center;
}

.uj-staff__name {
  font-weight: 600;
  color: var(--c-ink);
  font-size: 0.98rem;
  line-height: 1.3;
}

.uj-staff__title {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--c-ink-soft);
  max-width: 14rem;
}

.uj-loc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 1.2fr);
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  align-items: start;
}

.uj-map {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: visible;
  padding: 0.25rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.uj-map-stage {
  position: relative;
  aspect-ratio: 494 / 533;
  overflow: visible;
}

.uj-map-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  background: transparent;
  filter: drop-shadow(0 16px 28px rgba(47, 91, 92, 0.18));
}

.uj-map-region {
  cursor: pointer;
  outline: none;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  z-index: 1;
}

.uj-map-region path,
.uj-map-region polygon {
  transform-box: fill-box;
  transform-origin: center;
  transition:
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    fill 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.uj-map-base {
  pointer-events: none;
}
.uj-map-base path {
  stroke: rgba(47, 91, 92, 0.16);
}

.uj-map-region[data-loc="baden-baden"] path,
.uj-map-region[data-loc="baden-baden"] polygon {
  stroke: #2F5B5C;
}

.uj-map-region[data-loc="gernsbach"] path,
.uj-map-region[data-loc="gernsbach"] polygon {
  stroke: #BE8871;
}


.uj-map-legend {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.uj-map-legend__item {
  appearance: none;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.15rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-ink-soft);
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.uj-map-legend__item:hover,
.uj-map-legend__item:focus-visible,
.uj-map-legend__item.is-active {
  color: var(--c-ink);
  outline: none;
}

.uj-map-legend__swatch {
  width: 1rem;
  height: 1rem;
  border-radius: 3px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 248, 0.35);
}

.uj-map-legend__swatch--baden {
  background: var(--primary);
}

.uj-map-legend__swatch--rastatt {
  background: rgba(47, 91, 92, 0.28);
  box-shadow: inset 0 0 0 1.5px var(--primary);
}

.uj-map-legend__swatch--gernsbach {
  background: var(--accent-1);
}

.uj-map-legend__item.is-active .uj-map-legend__swatch {
  box-shadow: 0 0 0 2px rgba(47, 91, 92, 0.18);
}

.uj-map.is-hovering .uj-map-region:not(.is-active) {
  opacity: 0.58;
}

.uj-map.is-hovering .uj-map-region.is-active path,
.uj-map.is-hovering .uj-map-region.is-active polygon,
.uj-map-region:hover path,
.uj-map-region:hover polygon,
.uj-map-region:focus-visible path,
.uj-map-region:focus-visible polygon {
  transform: scale(1.07);
  filter: brightness(1.03);
}

.uj-map-region[data-loc="rastatt"] path,
.uj-map-region[data-loc="rastatt"] polygon,
.uj-map-base path {
  transform: none !important;
  filter: none !important;
}

.uj-map-region.is-active,
.uj-map-region:hover,
.uj-map-region:focus-visible {
  opacity: 1;
  z-index: 5;
}

.uj-places--stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-self: start;
  width: 100%;
  max-width: 28rem;
  height: auto;
  min-height: 0;
  margin-top: 0.35rem;
}

.uj-places--stack .uj-place {
  --place-accent: var(--primary);
  background: var(--c-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(47, 91, 92, 0.06);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  flex: none;
  min-height: 0;
  padding: 1.1rem 1.2rem 1.15rem 1.3rem;
  cursor: pointer;
  position: relative;
  transition:
    box-shadow 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.uj-places--stack .uj-place::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.35rem;
  background: var(--place-accent);
}

.uj-places--stack .uj-place[data-loc="baden-baden"] {
  --place-accent: #2F5B5C;
}

.uj-places--stack .uj-place[data-loc="gernsbach"] {
  --place-accent: #BE8871;
}

.uj-places--stack .uj-place__body {
  display: grid;
  gap: 0.45rem;
  padding: 0;
}

.uj-places--stack .uj-place__body h3 {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  margin: 0;
  color: var(--c-ink);
  line-height: 1.25;
  transition: font-size 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.uj-places--stack .uj-place__teaser {
  margin: 0.05rem 0 0;
  color: var(--c-ink-soft);
  line-height: 1.5;
  font-size: 0.92rem;
}

.uj-places--stack .uj-place__address {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.25rem 0 0;
  color: var(--c-ink);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.uj-places--stack .uj-place__pin {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.12rem;
  color: var(--place-accent);
}

.uj-places--stack .uj-place__pin svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.uj-places--stack .uj-place__expand {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.uj-places--stack .uj-place__expand-inner {
  overflow: hidden;
  min-height: 0;
}

.uj-places--stack .uj-place__detail {
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.uj-places--stack .uj-place__detail .btn {
  justify-self: start;
  margin-top: 0.1rem;
}

.uj-places--stack .uj-place.is-active {
  justify-content: flex-start;
  box-shadow: 0 18px 42px rgba(47, 91, 92, 0.14);
  border-color: color-mix(in srgb, var(--place-accent) 35%, transparent);
  z-index: 3;
}

.uj-places--stack .uj-place.is-active .uj-place__body h3 {
  font-size: clamp(1.2rem, 1.85vw, 1.4rem);
}

.uj-places--stack .uj-place.is-active .uj-place__expand {
  grid-template-rows: 1fr;
}

@media (max-width: 960px) {
  .uj-places,
  .uj-team,
  .uj-values,
  .uj-jobs__panel,
  .uj-loc-layout {
    grid-template-columns: 1fr;
  }

  .uj-staff {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .uj-team__head {
    grid-template-columns: 9.5rem minmax(0, 1fr);
    gap: 1.1rem;
  }

  .uj-team__photo {
    width: 9.5rem;
    height: 9.5rem;
  }

  .uj-map {
    width: min(100%, 34rem);
    max-width: none;
    margin-inline: auto;
  }

  .uj-places--stack {
    height: auto;
    min-height: 0;
  }

  .uj-places--stack .uj-place {
    flex: none;
    min-height: 0;
    padding: 1.2rem 1.25rem 1.25rem;
  }

  .uj-places--stack .uj-place.is-active {
    flex: none;
    transform: none;
  }

  .uj-map.is-hovering .uj-map-region.is-active path,
  .uj-map.is-hovering .uj-map-region.is-active polygon,
  .uj-map-region:hover path,
  .uj-map-region:hover polygon,
  .uj-map-region:focus-visible path,
  .uj-map-region:focus-visible polygon {
    transform: scale(1.05);
  }

  .uj-map-base path {
    transform: none !important;
  }

  .story__grid--flip {
    direction: ltr;
  }
}

@media (max-width: 720px) {
  .uj-staff {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   Reduced Motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__slide img { transform: none !important; transition: none !important; }
  .hero__slide--mirrored img { transform: scaleX(-1) !important; }
}

/* =========================================================
   Unterseite · Wissen (FAQ-Hub)
   ========================================================= */
.page-wissen .hero__body {
  padding-bottom: 220px;
}
.page-wissen .hero__content { max-width: 720px; }

.faq-search {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 560px;
}
.faq-search__label {
  display: block;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}
.faq-search__field {
  position: relative;
  display: flex;
  align-items: center;
}
.faq-search__icon {
  position: absolute;
  left: 1.125rem;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.faq-search__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: var(--primary-dark);
  stroke-width: 1.85;
  stroke-linecap: round;
}
.faq-search__input {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 1rem 1.25rem 1rem 3.125rem;
  font: inherit;
  font-size: 1rem;
  color: var(--c-ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
}
.faq-search__input::placeholder { color: var(--c-ink-soft); }
.faq-search__input:focus {
  outline: 2px solid var(--accent-1);
  outline-offset: 3px;
}

.faq-inline { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.faq-inline__title {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin-bottom: 1.25rem;
  font-weight: 400;
  color: var(--c-ink);
}

.faq-decide {
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 55%, #3d7273 100%);
  color: #fff;
}
.faq-decide .section-label { color: rgba(255, 255, 255, 0.9); }
.faq-decide .section-label::before { background: var(--accent-1); }
.faq-decide .section-head h2,
.faq-decide .section-head__sub { color: #fff; }
.faq-decide .section-head__sub { opacity: 0.88; }
.faq-decide__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.faq-decide__card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem 1.75rem;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  text-decoration: none;
  min-height: 15rem;
  transition: transform 0.35s var(--ease), background 0.35s;
}
.faq-decide__card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.18);
}
.faq-decide__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}
.faq-decide__card h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
}
.faq-decide__card p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}
.faq-decide__link {
  font-weight: 700;
  font-size: 0.95rem;
}

.faq-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.faq-info__item {
  padding: 1.5rem 1.25rem;
  border-radius: var(--r-lg);
  background: var(--c-warm-white);
  border: 1px solid rgba(47, 91, 92, 0.08);
}
.faq-info__item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 0.65rem;
}
.faq-info__item p {
  margin: 0;
  color: var(--c-ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-directory .faq__list { max-width: 58rem; }
.faq-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.faq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.faq-filters__btn {
  border: 1px solid rgba(47, 91, 92, 0.16);
  background: var(--c-white);
  color: var(--c-ink);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.faq-filters__btn:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}
.faq-filters__btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.faq-toolbar__count {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-ink-soft);
}
.faq-empty {
  margin-top: 1.5rem;
  color: var(--c-ink-soft);
  font-size: 1rem;
}
.faq__item.is-filtered-out,
.faq__item[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .faq-decide__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .page-wissen .hero__body { padding-bottom: 160px; }
  .faq-decide__grid,
  .faq-info { grid-template-columns: 1fr; }
}

/* =========================================================
   Dokument- und Beitragsseiten
   ========================================================= */
.page-doc .hero {
  min-height: 0;
}
.page-doc .hero__body {
  padding: 138px 0 72px;
  align-items: flex-end;
}
.page-doc .hero__content { max-width: 760px; }
.page-doc .hero-shell + main {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.doc-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.doc-crumb a { color: inherit; text-decoration: none; }
.doc-crumb a:hover { color: #fff; }
.doc-crumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.55rem;
  opacity: 0.55;
}

.doc-panel {
  background: var(--c-white);
  border: 1px solid rgba(47, 91, 92, 0.08);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.6rem, 3vw, 2.6rem);
}

.legal-grid {
  display: grid;
  gap: 1.15rem;
}
.legal-card {
  padding: 1.25rem 1.3rem 1.35rem;
  border-radius: var(--r-md);
  background: var(--c-warm-white);
  border: 1px solid rgba(47, 91, 92, 0.08);
}
.legal-card h2 {
  font-size: 1.35rem;
  margin: 0 0 0.65rem;
}
.legal-card p,
.legal-card address {
  margin: 0;
  font-style: normal;
  color: var(--c-ink-soft);
  line-height: 1.7;
}
.legal-card p + p { margin-top: 0.75rem; }
.legal-card a { color: var(--primary); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 0.8fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.article-body > * + * { margin-top: 1.15rem; }
.article-body h2 {
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  margin-top: 2rem;
}
.article-body h2:first-child { margin-top: 0; }
.article-body p,
.article-body li {
  color: var(--c-ink-soft);
  line-height: 1.8;
}
.article-body ul,
.article-body ol {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
}
.article-pull {
  margin: 1.6rem 0 0;
  padding: 1.2rem 1.3rem;
  border-left: 3px solid var(--accent-1);
  background: var(--c-cream);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-head);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--c-ink);
}
.article-note {
  margin-top: 1.6rem;
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  background: rgba(47, 91, 92, 0.06);
  color: var(--c-ink-soft);
  font-size: 0.95rem;
}
.article-aside {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: calc(var(--header-h, 88px) + 1.25rem);
}
.article-aside__card {
  padding: 1.2rem 1.25rem 1.3rem;
  border-radius: var(--r-md);
  background: var(--c-warm-white);
  border: 1px solid rgba(47, 91, 92, 0.08);
}
.article-aside__card h2 {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}
.article-aside__card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.article-aside__card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.article-aside__card a:hover { color: var(--accent-1-dark); }
.article-aside__meta {
  display: grid;
  gap: 0.25rem;
  font-size: 0.92rem;
  color: var(--c-ink-soft);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-aside { position: static; }
  .related-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Utility pages · 404 / Danke (Starter v3, Juventa-Tokens)
   ========================================================= */
.utility-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--c-warm-white);
}
.utility-page .header { flex-shrink: 0; }
.utility-main {
  flex: 1;
  display: flex;
}
.utility-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 1;
  width: 100%;
  min-height: clamp(590px, 72vh, 820px);
  align-items: center;
  overflow: hidden;
  padding: clamp(4.4rem, 9vw, 7.75rem) 0;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--c-cream) 88%, var(--primary)), var(--c-warm-white) 56%),
    var(--c-cream);
}
.utility-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.7fr);
  align-items: center;
  gap: clamp(2.75rem, 8vw, 7rem);
}
.utility-content {
  position: relative;
  z-index: 2;
  max-width: 45rem;
}
.utility-content h1 {
  max-width: 13ch;
  margin: 0.85rem 0 1.15rem;
  font-size: clamp(2.75rem, 6.4vw, 4.6rem);
  line-height: 1.08;
}
.utility-content .lead {
  max-width: 58ch;
  color: var(--c-ink-soft);
  margin-bottom: 1.75rem;
}
.utility-page .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.utility-art {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: clamp(18.75rem, 38vw, 29.4rem);
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--c-line) 80%, transparent);
  border-radius: clamp(2.1rem, 6vw, 4.5rem);
  background: color-mix(in srgb, var(--c-white) 76%, transparent);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.utility-mark {
  position: relative;
  z-index: 2;
  display: grid;
  width: clamp(11rem, 22vw, 16.25rem);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--accent-1)));
  box-shadow: 0 30px 80px color-mix(in srgb, var(--primary) 32%, transparent);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.04em;
}
.utility-mark--404 { font-size: clamp(3.1rem, 7vw, 5.8rem); }
.utility-mark--success { font-size: clamp(4.8rem, 10vw, 8.5rem); line-height: 1; }
.utility-ring {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--primary) 34%, transparent);
  border-radius: 50%;
}
.utility-ring--one { width: 78%; aspect-ratio: 1; }
.utility-ring--two {
  width: 102%;
  aspect-ratio: 1;
  border-style: dashed;
  border-color: color-mix(in srgb, var(--accent-1) 42%, transparent);
}
.utility-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.5;
}
.utility-orb--one {
  width: min(42vw, 620px);
  aspect-ratio: 1;
  top: -30%;
  right: -10%;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 36%, transparent), transparent 68%);
}
.utility-orb--two {
  width: min(35vw, 480px);
  aspect-ratio: 1;
  bottom: -38%;
  left: -8%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-1) 30%, transparent), transparent 68%);
}
.utility-page--thanks .utility-mark {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.header .site-language-switcher:not([hidden]) {
  position: absolute;
  z-index: 6;
  top: 50%;
  right: calc(var(--gutter) + 2.75rem);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transform: translateY(-50%);
}

@media (min-width: 1201px) {
  .header .site-language-switcher:not([hidden]) {
    right: var(--gutter);
  }
}

@media (max-width: 820px) {
  .utility-stage {
    min-height: 0;
    padding: 4.25rem 0 4.6rem;
  }
  .utility-layout {
    grid-template-columns: 1fr;
    gap: 2.6rem;
  }
  .utility-content h1 {
    max-width: none;
    font-size: clamp(2.4rem, 12vw, 3.6rem);
  }
  .utility-art {
    min-height: 18rem;
    order: -1;
  }
  .utility-mark { width: clamp(10.4rem, 52vw, 13.75rem); }
}

@media (max-width: 520px) {
  .utility-page .actions {
    display: grid;
  }
  .utility-page .actions .btn {
    width: 100%;
    justify-content: center;
  }
  .utility-art {
    min-height: 15.6rem;
    border-radius: 1.9rem;
  }
}

html.a11y-contrast .utility-stage {
  background: var(--c-white);
}
html.a11y-contrast .utility-content .lead {
  color: var(--c-ink);
}
html.a11y-contrast .utility-art {
  background: var(--c-white);
  border-color: var(--c-ink);
}

/* Kontaktseite */
.contact-page-hero .hero {
  min-height: clamp(22rem, 46vw, 32rem);
}

.page-doc .contact-page-hero .hero__body {
  align-items: center;
  padding: clamp(4rem, 7vw, 6rem) 0;
}

.contact-page-hero .hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}

.page-doc .contact-page-hero + main {
  padding-top: 0;
}

.contact-page-intro {
  padding-top: clamp(3rem, 6vw, 5.5rem);
}

.contact-page-intro .contact__wrap {
  min-height: clamp(38rem, 70vh, 46rem);
}

.contact-page-intro .contact__panel,
.contact-page-intro .contact__form-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contact__form-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(2rem, 4vw, 3rem);
  background: var(--c-white);
  scroll-margin-top: var(--header-h);
}

.contact__form-head h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.contact__form-head p {
  margin-bottom: 1.75rem;
  color: var(--c-ink-soft);
}

.form--contact-inline,
.contact__form-panel > .leadwerk-wpforms {
  width: 100%;
}

.form--contact-inline .btn,
.contact__form-panel > .leadwerk-wpforms .wpforms-submit {
  justify-self: start;
}

html.a11y-contrast .contact__form-panel {
  border-left: 2px solid var(--c-ink);
}

/* Kontaktformular / WPForms */
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.form,
.leadwerk-wpforms .wpforms-field-container {
  display: grid;
  gap: 1rem;
}
.form label,
.leadwerk-wpforms .wpforms-field-label {
  color: var(--c-ink);
  font-weight: 600;
}
.form input:not([type="checkbox"]):not([type="radio"]),
.form textarea,
.leadwerk-wpforms .wpforms-field input:not([type="checkbox"]):not([type="radio"]),
.leadwerk-wpforms .wpforms-field textarea {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: var(--c-white);
  color: var(--c-ink);
  font: inherit;
}
.form textarea,
.leadwerk-wpforms .wpforms-field textarea {
  min-height: 9.5rem;
  resize: vertical;
}
.form-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.65rem;
  font-weight: 500 !important;
}
.form-consent input { margin-top: 0.35em; }
.form-consent a,
.leadwerk-wpforms .leadwerk-privacy-link {
  color: var(--primary);
  font-weight: 650;
}
.leadwerk-wpforms {
  --wpforms-field-border-radius: 12px;
  --wpforms-field-background-color: var(--c-white);
  --wpforms-field-border-color: var(--c-line);
  --wpforms-field-text-color: var(--c-ink);
  --wpforms-label-color: var(--c-ink);
  --wpforms-button-background-color: var(--primary);
  --wpforms-button-border-color: var(--primary);
  --wpforms-button-text-color: #fff;
  --wpforms-button-border-radius: 999px;
  --wpforms-button-size-height: 48px;
  --wpforms-button-size-padding-h: 20px;
  --wpforms-button-size-font-size: 16px;
  --wpforms-field-size-input-height: 52px;
  --wpforms-field-size-padding-h: 16px;
}
@media (max-width: 820px) {
  .form-layout { grid-template-columns: 1fr; }
  .contact-page-intro .contact__wrap { min-height: 0; }
  .contact__form-panel { padding: 2.25rem 1.75rem; }
}

/* =========================================================
   Bewerbung – Formular, Datei-Upload, Bestätigung (Stellenanzeigen)
   Bleibt nach dem Import ein HTML-Formular (eigene ID, kein WPForms).
   ========================================================= */
.application { scroll-margin-top: var(--header-h); }

.application__wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.5rem, 3vw, 2.25rem);
  align-items: stretch;
}

.application__flow {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.application__flow > .application-form,
.application__flow > .application-success { flex: 1; }

.application__side {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  align-self: start;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
}
.application__side h3 {
  margin-bottom: 0.75rem;
  color: #fff;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 400;
  line-height: 1.25;
}
.application__side > p {
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.application-form {
  padding: clamp(2rem, 4vw, 2.75rem);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
}
.application-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.125rem;
}
.application-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.125rem;
}
.application-form__field > label {
  color: var(--c-ink);
  font-size: 0.9rem;
  font-weight: 600;
}
.application-form__field input:not([type="file"]),
.application-form__field select,
.application-form__field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: var(--c-warm-white);
  color: var(--c-ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.application-form__field textarea {
  min-height: 9rem;
  line-height: 1.6;
  resize: vertical;
}
.application-form__field input:not([type="file"]):focus,
.application-form__field select:focus,
.application-form__field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--c-white);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.application-form__field input.is-invalid:not([type="file"]),
.application-form__field select.is-invalid,
.application-form__field textarea.is-invalid { border-color: #b4533f; }

.application-form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.5rem 0 1.5rem;
  color: var(--c-ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}
.application-form__check input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.2em;
  accent-color: var(--primary);
}
.application-form__check input.is-invalid { outline: 2px solid #b4533f; outline-offset: 2px; }
.application-form__check a {
  color: var(--primary);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.application-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}
.application-form__hint {
  margin: 0;
  color: var(--c-ink-soft);
  font-size: 0.85rem;
}
.application-form__status {
  margin-top: 1.25rem;
  padding: 1rem 1.125rem;
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  line-height: 1.55;
}
.application-form__status.is-error {
  border: 1px solid rgba(180, 83, 63, 0.28);
  background: rgba(180, 83, 63, 0.08);
  color: #8a3a2e;
}

/* Datei-Upload: Ziehen und Ablegen oder Auswahl */
.file-drop { position: relative; }
.file-drop__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.file-drop__zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.75rem 1.25rem;
  border: 2px dashed rgba(47, 91, 92, 0.3);
  border-radius: var(--r-md);
  background: var(--c-warm-white);
  color: var(--c-ink-soft);
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.file-drop__zone:hover,
.file-drop.is-dragover .file-drop__zone {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.file-drop__input:focus-visible + .file-drop__zone {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.file-drop.is-invalid .file-drop__zone { border-color: #b4533f; }
.file-drop__icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 0.25rem;
  border: 2px solid var(--accent-1);
  border-radius: 50%;
  background: var(--c-white);
  box-shadow: var(--shadow-xs);
}
.file-drop__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent-1);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.file-drop__text strong { color: var(--c-ink); font-weight: 600; }
.file-drop__link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.file-drop__hint { font-size: 0.8rem; line-height: 1.5; }

.file-drop__list {
  display: grid;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.file-drop__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.6rem 0.6rem 0.9rem;
  border: 1px solid rgba(47, 91, 92, 0.2);
  border-radius: var(--r-sm);
  background: var(--primary-soft);
}
.file-drop__item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.file-drop__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--c-ink);
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-drop__size {
  flex-shrink: 0;
  color: var(--c-ink-soft);
  font-size: 0.8rem;
}
.file-drop__remove {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.file-drop__remove svg { stroke: var(--c-ink-soft); }
.file-drop__remove:hover,
.file-drop__remove:focus-visible { background: var(--c-white); }
.file-drop__remove:hover svg { stroke: #b4533f; }
.file-drop__error {
  margin: 0.6rem 0 0;
  color: #8a3a2e;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Bestätigung nach dem Absenden */
.application-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.application-success__icon {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: var(--accent-1-soft);
}
.application-success__icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: var(--accent-1-dark);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.application-success h3 {
  margin: 0 0 0.875rem;
  color: var(--c-ink);
  font-size: var(--fs-h3);
  line-height: 1.25;
}
.application-success h3:focus { outline: none; }
.application-success p {
  max-width: 28rem;
  margin: 0 0 0.75rem;
  color: var(--c-ink-soft);
  line-height: 1.7;
}
.application-success__call a {
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}
.application-success__call a:hover { text-decoration: underline; }

html.a11y-contrast .application-form,
html.a11y-contrast .application-success,
html.a11y-contrast .file-drop__zone,
html.a11y-contrast .file-drop__item,
html.a11y-contrast .application-form__field input:not([type="file"]),
html.a11y-contrast .application-form__field select,
html.a11y-contrast .application-form__field textarea { border-color: #000 !important; }
html.a11y-contrast .file-drop__hint,
html.a11y-contrast .file-drop__size,
html.a11y-contrast .application-form__hint,
html.a11y-contrast .application-form__check { color: #000 !important; }
html.a11y-contrast .application__side h3,
html.a11y-contrast .application__side > p { color: #fff !important; }

@media (max-width: 960px) {
  .application__wrap { grid-template-columns: 1fr; }
  .application__side { position: static; }
}

@media (max-width: 640px) {
  .application-form__row { grid-template-columns: 1fr; }
  .application-form__actions { flex-direction: column; align-items: flex-start; }
  .application-form__actions .btn { width: 100%; }
  .file-drop__size { display: none; }
}

/* Zurück nach oben */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 180;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 28px var(--primary-glow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.75rem);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.back-to-top:focus-visible {
  outline: 3px solid var(--accent-1);
  outline-offset: 3px;
}

.back-to-top svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html.a11y-contrast .back-to-top {
  border: 2px solid #fff;
  background: #000;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
}

/* =========================================================
   Mobile hardening · common phone widths (360–430 px)
   Keep this layer last so it also wins over page-specific rules.
   ========================================================= */
@media (max-width: 820px) {
  :root {
    --gutter: clamp(1rem, 5vw, 1.35rem);
    --header-h: 72px;
  }

  html {
    max-width: 100%;
    overflow-x: clip;
  }

  body {
    max-width: 100%;
    line-height: 1.65;
    overflow-x: clip;
    overflow-wrap: break-word;
  }

  .section {
    padding-block: clamp(3.5rem, 14vw, 4.75rem);
  }

  .hero-shell {
    z-index: auto;
  }

  h1,
  h2,
  h3,
  .hero__title {
    text-wrap: balance;
    overflow-wrap: anywhere;
  }

  .header__bar {
    width: 100%;
    min-height: var(--header-h);
    margin-inline: 0;
    padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
  }

  .header,
  .header--overlay {
    z-index: 200;
  }

  .header__logo--mobile {
    padding-block: 7px;
  }

  .header__logo--mobile img,
  .header.scrolled .header__logo--mobile img {
    height: 58px;
    max-width: 88px;
  }

  .nav__toggle {
    right: max(0.5rem, env(safe-area-inset-right));
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 9px;
  }

  .nav {
    right: 0;
    width: min(90vw, 360px);
    height: 100vh;
    height: 100dvh;
    padding: max(4.75rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), visibility 0.25s;
  }

  .nav.open {
    right: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__close {
    top: max(0.75rem, env(safe-area-inset-top));
    right: max(0.75rem, env(safe-area-inset-right));
    width: 44px;
    height: 44px;
    padding: 0;
  }

  .nav__link,
  .nav__drawer-sub a {
    min-height: 44px;
  }

  .header--overlay:not(.scrolled) .nav .nav__link {
    color: var(--c-ink);
  }

  .header--overlay:not(.scrolled) .nav .nav__link:hover,
  .header--overlay:not(.scrolled) .nav .nav__link.active {
    color: var(--primary);
  }

  .hero__body {
    padding: calc(var(--header-h) + 2.5rem) 0 3.5rem;
  }

  .page-doc .hero__body {
    padding: calc(var(--header-h) + 2rem) 0 3.5rem;
  }

  .hero__title {
    font-size: clamp(1.95rem, 8vw, 2.4rem);
    line-height: 1.08;
  }

  .hero__sub,
  .lead {
    line-height: 1.65;
  }

  .btn,
  button,
  input,
  select,
  textarea {
    max-width: 100%;
  }

  .btn {
    min-height: 48px;
    white-space: normal;
    text-align: center;
  }

  .a11y {
    top: auto;
    bottom: max(1rem, env(safe-area-inset-bottom));
    transform: none;
  }

  .a11y__toggle {
    width: 44px;
    height: 44px;
  }

  .a11y__panel {
    top: auto;
    bottom: 0;
    width: min(300px, calc(100vw - 64px));
    max-height: min(72vh, 520px);
    overflow-y: auto;
    transform: none;
  }

  .back-to-top {
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .site-footer__col a,
  .site-footer__bottom a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
}

@media (max-width: 430px) {
  :root {
    --fs-body: 1rem;
    --fs-lead: 1.05rem;
  }

  .section-head {
    margin-bottom: 2.25rem;
  }

  .section-label,
  .eyebrow,
  .hero__eyebrow {
    letter-spacing: 0.13em;
  }

  .hero__actions,
  .contact__actions,
  .actions {
    gap: 0.875rem;
  }

  .hero__actions .btn,
  .contact__actions .btn,
  .actions .btn {
    width: 100%;
    justify-content: center;
  }

  .contact__panel,
  .contact__form-panel,
  .doc-panel {
    padding-inline: 1.25rem;
  }
}

@media (max-width: 360px) {
  :root { --gutter: 1rem; }

  .hero__title {
    font-size: 1.9rem;
  }

  .nav {
    width: 94vw;
  }
}

/* =========================================================
   Final mobile overrides · tables and overlay navigation
   ========================================================= */
@media (max-width: 820px) {
  /* Keep the overlay header inside the iOS safe area and prevent the
     container's full-bleed hero padding from pinning copy to the edge. */
  .header--overlay {
    width: 100%;
    inset-inline: 0;
  }

  /* The mobile drawer lives inside the hero header. Let the fixed drawer
     escape the hero's visual bounds while keeping the media itself clipped. */
  .hero,
  .hero-shell {
    overflow: visible;
  }

  .hero__media {
    overflow: hidden;
  }

  .header__bar {
    width: 100%;
    max-width: none;
    min-height: calc(var(--header-h) + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }

  .nav__toggle {
    right: max(var(--gutter), env(safe-area-inset-right));
  }

  .nav {
    box-sizing: border-box;
    height: var(--mobile-menu-vh, 100dvh);
    max-height: var(--mobile-menu-vh, 100dvh);
    padding-bottom: max(2rem, calc(env(safe-area-inset-bottom) + 1.5rem));
    -webkit-overflow-scrolling: touch;
    scroll-padding-bottom: 2rem;
  }

  .nav__list.nav__list--drawer {
    min-height: 0;
  }

  .nav__cta.nav__cta--drawer {
    flex-shrink: 0;
    margin-bottom: 0.25rem;
  }

  .hero__body,
  .page-doc .hero__body {
    min-width: 0;
    padding-inline: max(var(--gutter), env(safe-area-inset-left))
      max(var(--gutter), env(safe-area-inset-right));
  }

  .hero__content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero__sub {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .header--overlay:not(.scrolled) .nav__toggle span {
    background: #fff;
  }

  .faq__media {
    width: 100%;
    max-width: none;
  }

  .faq__badge {
    left: 1rem;
    right: 1rem;
    bottom: -1rem;
    width: auto;
    max-width: none;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .faq__badge > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .cafe__badge {
    right: 1rem;
    left: 1rem;
    max-width: none;
    text-align: center;
    white-space: normal;
    line-height: 1.35;
  }

  .cafe__grid--media-start .cafe__badge {
    right: 1rem;
    left: 1rem;
  }

  .bw-rates-table-wrap,
  .bw-rates-table-wrap#zimmerpreise {
    overflow: hidden;
    max-width: 100%;
    padding: 1.1rem;
  }

  .bw-rates-table-wrap .bw-rates-table {
    display: block;
    width: 100%;
    table-layout: fixed;
  }

  .bw-rates-table-wrap .bw-rates-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .bw-rates-table-wrap .bw-rates-table tbody {
    display: grid;
    gap: 0.65rem;
  }

  .bw-rates-table-wrap .bw-rates-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(7rem, 0.9fr);
    gap: 0.65rem 0.9rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--c-line);
  }

  .bw-rates-table-wrap .bw-rates-table tbody tr:last-child {
    border-bottom: 0;
  }

  .bw-rates-table-wrap .bw-rates-table td,
  .bw-rates-table-wrap .bw-rates-table td:first-child,
  .bw-rates-table-wrap .bw-rates-table td:last-child {
    min-width: 0;
    padding: 0;
    border: 0;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .bw-rates-table-wrap .bw-rates-table td:nth-child(even) {
    text-align: right;
  }

  .bw-rates-table-wrap .bw-rates-table td::before {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--c-ink-soft);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
    content: attr(data-label);
  }

  .bw-rates-table-wrap .bw-rates-table td:last-child {
    color: var(--primary);
  }
}

/* Bewerbungsformular erst anzeigen, wenn der Live-Connector bereit ist. */
.application-form[hidden], .application-success[hidden], #bewerbungAvailability[hidden] { display: none; }
.application-mail { flex: 1; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.application-mail h3 { margin: 0; }
.application-mail p { margin: 0; }
