/* =========================================================================
   Venenzentrum Charlottenburg – Stylesheet
   WCAG 2.2 AA · keine externen Ressourcen · Inter lokal
   ========================================================================= */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable.woff2") format("woff2-variations"),
       url("../fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Markenfarben – fest, unabhängig vom Modus */
  --color-brand: #0018a8;          /* Markenblau (12,4:1 auf Weiß) */
  --color-primary: #06c;           /* Button-Fläche (Weiß darauf 5,6:1) */
  --color-primary-hover: #0052a3;
  --color-on-primary: #fff;
  --color-warning: #ff4a1c;        /* NUR Warn-Icons/Rahmen, nie Fließtext */
  --color-warning-text: #c53210;   /* Warnungstext (5,5:1) */

  /* Semantische Farben – Hellmodus (Kontrast auf --bg-color in Klammern) */
  --bg-color: #fff;
  --surface-color: #f5f5f7;
  --card-bg: #fff;
  --tint-color: #eef2ff;
  --text-color: #1d1d1f;           /* 16,8:1 */
  --text-muted-color: #545458;     /* 7,5:1 – auf --surface-color 6,9:1 */
  --heading-color: #0018a8;        /* 12,4:1 */
  --link-color: #06c;              /* 5,6:1 */
  --link-hover-color: #0052a3;     /* 7,7:1 */
  --border-color: #d2d2d7;         /* dekorative Trennlinien */
  --border-strong-color: #86868b;  /* UI-Rahmen ≥ 3:1 */
  --hairline-color: rgb(0 0 0 / 0.08);
  --header-bg: rgb(255 255 255 / 0.8);
  --popover-bg: rgb(255 255 255 / 0.97);
  --glass-bg: rgb(255 255 255 / 0.88);
  --hero-glow: #e9eeff;
  --hero-top: #fbfbfd;
  --card-hover-border: rgb(0 102 204 / 0.35);
  --selection-color: #cfe0ff;
  --logo-blue: #0018a8;
  color-scheme: light;

  /* Typografie */
  --font-base: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-h1: clamp(2rem, 1.45rem + 2.4vw, 3.25rem);
  --fs-h2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --fs-h3: 1.1875rem;

  /* Raum & Form */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4.5rem; --space-9: 6.5rem;
  --radius-s: 10px; --radius-m: 16px; --radius-l: 24px; --radius-pill: 999px;
  --container: 76rem;
  --header-h: 4.75rem;
  --shadow-s: 0 1px 2px rgb(0 0 0 / 0.05), 0 2px 8px rgb(0 0 0 / 0.04);
  --shadow-m: 0 2px 6px rgb(0 0 0 / 0.05), 0 12px 32px rgb(0 24 168 / 0.08);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-press: 140ms;
  --dur-fast: 180ms;
  --dur-base: 260ms;

  /* Fokus */
  --focus-color: var(--link-color);
  --focus-ring: 3px solid var(--focus-color);
}

