/* PNT Senioreneinrichtungen – Designsystem (abgestimmt auf pflegenotfallteam.de) */

/* ---------- Schriften (lokal, kein externer Aufruf) ---------- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/comfortaa-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/comfortaa-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #102e59;
  --navy-deep: #0b2244;
  --blue: #205db2;
  --blue-tint: #e9f1fc;
  --purple: #79348b;
  --purple-dark: #5f2670;
  --purple-tint: #f6edf8;
  --purple-on-navy: #dcb4e8;

  --ink: var(--navy);
  --text: #3a475c;
  --muted: #586579;
  --line: rgba(16, 46, 89, .13);
  --surface: #fff;
  --tint: #f3f6fb;
  --on-navy: rgba(255, 255, 255, .86);
  --line-on-navy: rgba(255, 255, 255, .16);

  --font-text: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Comfortaa', 'Plus Jakarta Sans', -apple-system, sans-serif;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 20px;
  --radius-full: 999px;

  --shadow-card: 0 4px 20px rgba(16, 46, 89, .07);
  --shadow-lift: 0 16px 36px rgba(16, 46, 89, .14);
  --shadow-bar: 0 6px 24px rgba(16, 46, 89, .09);

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 32px);
  --logo-h: 75px;
  --header-h: calc(var(--logo-h) + 28px);
  --section: clamp(3.5rem, 7vw, 6rem);
  --block: clamp(1.75rem, 3vw, 2.75rem);
  --gap: clamp(.75rem, 1.5vw, 1.25rem);
  --panel-pad: clamp(1.75rem, 4.5vw, 3.5rem);
  --tail: clamp(2.5rem, 4vw, 3.5rem);
  /* Randspalte der Ratgeber- und Standortseiten: Kopfbereich (.wf-hero) und Inhalt (.so-layout) teilen sich Breite und Abstand.
     Der Abstand ist der Kartenabstand; die Spalte ist so breit, dass die Textspalte bei 1320px ihre 868px behält. */
  --aside: 432px;
  --aside-gap: var(--gap);

  --fs-display: clamp(1.875rem, 1.1rem + 2.1vw, 2.75rem);
  --fs-headline: clamp(1.625rem, 1.1rem + 1.7vw, 2.5rem);
  --fs-sub: clamp(1.5rem, 1.2rem + .9vw, 1.875rem);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --focus: var(--blue);
}

@media (max-width: 1279px) {
  :root { --logo-h: clamp(44px, 12vw, 75px); }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: rgba(16, 46, 89, .35) transparent;
  accent-color: var(--purple);
  caret-color: var(--purple);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, figure, blockquote, address { margin: 0; font-style: normal; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: var(--navy); }
button { font: inherit; color: inherit; cursor: pointer; }
strong { font-weight: 700; }
a[href^="tel:"] { white-space: nowrap; }

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

.icon { width: 1.25em; height: 1.25em; flex: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 200;
  padding: .75rem 1.25rem;
  border-radius: var(--radius-s);
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons, Links, Tags ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  min-height: 52px;
  padding: .5rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-s);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-out), box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--blue-tint); color: var(--navy); }
.btn--outline { border-color: rgba(16, 46, 89, .3); background: #fff; color: var(--navy); }
.btn--outline:hover { border-color: var(--navy); background: var(--blue-tint); color: var(--navy); }
.btn--ghost { background: var(--tint); color: var(--navy); }
.btn--ghost:hover { background: var(--blue-tint); color: var(--navy); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}
.text-link .icon { transition: transform .25s var(--ease-out); }
.text-link:hover .icon { transform: translateX(4px); }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li {
  padding: .3rem .8rem;
  border-radius: var(--radius-full);
  background: var(--blue-tint);
  color: var(--navy);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ---------- Kopfbereich ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-bar); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}
