﻿/* Component: Home — moderne Startseite & öffentliche Seiten
   Scaffolding, Kategorie-Einstieg, Sticky Section-Nav, Hero-Cleanup,
   Policy- und Footer-Politur. Lädt nach hero-banner/split-viewport/premium. */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ── Page Shell ── */
.home-shell {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding: 0 1.25rem 4rem;
}

.home-overview {
  padding-top: 2.75rem;
}

.home-section {
  padding-top: 3.25rem;
  scroll-margin-top: calc(var(--home-hero-offset-mobile, 10rem) + 4.5rem);
}

@media (min-width: 769px) {
  .home-section {
    padding-top: 4.25rem;
    scroll-margin-top: calc(var(--home-hero-offset-condensed, 6.5rem) + 4.5rem);
  }
}

.home-section-head {
  max-width: 52rem;
  margin-bottom: 2.25rem;
}

.home-section-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #f8fafc;
}

.home-section-lead {
  margin: 0.7rem 0 0;
  max-width: 48rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--theme-text-muted);
}

/* ── Bereich-Badge im Section-Kopf: etwas größer + mehr Luft zur Überschrift ── */
.home-section-head > .premium-label {
  margin-bottom: 1rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
  letter-spacing: 0.13em;
}

/* ── Großes Hintergrund-Icon je Bereich (dezentes Wasserzeichen) ──
   Kein overflow:hidden auf der Sektion – das Icon darf über den Rand
   hinausragen und wird nicht abgeschnitten. Damit dabei kein horizontaler
   Scrollbalken entsteht, bleibt es innerhalb des Seiten-Paddings. */
body.home-page .home-section > *:not(.home-section-bg-icon) {
  position: relative;
  z-index: 1;
}