/*DARK-START*/
:root[data-theme="dark"] {
  /* Semantische Farben – Dunkelmodus (Kontrast auf --bg-color in Klammern) */
  --bg-color: #0d0f14;
  --surface-color: #15181f;
  --card-bg: #1c2029;
  --tint-color: #1b2448;
  --text-color: #eef0f5;           /* 17,2:1 */
  --text-muted-color: #a9aeba;     /* 8,7:1 – auf --card-bg 7,4:1 */
  --heading-color: #b9c6ff;        /* 11,5:1 */
  --link-color: #7db4ff;           /* 9,0:1 – auf --card-bg 7,6:1 */
  --link-hover-color: #a9cdff;
  --border-color: #2d323d;
  --border-strong-color: #7a808d;  /* UI-Rahmen ≥ 3:1 */
  --hairline-color: rgb(255 255 255 / 0.09);
  --header-bg: rgb(13 15 20 / 0.78);
  --popover-bg: rgb(28 32 41 / 0.97);
  --glass-bg: rgb(28 32 41 / 0.9);
  --hero-glow: #16204a;
  --hero-top: #0f121a;
  --card-hover-border: rgb(125 180 255 / 0.45);
  --selection-color: #22408a;
  --logo-blue: #c9d3ff;
  --color-primary: #1d6fe0;        /* Weiß darauf 4,8:1, gegen --card-bg 3,4:1 */
  --color-primary-hover: #1559b8;
  --shadow-s: 0 1px 2px rgb(0 0 0 / 0.4), 0 2px 8px rgb(0 0 0 / 0.3);
  --shadow-m: 0 2px 6px rgb(0 0 0 / 0.4), 0 12px 32px rgb(0 0 0 / 0.45);
  color-scheme: dark;
}
/*DARK-END*/
/* Ohne JavaScript (kein data-theme): Systemeinstellung übernehmen */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
  /* Semantische Farben – Dunkelmodus (Kontrast auf --bg-color in Klammern) */
  --bg-color: #0d0f14;
  --surface-color: #15181f;
  --card-bg: #1c2029;
  --tint-color: #1b2448;
  --text-color: #eef0f5;           /* 17,2:1 */
  --text-muted-color: #a9aeba;     /* 8,7:1 – auf --card-bg 7,4:1 */
  --heading-color: #b9c6ff;        /* 11,5:1 */
  --link-color: #7db4ff;           /* 9,0:1 – auf --card-bg 7,6:1 */
  --link-hover-color: #a9cdff;
  --border-color: #2d323d;
  --border-strong-color: #7a808d;  /* UI-Rahmen ≥ 3:1 */
  --hairline-color: rgb(255 255 255 / 0.09);
  --header-bg: rgb(13 15 20 / 0.78);
  --popover-bg: rgb(28 32 41 / 0.97);
  --glass-bg: rgb(28 32 41 / 0.9);
  --hero-glow: #16204a;
  --hero-top: #0f121a;
  --card-hover-border: rgb(125 180 255 / 0.45);
  --selection-color: #22408a;
  --logo-blue: #c9d3ff;
  --color-primary: #1d6fe0;        /* Weiß darauf 4,8:1, gegen --card-bg 3,4:1 */
  --color-primary-hover: #1559b8;
  --shadow-s: 0 1px 2px rgb(0 0 0 / 0.4), 0 2px 8px rgb(0 0 0 / 0.3);
  --shadow-m: 0 2px 6px rgb(0 0 0 / 0.4), 0 12px 32px rgb(0 0 0 / 0.45);
  color-scheme: dark;
}
}


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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem); /* WCAG 2.4.11: Fokus nicht verdeckt */
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

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

h1, h2, h3, h4 {
  margin: 0 0 var(--space-4);
  color: var(--heading-color);
  font-weight: 700;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: balance;
}
@media (min-width: 48rem) { h1, h2, .toc__list a { hyphens: manual; -webkit-hyphens: manual; } }
h1 { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: 0.01em; }
h2 { font-size: var(--fs-h2); line-height: 1.18; letter-spacing: 0.01em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.008em; font-weight: 650; }

p { margin: 0 0 var(--space-4); text-wrap: pretty; }
strong { font-weight: 650; }
address { font-style: normal; }

a {
  color: var(--link-color);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: color var(--dur-fast) ease, text-decoration-color var(--dur-fast) ease;
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }
main:focus { outline: none; }
[tabindex="-1"]:focus-visible { outline: none; }

::selection { background: var(--selection-color); color: var(--text-color); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
}

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

.eyebrow {
  margin: 0 0 var(--space-3);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--link-color);
}

.placeholder {
  background: #fff4cc;
  color: #5c3c00;
  padding: 0 0.25em;
  border-radius: 4px;
  font-weight: 650;
}

/* ---------------------------------------------------------------- Skip-Link */
.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 1000;
  padding: var(--space-3) var(--space-5);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 650;
  border-radius: var(--radius-s);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); color: var(--color-on-primary); }
.skip-link:focus-visible { outline-color: var(--heading-color); }

/* ---------------------------------------------------------------- Buttons */
.btn {
  --btn-bg: var(--color-primary);
  --btn-fg: var(--color-on-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 44px;                       /* WCAG 2.5.8 / 44 px Komfortmaß */
  padding: 0.65em 1.25em;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--dur-press) var(--ease-out),
    background-color var(--dur-fast) ease,
    color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    box-shadow var(--dur-fast) ease;
}
.btn:active { transform: scale(0.97); }
.btn .icon--arrow { transition: transform var(--dur-base) var(--ease-out); }