.site-logo { display: block; flex: none; }
.site-logo img { width: auto; height: var(--logo-h); }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.site-nav__list { display: flex; align-items: center; gap: clamp(.25rem, 1vw, 1rem); }
.site-nav__item { position: relative; display: flex; align-items: center; }
.site-nav__link {
  position: relative;
  display: block;
  padding: .75rem .625rem;
  color: var(--navy);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav__link::after {
  content: '';
  position: absolute;
  inset: auto .625rem .4rem;
  height: 2px;
  border-radius: 2px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.site-nav__link:hover::after, .site-nav__link[aria-current]::after { transform: scaleX(1); }
.site-nav__link--extern { display: flex; align-items: center; gap: .3rem; }
.site-nav__link--extern .icon { width: 1em; height: 1em; color: var(--muted); }
.site-nav__sub-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 44px;
  margin-left: -.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
}
.site-nav__sub-toggle .icon { width: 18px; height: 18px; transition: transform .25s var(--ease-out); }
.has-sub:hover .site-nav__sub-toggle .icon,
.has-sub.is-open .site-nav__sub-toggle .icon { transform: rotate(180deg); }

.site-nav__sub {
  position: absolute;
  top: 100%;
  left: -.5rem;
  z-index: 10;
  min-width: 300px;
  padding: .5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #fff;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s, transform .25s var(--ease-out), visibility .2s;
}
.has-sub:hover .site-nav__sub,
.has-sub:focus-within .site-nav__sub,
.has-sub.is-open .site-nav__sub { opacity: 1; visibility: visible; transform: none; }
.has-sub.is-shut .site-nav__sub { opacity: 0; visibility: hidden; }
.site-nav__sub a {
  display: flex;
  flex-direction: column;
  padding: .625rem .875rem;
  border-radius: var(--radius-s);
  color: var(--navy);
  text-decoration: none;
  line-height: 1.35;
}
.site-nav__sub a:hover { background: var(--blue-tint); }
.site-nav__sub strong { font-size: 1.0625rem; }
.site-nav__sub span { color: var(--muted); font-size: .9375rem; }
.site-nav__sub-all { margin-top: .25rem; border-top: 1px solid var(--line); padding-top: .25rem; }
.site-nav__sub-all a { flex-direction: row; align-items: center; justify-content: space-between; color: var(--blue); font-weight: 700; }

.site-nav__end { display: flex; align-items: center; gap: 1rem; }

.lang { position: relative; }
.lang summary {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 .5rem;
  border-radius: var(--radius-s);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary .icon { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.lang[open] summary .icon { transform: rotate(180deg); }
.lang img { width: 22px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); }
.lang__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 10;
  min-width: 190px;
  padding: .5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #fff;
  box-shadow: var(--shadow-lift);
}
.lang__menu a {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 44px;
  padding: 0 .75rem;
  border-radius: var(--radius-s);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.lang__menu a:hover, .lang__menu a[aria-current] { background: var(--blue-tint); }

.nav-toggle {
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-s);
  background: none;
  color: var(--navy);
}
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

@media (max-width: 1279px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1rem var(--gutter) 2rem;
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .45s var(--ease-out), opacity .2s, visibility .45s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; clip-path: inset(0); }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .site-nav__link { flex: 1; padding: 1rem 0; font-size: 1.25rem; }
  .site-nav__link::after { display: none; }
  .site-nav__sub-toggle { display: none; }
  .site-nav__sub {
    position: static;
    flex-basis: 100%;
    min-width: 0;
    padding: 0 0 .75rem;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: inherit;
    transform: none;
  }
  .site-nav__sub a { padding: .625rem .75rem; }
  .site-nav__end { flex-direction: column-reverse; align-items: stretch; }
  .lang summary { padding: 0; }
  .lang__menu { position: static; margin-top: .25rem; box-shadow: none; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Standortfinder (Hero) ---------- */
/* 14px Luft bringt der Kopfbereich unter dem Logo schon mit */
.finder { padding-top: max(0px, var(--gap) - 14px); }
.finder__panel {
  --focus: #fff;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: var(--panel-pad);
  overflow: hidden;
  border-radius: var(--radius-l);
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--on-navy);
}
/* Der Text steht mittig neben der Karte, damit unter den Kontakten keine Lücke bleibt */
.finder__text { align-self: center; }
.finder h1 { color: #fff; font-size: var(--fs-display); }
.finder h1 > span, .finder h1 em { display: block; }
.finder h1 em { margin-top: .15em; color: var(--purple-on-navy); font-size: .68em; font-style: normal; font-weight: 400; letter-spacing: 0; }
.finder__laender { display: block; }
.finder__laender span { white-space: nowrap; }
.finder__lede { max-width: 38em; margin: 1rem 0 0; font-size: 1.125rem; }

/* Sprung zur Standortliste im Finder: weiße Pille wie im Kopfbereich von pnt-pflegedienste.de */
.finder__kontakt { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.kontakt-pill {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  min-height: 64px;
  padding: .5rem 1.25rem .5rem .5rem;
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--navy);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s, transform .2s var(--ease-out);
}
.kontakt-pill .icon { flex: none; width: 48px; height: 48px; padding: 13px; border-radius: 50%; background: var(--purple); color: #fff; }
.kontakt-pill > span { min-width: 0; }
.kontakt-pill small { display: block; color: var(--muted); font-size: .875rem; font-weight: 600; }
.kontakt-pill:hover { background: var(--purple-tint); color: var(--navy); }
.kontakt-pill:active { transform: scale(.98); }

/* Vektorkarte */
.map { position: relative; width: 100%; max-width: 600px; margin: -1rem auto 0; }
.map svg { display: block; width: 100%; height: auto; overflow: visible; }
.map path { fill: rgba(255, 255, 255, .055); stroke: rgba(255, 255, 255, .2); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map path.is-home { fill: rgba(150, 110, 215, .34); stroke: rgba(255, 255, 255, .55); }
.map__city { position: absolute; padding-top: 9px; color: rgba(255, 255, 255, .78); font-size: .8125rem; font-weight: 600; line-height: 1; text-shadow: 0 0 4px var(--navy-deep), 0 0 8px var(--navy-deep); transform: translateX(-50%); pointer-events: none; }
.map__city::before { content: ''; position: absolute; top: 0; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: rgba(255, 255, 255, .78); }

.map__marker {
  position: absolute;
  z-index: 1;
  display: block;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  text-decoration: none;
  transition: opacity .35s, filter .35s;
}
.map__marker:hover, .map__marker:focus-visible, .map__marker.is-active { z-index: 3; }
.map__dot {
  position: absolute;
  inset: 13px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
  transition: transform .35s var(--ease-out), background-color .3s;
}
.map__dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 2px solid #fff;
  border-radius: 50%;
  opacity: 0;
}
.map__label {
  position: absolute;
  top: 50%;
  left: calc(100% - 4px);
  display: flex;
  flex-direction: column;
  padding: .4rem .8rem;
  border-radius: var(--radius-s);
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  color: var(--navy);
  line-height: 1.25;
  white-space: nowrap;
  transform: translateY(-50%);
  transition: transform .35s var(--ease-out), background-color .3s, color .3s;
}
.map__marker--left .map__label { right: calc(100% - 4px); left: auto; }
.map__label strong { font-size: 1rem; }
.map__label span { color: var(--muted); font-size: .8125rem; font-weight: 500; transition: color .3s; }
.map__marker:hover .map__dot, .map__marker.is-active .map__dot { transform: scale(1.35); }
.map__marker:hover .map__label, .map__marker.is-active .map__label { background: var(--purple); color: #fff; }
.map__marker:hover .map__label span, .map__marker.is-active .map__label span { color: rgba(255, 255, 255, .85); }

@media (max-width: 899px) {
  .finder__panel { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .map { max-width: 440px; margin: 0 auto; }
}
@media (max-width: 599px) {
  .house__media { aspect-ratio: 16 / 9; }
  .finder__lede, .map__city { display: none; }
  .finder__kontakt { flex-direction: column; align-items: stretch; }
  .kontakt-pill { border-radius: var(--radius-l); }
  .map { max-width: 320px; }
  .map__label span { display: none; }
  .breadcrumb [aria-current], .breadcrumb .icon:last-of-type { display: none; }
  .so-claim { font-size: 1.125rem; line-height: 1.55; }
    .map__label { padding: .3rem .6rem; }
}

/* ---------- Partnerlogos (vor dem Fußbereich) ---------- */
.partners { padding-bottom: var(--tail); }
.partners__track { display: flex; justify-content: center; overflow: hidden; }
.partners__list { display: flex; flex: none; align-items: center; gap: clamp(2rem, 4vw, 3.25rem); padding-inline: clamp(1rem, 2vw, 1.625rem); }
.partners__list a { display: block; opacity: .5; transition: opacity .3s; }
.partners__list a:hover, .partners__list a:focus-visible { opacity: 1; }
.partners__list img { width: auto; height: clamp(52px, 5vw, 68px); max-width: 200px; object-fit: contain; filter: grayscale(1); transition: filter .3s; }
.partners__list img.is-white { filter: brightness(0); }
.partners__list a:hover img:not(.is-white), .partners__list a:focus-visible img:not(.is-white) { filter: none; }
.partners__track.is-rolling {
  justify-content: flex-start;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partners__track.is-rolling .partners__list { animation: partners var(--partners-dauer, 40s) linear infinite; }
.partners__track.is-rolling:hover .partners__list, .partners__track.is-rolling:focus-within .partners__list { animation-play-state: paused; }

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--section); }
.section--tint { background: var(--tint); }
/* Zwei weiße Abschnitte hintereinander trennt ein Abschnittsabstand, nicht zwei */
.section:not(.section--tint) + .section:not(.section--tint) { padding-top: 0; }
.wf-page > .wrap + .section { padding-top: 0; }
.section__title { margin-bottom: var(--block); font-size: var(--fs-headline); }
.section__title span, .section__title em { display: block; }
.section__title em { margin-top: .2em; color: var(--purple); font-size: .68em; font-style: normal; font-weight: 400; letter-spacing: 0; }

/* ---------- Hauskarten ---------- */
.house-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--gap); }
.house {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), opacity .35s, filter .35s, border-color .3s;
}
.house:hover, .house.is-active { transform: translateY(-3px); border-color: rgba(121, 52, 139, .45); box-shadow: var(--shadow-lift); }
.house:focus-within { border-color: var(--blue); }
.house__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--tint); }
.house__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.house:hover .house__media img { transform: scale(1.045); }
.house__body { display: flex; flex: 1; flex-direction: column; gap: .5rem; padding: 1.5rem 1.5rem 1.25rem; }
.house__place { margin: 0; color: var(--muted); font-size: 1rem; font-weight: 500; }
.house h3 { font-size: 1.5rem; }
.house__link { color: inherit; text-decoration: none; }
.house__link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-l); }
.house__link:focus-visible { outline: none; }
.house__link:focus-visible::after { outline: 3px solid var(--focus); outline-offset: -3px; }
.house .tags { margin-top: .5rem; }
.house__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-inline: 1.5rem;
  padding-block: .5rem;
  border-top: 1px solid var(--line);
}
.house__phone {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 48px;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.house__phone .icon { flex: none; color: var(--purple); }
.house__kontakt { display: flex; flex-direction: column; min-width: 0; }
.house__mail { min-height: 44px; font-size: .9375rem; font-weight: 600; white-space: normal; }
.house__mail span { overflow-wrap: anywhere; }
.house__phone:hover { color: var(--purple); }
.house__more { display: inline-flex; align-items: center; gap: .4rem; color: var(--blue); font-weight: 700; white-space: nowrap; }
.house__more .icon { transition: transform .3s var(--ease-out); }
.house:hover .house__more .icon { transform: translateX(5px); }

/* ---------- Wohnformen-Vergleich ---------- */
.compare {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(7, auto);
  column-gap: var(--gap);
}
.compare__col { display: grid; grid-row: 1 / -1; grid-template-rows: subgrid; border: 1px solid var(--line); border-radius: var(--radius-l); background: #fff; box-shadow: var(--shadow-card); }
.compare__col h3 { padding: 1.5rem 1.5rem 1.125rem; font-size: 1.375rem; }
.compare__col dl { display: contents; }
.compare__col dl > div { margin-inline: 1.5rem; padding: 1rem 0 1.125rem; border-top: 1px solid var(--line); }
.compare__col dl > div:last-child { padding-bottom: .5rem; }
.compare__more { margin: 0 1.5rem; padding: .375rem 0 .75rem; border-top: 1px solid var(--line); }
.compare__more .text-link { min-height: 44px; }
.compare__col dt { margin-bottom: .25rem; color: var(--purple); font-size: .9375rem; font-weight: 700; }
.compare__col dd { font-size: 1.0625rem; line-height: 1.5; }
.compare__tabs { display: none; }
.compare__tabs button { min-height: 48px; padding: 0 1.125rem; border: 1.5px solid rgba(16, 46, 89, .3); border-radius: var(--radius-full); background: #fff; color: var(--navy); font-size: 1.0625rem; font-weight: 600; transition: background-color .2s, color .2s, border-color .2s; }
.compare__tabs button:hover { border-color: var(--navy); }
.compare__tabs button[aria-selected="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.compare__where { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.compare__where a { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; font-weight: 700; text-decoration: none; }
.compare__where .icon { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease-out); }
.compare__where a:hover .icon { transform: translateX(4px); }

@media (max-width: 899px) {
  .compare { display: flex; flex-direction: column; gap: var(--gap); }
  .compare__col { display: block; }
  .compare.is-tabbed .compare__col:not(.is-current) { display: none; }
  .compare__tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--gap); }
  .compare__col dl { display: block; }
}

/* ---------- Wohnform-Kurzwahl (Startseite) ---------- */
/* Links die Angebote, rechts das Foto zur Zeile unter dem Zeiger; ohne Zeiger steht das letzte */
.wf-pick {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  grid-template-areas: "title media" "list media" "links media";
  column-gap: var(--aside-gap);
}
/* Ein Rhythmus: Karten stehen --gap auseinander, Gruppen (Titel, Liste, Button) doppelt so weit; das Foto reicht bis zur Unterkante des Buttons */
.wf-pick__title { grid-area: title; margin-bottom: calc(2 * var(--gap)); }
.wf-pick__list { grid-area: list; border-top: 1px solid var(--line); }
.wf-pick__item { position: relative; padding: 1.25rem 0 .75rem; border-bottom: 1px solid var(--line); }
.wf-pick__item h3 { margin-bottom: .375rem; font-size: 1.5rem; }
.wf-pick__item h3 a { display: inline-flex; align-items: center; gap: .625rem; color: var(--navy); text-decoration: none; transition: color .2s; }
.wf-pick__item h3 a::after { content: ""; position: absolute; inset: 0; }
.wf-pick__item h3 .icon { color: var(--purple); transition: transform .3s var(--ease-out); }
.wf-pick__item:hover h3 a, .wf-pick__item h3 a:focus-visible { color: var(--blue); }
.wf-pick__item:hover h3 .icon { transform: translateX(5px); }
.wf-pick__item p { max-width: 34em; margin: 0; }
.wf-pick__media { position: relative; grid-area: media; min-height: 22rem; overflow: hidden; border-radius: var(--radius-l); background: var(--navy); }
.wf-pick__media figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .5s var(--ease-out); }
.wf-pick__media figure:last-child { opacity: 1; }
.wf-pick__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--fokus, 50% 50%); }
.wf-pick:has(.wf-pick__item:nth-child(1):is(:hover, :focus-within)) .wf-pick__media figure:nth-child(1),
.wf-pick:has(.wf-pick__item:nth-child(2):is(:hover, :focus-within)) .wf-pick__media figure:nth-child(2),
.wf-pick:has(.wf-pick__item:nth-child(3):is(:hover, :focus-within)) .wf-pick__media figure:nth-child(3) { z-index: 1; opacity: 1; }
.wf-pick__links { display: flex; flex-wrap: wrap; align-content: start; gap: var(--gap); grid-area: links; margin: calc(2 * var(--gap)) 0 0; }