body.home-page .home-section .home-section-bg-icon {
  --bg-icon-opacity: 0.07;
  position: absolute;
  top: -1.75rem;
  right: -1rem;
  z-index: 0;
  display: block;
  font-size: clamp(10rem, 24vw, 19rem);
  line-height: 1;
  color: var(--home-accent, #60a5fa);
  opacity: var(--bg-icon-opacity);
  transform: rotate(-8deg);
  transform-origin: 70% 40%;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: radial-gradient(circle at 62% 42%, #000 46%, transparent 78%);
  mask-image: radial-gradient(circle at 62% 42%, #000 46%, transparent 78%);
  transition: opacity 0.9s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

body.home-page .home-section .home-section-bg-icon i {
  display: block;
}

/* Einblenden, sobald der Bereich sichtbar wird (ohne JS bleibt das Icon stehen) */
html.has-js body.home-page .home-section .home-section-bg-icon {
  opacity: 0;
  transform: rotate(-8deg) scale(0.9);
}

html.has-js body.home-page .home-section.is-visible .home-section-bg-icon {
  opacity: var(--bg-icon-opacity);
  transform: rotate(-8deg) scale(1);
}

:root[data-theme='light'] body.home-page .home-section .home-section-bg-icon {
  --bg-icon-opacity: 0.20;
}

:root[data-theme='light'] body.home-page .home-category-general .home-section-bg-icon {
  color: #2563eb;
}

:root[data-theme='light'] body.home-page .home-category-sport .home-section-bg-icon {
  color: #059669;
}

:root[data-theme='light'] body.home-page .home-category-prevention .home-section-bg-icon {
  color: #d97706;
}

:root[data-theme='light'] body.home-page #igel .home-section-bg-icon {
  color: #0284c7;
}

:root[data-theme='light'] body.home-page #aerzteteam .home-section-bg-icon {
  color: #4f46e5;
}

:root[data-theme='light'] body.home-page #kontakt .home-section-bg-icon {
  color: #2563eb;
}

@media (max-width: 768px) {
  body.home-page .home-section .home-section-bg-icon {
    top: -1.75rem;
    right: -0.25rem;
    font-size: clamp(8.5rem, 40vw, 14rem);
  }
}

/* Zwischen 769 und 1240 px stößt die Shell an den Viewport-Rand: das Icon
   rückt nach innen, damit die Drehung keinen horizontalen Scrollbalken erzeugt */
@media (min-width: 769px) and (max-width: 1240px) {
  body.home-page .home-section .home-section-bg-icon {
    right: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-page .home-section .home-section-bg-icon {
    transition: none;
  }

  html.has-js body.home-page .home-section .home-section-bg-icon {
    opacity: var(--bg-icon-opacity);
    transform: rotate(-8deg);
  }
}

/* ── Scroll Reveal ── */
.home-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .home-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Feature-Grid (Bereichs-Sektionen) ── */
.feature-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 768px) {
  .feature-list-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Light Theme: Titles & Leads ── */
:root[data-theme='light'] .home-section-title {
  color: #0f172a;
}

:root[data-theme='light'] .home-section-lead {
  color: #475569;
}

/* ── Alignment-Korrekturen: Inhalte in Sektionen linksbündig als Zeilen ── */
.home-section .premium-card,
.home-section .premium-title,
.home-section .premium-copy,
.home-section .premium-copy-muted,
.home-section .premium-note,
.home-section .feature-item,
.home-section .contact-detail-item,
.home-section .hours-item,
.home-section .addon-item,
.home-section .igel-accordion-card {
  text-align: left;
}

.home-section .feature-item,
.home-section .contact-detail-item,
.home-section .addon-item {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.9rem;
}

.home-section .feature-icon {
  margin: 0;
  flex-shrink: 0;
}

.home-section .contact-detail-item i {
  margin: 0.15rem 0 0;
  flex-shrink: 0;
}

.home-section .contact-detail-item div {
  align-items: flex-start;
}

.home-section .hours-item {
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
}

.home-section .premium-label,
.home-section .premium-cta-group {
  justify-content: flex-start;
}

.home-overview .split-teaser,
.home-overview .split-teaser p {
  text-align: center;
}

/* ── Teaser-Metrics (Overview) ── */
.teaser-metric {
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.teaser-metric:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 18px 38px -26px rgba(2, 6, 23, 0.55);
}

.teaser-metric strong {
  color: #f8fafc;
}

:root[data-theme='light'] .teaser-metric {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(148, 163, 184, 0.28);
}

:root[data-theme='light'] .teaser-metric:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 18px 38px -28px rgba(15, 23, 42, 0.3);
}

:root[data-theme='light'] .teaser-metric strong {
  color: #0f172a;
}

/* ── Sticky Section-Navigation ── */
.home-subnav {
  /* eigener Akzent für Kind-Elemente (Fokus, Verweise), unabhängig vom Theme */
  --theme-accent: #3b82f6;
  position: sticky;
  top: calc(var(--home-hero-offset-mobile, 10rem) + 0.35rem);
  z-index: 90;
  margin-top: 3.5rem;
}

@media (min-width: 769px) {
  .home-subnav {
    top: calc(var(--home-hero-offset-condensed, 6.5rem) + 0.5rem);
  }
}

/* Die Leiste liegt als eigenständige Glasfläche spürbar über dem Inhalt:
   getönter Verlauf + Lichtsheen, kräftiger Blur und feine Lichtkanten. */
.home-subnav-inner {
  display: flex;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 40%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(120% 140% at 10% 0%, rgba(96, 165, 250, 0.12) 0%, rgba(96, 165, 250, 0) 58%),
    rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(226, 232, 240, 0.14);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03),
    0 18px 42px -30px rgba(2, 6, 23, 0.9),
    0 1px 4px -2px rgba(2, 6, 23, 0.55);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.home-subnav-inner::-webkit-scrollbar {
  display: none;
}

/* Auf großen Schirmen liegt die Kapsel zentriert über dem Inhalt,
   statt links zu kleben und rechts leer zu laufen */
@media (min-width: 769px) {
  .home-subnav-inner {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
  }
}

/* Subnav Logo (Sticky verankert links - Pillen gleiten dahinter durch) */
.home-subnav-logo {
  position: sticky;
  left: 0;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0.35rem 0.75rem 0.35rem 0.6rem;
  margin-right: 0.35rem;
  border-radius: 999px;
  background: var(--home-subnav-logo-bg, rgba(2, 6, 23, 0.94));
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 10px 0 18px -2px rgba(2, 6, 23, 0.8);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.25s ease, filter 0.25s ease;
}

.home-subnav-logo:hover,
.home-subnav-logo:focus-visible {
  transform: scale(1.08);
  background: var(--home-subnav-logo-bg-hover, rgba(15, 23, 42, 0.96));
  filter: drop-shadow(0 2px 10px rgba(96, 165, 250, 0.5));
  outline: none;
}

.home-subnav-logo-img {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  transition: transform 0.25s ease;
}

.home-subnav-logo:active .home-subnav-logo-img {
  transform: scale(0.92);
}

:root[data-theme='light'] .home-subnav-logo {
  --home-subnav-logo-bg: rgba(255, 255, 255, 0.94);
  --home-subnav-logo-bg-hover: rgba(255, 255, 255, 0.98);
  box-shadow: 10px 0 18px -2px rgba(15, 23, 42, 0.18);
  border-right-color: rgba(15, 23, 42, 0.12);
}

:root[data-theme='light'] .home-subnav-logo:hover,
:root[data-theme='light'] .home-subnav-logo:focus-visible {
  filter: drop-shadow(0 2px 10px rgba(37, 99, 235, 0.35));
}

:root[data-theme='light'] .home-subnav-logo-img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.home-subnav-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  padding: 0.5rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.012em;
  white-space: nowrap;
  color: #c7d3e3;
  text-decoration: none;
  transition:
    background 0.3s cubic-bezier(0.2, 0.7, 0.3, 1),
    color 0.3s cubic-bezier(0.2, 0.7, 0.3, 1),
    border-color 0.3s cubic-bezier(0.2, 0.7, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* Icons bleiben zurückhaltend und folgen der Textfarbe */
.home-subnav-pill i {
  font-size: 0.78rem;
  opacity: 0.7;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.home-subnav-pill:hover {
  color: #eef4ff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
}

.home-subnav-pill:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.9);
  outline-offset: 2px;
}

/* Aktiver Bereich: zart getöntes Glas statt satter Farbfläche */
.home-subnav-pill.is-active {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(147, 197, 253, 0.24) 0%, rgba(59, 130, 246, 0.16) 100%);
  border-color: rgba(147, 197, 253, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 24px -18px rgba(37, 99, 235, 0.9);
}

.home-subnav-pill.is-active i {
  color: #dbeafe;
  opacity: 1;
}

/* Der aktive Bereich reagiert, verliert aber nie seine Markierung */
.home-subnav-pill.is-active:hover {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(191, 219, 254, 0.3) 0%, rgba(59, 130, 246, 0.2) 100%);
  border-color: rgba(191, 219, 254, 0.4);
}

/* Sobald die Leiste andockt, wird das Glas etwas dichter – so bleibt der Text
   auch über hellen Karten und Bildern gut lesbar */