.btn--secondary {
  --btn-bg: var(--bg-color);
  --btn-fg: var(--link-color);
  border-color: var(--link-color);
}
.btn--light { --btn-bg: #fff; --btn-fg: var(--color-brand); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgb(255 255 255 / 0.7); }
.btn--lg { font-size: 1.0625rem; padding: 0.8em 1.5em; min-height: 52px; }
.btn--block { width: 100%; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover .icon--arrow { transform: translateX(3px); }
}

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  padding-top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline-color);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: var(--header-h);
}
.logo {
  display: block;
  flex: none;
  margin-right: auto;
  padding: 6px 0;
  border-radius: 6px;
}
.logo__svg { height: 3.25rem; width: auto; }

.nav { display: flex; align-items: center; gap: var(--space-5); }
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-s);
  color: var(--text-color);
  font-size: 0.9875rem;
  font-weight: 550;
  text-decoration: none;
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.nav__link[aria-current="page"], .nav__link.is-active { color: var(--link-color); }
.nav__link[aria-current="page"]::after, .nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.nav__item--sub .nav__link { padding-right: 0.25rem; }
.nav__item--sub .nav__link[aria-current="page"]::after,
.nav__item--sub .nav__link.is-active::after { right: 0.25rem; }

.nav__subtoggle {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--text-color);
  cursor: pointer;
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.nav__subtoggle[hidden] { display: none; }
.icon--chev { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease-out); }
.nav__subtoggle[aria-expanded="true"] .icon--chev { transform: rotate(180deg); }

/* Untermenü (Disclosure, kein role="menu") */
.nav__sub {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 18.5rem;
  margin: 0;
  padding: var(--space-2);
  list-style: none;
  background: var(--popover-bg);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--hairline-color);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
  transform-origin: top left;           /* entsteht aus dem Auslöser */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px) scale(0.97);
  transition:
    opacity var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    visibility 0s linear var(--dur-fast);
}
.nav__subtoggle[aria-expanded="true"] + .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out),
    visibility 0s;
}
.nav__sub a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-s);
  color: var(--text-color);
  font-size: 0.96875rem;
  text-decoration: none;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.nav__sub a[aria-current="page"] { color: var(--link-color); font-weight: 650; background: var(--tint-color); }

.nav__cta { font-size: 0.9375rem; padding-inline: 1.1em; white-space: nowrap; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--border-strong-color);
  border-radius: var(--radius-pill);
  background: var(--bg-color);
  color: var(--text-color);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), border-color var(--dur-fast) ease;
}
.nav-toggle:active { transform: scale(0.97); }
.nav-toggle__bars { position: relative; display: block; width: 18px; height: 12px; }
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-out), top var(--dur-base) var(--ease-out);
}
.nav-toggle__bars span:first-child { top: 1px; }
.nav-toggle__bars span:last-child { top: 9px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child { top: 5px; transform: rotate(-45deg); }

/* Mittlere Breiten: Telefon-Button kompakter */
@media (max-width: 75rem) {
  .logo__svg { height: 2.9rem; }
}

/* ---------------------------------------------------------------- Mobile Navigation */
@media (max-width: 64rem) {
  :root { --header-h: 4.25rem; }
  .logo__svg { height: 2.6rem; }
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: var(--space-4) clamp(1rem, 0.5rem + 2.5vw, 2.5rem) var(--space-6);
    background: var(--bg-color); /* opak: verschachtelte backdrop-filter erzeugen Durchscheinen */
    border-bottom: 1px solid var(--hairline-color);
    box-shadow: 0 24px 40px rgb(0 0 0 / 0.12);
    /* geschlossen: nicht sichtbar, nicht fokussierbar */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity var(--dur-fast) var(--ease-out),
      transform var(--dur-fast) var(--ease-out),
      visibility 0s linear var(--dur-fast);
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition:
      opacity var(--dur-base) var(--ease-out),
      transform var(--dur-base) var(--ease-out),
      visibility 0s;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--border-color); }
  .nav__link { flex: 1; min-height: 52px; font-size: 1.0625rem; padding-inline: 0.25rem; }
  .nav .nav__link:hover { background: transparent; }
  .nav__link[aria-current="page"]::after, .nav__link.is-active::after { display: none; }
  .nav__subtoggle { width: 52px; height: 52px; }
  .nav__sub {
    position: static;
    flex-basis: 100%;
    min-width: 0;
    padding: 0 0 var(--space-3) var(--space-3);
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 0;
    box-shadow: none;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav__subtoggle[aria-expanded="true"] + .nav__sub { display: block; }
  .nav__cta { align-self: stretch; min-height: 52px; font-size: 1.0625rem; }
}