@media (max-width: 899px) {
  .wf-pick { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "media" "list" "links"; grid-template-rows: auto; }
  .wf-pick__title { margin-bottom: 1.5rem; }
  .wf-pick__media { min-height: 0; aspect-ratio: 1; margin-bottom: var(--gap); }
  .wf-pick__media img { object-position: var(--fokus, 50% 15%); }
  .wf-pick__links .btn { flex: 1 1 auto; justify-content: space-between; }
}

/* ---------- Wohnformen und Service ---------- */
.wf-head { display: flex; flex-direction: column; gap: 1rem; max-width: 54rem; padding-block: .75rem 1rem; }
.wf-head h1 { font-size: var(--fs-display); }
.wf-head h1 span, .wf-head h1 em { display: block; }
.wf-head h1 em { text-wrap: balance; margin-top: .2em; color: var(--purple); font-size: .68em; font-style: normal; font-weight: 400; letter-spacing: 0; }
.wf-head .so-claim { max-width: 62ch; margin: 0; }
.wf-page .so-aside { top: calc(var(--header-h) + 1.5rem); }
.wf-fragen .wf-kosten { max-width: 54rem; }

.wf-kosten { border-top: 1px solid var(--line); }
.wf-kosten > div { padding: 1rem 0 1.125rem; border-bottom: 1px solid var(--line); }
.wf-kosten dt { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .75rem; color: var(--navy); font-size: 1.125rem; font-weight: 700; }
.wf-kosten dt a { display: inline-flex; align-items: center; min-height: 44px; }
.wf-kosten dd { max-width: 68ch; margin-top: .25rem; }
.wf-kosten dd + dd { margin-top: .5rem; color: var(--navy); }
.wf-traeger { padding: .2rem .7rem; border-radius: var(--radius-full); background: var(--blue-tint); font-size: .9375rem; font-weight: 600; }
.wf-note { max-width: 68ch; margin-top: 1.25rem; color: var(--muted); font-size: 1rem; }
.wf-note + .text-link { min-height: 44px; }