html.has-js body.home-page .home-subnav.is-stuck .home-subnav-inner {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0) 75%),
    radial-gradient(120% 140% at 10% 0%, rgba(96, 165, 250, 0.1) 0%, rgba(96, 165, 250, 0) 58%),
    rgba(2, 6, 23, 0.72);
  border-color: rgba(226, 232, 240, 0.18);
  backdrop-filter: blur(32px) saturate(175%);
  -webkit-backdrop-filter: blur(32px) saturate(175%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 22px 48px -32px rgba(2, 6, 23, 0.95),
    0 1px 4px -2px rgba(2, 6, 23, 0.6);
}

:root[data-theme='light'] .home-subnav {
  --theme-accent: #2563eb;
}

:root[data-theme='light'] .home-subnav-inner {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.5) 45%, rgba(255, 255, 255, 0.28) 100%),
    radial-gradient(120% 140% at 10% 0%, rgba(37, 99, 235, 0.06) 0%, rgba(37, 99, 235, 0) 58%),
    rgba(248, 250, 252, 0.6);
  border-color: rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 18px 42px -32px rgba(15, 23, 42, 0.32),
    0 1px 3px rgba(15, 23, 42, 0.06);
}

:root[data-theme='light'] .home-subnav-pill {
  color: #5a6b83;
}

:root[data-theme='light'] .home-subnav-pill:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme='light'] .home-subnav-pill.is-active {
  color: #1d4ed8;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0.06) 100%);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 22px -18px rgba(37, 99, 235, 0.6);
}

:root[data-theme='light'] .home-subnav-pill.is-active i {
  color: #2563eb;
}

:root[data-theme='light'] .home-subnav-pill.is-active:hover {
  color: #1e40af;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.16) 0%, rgba(37, 99, 235, 0.09) 100%);
  border-color: rgba(37, 99, 235, 0.26);
}

:root[data-theme='light'] body.home-page .home-subnav.is-stuck .home-subnav-inner {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.64) 45%, rgba(255, 255, 255, 0.44) 100%),
    rgba(248, 250, 252, 0.8);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 22px 48px -34px rgba(15, 23, 42, 0.4),
    0 1px 3px rgba(15, 23, 42, 0.08);
}

/* Sicherheitsnetz: ohne Blur-Unterstützung (oder bei reduzierter Transparenz)
   wird die Fläche bewusst opak, damit die Pills immer gut lesbar bleiben */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .home-subnav-inner {
    background: rgba(2, 6, 23, 0.94);
  }

  :root[data-theme='light'] .home-subnav-inner {
    background: rgba(255, 255, 255, 0.97);
  }

  html.has-js body.home-page .home-subnav.is-stuck .home-subnav-inner {
    background: rgba(2, 6, 23, 0.97);
  }

  :root[data-theme='light'] body.home-page .home-subnav.is-stuck .home-subnav-inner {
    background: rgba(255, 255, 255, 0.99);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .home-subnav-inner {
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  :root[data-theme='light'] .home-subnav-inner {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Mobile: Leiste bleibt kompakt, damit genug Platz für die Pills bleibt */
@media (max-width: 576px) {
  .home-subnav {
    margin-top: 2.75rem;
  }

  .home-subnav-inner {
    gap: 0.2rem;
    padding: 0.26rem;
  }

  .home-subnav-pill {
    gap: 0.4rem;
    padding: 0.45rem 0.72rem;
    font-size: 0.8rem;
  }

  .home-subnav-pill i {
    font-size: 0.75rem;
  }
}

/* ── Hero-Cleanup: ruhige Fläche statt Orbs/Glow/Gradient-Text ── */
.hero-banner::before,
.hero-logo-container::after {
  display: none;
}

.hero-banner {
  background: linear-gradient(180deg, rgba(12, 19, 35, 0.97) 0%, rgba(7, 12, 24, 0.98) 100%);
  border-bottom-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 12px 34px -24px rgba(2, 6, 23, 0.75);
}

.hero-title {
  background: none;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: #f8fafc;
  color: #f8fafc;
}

.hero-subtitle {
  color: rgba(203, 213, 225, 0.85);
}

.hero-eyebrow {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.16);
}

.hero-badge {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: none;
}

.hero-panel-item {
  background: rgba(148, 163, 184, 0.07);
  border-color: rgba(148, 163, 184, 0.13);
  box-shadow: none;
}

.hero-panel-item:hover,
.hero-panel-item:focus-visible {
  transform: translateY(-2px);
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(147, 197, 253, 0.3);
}

:root[data-theme='light'] .hero-banner {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 250, 252, 0.98) 100%);
  border-bottom-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 12px 34px -26px rgba(15, 23, 42, 0.2);
}

:root[data-theme='light'] .hero-title {
  background: none;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: #0f172a;
  color: #0f172a;
}

:root[data-theme='light'] .hero-subtitle {
  color: rgba(51, 65, 85, 0.85);
}

:root[data-theme='light'] .hero-eyebrow {
  background: rgba(37, 99, 235, 0.07);
  border-color: rgba(37, 99, 235, 0.14);
}

:root[data-theme='light'] .hero-badge {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: none;
}

:root[data-theme='light'] .hero-panel-item {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(148, 163, 184, 0.24);
}

:root[data-theme='light'] .hero-panel-item:hover,
:root[data-theme='light'] .hero-panel-item:focus-visible {
  background: rgba(37, 99, 235, 0.07);
  border-color: rgba(37, 99, 235, 0.3);
}

/* ── Policy-Seiten (Privacy/Legal/Cookies/Accessibility): saubere Karten ── */
.policy-page {
  padding-top: 1.5rem;
  padding-bottom: 4rem;
}