/* Sehr schmale Geräte: „Menü“-Beschriftung nur für Screenreader, damit Logo + Schalter passen */
@media (max-width: 26rem) {
  .site-header__inner { gap: var(--space-2); }
  .logo__svg { height: 2.35rem; }
  .nav-toggle { width: 44px; padding: 0; justify-content: center; }
  .nav-toggle__label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .theme-toggle { min-width: 44px; }
  .theme-toggle__track { width: 48px; }
  .theme-toggle[aria-pressed="true"] .theme-toggle__thumb { transform: translateX(18px); }
}

/* Ohne JavaScript: Hauptmenü mobil nicht einklappbar → Seitenübersicht im Footer */
@media (max-width: 64rem) {
  html:not(.js) .nav-toggle { display: none; }
}

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(3rem, 2rem + 4vw, 5.5rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, var(--hero-glow) 0%, transparent 60%),
    linear-gradient(180deg, var(--hero-top) 0%, var(--bg-color) 100%);
}
.hero__sign {
  position: absolute;
  right: -8rem;
  bottom: -10rem;
  width: 38rem;
  height: auto;
  opacity: 0.06;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.375rem, 1.5rem + 3.8vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: 0.01em;       /* leicht geöffnet (Wunsch Kunde) */
  margin-bottom: var(--space-5);
}
.hero__lead {
  max-width: 34ch;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-muted-color);
  margin-bottom: var(--space-6);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.hero__card {
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--hairline-color);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
}
.hero__card-title { font-size: 1.375rem; margin-bottom: var(--space-4); }
.hero__card-sub {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: var(--space-5) 0 var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-color);
  font-size: 1rem;
  color: var(--text-color);
}
.hero__card-sub .icon { color: var(--link-color); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-4);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--tint-color);
  color: var(--heading-color);
  font-size: 0.8125rem;
  font-weight: 600;
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); }

@media (max-width: 56rem) {
  .hero__inner { grid-template-columns: 1fr; }
  /* Platz für den Pause-Button unter der Kontaktkarte */
  .has-video .hero { padding-bottom: calc(clamp(1rem, 0.5rem + 1.5vw, 1.75rem) + 44px + var(--space-4)); }
  .hero__sign { width: 26rem; right: -9rem; bottom: auto; top: -4rem; }
}

/* ---------------------------------------------------------------- Kontaktliste & Zeiten */
.contact-list { margin: 0 0 var(--space-4); }
.contact-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 0 var(--space-3);
  line-height: 1.5;
}
.contact-list__item .icon { margin-top: 0.2em; color: var(--link-color); }
.contact-list a { font-weight: 550; }

.hours { margin: 0; }
.hours__row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-color);
  font-variant-numeric: tabular-nums;
}
.hours__row:last-child { border-bottom: 0; }
.hours dd { margin: 0; color: var(--text-muted-color); white-space: nowrap; }
.hours dt { display: flex; align-items: center; flex-wrap: wrap; font-weight: 550; }
.hours--compact .hours__row { padding: 0.35rem 0; font-size: var(--fs-small); }
.hours__row.is-today dt, .hours__row.is-today dd { color: var(--heading-color); font-weight: 700; }
.hours__today {
  margin-left: 0.5rem;
  padding: 0.05rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--tint-color);
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--heading-color);
}
.hours__note { margin: var(--space-3) 0 0; font-size: var(--fs-small); color: var(--text-muted-color); }

.link-ext {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-weight: 600;
}
.link-ext .icon { width: 1em; height: 1em; }

/* ---------------------------------------------------------------- Sektionen */
.section { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.section:focus { outline: none; }
.section--subtle { background: var(--surface-color); }
.section-title { margin-bottom: 0; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;          /* Überschrift und Link auf einer Grundlinie */
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  margin-bottom: var(--space-6);
}
.section-head .eyebrow { flex-basis: 100%; margin-bottom: calc(var(--space-3) * -1 + var(--space-2)); }
.section-head__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}
.section-head__link .icon { transition: transform var(--dur-base) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .section-head__link:hover .icon { transform: translateX(3px); }
}