.wf-weitere ul { display: flex; flex-direction: column; }
.wf-weitere .text-link { justify-content: space-between; min-height: 44px; }

.linkliste { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--gap); }
.linkliste li { position: relative; padding: 1.125rem 1.25rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-m); background: #fff; transition: border-color .25s, box-shadow .3s var(--ease-out), transform .3s var(--ease-out); }
.linkliste li:hover { border-color: rgba(121, 52, 139, .45); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.linkliste li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.linkliste__von { display: block; margin-bottom: .25rem; color: var(--purple); font-size: .9375rem; font-weight: 700; }
.linkliste a { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; font-size: 1.125rem; font-weight: 700; line-height: 1.35; text-decoration: none; }
.linkliste a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-m); }
.linkliste a:focus-visible { outline: none; }
.linkliste a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 2px; }
.linkliste .icon { flex: none; width: 1.1em; height: 1.1em; margin-top: .15em; transition: transform .25s var(--ease-out); }
.linkliste li:hover .icon { transform: translate(2px, -2px); }
.linkliste p { margin: .5rem 0 0; font-size: 1.0625rem; line-height: 1.5; }

/* ---------- Bausteine: Leiste, Rahmen, Bento-Kopf, Schritte ---------- */
/* Infoleiste direkt unter dem Finder */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem clamp(1rem, 3vw, 2.5rem); margin-top: var(--gap); padding: 1rem clamp(1rem, 2.4vw, 1.75rem); border-radius: var(--radius-l); background: var(--tint); }
.strip li { display: flex; align-items: center; gap: .875rem; color: var(--navy); font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }
.strip .icon, .disc { flex: none; width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: var(--purple); color: #fff; }

/* Getönter Rahmen: fasst einen Abschnitt zu einer Fläche zusammen */
.frame { padding: var(--panel-pad); border-radius: var(--radius-l); background: var(--tint); }

.wf-pick .wf-pick__list { display: grid; gap: var(--gap); border-top: 0; }
.wf-pick .wf-pick__item { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.125rem; padding: 1.25rem 1.5rem 1.25rem 1.25rem; border: 1px solid transparent; border-radius: var(--radius-m); background: #fff; transition: border-color .25s, box-shadow .3s var(--ease-out); }
.wf-pick .wf-pick__item:hover, .wf-pick .wf-pick__item:focus-within { border-color: rgba(121, 52, 139, .45); box-shadow: var(--shadow-card); }
.wf-pick__item > .disc { grid-row: span 2; background: var(--purple-tint); color: var(--purple); transition: background-color .25s, color .25s; }
.wf-pick__item:hover > .disc, .wf-pick__item:focus-within > .disc { background: var(--purple); color: #fff; }
.wf-pick__item h3 .icon { color: var(--blue); }

/* Fragenkarte: Kontakt als Navy-Fläche neben dem Akkordeon */
.faq-card { --focus: #fff; padding: var(--panel-pad); border-radius: var(--radius-l); background: linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--on-navy); }
.faq-card .section__title { color: #fff; }

/* Bento-Kopf der Wohnform-Seiten: Navy-Text, Foto, Ortskachel */
.wf-hero { display: grid; grid-template-columns: minmax(0, 1fr) var(--aside); grid-template-rows: minmax(0, 1fr) auto; gap: var(--gap) var(--aside-gap); padding-block: .5rem var(--block); }
/* Folgt direkt eine Kachelfläche, gilt der Kachelabstand statt des Blockabstands */
.wf-hero + .steps, .wf-hero + .so-layout:has(.wf-duo) { margin-top: calc(var(--gap) - var(--block)); }
.wf-hero > * { border-radius: var(--radius-l); }
.wf-hero .wf-head { --focus: #fff; grid-row: span 2; justify-content: center; max-width: none; padding: var(--panel-pad); background: linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 100%); }
.wf-hero .wf-head h1 { color: #fff; }
.wf-hero .wf-head h1 em { color: var(--purple-on-navy); }
.wf-hero .wf-head .so-claim { color: var(--on-navy); }
.wf-hero .wf-head .so-claim a, .wf-hero .wf-head .so-claim a:hover { color: #fff; }
.wf-hero figure { position: relative; min-height: clamp(220px, 22vw, 300px); overflow: hidden; background: var(--tint); }
.wf-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wf-hero__orte { --focus: #fff; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; background: var(--purple); color: #fff; font-family: var(--font-head); font-size: 1.375rem; font-weight: 700; line-height: 1.25; text-decoration: none; }
.wf-hero__orte small { display: block; margin-bottom: .125rem; color: rgba(255, 255, 255, .88); font-family: var(--font-text); font-size: .9375rem; font-weight: 600; }
.wf-hero__orte:hover { color: #fff; }
.wf-hero__orte .icon { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: rgba(255, 255, 255, .16); transition: background-color .25s, transform .3s var(--ease-out); }
.wf-hero__orte:hover .icon { background: rgba(255, 255, 255, .3); transform: translateY(3px); }

/* Textabschnitte der Wohnform als getönte Karten */
.wf-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); padding-bottom: var(--block); }
.section#haeuser { scroll-margin-top: calc(var(--header-h) + 24px); }
.wf-duo > section { padding: clamp(1.25rem, 2.5vw, 1.75rem); border-radius: var(--radius-l); background: var(--tint); scroll-margin-top: calc(var(--header-h) + 24px); }
.wf-duo > section:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.wf-duo > section:nth-child(2) { background: var(--purple-tint); }
.so-layout:has(.wf-duo) .so-aside { margin-top: 0; }
.wf-duo h2 { margin-bottom: .75rem; font-size: 1.5rem; }
.wf-duo p { max-width: 68ch; }

.wf-kosten--karten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); border-top: 0; }
.wf-kosten--karten > div { padding: 1.125rem 1.25rem 1.25rem; border: 0; border-radius: var(--radius-m); background: var(--tint); }
.wf-kosten--karten dt { justify-content: space-between; }
.wf-kosten--karten .wf-traeger { background: #fff; }
.wf-kosten--karten dd { font-size: 1.0625rem; line-height: 1.5; }
.wf-fragen .frame .section__title { margin-bottom: 1.5rem; }
.wf-fragen .wf-kosten { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wf-fragen .wf-kosten > div { padding: 1.5rem; background: #fff; }
.wf-fragen .wf-note { margin-top: 1.5rem; }


/* Schritte (Service): vier weiße Karten im getönten Rahmen */
.steps { padding: var(--panel-pad); border-radius: var(--radius-l); background: var(--tint); scroll-margin-top: calc(var(--header-h) + 16px); }
.steps h2 { margin-bottom: var(--block); font-size: var(--fs-sub); }
.steps__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: schritt; }
.steps__list li { padding: 1.5rem; border-radius: var(--radius-m); background: #fff; counter-increment: schritt; }
.steps__list li::before { content: counter(schritt); display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 1.25rem; border-radius: 50%; background: var(--purple-tint); color: var(--purple); font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; }
.steps__list h3 { margin-bottom: .5rem; font-family: var(--font-text); font-size: 1.125rem; letter-spacing: 0; line-height: 1.35; }
.steps__list p { margin: 0; font-size: 1.0625rem; line-height: 1.55; }

@media (max-width: 1079px) {
  .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wf-fragen .wf-kosten { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1079px) {
  .wf-hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .wf-hero .wf-head { grid-row: auto; }
  .wf-hero figure { aspect-ratio: 3 / 2; min-height: 0; }
}
@media (max-width: 899px) {
  .strip { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1080px) {
  .wf-hero figure:last-child { grid-row: span 2; }
}
@media (max-width: 599px) {
  .frame { padding-inline: 1.125rem; }
  .wf-pick .wf-pick__item { grid-template-columns: minmax(0, 1fr); padding: 1.125rem 1.125rem .5rem; }
  .wf-pick__item > .disc { display: none; }
  .wf-duo, .wf-kosten--karten, .steps__list { grid-template-columns: minmax(0, 1fr); }
  .steps { padding-inline: 1.125rem; }
}

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq-layout__intro { position: sticky; top: calc(var(--header-h) + 2rem); display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.faq-layout__intro .section__title, .faq-layout__intro p { margin: 0; }
.faq-layout__intro p { max-width: 26em; }

.faq { border-top: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 0;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item h3 { font-family: var(--font-text); font-size: 1.125rem; letter-spacing: 0; line-height: 1.4; text-wrap: pretty; transition: color .2s; }
.faq__item summary:hover h3 { color: var(--purple); }
.faq__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple-tint);
  color: var(--purple);
  transition: transform .4s var(--ease-out), background-color .25s, color .25s;
}
.faq__item[open] .faq__icon { background: var(--purple); color: #fff; transform: rotate(135deg); }
.faq__answer { padding: 0 3.75rem 1.5rem 0; max-width: 46em; }
.faq__item::details-content { height: 0; overflow: clip; transition: height .45s var(--ease-out), content-visibility .45s allow-discrete; }
.faq__item[open]::details-content { height: auto; }

@media (max-width: 899px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .faq-layout__intro { position: static; }
  .faq__answer { padding-right: 0; }
}

/* ---------- Kontakt-Abschluss ---------- */
/* Der Inhalt endet überall mit einem Abschnittsabstand; nach einem getönten Abschnitt bringt ihn das Kontaktband mit */
main:has(> .section--tint:last-child) + .cta { padding-top: var(--section); }
.cta { padding-bottom: var(--tail); }
.cta__panel {
  --focus: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem 3rem;
  padding: var(--panel-pad);
  border-radius: var(--radius-l);
  background: var(--purple);
  color: rgba(255, 255, 255, .92);
}
.cta__text { flex: 1 1 26rem; max-width: 40rem; }
.cta h2, .pflegegrad h2 { margin-bottom: .75rem; color: #fff; font-size: var(--fs-sub); }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.cta__phone { display: inline-flex; align-items: center; gap: .875rem; color: #fff; text-decoration: none; }
.cta__phone .icon { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: rgba(255, 255, 255, .16); transition: background-color .25s; }
.cta__phone:hover { color: #fff; }
.cta__phone:hover .icon { background: rgba(255, 255, 255, .3); }
.cta__phone span { display: flex; flex-direction: column; font-size: 1.375rem; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.cta__phone small { color: rgba(255, 255, 255, .85); font-size: .9375rem; font-weight: 500; }

/* ---------- Fußbereich ---------- */
.site-footer { padding-bottom: clamp(8px, 2vw, 1.5rem); }
.site-footer__panel {
  --focus: #fff;
  padding: var(--panel-pad);
  border-radius: var(--radius-l);
  background: var(--navy);
  color: var(--on-navy);
  font-size: 1rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__titel { margin: 0 0 .5rem; color: #fff; font: 700 1.125rem/1.2 var(--font-head); letter-spacing: 0; text-wrap: balance; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 2rem clamp(2rem, 5vw, 4.5rem); align-items: stretch; }
.site-footer__brand img { width: auto; height: clamp(56px, 5.2vw, 72px); margin-bottom: 1.25rem; }
.site-footer__brand p { max-width: 44rem; line-height: 1.6; }
.site-footer__brand p + p { margin-top: .75rem; }
.site-footer__kontakt { display: flex; flex-direction: column; gap: .75rem; padding: clamp(1.25rem, 2.5vw, 2rem); border-radius: var(--radius-l); background: rgba(255, 255, 255, .08); }
.site-footer__kontakt-label { margin: 0; color: #fff; font-size: .9375rem; font-weight: 700; line-height: 1.4; }
.site-footer__kontakt .btn { align-self: flex-start; color: var(--navy); }
.site-footer__kontakt .btn:hover { color: var(--navy); text-decoration: none; }
.site-footer__kontakt-note { margin: auto 0 0; color: var(--on-navy); font-size: .9375rem; }
.site-footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line-on-navy); }
.site-footer__cols a { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; padding-block: .25rem; font-weight: 600; line-height: 1.3; }
.site-footer__cols a .icon { width: .9em; height: .9em; color: var(--purple-on-navy); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-on-navy);
  font-size: .9375rem;
}
.site-footer__bottom p { margin: 0 auto 0 0; }
.site-footer__cookies { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: #fff; font: inherit; cursor: pointer; }
.site-footer__cookies:hover { text-decoration: underline; }
.site-footer__social { display: flex; gap: .5rem; }
.site-footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .1); transition: background-color .25s; }
.site-footer__social a:hover { background: var(--purple); }

@media (max-width: 1079px) {
  .site-footer__top { grid-template-columns: minmax(0, 1fr); }
  .site-footer__kontakt { max-width: 480px; }
}
@media (max-width: 1079px) { .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .site-footer__cols { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }

/* ---------- Einwilligung ---------- */
.consent {
  width: min(680px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-l);
  background: #fff;
  color: var(--text);
  box-shadow: 0 30px 80px rgba(11, 34, 68, .4);
}
.consent::backdrop { background: rgba(11, 34, 68, .55); }
.consent__form { padding: clamp(1.25rem, 4vw, 2.25rem); }
.consent__title { margin: 0 0 .75rem; color: var(--ink); font: 700 1.5rem/1.2 var(--font-head); letter-spacing: -.01em; text-wrap: balance; }
.consent p { font-size: 1rem; }
.consent__options { margin: 1.25rem 0; border-top: 1px solid var(--line); }
.consent__options li { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .875rem 0; border-bottom: 1px solid var(--line); }
.consent__options label { display: flex; flex-direction: column; color: var(--navy); cursor: pointer; }
.consent__options label span { color: var(--muted); font-size: .9375rem; }
.consent__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.consent__actions .btn { flex: 1 1 auto; }

.switch {
  appearance: none;
  position: relative;
  flex: none;
  width: 56px;
  height: 32px;
  margin: 0;
  border-radius: var(--radius-full);
  background: #6c7a8e;
  cursor: pointer;
  transition: background-color .25s;
}
.switch::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  transition: transform .3s var(--ease-out);
}
.switch:checked { background: var(--purple); }
.switch:checked::after { transform: translateX(24px); }
.switch:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Standortseite ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; padding-block: 1rem .25rem; color: var(--muted); font-size: 1rem; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .icon { width: 16px; height: 16px; }
.breadcrumb [aria-current] { color: var(--navy); font-weight: 600; }

.so-head { display: flex; flex-direction: column; align-items: flex-start; gap: .875rem; padding-block: .5rem var(--block); }
.so-head h1 { font-size: var(--fs-display); }
.so-head .so-claim { max-width: 68ch; }
.so-address { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .75rem; margin: 0; color: var(--muted); font-size: 1.0625rem; }
.so-address .icon { color: var(--purple); }
.so-address a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.so-wohnformen { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.5rem; margin: 0; }
.so-wohnformen .text-link { min-height: 44px; }

.so-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  height: clamp(260px, 36vw, 500px);
}
.so-gallery--3 { grid-template-columns: 2fr 1fr; }
.so-gallery--2 { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr); }
.so-gallery--1 { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr); }
.so-gallery-item { position: relative; padding: 0; border: 0; overflow: hidden; border-radius: var(--radius-l); background: var(--tint); }
.so-gallery--5 .so-gallery-item:first-child, .so-gallery--3 .so-gallery-item:first-child { grid-row: span 2; }
.so-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out), filter .3s; }
.so-gallery-item:hover img { transform: scale(1.04); }
.so-gallery-item:focus-visible { outline-offset: -4px; border-radius: var(--radius-l); z-index: 1; }
.so-gallery-all {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 48px;
  padding: 0 1.125rem;
  border: 0;
  border-radius: var(--radius-s);
  background: #fff;
  box-shadow: 0 6px 18px rgba(11, 34, 68, .3);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  transition: background-color .2s;
}
.so-gallery-all:hover { background: var(--blue-tint); }
.so-subnav { position: sticky; top: var(--header-h); z-index: 20; margin-top: 1.25rem; border-bottom: 1px solid var(--line); background: #fff; }
.so-page--bereiche .so-subnav { position: static; }
.so-subnav ul { display: flex; gap: .25rem; overflow-x: auto; padding-block: .625rem; scrollbar-width: none; }
.so-subnav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: var(--radius-full);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.so-subnav a:hover { background: var(--tint); }
.so-subnav a.is-active { background: var(--navy); color: #fff; }
.so-subnav-mobile { display: none; }

.so-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--aside); gap: var(--aside-gap); align-items: start; padding-bottom: var(--section); }
.so-section { padding-block: var(--block); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 80px); }
.so-main > .so-section:first-child { border-top: 0; }
.so-section h2, .so-overview h2 { margin-bottom: 1.125rem; font-size: var(--fs-sub); }
.so-section > p { max-width: 68ch; }
.so-claim { color: var(--navy); font-size: 1.3125rem; font-weight: 500; line-height: 1.45; text-wrap: pretty; }

.so-steckbrief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: 1.5rem; }
.so-steckbrief > div { padding: 1rem 1.25rem 1.125rem; border-radius: var(--radius-m); background: var(--tint); }
.so-steckbrief dt { color: var(--purple); font-size: .9375rem; font-weight: 700; }
.so-steckbrief dd { color: var(--navy); font-size: 1.0625rem; font-weight: 600; line-height: 1.45; }

.so-amenities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem 2.5rem; margin-top: 1.5rem; }
.so-amenities li { display: flex; align-items: flex-start; gap: .625rem; font-size: 1.0625rem; }
.so-amenities .icon { margin-top: .2em; color: var(--purple); }

.so-about { border-top: 0; padding-top: 0; }
.so-quote { margin-top: 1.75rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius-l); background: var(--purple-tint); }
.so-quote p { max-width: 34em; color: var(--navy); font-family: var(--font-head); font-size: 1.3125rem; font-weight: 600; line-height: 1.45; }


.so-topic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3.5vw, 3rem); align-items: center; }
.so-topic:not(:has(.so-topic-media)) { grid-template-columns: minmax(0, 1fr); }
.so-topic:nth-of-type(even) .so-topic-media { order: -1; }
.so-topic-text p { max-width: 62ch; }
.so-topic-media { position: relative; overflow: hidden; border-radius: var(--radius-l); aspect-ratio: 4 / 3; }
.so-topic-media img { width: 100%; height: 100%; object-fit: cover; }

.so-map { position: relative; margin-top: 1.5rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--tint); height: clamp(340px, 34vw, 460px); }
.so-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.so-map-consent { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; height: 100%; padding: 1.5rem; text-align: center; }
.so-map-consent > .icon { width: 36px; height: 36px; color: var(--purple); }
.so-map-consent p { margin: 0; color: var(--navy); }
.so-map-consent .so-map-note { color: var(--muted); font-size: 1rem; }
.so-map-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: .75rem; }
.so-map.is-loaded .so-map-consent { display: none; }

.so-aside { position: sticky; top: calc(var(--header-h) + 84px); display: flex; flex-direction: column; gap: var(--gap); margin-top: var(--block); }
.so-page--bereiche .so-aside { top: calc(var(--header-h) + var(--so-switch-h, 96px) + 16px); }
.so-contact {
  --focus: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: var(--radius-l);
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--on-navy);
}
.so-contact h2 { color: #fff; font-size: 1.3125rem; line-height: 1.35; }
.so-contact-phone { display: flex; align-items: center; gap: .875rem; color: #fff; text-decoration: none; }
.so-contact-phone .icon { width: 52px; height: 52px; padding: 14px; border-radius: 50%; background: var(--purple); transition: transform .3s var(--ease-out); }
.so-contact-phone:hover { color: #fff; }
.so-contact-phone:hover .icon { transform: scale(1.06); }
.so-contact-phone span { display: flex; flex-direction: column; font-size: 1.5rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.so-contact-phone small { color: var(--purple-on-navy); font-size: .9375rem; font-weight: 600; }
.so-contact-address { display: flex; gap: .625rem; margin: 0; padding-top: 1rem; border-top: 1px solid var(--line-on-navy); font-size: 1rem; }
.so-contact-address .icon { margin-top: .15em; color: var(--purple-on-navy); }
.so-contact-address a { color: #fff; font-weight: 700; }

.so-team-card { padding: 1.5rem 1.75rem; border: 1px solid var(--line); border-radius: var(--radius-l); background: #fff; }
.so-team-card h2 { margin-bottom: .5rem; font-size: 1.125rem; }
.so-person { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.so-person:first-child { border-top: 0; }
.so-person > img, .so-person-avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.so-person-avatar { display: grid; place-items: center; background: var(--blue-tint); color: var(--blue); }
.so-person h3 { font-family: var(--font-text); font-size: 1.0625rem; letter-spacing: 0; }
.so-person-role { margin: 0 0 .25rem; color: var(--muted); font-size: .9375rem; }
.so-person a { display: flex; align-items: center; gap: .5rem; min-height: 44px; font-size: .9375rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.so-person a .icon { width: 16px; height: 16px; }

.so-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 5vw, 4.5rem); padding-block: var(--block); }
.so-overview .so-steckbrief { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
.so-overview-intro p { max-width: 62ch; }
.so-overview-intro .so-claim { margin-bottom: 1rem; }

.so-switch { position: sticky; top: var(--header-h); z-index: 30; padding-block: .75rem; background: #fff; transition: box-shadow .3s; }
.so-switch.is-stuck { box-shadow: var(--shadow-bar); }
.so-switch-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.so-switch-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .625rem .875rem .625rem .625rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-m);
  color: var(--navy);
  text-decoration: none;
  transition: border-color .25s, background-color .25s;
}
.so-switch-item:hover { border-color: rgba(121, 52, 139, .5); color: var(--navy); }
.so-switch-item.is-active { border-color: var(--purple); background: var(--purple-tint); }
.so-switch-item img { flex: none; width: 64px; height: 56px; border-radius: var(--radius-s); object-fit: cover; }
.so-switch-text { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.3; }
.so-switch-text strong { font-family: var(--font-head); font-size: 1.125rem; }
.so-switch-text span { color: var(--muted); font-size: .9375rem; }
.so-switch-state { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--purple); color: #fff; opacity: 0; transform: scale(.4); transition: opacity .25s, transform .35s var(--ease-out); }
.so-switch-state .icon { width: 16px; height: 16px; stroke-width: 3; }
.so-switch-item.is-active .so-switch-state { opacity: 1; transform: none; }

.so-bereich { scroll-margin-top: calc(var(--header-h) + var(--so-switch-h, 96px)); }
.so-bereich-head { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; padding-block: 2rem 1.5rem; }
.so-bereich-head h2 { font-size: var(--fs-headline); }
.so-bereich .so-layout { padding-bottom: var(--gap); }
.so-bereich-other { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0 0 var(--section); padding: 1.25rem 1.5rem; border-radius: var(--radius-m); background: var(--tint); color: var(--navy); }
.so-bereich-other a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }
.so-shared { padding-bottom: var(--section); }
.so-shared > .so-section { max-width: 920px; }

.so-more-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: var(--block); }
.so-more-head .section__title { margin-bottom: 0; }

.so-mobile-cta { display: none; }

.so-lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 24, 48, .97); color: #fff; --focus: #fff; }
.so-lightbox[open] { display: grid; place-items: center; }
.so-lightbox::backdrop { background: rgba(8, 24, 48, .97); }
.so-lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 1rem; max-width: min(1400px, 100vw - 2rem); }
.so-lightbox img { max-width: 100%; max-height: calc(100dvh - 9rem); border-radius: var(--radius-m); object-fit: contain; }
.so-lightbox figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.5rem; padding-inline: 1rem; font-size: 1rem; text-align: center; }
.so-lightbox figcaption [data-so-counter] { color: var(--purple-on-navy); font-weight: 700; font-variant-numeric: tabular-nums; }
.so-lightbox button { position: absolute; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; transition: background-color .2s; }
.so-lightbox button:hover { background: var(--purple); }
.so-lightbox-close { top: 1rem; right: 1rem; }
.so-lightbox-prev { top: 50%; left: 1rem; transform: translateY(-50%); }
.so-lightbox-next { top: 50%; right: 1rem; transform: translateY(-50%); }

@media (max-width: 1079px) {
  .so-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .so-aside { position: static; margin-top: 0; padding-top: 2rem; border-top: 1px solid var(--line); }
  .wf-page .so-aside { display: contents; }
  /* display: contents macht die Randspalten-Karten zu Rasterkindern: ihr Abstand kommt aus dem row-gap, nicht aus Außenabständen */
  .wf-page .so-aside > :first-child { order: -1; }
  .wf-page .so-aside > :last-child:not(:first-child) { margin-bottom: var(--section); }
  .wf-page .so-layout { row-gap: var(--gap); padding-bottom: 0; }
  .so-subnav-mobile { display: block; }
  .so-mobile-cta {
    position: fixed;
    inset: auto 0 0;
    z-index: 60;
    display: flex;
    gap: .625rem;
    padding: .625rem var(--gutter) calc(.625rem + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -6px 24px rgba(16, 46, 89, .12);
  }
  .so-mobile-cta .btn { flex: 1; padding-inline: .75rem; }
  .so-bereich[hidden] .so-mobile-cta { display: none; }
  .so-page ~ .site-footer { padding-bottom: 88px; }
}
@media (max-width: 767px) {
  .so-gallery, .so-gallery--3, .so-gallery--2 { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr); height: auto; aspect-ratio: 4 / 3; }
  .so-gallery-item:not(:first-child) { display: none; }
  .so-steckbrief, .so-amenities, .so-overview, .so-topic { grid-template-columns: minmax(0, 1fr); }
  .so-topic:nth-of-type(even) .so-topic-media { order: 0; }
  .so-switch-text strong { overflow-wrap: anywhere; }
  .so-switch-item img { display: none; }
  .so-switch-item { padding: .625rem .75rem; }
  .so-switch-text span { display: none; }
  .so-switch-text strong { font-size: 1rem; }
  .so-lightbox-prev, .so-lightbox-next { top: auto; bottom: 1rem; transform: none; }
}

/* ---------- Bewegung ---------- */
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: no-preference) {
  /* Ladesequenz des Finders: Überschrift steigt auf, Länder blenden ein, Marker setzen sich */
  .finder h1 > span, .finder h1 em { animation: rise .8s var(--ease-out) both; }
  .finder h1 em { animation-delay: .09s; }
  .finder__lede { animation: rise .7s var(--ease-out) .18s both; }
  .finder__kontakt { animation: rise .7s var(--ease-out) .28s both; }

  .map path { animation: land .9s var(--ease-out) both; transform-box: fill-box; transform-origin: center; }
  .map path:nth-child(1) { animation-delay: .32s; }
  .map path:nth-child(2) { animation-delay: .26s; }
  .map path:nth-child(3) { animation-delay: .2s; }
  .map path:nth-child(4) { animation-delay: .14s; }
  .map path:nth-child(5) { animation-delay: .2s; }
  .map path:nth-child(6) { animation-delay: .08s; }
  .map path:nth-child(7) { animation-delay: .32s; }
  .map path:nth-child(8) { animation-delay: .02s; }

  .map__dot { animation: drop .7s var(--ease-out) both; }
  .map__label { animation: label .6s var(--ease-out) both; }
  .map__marker:nth-of-type(1) .map__dot { animation-delay: .65s; }
  .map__marker:nth-of-type(2) .map__dot { animation-delay: .8s; }
  .map__marker:nth-of-type(3) .map__dot { animation-delay: .95s; }
  .map__marker:nth-of-type(1) .map__label { animation-delay: .85s; }
  .map__marker:nth-of-type(2) .map__label { animation-delay: 1s; }
  .map__marker:nth-of-type(3) .map__label { animation-delay: 1.15s; }

  /* Ring um die Marker: läuft nur, solange der Finder sichtbar ist */
  .finder.is-visible .map__marker .map__dot::after { animation: ring 3.6s var(--ease-out) 1.8s 3; }
  .finder.is-visible .map__marker:nth-of-type(2) .map__dot::after { animation-delay: 2.3s; }
  .finder.is-visible .map__marker:nth-of-type(3) .map__dot::after { animation-delay: 2.8s; }

  /* Einblenden beim Scrollen (nur wenn pnt.js läuft) */
  .anim [data-reveal] { transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: var(--reveal-delay, 0s); }
  .anim [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(14px); }

  .consent[open] { animation: sheet .5s var(--ease-out); }
  .consent[open]::backdrop, .so-lightbox[open] { animation: fade .3s ease-out; }
  .so-lightbox img.is-swap { animation: swap .45s var(--ease-out); }

  ::view-transition-group(*) { animation-duration: .5s; animation-timing-function: var(--ease-out); }
  ::view-transition-old(root) { animation: fade .22s ease-in reverse both; }
  ::view-transition-new(root) { animation: fade .32s ease-out .08s both; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@keyframes rise { from { opacity: 0; transform: translateY(.7em); } }
@keyframes land { from { opacity: 0; transform: scale(.94); } }
@keyframes drop { from { opacity: 0; transform: translateY(-18px) scale(.3); } }
@keyframes label { from { opacity: 0; clip-path: inset(0 100% 0 0 round 8px); } to { clip-path: inset(0 round 8px); } }
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(2.6); } }
@keyframes sheet { from { opacity: 0; transform: translateY(32px); } }
@keyframes partners { to { transform: translateX(-100%); } }
@keyframes fade { from { opacity: 0; } }
@keyframes swap { from { opacity: 0; transform: scale(.98); } }

@media print {
  .site-header, .site-footer, .cta, .so-mobile-cta, .so-subnav, .consent { display: none !important; }
}