.policy-page .glass-container {
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.4rem;
  box-shadow: 0 28px 70px -46px rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.policy-hero-card {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
}

.policy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.25);
  margin-bottom: 1.25rem;
}

:root[data-theme='light'] .policy-badge {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.25);
}

.policy-page-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

:root[data-theme='light'] .policy-page-title {
  color: #0f172a;
}

.policy-page-lead {
  margin: 0.75rem auto 0;
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--theme-text-muted);
}

:root[data-theme='light'] .policy-page-lead {
  color: #475569;
}

.policy-page .glass-container > :first-child {
  margin-top: 0;
}

.policy-page h2 {
  margin-top: 2.2rem;
}

.policy-page h3 {
  margin-top: 1.6rem;
}

.policy-page ul {
  padding-left: 1.25rem;
}

.policy-page li {
  margin-bottom: 0.45rem;
  line-height: 1.7;
}

.policy-page li::marker {
  color: var(--theme-accent);
}

.policy-page a {
  color: var(--theme-accent);
}

.policy-page a:hover {
  text-decoration: underline;
}

:root[data-theme='light'] .policy-page .glass-container {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 24px 50px -20px rgba(15, 23, 42, 0.16), 0 2px 8px -2px rgba(15, 23, 42, 0.05);
}

/* ── Error-Page ── */
.error-page .glass-container {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}

:root[data-theme='light'] .error-page .glass-container {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 24px 50px -20px rgba(15, 23, 42, 0.16), 0 2px 8px -2px rgba(15, 23, 42, 0.05);
}

:root[data-theme='light'] .error-page-icon {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.25);
  color: #1d4ed8;
}

.error-page-icon {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  font-size: 1.8rem;
  color: var(--theme-accent);
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.error-page .premium-cta-group {
  justify-content: center;
}

/* ── Willkommens-/PrePage (Landing) ── */
.home-welcome {
  min-height: calc(100vh - var(--compact-hero-bar-height, 4rem));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0 3rem;
  text-align: center;
}

.home-welcome-inner {
  width: 100%;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-welcome-logo {
  width: clamp(96px, 15vw, 148px);
  height: auto;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 14px 34px rgba(37, 99, 235, 0.28));
}

.home-welcome-jubilee {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.home-welcome-title {
  margin: 0;
  font-size: clamp(1.85rem, 4.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #f8fafc;
}

.home-welcome-lead {
  margin: 0.85rem 0 0;
  max-width: 46rem;
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--theme-text-muted);
}

.home-welcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  margin-top: 2.5rem;
}

.home-welcome-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.75rem 1.25rem 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-welcome-card:hover,
.home-welcome-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 22px 44px -26px rgba(2, 6, 23, 0.8);
  outline: none;
}

.home-welcome-card-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  font-size: 1.5rem;
}

.home-welcome-card-general .home-welcome-card-icon {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.14);
}
.home-welcome-card-sport .home-welcome-card-icon {
  color: #34d399;
  background: rgba(52, 211, 153, 0.14);
}
.home-welcome-card-prevention .home-welcome-card-icon {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
}

.home-welcome-card-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #f8fafc;
}

.home-welcome-card-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--theme-text-muted);
}

.home-welcome-card-cta {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--theme-accent);
}

.home-welcome-portal {
  margin-top: 2.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.08);
  text-decoration: none;
  color: #cbd5e1;
  font-weight: 600;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.home-welcome-portal:hover {
  color: #ffffff;
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(96, 165, 250, 0.12);
}

.home-welcome-portal i {
  font-size: 1.05rem;
}

.home-welcome-portal-hint {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--theme-text-muted);
}

/* Light theme */
:root[data-theme='light'] .home-welcome-title { color: #0f172a; }
:root[data-theme='light'] .home-welcome-lead { color: #334155; }
:root[data-theme='light'] .home-welcome-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 14px 34px -20px rgba(15, 23, 42, 0.18), 0 2px 6px -1px rgba(15, 23, 42, 0.06);
}
:root[data-theme='light'] .home-welcome-card:hover,
:root[data-theme='light'] .home-welcome-card:focus-visible {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 20px 42px -20px rgba(37, 99, 235, 0.24), 0 4px 10px -2px rgba(15, 23, 42, 0.08);
}
:root[data-theme='light'] .home-welcome-card-title { color: #0f172a; }
:root[data-theme='light'] .home-welcome-card-text { color: #475569; }
:root[data-theme='light'] .home-welcome-portal {
  color: #1e293b;
  border-color: rgba(15, 23, 42, 0.16);
  background: #ffffff;
  box-shadow: 0 4px 14px -4px rgba(15, 23, 42, 0.12);
}
:root[data-theme='light'] .home-welcome-portal:hover {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.45);
  background: #f8fafc;
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.2);
}
:root[data-theme='light'] .home-welcome-portal-hint {
  color: #64748b;
}

/* Compact-Hero: Sticky-Subnav & Scroll-Offset auf der Startseite */
body.layout-body-compact-hero .home-subnav {
  top: calc(var(--compact-hero-bar-height, 4rem) + 0.5rem);
}

body.layout-body-compact-hero .home-section {
  scroll-margin-top: calc(var(--compact-hero-bar-height, 4rem) + 4.5rem);
}

@media (max-width: 768px) {
  .home-welcome {
    min-height: auto;
    padding: 3rem 0 2.5rem;
  }

  .home-welcome-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
  }

  .home-welcome-card {
    padding: 1.4rem 1rem;
  }
}

/* ── Auflockerung: weniger "Tabellen"-Optik, mehr Luft ── */
.home-section {
  padding-top: 7.5rem;
}