/* ---------------------------------------------------------------- Karten */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
  gap: clamp(1rem, 0.75rem + 1vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 1.1rem + 0.8vw, 1.85rem);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-l);
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-fast) ease;
}
.section--subtle .card { border-color: transparent; }
.card__title { margin-bottom: var(--space-3); font-size: 1.25rem; }
.card__link { color: var(--heading-color); text-decoration: none; }
.card__link::after {                    /* gesamte Karte klickbar */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) {
  outline: var(--focus-ring);
  outline-offset: 3px;
}
.card__text {
  flex: 1;
  margin-bottom: var(--space-5);
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--text-muted-color);
}
.card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--link-color);
  font-size: var(--fs-small);
  font-weight: 600;
}
.card__more .icon { transition: transform var(--dur-base) var(--ease-out); }
.card:active { transform: scale(0.985); }

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-m);
    border-color: var(--card-hover-border);
  }
  .card:hover .card__more .icon { transform: translateX(3px); }
}


/* ---------------------------------------------------------------- Feature (Diagnostik) */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.feature__text { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-muted-color); margin: var(--space-5) 0 var(--space-6); max-width: 60ch; }
.feature__visual {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 22rem;
  width: 100%;
  justify-self: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--card-bg) 0%, var(--tint-color) 70%);
  box-shadow: inset 0 0 0 1px rgb(0 24 168 / 0.06);
}
.feature__sign { width: 72%; height: auto; }
@media (max-width: 48rem) {
  .feature { grid-template-columns: 1fr; }
  .feature__visual { max-width: 12rem; order: -1; }
}

/* ---------------------------------------------------------------- Kontakt-Raster */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: start;
}
.contact-grid .section-title { margin-bottom: var(--space-5); }
.panel {
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  background: var(--card-bg);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
}
.legal .panel { background: var(--surface-color); box-shadow: none; }
.panel__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  margin-bottom: var(--space-4);
}
.panel__title .icon { color: var(--link-color); }

/* ---------------------------------------------------------------- Brotkrumen */
.breadcrumb { padding-top: var(--space-5); }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 0.6rem;
  border-top: 1.5px solid var(--border-strong-color);
  border-right: 1.5px solid var(--border-strong-color);
  transform: rotate(45deg);
}
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--text-muted-color);
  text-decoration: none;
}
.breadcrumb a[aria-current="page"] { color: var(--text-color); font-weight: 550; }

/* ---------------------------------------------------------------- Artikel */
.article__header { padding-block: var(--space-6) var(--space-6); }
.article__header h1 { max-width: 22ch; margin-bottom: 0; }

.article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  grid-template-areas: "body aside";
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
  padding-bottom: var(--space-8);
}
.article__body { grid-area: body; }
.article__aside {
  grid-area: aside;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: grid;
  gap: var(--space-5);
}

.prose { max-width: 60ch; }   /* ≈ 70 Zeichen/Zeile (gemessen), Projektvorgabe 65–75 */
.prose--wide { max-width: none; }
.prose .lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text-color);
  margin-bottom: var(--space-5);
}
.prose-section { padding-top: var(--space-6); }
.prose h2 { margin-top: 0; }
.legal .prose h2 { margin-top: var(--space-6); font-size: 1.375rem; }
.legal .prose section h2 { margin-top: 0; }
.legal .prose section + section { margin-top: var(--space-6); }

.list { margin: 0 0 var(--space-5); padding: 0; list-style: none; }
.list > li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: var(--space-3);
}
.list > li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
}
.list--labelled > li {
  padding: var(--space-4) var(--space-5) var(--space-4) 2.75rem;
  margin-bottom: var(--space-3);
  background: var(--surface-color);
  border-radius: var(--radius-m);
}
.list--labelled > li::before { left: 1.35rem; top: calc(var(--space-4) + 0.62em); }
.list--labelled strong { color: var(--heading-color); }