@media (min-width: 769px) {
  .home-section {
    padding-top: 10rem;
  }
}

/* Feature-/Kontakt-Zeilen: offen statt eingerahmt */
.home-section .feature-item,
.home-section .contact-detail-item {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0.35rem 0;
}

.home-section .feature-list-grid {
  gap: 2.25rem 2.5rem;
}

.home-section .feature-icon {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 1rem;
  font-size: 1.15rem;
}

/* Karten: weicher, mehr Radius, weniger Schatten */
.home-section .premium-card,
.home-section .person-card {
  background: rgba(15, 23, 42, 0.38);
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: 0 24px 50px -42px rgba(2, 6, 23, 0.75);
  border-radius: 1.5rem;
}

.home-section .teaser-metric {
  background: rgba(15, 23, 42, 0.38);
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: none;
}

:root[data-theme='light'] .home-section .premium-card,
:root[data-theme='light'] .home-section .person-card,
:root[data-theme='light'] .home-section .teaser-metric {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 16px 36px -22px rgba(15, 23, 42, 0.18), 0 2px 6px -1px rgba(15, 23, 42, 0.05);
}

/* ── Asymmetrie: Hauptspalte + Sidebar rechts ── */
.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
}

.home-split-main,
.home-split-side {
  min-width: 0;
}

.home-split-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .home-split {
    grid-template-columns: minmax(0, 1.6fr) minmax(17.5rem, 0.85fr);
    align-items: start;
    gap: 2rem 3rem;
  }

  .home-split-side.is-sticky {
    position: sticky;
    top: calc(var(--compact-hero-bar-height, 4rem) + 3.75rem);
  }
}

/* Sidebar-Karten: eigene Anmutung mit feiner Leuchtkante */
.home-split-side .premium-card {
  position: relative;
  padding: 1.4rem 1.4rem 1.55rem;
  border-radius: 1.6rem;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.55) 0%, rgba(15, 23, 42, 0.4) 100%);
  border-color: rgba(96, 165, 250, 0.16);
  box-shadow: 0 30px 60px -52px rgba(2, 6, 23, 0.9);
}

.home-split-side .premium-card::after {
  content: "";
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: -1px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.7), rgba(96, 165, 250, 0));
}

.home-split-side .premium-title {
  font-size: 1.12rem;
}

.home-split-side .premium-cta-group {
  margin-top: 1.15rem;
}

/* Notfall-Karte kompakt in der schmalen Spalte */
.home-split-side .emergency-card {
  margin-top: 0;
  padding: 1.4rem;
  border-radius: 1.6rem;
}

.home-split-side .emergency-header {
  padding-bottom: 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-align: left;
  line-height: 1.5;
}

.home-split-side .emergency-numbers {
  flex-direction: column;
  gap: 0.9rem;
}

.home-split-side .emergency-divider {
  display: none;
}

/* Notfallnummern als ruhige Zeilen statt zentrierter Blöcke */
.home-split-side .emergency-number {
  flex-direction: row;
  flex: none;
  align-items: center;
  justify-content: flex-start;
  gap: 0.9rem;
  max-width: none;
  padding: 0.7rem 0.9rem;
  border-radius: 1rem;
  text-align: left;
  background: rgba(2, 6, 23, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.28);
}

.home-split-side .emergency-number i {
  font-size: 1.4rem;
}

.home-split-side .emergency-label {
  margin-top: 0;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
}

.home-split-side .emergency-value {
  margin-top: 0.1rem;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.home-split-side .emergency-card:hover {
  transform: translateY(-2px);
  background: rgba(220, 38, 38, 0.38);
  border-color: rgba(248, 113, 113, 0.75);
  box-shadow: 0 16px 45px rgba(220, 38, 38, 0.45), 0 0 25px rgba(248, 113, 113, 0.25);
}

/* Sprechzeiten in der schmalen Spalte: kompakter */
.home-split-side .hours-item {
  gap: 0.6rem;
  font-size: 0.85rem;
}

.home-split-side .hours-item strong {
  text-align: right;
}

/* Sidebar-Karten kippen auf schmalen Screens in den normalen Fluss */
@media (max-width: 991px) {
  .home-split-side {
    gap: 1rem;
  }

  .home-split-side .premium-card,
  .home-split-side .emergency-card {
    border-radius: 1.35rem;
  }
}

/* Hauptspalte: Teaser bündig unter der Überschrift, Kennzahlen als Reihe */
.home-split-main > .split-teaser {
  margin-top: 0;
  margin-bottom: 1.75rem;
}

/* Aufeinanderfolgende Karten in der Hauptspalte brauchen Luft */
.home-split-main > .premium-card + .premium-card {
  margin-top: 1.4rem;
}

.home-split-main .split-teaser,
.home-split-main .split-teaser p {
  text-align: left;
}

@media (min-width: 992px) {
  .home-split-main .teaser-metrics-contact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-split-main .teaser-metrics-contact .teaser-metric:last-child {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
  }
}

/* Light Theme: Sidebar */
:root[data-theme='light'] .home-split-side .premium-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.86) 100%);
  border-color: rgba(37, 99, 235, 0.14);
  box-shadow: 0 22px 46px -38px rgba(15, 23, 42, 0.55);
}

:root[data-theme='light'] .home-split-side .premium-card::after {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.55), rgba(37, 99, 235, 0));
}

/* Light Theme: Notfall-Zeilen in der Sidebar bleiben zart, nicht schmutzig */
:root[data-theme='light'] .home-split-side .emergency-number {
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(239, 68, 68, 0.22);
}

:root[data-theme='light'] .home-split-side .emergency-card:hover {
  background: linear-gradient(180deg, rgba(254, 202, 202, 0.98) 0%, rgba(254, 226, 226, 0.94) 100%);
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 20px 45px rgba(239, 68, 68, 0.3), 0 0 20px rgba(239, 68, 68, 0.2);
}

/* ── Ärzteteam: runde Porträts statt Karten-Kacheln ── */
#aerzteteam .person-grid {
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2.25rem 2.5rem;
  margin-top: 0.5rem;
}

#aerzteteam .person-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

#aerzteteam .person-card-photo,
#aerzteteam .person-card-icon {
  width: clamp(10.5rem, 18vw, 14rem);
  height: clamp(10.5rem, 18vw, 14rem);
  margin-bottom: 1.2rem;
  border-radius: 50%;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

@media (max-width: 640px) {
  #aerzteteam .person-card-photo,
  #aerzteteam .person-card-icon,
  body.home-page #aerzteteam .person-card-icon {
    width: clamp(12.5rem, 56vw, 15.5rem);
    height: clamp(12.5rem, 56vw, 15.5rem);
  }
}

#aerzteteam .person-card-photo {
  border: 3px solid rgba(96, 165, 250, 0.32);
  box-shadow: 0 26px 52px -34px rgba(2, 6, 23, 0.95);
}

#aerzteteam .person-card-icon {
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  background: radial-gradient(circle at 30% 25%, rgba(96, 165, 250, 0.28), rgba(37, 99, 235, 0.12) 70%);
  border: 1px solid rgba(96, 165, 250, 0.22);
}

#aerzteteam .person-card:hover .person-card-photo,
#aerzteteam .person-card:hover .person-card-icon,
#aerzteteam .person-card:focus-within .person-card-photo,
#aerzteteam .person-card:focus-within .person-card-icon {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.55);
}

#aerzteteam .person-card p {
  max-width: 26rem;
}

#aerzteteam .person-tags {
  justify-content: center;
}

:root[data-theme='light'] #aerzteteam .person-card-photo {
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 24px 44px -36px rgba(15, 23, 42, 0.55);
}

:root[data-theme='light'] #aerzteteam .person-card-icon {
  background: radial-gradient(circle at 30% 25%, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0.06) 70%);
  border-color: rgba(37, 99, 235, 0.16);
}

/* ── Willkommen: Logo mit EKG-Animation und Herzschlag ── */
.home-welcome-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  isolation: isolate;
}