.toc {
  padding: var(--space-5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-m);
}
.toc__title {
  margin-bottom: var(--space-3);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.01em;   /* einheitlich für alle H1/H2 */
  text-transform: uppercase;
  color: var(--text-muted-color);
}
.toc__list { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc__list li { counter-increment: toc; }
.toc__list a {
  display: flex;
  gap: 0.6rem;
  padding: 0.45rem 0;
  min-height: 24px;
  font-size: 0.90625rem;
  line-height: 1.4;
  color: var(--text-color);
  text-decoration: none;
  hyphens: auto;
}
.toc__list a::before {
  content: counter(toc, decimal-leading-zero);
  flex: none;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted-color);
  font-size: 0.8125rem;
  padding-top: 0.08em;
}
.toc__list a.is-current { color: var(--link-color); font-weight: 600; }

.aside-card {
  padding: var(--space-5);
  background: var(--surface-color);
  border-radius: var(--radius-m);
}
.aside-card__title { font-size: 1.0625rem; margin-bottom: var(--space-3); }
.aside-card p:last-child { margin-bottom: 0; }
.aside-card__meta { font-size: var(--fs-small); text-align: center; }
.aside-card .btn { font-size: 0.9375rem; padding-inline: 0.8em; }

@media (max-width: 64rem) {
  .article__layout { grid-template-columns: 1fr; grid-template-areas: "aside" "body"; }
  .article__aside { position: static; }
  .article__aside .aside-card { display: none; }   /* CTA-Band unten übernimmt */
}

/* ---------------------------------------------------------------- Verwandte Seiten, Hub */
.related { padding-block: var(--space-8); background: var(--surface-color); }
.related .section-title { margin-bottom: var(--space-6); }
.related .card { border-color: transparent; }
.hub { padding-bottom: var(--space-8); }
.hub h1 { margin-top: var(--space-5); }
.hub__intro { font-size: var(--fs-lead); color: var(--text-muted-color); margin-bottom: var(--space-7); }

/* ---------------------------------------------------------------- CTA-Band */
.cta-band {
  margin-block: var(--space-8);
  border-radius: var(--radius-l);
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgb(255 255 255 / 0.14), transparent 60%),
    var(--color-brand);
  color: #fff;
  --focus-color: #fff;
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: clamp(1.75rem, 1rem + 3vw, 3.25rem);
}
.cta-band__title { color: #fff; margin-bottom: var(--space-2); }
.cta-band__text { margin: 0; color: rgb(255 255 255 / 0.9); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------------------------------------------------------------- Rechtliche Seiten */
.legal { padding-bottom: var(--space-8); }
.legal h1 { margin-top: var(--space-5); margin-bottom: var(--space-6); }
.note { color: var(--text-muted-color); font-size: var(--fs-small); }

/* ---------------------------------------------------------------- Footer */
.site-footer {
  padding-top: var(--space-8);
  background: var(--surface-color);
  border-top: 1px solid var(--hairline-color);
  font-size: var(--fs-small);
}
.partners { padding-bottom: var(--space-7); margin-bottom: var(--space-7); border-bottom: 1px solid var(--border-color); }
.partners__title {
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.01em;   /* einheitlich für alle H1/H2 */
  text-transform: uppercase;
  color: var(--text-muted-color);
  margin-bottom: var(--space-5);
}
.partners__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5) var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}
.partners__list img {
  height: 56px;
  width: auto;
  border-radius: 6px;
  mix-blend-mode: multiply;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1.6fr;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  padding-bottom: var(--space-7);
}
.site-footer__sign { width: 3rem; height: 3rem; margin-bottom: var(--space-4); }
.site-footer__title {
  font-size: 1rem;
  font-weight: 650;
  color: var(--text-color);
  margin-bottom: var(--space-4);
  letter-spacing: 0.01em;   /* einheitlich für alle H1/H2 */
}
.site-footer__sitemap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
@supports (grid-template-rows: subgrid) {
  @media (min-width: 36.0625rem) {
    /* Zweizeilige Spaltenüberschrift verschiebt die Liste nicht mehr */
    .site-footer__sitemap { grid-template-rows: auto 1fr; row-gap: 0; }
    .site-footer__sitemap > div { display: grid; grid-template-rows: subgrid; grid-row: span 2; }
  }
}
.site-footer__sitemap ul { margin: 0; padding: 0; list-style: none; }
.site-footer__sitemap a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--text-muted-color);
  text-decoration: none;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding-block: var(--space-5) var(--space-4);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted-color);
}
.site-footer__bottom p { margin: 0; }
/* Letzte Zeile: Copyright + Agentur-Credit */
.site-footer__credits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1) var(--space-5);
  padding-block: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted-color);
  font-size: 0.875rem;
}
.site-footer__credits p { margin: 0; }
.agency-credit a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--text-color);
  font-weight: 600;
}
.legal-list { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin: 0; padding: 0; list-style: none; }
.legal-list a, .to-top {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--text-color);
}
@media (max-width: 64rem) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__sitemap { grid-column: 1 / -1; }
}
@media (max-width: 36rem) {
  .site-footer__grid, .site-footer__sitemap { grid-template-columns: 1fr; }
  .partners__list img { height: 48px; }
}