.home-welcome-mark:focus-visible {
  outline: 2px solid var(--theme-accent, #60a5fa);
  outline-offset: 0.6rem;
  border-radius: 0.75rem;
}

/* EKG Überwachungsmonitor (Full-Viewport Sweep mit verblassendem Phosphor-Schweif) */
.home-welcome {
  overflow-x: clip;
}

.home-welcome-ekg-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  max-width: 100vw;
  height: 120px;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.home-welcome-ekg-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.home-welcome-ekg-pulse {
  fill: none;
  stroke: #38bdf8;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Fallback/CSS-Unterstützung für den Sweep */
@keyframes monitorSweepMotion {
  from {
    x: -550;
  }
  to {
    x: 1600;
  }
}

.home-welcome-ekg-sweep {
  animation: monitorSweepMotion 4s linear infinite;
}

/* 60 bpm Herzschlag am Logo (360 ms Kontraktionsphase genau beim EKG-Durchgang) */
.home-welcome-mark .home-welcome-logo {
  position: relative;
  z-index: 2;
  width: clamp(8.5rem, 17vw, 14rem);
  height: auto;
  margin-bottom: 0;
  transform-origin: center center;
  filter: drop-shadow(0 28px 46px rgba(37, 99, 235, 0.35));
  transition: filter 0.4s ease;
  animation: welcomeHeartbeat 4s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}

@keyframes welcomeHeartbeat {
  0%, 36.5% {
    transform: scale(1);
    filter: drop-shadow(0 28px 46px rgba(37, 99, 235, 0.35));
  }
  37.5% {
    /* Erster Herzton (Systole 1 - Vorhof / Anspannung) */
    transform: scale(1.085);
    filter: drop-shadow(0 32px 55px rgba(56, 189, 248, 0.6));
  }
  40.5% {
    /* Kurze Entlastung */
    transform: scale(1.02);
    filter: drop-shadow(0 28px 46px rgba(37, 99, 235, 0.35));
  }
  44.5% {
    /* Zweiter Herzton (Systole 2 - Kammerauswurf / Hauptpuls) */
    transform: scale(1.15);
    filter: drop-shadow(0 38px 65px rgba(56, 189, 248, 0.75));
  }
  50%, 100% {
    /* Diastole / Erholung (60 bpm Ruheintervall) */
    transform: scale(1);
    filter: drop-shadow(0 28px 46px rgba(37, 99, 235, 0.35));
  }
}

.home-welcome-mark:hover .home-welcome-logo {
  filter: drop-shadow(0 36px 60px rgba(56, 189, 248, 0.65));
}

/* Light Mode Anpassungen für Monitor & 60 bpm Herzschlag */
:root[data-theme='light'] .home-welcome-ekg-pulse {
  stroke: #2563eb;
}

:root[data-theme='light'] .home-welcome-mark .home-welcome-logo {
  animation-name: welcomeHeartbeatLight;
}

@keyframes welcomeHeartbeatLight {
  0%, 36.5% {
    transform: scale(1);
    filter: drop-shadow(0 24px 40px rgba(37, 99, 235, 0.22));
  }
  37.5% {
    transform: scale(1.085);
    filter: drop-shadow(0 28px 50px rgba(37, 99, 235, 0.42));
  }
  40.5% {
    transform: scale(1.02);
    filter: drop-shadow(0 24px 40px rgba(37, 99, 235, 0.22));
  }
  44.5% {
    transform: scale(1.15);
    filter: drop-shadow(0 34px 62px rgba(37, 99, 235, 0.6));
  }
  50%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 24px 40px rgba(37, 99, 235, 0.22));
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-welcome-ekg-sweep {
    animation: none;
  }
  .home-welcome-mark .home-welcome-logo {
    animation: none;
  }
}

/* =========================================================
   Feinschliff: Bühne, schwebende Leiste, freie Icons,
   Karten mit Akzent
   ========================================================= */

/* ── 1. Hintergrund-Bühne: Aurora-Verläufe + feines Raster ── */
body.home-page {
  padding-top: 0;
  background:
    radial-gradient(58rem 34rem at 15% -8%, rgba(37, 99, 235, 0.3) 0%, transparent 62%),
    radial-gradient(46rem 28rem at 88% -4%, rgba(56, 189, 248, 0.18) 0%, transparent 60%),
    radial-gradient(50rem 36rem at 82% 46%, rgba(16, 185, 129, 0.1) 0%, transparent 62%),
    radial-gradient(44rem 32rem at 8% 78%, rgba(251, 191, 36, 0.07) 0%, transparent 60%),
    linear-gradient(180deg, var(--theme-body-bg) 0%, var(--theme-body-bg-alt) 100%);
  background-attachment: fixed;
}

/* Ruhige Rasterstruktur, nach oben hin kräftiger */
body.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.075) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  -webkit-mask-image: radial-gradient(120% 92% at 50% 0%, #000 0%, transparent 74%);
  mask-image: radial-gradient(120% 92% at 50% 0%, #000 0%, transparent 74%);
}

body.home-page .home-shell {
  position: relative;
  z-index: 1;
}

/* Der Willkommensbereich bekommt einen eigenen Lichtkegel */
body.home-page .home-welcome {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 2rem;
}

body.home-page .home-welcome::before {
  content: "";
  position: absolute;
  top: 4%;
  left: 50%;
  width: min(50rem, 94vw);
  height: min(32rem, 62vh);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(59, 130, 246, 0.24) 0%,
    rgba(37, 99, 235, 0.1) 46%,
    transparent 72%
  );
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

:root[data-theme='light'] body.home-page {
  background:
    radial-gradient(58rem 34rem at 15% -8%, rgba(37, 99, 235, 0.12) 0%, transparent 62%),
    radial-gradient(46rem 28rem at 88% -4%, rgba(14, 165, 233, 0.09) 0%, transparent 60%),
    radial-gradient(50rem 36rem at 82% 46%, rgba(5, 150, 105, 0.05) 0%, transparent 62%),
    radial-gradient(44rem 32rem at 8% 78%, rgba(217, 119, 6, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, var(--theme-body-bg) 0%, var(--theme-body-bg-alt) 100%);
}

:root[data-theme='light'] body.home-page::before {
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
}

:root[data-theme='light'] body.home-page .home-welcome::before {
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(37, 99, 235, 0.1) 0%,
    rgba(37, 99, 235, 0.03) 46%,
    transparent 72%
  );
}

/* Zarte Trennlinien zwischen den Bereichen statt harter Kanten */
body.home-page .home-section {
  position: relative;
}

body.home-page .home-section + .home-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100%, 58rem);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(148, 163, 184, 0.22) 50%,
    transparent
  );
}

/* ── 2. Schwebende Steuerleiste ────────────────────────────────────────── */
/* Grunddesign (Glas-Pille, Einblenden, Light-Theme, Mobile) liegt in
   hero-banner.css, damit Startseite und Unterseiten identisch aussehen. */

/* Subnav und Sprungziele richten sich an der schwebenden Leiste aus */
body.home-page .home-subnav {
  top: calc(var(--compact-hero-bar-height, 4rem) + 1.6rem);
}

body.home-page .home-section {
  scroll-margin-top: calc(var(--compact-hero-bar-height, 4rem) + 6.3rem);
}

/* Kategorie-Leiste: erscheint erst beim Einstieg in den ersten Bereich */
body.home-page .home-subnav {
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease;
}

html.has-js body.home-page .home-subnav.is-stuck {
  will-change: transform;
}

/* Oben auf der Seite (vor dem ersten Bereich) bleibt die Leiste verborgen */
html.has-js body.home-page .home-subnav.is-pending {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-0.75rem);
  transition:
    opacity 0.25s ease,
    transform 0.3s ease,
    visibility 0s linear 0.3s;
}

@media (max-width: 576px) {
  body.home-page .home-subnav {
    top: calc(var(--compact-hero-bar-height, 4rem) + 0.9rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-page .home-subnav {
    transition: opacity 0.2s ease;
  }

  html.has-js body.home-page .home-subnav.is-pending {
    transform: none;
    transition:
      opacity 0.2s ease,
      visibility 0s linear 0.2s;
  }
}

/* ── 3. Icons frei: ohne Rahmen, ohne Fläche ── */
body.home-page .home-section .feature-icon,
body.home-page .home-section .contact-detail-item i,
body.home-page .home-welcome-card-icon {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  line-height: 1;
}

body.home-page .home-welcome-card-icon {
  margin-bottom: 0.15rem;
  font-size: 2rem;
}

body.home-page .home-section .feature-icon {
  margin-top: 0.1rem;
  font-size: 1.35rem;
  color: #93c5fd;
}

body.home-page .home-section .contact-detail-item i {
  font-size: 1.15rem;
  color: #93c5fd;
}

/* Ärzteteam: Porträtfläche bleibt als Platzhalter, aber ohne Rahmen */
body.home-page #aerzteteam .person-card-icon {
  width: clamp(10.5rem, 18vw, 14rem);
  height: clamp(10.5rem, 18vw, 14rem);
  background: none;
  border: 0;
  box-shadow: none;
  font-size: 4rem;
  color: #93c5fd;
  filter: drop-shadow(0 16px 26px rgba(37, 99, 235, 0.35));
}

/* ── 4. Karten mit Akzent ── */
body.home-page .home-section {
  --home-accent: #3b82f6;
}

body.home-page .home-category-general {
  --home-accent: #60a5fa;
}

body.home-page .home-category-sport {
  --home-accent: #34d399;
}

body.home-page .home-category-prevention {
  --home-accent: #fbbf24;
}

body.home-page #igel {
  --home-accent: #38bdf8;
}

body.home-page #aerzteteam {
  --home-accent: #a5b4fc;
}

body.home-page #kontakt {
  --home-accent: #60a5fa;
}

/* Feature- und Kontaktzeilen: ruhige Fläche mit farbiger Kante */
body.home-page .home-section .feature-item,
body.home-page .home-section .contact-detail-item {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.15rem 1.05rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1.1rem;
  background: linear-gradient(
    145deg,
    rgba(30, 41, 59, 0.72) 0%,
    rgba(15, 23, 42, 0.5) 100%
  );
  box-shadow: 0 22px 46px -42px rgba(2, 6, 23, 0.95);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

body.home-page .home-section .feature-item::before,
body.home-page .home-section .contact-detail-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(
    180deg,
    var(--home-accent, #3b82f6) 0%,
    rgba(59, 130, 246, 0) 100%
  );
  transition: top 0.35s ease, bottom 0.35s ease, opacity 0.35s ease;
}

body.home-page .home-section .feature-item:hover,
body.home-page .home-section .contact-detail-item:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.26);
  box-shadow: 0 28px 54px -40px rgba(2, 6, 23, 1);
}

body.home-page .home-section .feature-item:hover::before,
body.home-page .home-section .contact-detail-item:hover::before {
  top: 0.45rem;
  bottom: 0.45rem;
}

body.home-page .home-section .feature-list-grid {
  gap: 1.15rem;
}

/* Drei Kategorie-Karten: Akzentkante oben, passend zur Farbe */
body.home-page .home-welcome-card {
  position: relative;
  overflow: hidden;
  --welcome-accent: #60a5fa;
}

body.home-page .home-welcome-card-general {
  --welcome-accent: #60a5fa;
}

body.home-page .home-welcome-card-sport {
  --welcome-accent: #34d399;
}

body.home-page .home-welcome-card-prevention {
  --welcome-accent: #fbbf24;
}

body.home-page .home-welcome-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--welcome-accent, #60a5fa) 0%,
    rgba(96, 165, 250, 0) 100%
  );
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

body.home-page .home-welcome-card:hover::before,
body.home-page .home-welcome-card:focus-visible::before {
  opacity: 1;
}

/* Kennzahlen: feine Akzentlinie am oberen Rand */
body.home-page .home-section .teaser-metric {
  position: relative;
  overflow: hidden;
  border-color: rgba(148, 163, 184, 0.16);
}

body.home-page .home-section .teaser-metric::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.15rem;
  right: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--home-accent, #3b82f6) 0%,
    transparent 100%
  );
  opacity: 0.6;
}

/* ── 5. Light Theme: gleiche Struktur, helle Flächen ── */
:root[data-theme='light'] body.home-page .home-section .feature-item,
:root[data-theme='light'] body.home-page .home-section .contact-detail-item {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 14px 30px -20px rgba(15, 23, 42, 0.16), 0 2px 6px -1px rgba(15, 23, 42, 0.05);
}

:root[data-theme='light'] body.home-page .home-section .feature-item:hover,
:root[data-theme='light'] body.home-page .home-section .contact-detail-item:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 20px 38px -20px rgba(37, 99, 235, 0.22), 0 4px 10px -2px rgba(15, 23, 42, 0.07);
}

:root[data-theme='light'] body.home-page .home-section .feature-item strong,
:root[data-theme='light'] body.home-page .home-section .contact-detail-item strong {
  color: #0f172a;
}

:root[data-theme='light'] body.home-page .home-section .feature-item p,
:root[data-theme='light'] body.home-page .home-section .contact-detail-item p {
  color: #475569;
}

:root[data-theme='light'] body.home-page .home-section .feature-icon,
:root[data-theme='light'] body.home-page .home-section .contact-detail-item i {
  background: none;
  color: #1d4ed8;
}

:root[data-theme='light'] body.home-page #aerzteteam .person-card-icon {
  background: none;
  border: 0;
  color: #2563eb;
  filter: drop-shadow(0 14px 22px rgba(37, 99, 235, 0.22));
}

:root[data-theme='light'] body.home-page .home-section .teaser-metric {
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme='light'] body.home-page .home-section + .home-section::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(15, 23, 42, 0.1) 50%,
    transparent
  );
}

@media (prefers-reduced-motion: reduce) {
  body.home-page .home-welcome-mark:hover .home-welcome-logo {
    transform: none;
  }

  body.home-page .home-section .feature-item:hover,
  body.home-page .home-section .contact-detail-item:hover {
    transform: none;
  }
}