/* ---------------------------------------------------------------- Linie am oberen Rand
   Safari 26+ wertet <meta name="theme-color"> nicht mehr aus. Es färbt die Tab-Leiste
   nach einem fixierten, deckenden Element am oberen Rand (≤ 4 px vom Rand, ≥ 90 % breit,
   ≥ 3 px hoch, ohne backdrop-filter). Pseudo-Elemente zählen nicht → echtes <div>. */
.browser-tint {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(4px + env(safe-area-inset-top, 0px)); /* iOS-Web-App: Statusleiste in Markenblau */
  background-color: #0018a8;
  z-index: 9999;
  pointer-events: none;          /* blockiert keine Klicks */
}

/* Logo-/Bildzeichen-Blau folgt dem Farbmodus (CSS überschreibt Präsentationsattribute) */
svg [fill="#0017a8"], svg [fill="#0018a8"] { fill: var(--logo-blue); }

/* Moduswechsel ohne Übergangs-Flackern */
.theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }

/* ---------------------------------------------------------------- Hell/Dunkel-Umschalter */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-color);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle__track {
  position: relative;
  display: block;
  width: 54px;
  height: 30px;
  border-radius: var(--radius-pill);
  background: var(--surface-color);
  box-shadow: inset 0 0 0 1.5px var(--border-strong-color);   /* ≥ 3:1 */
  transition: background-color var(--dur-fast) ease, transform var(--dur-press) var(--ease-out);
}
.theme-toggle:active .theme-toggle__track { transform: scale(0.96); }
.theme-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--card-bg);
  color: var(--heading-color);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
  transition: transform var(--dur-base) var(--ease-out);
}
.theme-toggle__thumb .icon { position: absolute; width: 15px; height: 15px; transition: opacity var(--dur-fast) ease, transform var(--dur-base) var(--ease-out); }
.theme-toggle__moon { opacity: 0; transform: rotate(-60deg) scale(0.8); }
.theme-toggle[aria-pressed="true"] .theme-toggle__track { background: var(--tint-color); }
.theme-toggle[aria-pressed="true"] .theme-toggle__thumb { transform: translateX(24px); }
.theme-toggle[aria-pressed="true"] .theme-toggle__sun { opacity: 0; transform: rotate(60deg) scale(0.8); }
.theme-toggle[aria-pressed="true"] .theme-toggle__moon { opacity: 1; transform: none; }

/* Telefon-Button bei mittlerer Breite nur als Symbol (Nummer bleibt vorlesbar) */
@media (min-width: 64.0625rem) and (max-width: 80rem) {
  .nav__cta { width: 44px; min-width: 44px; padding: 0; }
  .nav__cta-text {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
}

/* ---------------------------------------------------------------- Hintergrundvideo (Startseite) */
.bg-video {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  /* Fallback: Poster bzw. Markenblau, falls Video blockiert/fehlt/reduzierte Bewegung */
  background: var(--color-brand) url("../img/venenzentrum-fallback.jpg") center / cover no-repeat;
}
.bg-video__media {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  background: transparent;
}
.bg-video.is-failed .bg-video__media { display: none; }

.has-video .hero {
  display: flex;
  align-items: center;
  min-height: min(58rem, calc(100svh - var(--header-h)));
  /* Abdunklung über dem Video: Weiß bleibt selbst über reinweißen Videobildern ≥ 6,5:1 */
  background: rgb(0 10 60 / 0.66);
  --focus-color: #fff;
}
.has-video .hero__sign { display: none; }
.has-video .hero .eyebrow,
.has-video .hero__title,
.has-video .hero__lead { color: #fff; }
.has-video .hero__title { text-shadow: 0 1px 24px rgb(0 0 0 / 0.25); }
.has-video .hero .btn--secondary {
  --btn-bg: rgb(255 255 255 / 0.08);
  --btn-fg: #fff;
  border-color: rgb(255 255 255 / 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.has-video .hero__card { --focus-color: var(--link-color); }
/* Alle Bereiche unterhalb des Heros deckend */
.has-video .section:not(.section--subtle) { background: var(--bg-color); }

.video-toggle {
  position: absolute;
  right: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  bottom: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid rgb(255 255 255 / 0.85);
  border-radius: 50%;
  background: rgb(0 0 0 / 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-fast) ease;
}
.video-toggle[hidden] { display: none; }
.video-toggle:active { transform: scale(0.94); }
.video-toggle .icon { width: 18px; height: 18px; }
.video-toggle__play { display: none; }
.video-toggle[aria-pressed="true"] .video-toggle__play { display: block; }
.video-toggle[aria-pressed="true"] .video-toggle__pause { display: none; }

/* ---------------------------------------------------------------- Dunkelmodus: Feinheiten */
:root[data-theme="dark"] .partners__list img { mix-blend-mode: normal; background: #fff; padding: 6px 10px; border-radius: 10px; }
:root[data-theme="dark"] .placeholder { background: #5c4a00; color: #fff4cc; }
:root[data-theme="dark"] .cta-band { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); }
:root[data-theme="dark"] ::selection { color: var(--text-color); }

/* ---------------------------------------------------------------- Hover nur mit Maus/Trackpad */
@media (hover: hover) {
  a:hover { color: var(--link-hover-color); text-decoration-color: currentColor; }
  .btn:hover { color: var(--btn-fg); }
  .btn--primary:hover { --btn-bg: var(--color-primary-hover); }
  .btn--secondary:hover { --btn-bg: var(--tint-color); --btn-fg: var(--link-hover-color); }
  .btn--light:hover { --btn-bg: #e8ecff; --btn-fg: var(--color-brand); }
  .btn--ghost-light:hover { --btn-bg: rgb(255 255 255 / 0.12); --btn-fg: #fff; }
  .nav__link:hover { color: var(--link-color); background: var(--surface-color); }
  .nav__subtoggle:hover { color: var(--link-color); background: var(--surface-color); }
  .nav__sub a:hover { background: var(--surface-color); color: var(--link-color); }
  .section-head__link:hover { text-decoration: underline; }
  .breadcrumb a:hover { color: var(--link-color); text-decoration: underline; }
  .toc__list a:hover { color: var(--link-color); }
  .site-footer__sitemap a:hover { color: var(--link-color); text-decoration: underline; }
  .has-video .hero .btn--secondary:hover { --btn-bg: rgb(255 255 255 / 0.18); --btn-fg: #fff; }
  .video-toggle:hover { background: rgb(0 0 0 / 0.6); }
}

/* ---------------------------------------------------------------- Präferenzen */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Hintergrundvideo ausblenden – Poster/Markenblau bleibt; main.js pausiert zusätzlich */
  .bg-video__media, .video-toggle { display: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-property: opacity, color, background-color, border-color, visibility !important;
    transition-duration: 120ms !important;
  }
  .btn:active, .card:active, .nav-toggle:active { transform: none; }
  .card:hover { transform: none !important; }
  .nav, .nav__sub { transform: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header, .nav, .nav__sub, .hero__card {
    background: var(--bg-color);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root { --text-muted-color: #3a3a3c; --border-color: #86868b; }
  :root[data-theme="dark"] { --text-muted-color: #d4d6dd; --border-color: #8a909c; }
  .card, .toc, .site-header { border-color: var(--text-color); }
  .list--labelled > li, .aside-card { box-shadow: inset 0 0 0 1px var(--text-color); }
}

@media (forced-colors: active) {
  .btn, .card, .nav-toggle, .nav__sub, .hero__card, .panel { border: 1px solid CanvasText; }
  .card:has(.card__link:focus-visible) { outline: 3px solid Highlight; }
  .status__dot, .list > li::before { background: CanvasText; }
}

@media print {
  .browser-tint, .bg-video, .theme-toggle, .video-toggle,
  .site-header, .skip-link, .article__aside, .cta-band, .related, .partners, .site-footer__sitemap, .to-top { display: none !important; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; }
}
