/* ==========================================================================
   ORTHOPÄDISCHE PRIVATPRAXIS DR. MED. BERTRAM RITTER — DESIGN SYSTEM
   Creative Direction: MOVEMENT × PRECISION × MEDICINE
   Typographic System (#140-151, #166):
   - Headlines & Index Labels: "Instrument Sans" (Swiss Neo-Grotesque Precision)
   - Reading & Patient Copy:   "DM Sans" (Optical-Size High-Legibility Grotesque)
   - Subtle Editorial Accent:  "Newsreader" (Warm Human Experience & Gravitas)
   ========================================================================== */

/* 1. Instrument Sans — Precision & Movement (Headlines, Nav, Tabular Index Labels) */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. DM Sans (Optical Size 9..40) — Senior-Friendly Medical Reading Copy (#140-143) */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 3. Newsreader — Subtle Editorial Accent (#151: Only used selectively for human nuance) */
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/newsreader-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/newsreader-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Color Palette — Derived from Practice Architecture, Walnut Wood, Exam Tables & Logo */
  --bg-primary: #F8F7F3;        /* Warm architectural alabaster */
  --bg-surface: #FFFFFF;        /* Pure clinical paper white */
  --bg-Muted: #EFECE6;          /* Warm sandstone / practice curtain tone */
  --bg-subtle-blue: #EDF2F7;    /* Cool clinical diagnostic surface */
  --bg-dark: #0F1E30;           /* Deep Prussian/Navy from Dr. Ritter suit & exam tables */
  --bg-dark-elevated: #162940;  /* Elevated navy surface */

  --text-primary: #111922;      /* Deep charcoal ink (Contrast > 15:1 on bg-primary) */
  --text-secondary: #324252;    /* Slate body text (Contrast > 8.5:1) */
  --text-muted: #526373;        /* Editorial index & meta text (Contrast > 5.3:1, WCAG AA) */
  --text-on-dark: #F7F9FB;      /* Crisp white on dark navy */
  --text-on-dark-muted: #C5D3E2;/* Secondary text on dark navy (Contrast > 7:1) */

  --accent-primary: #0B588C;    /* Medical Precision Blue (WCAG AA compliant evolution of #0B6BBF) */
  --accent-hover: #08436B;      /* Darker interaction state */
  --accent-light: #47A3F3;      /* Logo spine cyan accent for dark backgrounds */
  --accent-walnut: #6E472B;     /* Warm walnut wood tone from practice flooring */

  --status-verified: #1B5E3A;   /* Medical governance / verified green */
  --status-verified-bg: #EBF5EF;
  --status-review: #7A4B12;     /* Pending confirmation amber */
  --status-review-bg: #FDF5EA;

  --border-hairline: #D8D4CC;   /* 1px architectural grid lines */
  --border-strong: #111922;     /* High-contrast structural rules */
  --border-on-dark: rgba(255, 255, 255, 0.16);

  /* Thematic Typography Pairing (#150-151):
     - Display / Structural Grotesque: Instrument Sans (Swiss precision & dynamic movement)
     - Reading / Patient Copy: DM Sans (Warmth, clarity & senior-friendly open counters)
     - Subtle Editorial Accent: Newsreader Italic (Physician personality & medical gravitas)
     - Index Numerals: Instrument Sans with tabular-nums (NO coding monospace font!) */
  --font-display: "Instrument Sans", "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: "DM Sans", "Instrument Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-editorial: "Newsreader", Georgia, serif;
  --font-mono: "Instrument Sans", "DM Sans", sans-serif;

  /* Fluid Senior-Friendly Type Scale (#140–143: 18–20px desktop, 16–18px mobile) */
  --text-xs: clamp(0.76rem, 0.73rem + 0.12vw, 0.82rem);         /* 12.2px – 13.1px (tabular index labels) */
  --text-sm: clamp(0.9375rem, 0.9rem + 0.18vw, 1rem);           /* 15px – 16px */
  --text-base: clamp(1.0625rem, 1.02rem + 0.25vw, 1.1875rem);   /* 17px – 19px body copy */
  --text-lead: clamp(1.2rem, 1.11rem + 0.4vw, 1.4rem);          /* 19.2px – 22.4px lead paragraphs */
  --text-h4: clamp(1.2rem, 1.12rem + 0.35vw, 1.4rem);           /* 19.2px – 22.4px */
  --text-h3: clamp(1.375rem, 1.24rem + 0.6vw, 1.75rem);         /* 22px – 28px */
  --text-h2: clamp(1.8rem, 1.45rem + 1.45vw, 2.65rem);          /* 28.8px – 42.4px */
  --text-h1: clamp(2.25rem, 1.7rem + 2.2vw, 3.6rem);            /* 36px – 57.6px */

  /* Spacing & Grid (#144–145: 12 columns, 120–180px desktop section rhythm) */
  --container-max: 1360px;
  --container-pad: clamp(1.25rem, 4vw, 3.5rem);
  --section-pad-y: clamp(4.5rem, 8vw, 9rem);
  --section-pad-sm: clamp(3rem, 5vw, 5rem);
  --grid-gap: clamp(1.5rem, 2.5vw, 2.75rem);

  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
  --header-height: 98px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-primary);
}

html.js:not(.is-loaded) *,
html.js:not(.is-loaded) *::before,
html.js:not(.is-loaded) *::after {
  transition: none !important;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: -0.004em;
  font-optical-sizing: auto;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  opacity: 1;
  animation: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  padding-bottom: 72px;
}

@media (min-width: 960px) {
  body {
    padding-bottom: 0;
  }
}

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

/* Accessibility: Skip Link & Focus Ring (#159–160) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--accent-light);
}
.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 3px;
}

/* Typography Rules — Instrument Sans (Swiss Neo-Grotesque Precision) */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.14;
  letter-spacing: -0.026em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* Headings on pure white backgrounds (--bg-surface / #FFFFFF) in practice blue */
.section--surface h1,
.section--surface h2,
.section--surface h3,
.section--surface h4,
[style*="--bg-surface"] h1,
[style*="--bg-surface"] h2,
[style*="--bg-surface"] h3,
[style*="--bg-surface"] h4,
.billing-matrix h3 {
  color: var(--accent-primary);
}

/* Keep headings white inside dark sections or dark boxes */
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.duality-col h3,
.section--surface [style*="--bg-dark"] h1,
.section--surface [style*="--bg-dark"] h2,
.section--surface [style*="--bg-dark"] h3,
.section--surface [style*="--bg-dark"] h4 {
  color: #FFFFFF;
}

/* Keep headings dark inside warm beige/stone or subtle-blue boxes nested inside white sections */
.section--surface [style*="--bg-primary"] h1,
.section--surface [style*="--bg-primary"] h2,
.section--surface [style*="--bg-primary"] h3,
.section--surface [style*="--bg-primary"] h4,
.section--surface [style*="--bg-subtle-blue"] h1,
.section--surface [style*="--bg-subtle-blue"] h2,
.section--surface [style*="--bg-subtle-blue"] h3,
.section--surface [style*="--bg-subtle-blue"] h4 {
  color: var(--text-primary);
}

h1 { font-size: var(--text-h1); font-weight: 540; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: var(--text-h2); font-weight: 550; line-height: 1.15; letter-spacing: -0.026em; }
h3 { font-size: var(--text-h3); font-weight: 580; line-height: 1.22; letter-spacing: -0.018em; }
h4 { font-size: var(--text-h4); font-weight: 600; line-height: 1.28; letter-spacing: -0.014em; }

/* Subtle Editorial Accent (#151: Optional, subtle human warmth inside grotesque headlines) */
.editorial-accent {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding-right: 0.04em;
}

strong, b {
  font-weight: 600;
  color: inherit;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  max-width: 66ch;
}
p:last-child {
  margin-bottom: 0;
}

.lead {
  font-family: var(--font-sans);
  font-size: var(--text-lead);
  line-height: 1.56;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  font-weight: 440;
}

a {
  color: var(--accent-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
a:hover {
  color: var(--accent-hover);
}

/* Editorial Medical Index Labels (#149: ORTHOPÄDIE / 01, DIAGNOSTIK / 02)
   Uses Instrument Sans with tabular numerals instead of a coding monospace font */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1.5px;
  background-color: var(--accent-primary);
}
.eyebrow--on-dark {
  color: var(--text-on-dark-muted);
}
.eyebrow--on-dark::before {
  background-color: var(--accent-light);
}

/* Layout & 12-Column Grid (#145) */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-pad-y);
  border-bottom: 1px solid var(--border-hairline);
}
.section--sm {
  padding-block: var(--section-pad-sm);
  border-bottom: 1px solid var(--border-hairline);
}
.section--surface {
  background-color: var(--bg-surface);
}
.section--muted {
  background-color: var(--bg-Muted);
}
.section--subtle-blue {
  background-color: var(--bg-subtle-blue);
}
.section--dark {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0A1522 0%, #0F1E30 55%, #13283F 100%);
  color: var(--text-on-dark);
  border-bottom-color: var(--border-on-dark);
}
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to right, rgba(110, 181, 232, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(110, 181, 232, 0.018) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px, 18px 18px, 18px 18px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 35%, transparent 100%);
}
.section--dark > .container {
  position: relative;
  z-index: 2;
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark .lead,
[style*="--bg-dark"] h1,
[style*="--bg-dark"] h2,
[style*="--bg-dark"] h3,
[style*="--bg-dark"] h4,
[style*="--bg-dark"] strong {
  color: var(--text-on-dark);
}
.section--dark p,
[style*="--bg-dark"] p,
[style*="--bg-dark"] li {
  color: var(--text-on-dark-muted);
}
[style*="--bg-dark"] {
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(420px circle at 90% 10%, rgba(46, 126, 189, 0.22), transparent 70%),
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px) !important;
  background-size: 100% 100%, 36px 36px, 36px 36px !important;
  border: 1px solid rgba(110, 181, 232, 0.22);
}

.grid-12 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

@media (min-width: 768px) {
  .grid-12 {
    grid-template-columns: repeat(12, 1fr);
  }
  .col-span-3 { grid-column: span 6; }
  .col-span-4 { grid-column: span 6; }
  .col-span-5 { grid-column: span 12; }
  .col-span-6 { grid-column: span 6; }
  .col-span-7 { grid-column: span 12; }
  .col-span-8 { grid-column: span 12; }
  .col-span-12 { grid-column: span 12; }
}

@media (min-width: 1024px) {
  .col-span-2 { grid-column: span 2; }
  .col-span-3 { grid-column: span 3; }
  .col-span-4 { grid-column: span 4; }
  .col-span-5 { grid-column: span 5; }
  .col-span-6 { grid-column: span 6; }
  .col-span-7 { grid-column: span 7; }
  .col-span-8 { grid-column: span 8; }
  .col-span-9 { grid-column: span 9; }
  .col-span-12 { grid-column: span 12; }
}

/* Section Headers */
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4.25rem);
}
.section-header--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}
@media (min-width: 960px) {
  .section-header--split {
    grid-template-columns: 7fr 5fr;
    gap: 3rem;
  }
}

/* Buttons & CTAs (#16: Crisp architectural buttons, min 48px target) */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.8rem 1.65rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 580;
  letter-spacing: 0.015em;
  text-decoration: none;
  border-radius: 2px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background-color: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
}
.btn--primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #FFFFFF;
}

.btn--light {
  background-color: #FFFFFF;
  color: var(--bg-dark);
  border-color: #FFFFFF;
}
.btn--light:hover {
  background-color: var(--bg-primary);
  color: var(--accent-primary);
}

.btn--outline {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}
.btn--outline:hover {
  background-color: var(--text-primary);
  color: #FFFFFF;
}

.btn--outline-light {
  background-color: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.72);
}
.btn--outline-light:hover {
  background-color: #FFFFFF;
  color: var(--bg-dark);
  border-color: #FFFFFF;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 580;
  font-size: 0.94rem;
  color: var(--accent-primary);
  text-decoration: none;
  padding-block: 0.3rem;
  border-bottom: 1.5px solid currentColor;
}
.text-link:hover {
  color: var(--accent-hover);
  gap: 0.7rem;
}
.section--dark .text-link {
  color: var(--accent-light);
}

/* ==========================================================================
   TRUE FULL-WIDTH TRANSPARENT HEADER & MENU (#22, #32, #135–137)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  transition: background-color 0.28s var(--ease-editorial), border-color 0.28s var(--ease-editorial), box-shadow 0.28s var(--ease-editorial);
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

/* Initial Transparent State over Dark Hero (#22) */
.site-header:not(.is-scrolled) {
  background-color: transparent;
  backdrop-filter: none;
  box-shadow: none;
}
.site-header:not(.is-scrolled) .brand-title {
  color: #FFFFFF;
}
.site-header:not(.is-scrolled) .brand-subtitle {
  color: rgba(255, 255, 255, 0.76);
}
.site-header:not(.is-scrolled) .nav-link,
.site-header:not(.is-scrolled) .header-phone,
.site-header:not(.is-scrolled) .mobile-menu-toggle {
  color: #FFFFFF;
}
.site-header:not(.is-scrolled) .brand-mark {
  background-color: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #FFFFFF;
}
.site-header:not(.is-scrolled) .btn--header-cta {
  background-color: #FFFFFF;
  color: var(--bg-dark);
  border-color: #FFFFFF;
}
.site-header:not(.is-scrolled) .btn--header-cta:hover {
  background-color: var(--accent-light);
  color: var(--bg-dark);
  border-color: var(--accent-light);
}

/* Solid Scrolled State (#22) */
.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-hairline);
  box-shadow: 0 8px 28px rgba(15, 30, 48, 0.07);
  backdrop-filter: blur(10px);
}
.site-header:has(.mobile-drawer.is-open) {
  background-color: #FFFFFF;
  backdrop-filter: none;
}
body.mobile-menu-open {
  overflow: hidden;
}
.site-header.is-scrolled .btn--header-cta {
  background-color: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
}
.site-header.is-scrolled .btn--header-cta:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Edge-to-Edge Full-Width Inner Container */
.header-inner {
  width: 100%;
  max-width: 100%;
  height: 100%;
  padding-inline: clamp(1.25rem, 3.5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}
.brand-logo {
  height: clamp(54px, 5.2vw, 66px);
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.brand-logo--dark {
  display: none;
}
.site-header.is-scrolled .brand-logo--light {
  display: none;
}
.site-header.is-scrolled .brand-logo--dark {
  display: block;
}

/* Full-Width Desktop Navigation (#32, #135) */
.primary-nav {
  display: none;
}
@media (min-width: 960px) {
  .primary-nav {
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: 100%;
    gap: clamp(0.25rem, 1.2vw, 1.2rem);
    flex: 1;
  }
}

.nav-item {
  position: static;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  gap: 0.35rem;
  padding: 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 580;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 1.35rem;
  height: 1.5px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease-editorial);
}
.nav-link:hover::after,
.nav-link[aria-expanded="true"]::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}
.nav-chevron {
  width: 11px;
  height: 11px;
  opacity: 0.72;
  transition: transform 0.22s var(--ease-editorial), opacity 0.22s ease;
  flex-shrink: 0;
}
.nav-item:hover .nav-chevron,
.nav-link[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}
.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link[aria-expanded="true"] {
  color: var(--accent-primary);
}

/* Full-Width Architectural Mega Menu (#136) — With Hover Bridge & Delay */
.mega-menu {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.99);
  border-bottom: 1px solid var(--border-hairline);
  box-shadow: 0 24px 48px rgba(15, 30, 48, 0.14);
  padding: 2.5rem clamp(1.5rem, 4vw, 4.5rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 0.22s var(--ease-editorial) 0.28s,
    transform 0.22s var(--ease-editorial) 0.28s,
    visibility 0s linear 0.5s;
  z-index: 1010;
}
/* Invisible hover bridge between header trigger and mega menu */
.mega-menu::before {
  content: "";
  position: absolute;
  top: -28px;
  left: 0;
  right: 0;
  height: 28px;
  background: transparent;
}
.mega-menu-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2.5rem;
}
.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu,
.mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 0.18s var(--ease-editorial) 0s,
    transform 0.18s var(--ease-editorial) 0s,
    visibility 0s linear 0s;
}

.mega-col-title {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--accent-primary);
  padding-bottom: 0.65rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-hairline);
}
.mega-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mega-list a {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.25rem 0;
  font-weight: 450;
}
.mega-list a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

.header-actions {
  display: none;
}
@media (min-width: 960px) {
  .header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
  }
}
.header-phone {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
  font-weight: 560;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.03em;
  display: none;
}
@media (min-width: 1240px) {
  .header-phone {
    display: inline-block;
  }
}

/* Mobile Menu Button & Drawer (#137) */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.5rem 0.9rem;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  cursor: pointer;
}
@media (min-width: 960px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  background-color: var(--bg-surface);
  z-index: 1005;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.5rem var(--container-pad) 7.5rem;
  display: none;
  border-top: 1px solid var(--border-hairline);
}
.mobile-drawer.is-open {
  display: block;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-list {
  list-style: none;
  border-top: 1px solid var(--border-hairline);
}
.mobile-nav-item {
  border-bottom: 1px solid var(--border-hairline);
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 0.85rem 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 580;
  color: var(--text-primary);
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}
.mobile-subnav {
  list-style: none;
  padding: 0.25rem 0 1rem 1rem;
  display: none;
}
.mobile-subnav.is-open {
  display: block;
}
.mobile-subnav li a {
  display: block;
  padding: 0.55rem 0;
  font-size: 1rem;
  color: var(--text-secondary);
  text-decoration: none;
}

/* ==========================================================================
   FULL-WIDTH HERO (#20–27) — CENTERED EDITORIAL LAYOUT
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(680px, 90vh, 940px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: clamp(4rem, 6.5vw, 6rem);
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  will-change: transform;
}
.hero-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: brightness(0.96) contrast(1.04);
  transform: translate3d(0, 0, 0) scale(1.12);
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(
      ellipse at center,
      rgba(12, 24, 38, 0.42) 0%,
      rgba(12, 24, 38, 0.56) 65%,
      rgba(12, 24, 38, 0.72) 100%
    ),
    linear-gradient(
      180deg,
      rgba(12, 24, 38, 0.58) 0%,
      rgba(12, 24, 38, 0.22) 42%,
      rgba(12, 24, 38, 0.68) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  will-change: transform, opacity;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
}

.hero .eyebrow,
.page-hero .eyebrow {
  display: none !important;
}

.hero-title {
  color: #FFFFFF;
  margin-bottom: 1.4rem;
  margin-inline: auto;
  max-width: 20ch;
  font-weight: 520;
  letter-spacing: -0.028em;
}
.hero-subtitle {
  font-size: var(--text-lead);
  color: rgba(247, 249, 251, 0.92);
  margin-bottom: 2.35rem;
  margin-inline: auto;
  max-width: 60ch;
  font-weight: 400;
}

.hero .btn-group {
  justify-content: center;
}

/* ==========================================================================
   PAGE HERO (FOR SUBPAGES) & ARCHITECTURAL BLUEPRINT DEPTH (#22, #120)
   ========================================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-height) + clamp(3.25rem, 5.5vw, 5.25rem));
  padding-bottom: clamp(3.25rem, 5.5vw, 5.25rem);
  background: linear-gradient(132deg, #09131F 0%, #0E1E30 46%, #132B44 100%);
  color: var(--text-on-dark);
  border-bottom: 1px solid rgba(110, 181, 232, 0.22);
}

/* Layer 1: Precision Architectural Millimeter & Coordinate Grid */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to right, rgba(110, 181, 232, 0.024) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(110, 181, 232, 0.024) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px, 16px 16px, 16px 16px;
  mask-image: radial-gradient(ellipse 92% 88% at 62% 48%, #000 25%, rgba(0, 0, 0, 0.45) 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 92% 88% at 62% 48%, #000 25%, rgba(0, 0, 0, 0.45) 70%, transparent 100%);
}

/* Layer 2: Directional Depth Spotlight & Ambient Glow */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(720px circle at 82% 26%, rgba(45, 132, 198, 0.30), rgba(27, 94, 145, 0.08) 54%, transparent 78%),
    radial-gradient(520px circle at 14% 90%, rgba(27, 94, 145, 0.22), transparent 68%);
}

.page-hero > .container {
  position: relative;
  z-index: 3;
}

/* Layer 3: Large Kinematic / Biomechanical SVG Blueprint Backdrop (Right) */
.page-hero-blueprint {
  position: absolute;
  right: clamp(-3rem, 3vw, 4rem);
  top: 50%;
  transform: translate3d(0, -50%, 0);
  width: clamp(380px, 46vw, 640px);
  height: clamp(380px, 46vw, 640px);
  z-index: 2;
  pointer-events: none;
  opacity: 0.72;
  will-change: transform;
}
.page-hero-blueprint svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Centered Subpage Hero Content */
.page-hero-centered {
  max-width: 1180px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-hero .breadcrumbs ol {
  justify-content: center;
}
.page-hero .eyebrow {
  justify-content: center;
  margin-inline: auto;
}
.page-hero h1 {
  max-width: 36ch;
  font-size: clamp(2.05rem, 3.25vw, 3.2rem);
  text-wrap: balance;
  margin-inline: auto;
}
.page-hero .lead {
  max-width: 72ch;
  margin-inline: auto;
}
.page-hero .btn-group {
  justify-content: center;
}

/* Horizontal Trust Bar Directly Under Subpage Hero (Full-Width Structured Boxes) */
.subpage-trust-bar {
  position: relative;
  z-index: 5;
  background: linear-gradient(180deg, #102236 0%, #0C1A2B 100%);
  color: var(--text-on-dark);
  border-bottom: 1px solid rgba(110, 181, 232, 0.24);
  box-shadow: 0 14px 34px rgba(8, 18, 30, 0.12);
  width: 100%;
}
.subpage-trust-bar > .container {
  width: 100%;
  max-width: 100%;
  padding-inline: 0;
}
.subpage-trust-inner {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}
@media (min-width: 1120px) {
  .subpage-trust-inner {
    grid-template-columns: 1.05fr 2.45fr 1fr;
  }
}
.subpage-trust-head {
  padding: 1.65rem clamp(1.5rem, 2.5vw, 2.5rem) 1.65rem clamp(1.25rem, 3.5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
  background: rgba(110, 181, 232, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 1120px) {
  .subpage-trust-head {
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }
}
.subpage-trust-brand {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}
.subpage-trust-sub {
  font-size: 0.82rem;
  color: rgba(247, 249, 251, 0.68);
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.page-hero-icon-box {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(110, 181, 232, 0.14);
  border: 1px solid rgba(110, 181, 232, 0.42);
  color: var(--accent-light);
}
.page-hero-icon-box svg {
  width: 24px;
  height: 24px;
}
.page-hero-panel-kicker {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.15rem;
}
.page-hero-panel-title {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.25;
}
.subpage-trust-facts {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  .subpage-trust-facts {
    grid-template-columns: repeat(3, 1fr);
  }
}
.subpage-trust-fact {
  padding: 1.65rem clamp(1.25rem, 2.2vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 768px) {
  .subpage-trust-fact {
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }
}
.subpage-trust-fact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.subpage-trust-fact-num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-light);
}
.subpage-trust-fact-top svg {
  width: 17px;
  height: 17px;
  color: var(--accent-light);
  flex-shrink: 0;
}
.subpage-trust-fact-text {
  font-size: 0.92rem;
  line-height: 1.48;
  color: rgba(247, 249, 251, 0.92);
}
.subpage-trust-cta {
  padding: 1.65rem clamp(1.25rem, 3.5vw, 4rem) 1.65rem clamp(1.5rem, 2.5vw, 2.25rem);
  background-color: var(--accent-primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
}
.subpage-trust-cta-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}
.subpage-trust-phone {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  text-align: center;
}
.subpage-trust-phone:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.page-hero h1,
.page-hero .lead {
  color: var(--text-on-dark);
}
.page-hero p {
  color: var(--text-on-dark-muted);
}
.page-hero .eyebrow {
  color: var(--text-on-dark-muted);
}
.page-hero .eyebrow::before {
  background-color: var(--accent-light);
}
.page-hero .btn--outline {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.65);
}
.page-hero .btn--outline:hover {
  background-color: #FFFFFF;
  color: var(--bg-dark);
  border-color: #FFFFFF;
}

.breadcrumbs {
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text-on-dark-muted);
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  opacity: 0.55;
}
.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* ==========================================================================
   QUICK INFO BAR (SCREEN 02: TERMIN / DIREKTE KONTAKTOPTION — FULL WIDTH)
   ========================================================================== */
.quick-bar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-hairline);
  box-shadow: 0 10px 30px rgba(15, 30, 48, 0.04);
  position: relative;
  z-index: 5;
  width: 100%;
}
.quick-bar > .container {
  width: 100%;
  max-width: 100%;
  padding-inline: 0;
}
.quick-bar-grid {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}
@media (min-width: 768px) {
  .quick-bar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1120px) {
  .quick-bar-grid {
    grid-template-columns: 1fr 1fr 1.2fr 1fr;
  }
}
.quick-bar-item {
  padding: 1.75rem clamp(1.5rem, 2.5vw, 2.75rem);
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.1rem;
}
.quick-bar-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-hairline);
}
.quick-bar-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-subtle-blue);
  border: 1px solid rgba(27, 94, 145, 0.22);
  color: var(--accent-primary);
}
.quick-bar-icon svg {
  width: 20px;
  height: 20px;
}
.quick-bar-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.quick-meta-table {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.85rem;
  row-gap: 0.35rem;
  align-items: baseline;
  font-size: 0.9rem;
}
.quick-meta-key {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.quick-meta-val {
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--text-secondary);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quick-meta-val a {
  color: var(--text-secondary);
  text-decoration: none;
}
.quick-meta-val a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}
.quick-bar-foot {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-hairline);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 580;
  color: var(--text-muted);
}
.quick-bar-foot a {
  color: var(--accent-primary);
  text-decoration: none;
}
.quick-bar-foot a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}
.quick-bar-item--cta {
  background-color: var(--accent-primary);
  color: #FFFFFF;
}
.quick-bar-item--cta .quick-bar-head {
  border-bottom-color: rgba(255, 255, 255, 0.18);
}
.quick-bar-item--cta .quick-bar-icon {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.36);
  color: #FFFFFF;
}
.quick-bar-item--cta .quick-bar-label {
  color: rgba(255, 255, 255, 0.86);
}
.quick-bar-item--cta .quick-bar-value {
  color: #FFFFFF;
}
.quick-bar-cta-desc {
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}
.quick-bar-item--cta .btn {
  background-color: #FFFFFF;
  color: var(--accent-primary);
  border-color: #FFFFFF;
  font-weight: 620;
}
.quick-bar-item--cta .btn:hover {
  background-color: var(--bg-dark);
  color: #FFFFFF;
  border-color: var(--bg-dark);
}
@media (min-width: 1120px) {
  .quick-bar--5col .quick-bar-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .quick-bar--5col .quick-bar-item {
    padding: 1.55rem clamp(1.1rem, 1.8vw, 1.85rem);
  }
}
.quick-bar-link-card {
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}
.quick-bar-link-card .quick-bar-foot {
  color: var(--accent-primary);
}
.quick-bar-link-card:hover {
  background-color: var(--bg-subtle-blue);
}
.quick-bar-link-card:hover .quick-bar-value {
  color: var(--accent-primary);
}
@media (min-width: 1120px) {
  .quick-bar-item:first-child {
    padding-left: clamp(1.25rem, 3.5vw, 4rem);
  }
  .quick-bar-item:last-child {
    padding-right: clamp(1.25rem, 3.5vw, 4rem);
  }
}
@media (min-width: 768px) {
  .quick-bar-item {
    border-right: 1px solid var(--border-hairline);
  }
  .quick-bar-item:nth-child(2n) {
    border-right: none;
  }
}
@media (min-width: 1120px) {
  .quick-bar-item {
    border-bottom: none;
  }
  .quick-bar-item:nth-child(2n) {
    border-right: 1px solid var(--border-hairline);
  }
  .quick-bar-item:last-child {
    border-right: none;
  }
}
.quick-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--accent-primary);
  margin-bottom: 0.18rem;
}
.quick-bar-value {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0;
  line-height: 1.25;
}
.quick-bar-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.quick-hours-table {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.85rem;
  row-gap: 0.3rem;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.quick-hours-day {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.quick-hours-time {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  text-align: right;
}

/* ==========================================================================
   EDITORIAL LISTS, ARCHITECTURAL PANELS & TIMELINES (#71, #86–87, #147)
   ========================================================================== */
.editorial-row-list {
  border-top: 1px solid var(--border-hairline);
}
.section--dark .editorial-row-list {
  border-top-color: var(--border-on-dark);
}

.editorial-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-block: clamp(1.5rem, 3vw, 2.35rem);
  border-bottom: 1px solid var(--border-hairline);
  align-items: start;
}
.section--dark .editorial-row {
  border-bottom-color: var(--border-on-dark);
}
@media (min-width: 860px) {
  .editorial-row {
    grid-template-columns: 80px 4fr 6fr auto;
    gap: 2rem;
    align-items: baseline;
  }
}

.editorial-index {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
}
.section--dark .editorial-index {
  color: var(--accent-light);
}

/* Joint Focus Split Panels (Knie & Schulter #33–36) */
.focus-split {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border-hairline);
  background-color: var(--bg-surface);
}
@media (min-width: 960px) {
  .focus-split {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}
.focus-pane {
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.focus-pane + .focus-pane {
  border-top: 1px solid var(--border-hairline);
}
@media (min-width: 960px) {
  .focus-pane + .focus-pane {
    border-top: none;
    border-left: 1px solid var(--border-hairline);
  }
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-block: 1.5rem;
}
.tag {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
}
.section--dark .tag {
  background-color: var(--bg-dark-elevated);
  border-color: var(--border-on-dark);
  color: var(--text-on-dark);
}

/* Conservative vs. Operative Dual Motif (#39–43) */
.duality-grid {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border-on-dark);
}
@media (min-width: 960px) {
  .duality-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.duality-col {
  padding: clamp(2rem, 4vw, 3.5rem);
}
.duality-col--secondary {
  background-color: var(--bg-dark-elevated);
  border-top: 1px solid var(--border-on-dark);
}
@media (min-width: 960px) {
  .duality-col--secondary {
    border-top: none;
    border-left: 1px solid var(--border-on-dark);
  }
}

/* Vertical Editorial Timeline for Dr. Ritter Vita (#71) */
.timeline {
  position: relative;
  border-left: 2px solid var(--accent-primary);
  padding-left: clamp(1.5rem, 3vw, 2.75rem);
  margin-left: 0.5rem;
}
.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(1.5rem, 3vw, 2.75rem) - 7px);
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 2.5px solid var(--accent-primary);
}
.timeline-year {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 0.3rem;
}
.timeline-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 580;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

/* Accessible Accordion / FAQ (#129–130, #160) */
.faq-list {
  border-top: 1px solid var(--border-hairline);
}
.faq-item {
  border-bottom: 1px solid var(--border-hairline);
}
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 580;
  color: var(--text-primary);
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-icon {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}
.faq-body {
  padding-bottom: 1.65rem;
  color: var(--text-secondary);
}

/* Ensure [hidden] always hides elements even when display:flex/grid classes are present */
[hidden] {
  display: none !important;
}

/* Medical Governance & Review Callouts (#121–123, #189–190) */
.governance-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.35rem;
  background-color: var(--bg-Muted);
  border-left: 3px solid var(--accent-primary);
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-top: 2rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 2px;
}
.badge--verified {
  background-color: var(--status-verified-bg);
  color: var(--status-verified);
}
.badge--review {
  background-color: var(--status-review-bg);
  color: var(--status-review);
}

/* Practice Photo Figures (#89–90, #146) — Parallax Image Frame */
.figure-editorial {
  margin: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  overflow: hidden;
  position: relative;
}
.figure-editorial picture {
  display: block;
  overflow: hidden;
  position: relative;
}
.figure-editorial img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transform: translate3d(0, 0, 0) scale(1.08);
  will-change: transform;
}
.figure-caption {
  position: relative;
  z-index: 2;
  padding: 0.9rem 1.15rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-hairline);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* Uniform Height Architectural Gallery Cards (#89–90) */
.praxis-gallery-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.praxis-gallery-card picture {
  flex: 1;
  height: clamp(260px, 28vw, 390px);
}
.praxis-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sticky Sidebar Column for Vita Timeline (#71) */
.sticky-sidebar .figure-editorial {
  width: 100%;
}
.sticky-sidebar .figure-editorial picture {
  width: 100%;
  aspect-ratio: 4 / 4.3;
  max-height: 420px;
}
.sticky-sidebar .figure-editorial img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
  transform: none !important;
}
@media (min-width: 960px) {
  .sticky-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    align-self: start;
  }
}

/* Architectural Billing & Patient Info Matrix (#9–12, #184) */
.billing-matrix {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-top: 3px solid var(--accent-primary);
  box-shadow: 0 18px 40px rgba(15, 30, 48, 0.04);
}
.billing-matrix-grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .billing-matrix-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.billing-matrix-col {
  padding: clamp(2rem, 3.2vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
  border-bottom: 1px solid var(--border-hairline);
}
@media (min-width: 960px) {
  .billing-matrix-col {
    border-bottom: none;
    border-right: 1px solid var(--border-hairline);
  }
  .billing-matrix-col:last-child {
    border-right: none;
  }
}
.billing-matrix-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-hairline);
}
.billing-matrix-index {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
}
.billing-matrix-meta {
  padding-top: 1rem;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 560;
  color: var(--text-primary);
}
.billing-matrix-footer {
  padding: 1.5rem clamp(2rem, 3.2vw, 2.75rem);
  background-color: var(--bg-subtle-blue);
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

/* Smooth Editorial Scroll Reveal (#152–154) */
.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 0.65s var(--ease-editorial),
    transform 0.65s var(--ease-editorial);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Forms (#131–134) */
.form-group {
  margin-bottom: 1.35rem;
}
.form-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 580;
  font-size: 0.94rem;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}
.form-control {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-hairline);
  border-radius: 2px;
}
.form-control:focus {
  border-color: var(--accent-primary);
  outline: none;
}
textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

/* Consent Map Placeholder (#96, #165) */
.map-consent-box {
  background-color: var(--bg-Muted);
  border: 1px solid var(--border-hairline);
  padding: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Footer (#187–188) */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  padding-top: clamp(4rem, 7vw, 6.5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  border-top: 1px solid var(--border-on-dark);
}
.site-footer h3,
.site-footer h4 {
  color: #FFFFFF;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-display);
  margin-bottom: 1.25rem;
}
.site-footer p,
.site-footer li,
.site-footer a {
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-on-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
  color: var(--text-on-dark-muted);
}

/* Mobile Sticky CTA (#31, #138: Maximal TERMIN + ANRUFEN) */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 990;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-hairline);
  box-shadow: 0 -4px 16px rgba(16, 32, 51, 0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.6rem var(--container-pad);
}
@media (min-width: 960px) {
  .mobile-sticky-bar {
    display: none;
  }
}
.mobile-sticky-bar .btn {
  min-height: 48px;
  padding: 0.6rem 0.75rem;
  font-size: 0.92rem;
  width: 100%;
}

/* ==========================================================================
   COOKIE CONSENT BANNER & BOTTOM-LEFT PRIVACY ICON
   ========================================================================== */
.cookie-fab {
  position: fixed;
  left: 1.35rem;
  bottom: 1.35rem;
  z-index: 9990;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0E1E30 0%, #162E47 100%);
  border: 1.5px solid rgba(110, 181, 232, 0.42);
  color: var(--accent-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(8, 18, 30, 0.36);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}
.cookie-fab:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: var(--accent-light);
  color: #FFFFFF;
  box-shadow: 0 14px 32px rgba(27, 94, 145, 0.48);
}
.cookie-fab svg {
  width: 22px;
  height: 22px;
}
@media (max-width: 959px) {
  .cookie-fab {
    bottom: 4.85rem;
    left: 1rem;
    width: 44px;
    height: 44px;
  }
}

.cookie-banner-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9995;
  background: rgba(8, 15, 25, 0.42);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cookie-banner-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate3d(-50%, 24px, 0);
  width: min(860px, calc(100vw - 2rem));
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  z-index: 9999;
  background: linear-gradient(165deg, rgba(16, 26, 40, 0.98) 0%, rgba(11, 19, 30, 0.99) 100%);
  border: 1px solid rgba(110, 181, 232, 0.22);
  border-radius: 18px;
  padding: clamp(1.35rem, 2.8vw, 2.15rem) clamp(1.35rem, 3vw, 2.35rem);
  color: #F7F9FB;
  box-shadow: 0 28px 70px rgba(4, 10, 18, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease, transform 0.26s ease;
}
.cookie-banner.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0);
}
.cookie-banner-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.cookie-banner-shield {
  width: 26px;
  height: 26px;
  color: var(--accent-light);
  flex-shrink: 0;
}
.cookie-banner-title {
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0;
}
.cookie-banner-desc {
  font-size: 0.93rem;
  line-height: 1.58;
  color: rgba(215, 226, 238, 0.84);
  margin: 0 0 1.35rem 0;
  max-width: 100%;
}
.cookie-banner-desc a {
  color: var(--accent-light);
  font-weight: 600;
  text-decoration: none;
}
.cookie-banner-desc a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}
.cookie-banner-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 1.35rem;
}
.cookie-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.95rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 720px) {
  .cookie-categories {
    grid-template-columns: repeat(3, 1fr);
  }
}
.cookie-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.cookie-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.cookie-card-name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 650;
  color: #FFFFFF;
}
.cookie-card-text {
  font-size: 0.83rem;
  line-height: 1.46;
  color: rgba(203, 216, 230, 0.76);
  margin: 0;
}

/* Toggle Switch */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 25px;
  flex-shrink: 0;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  transition: background-color 0.22s ease, box-shadow 0.22s ease;
}
.cookie-slider::before {
  content: "";
  position: absolute;
  height: 19px;
  width: 19px;
  left: 3px;
  bottom: 3px;
  background-color: #FFFFFF;
  border-radius: 50%;
  transition: transform 0.22s ease;
}
.cookie-switch input:checked + .cookie-slider {
  background-color: var(--accent-primary);
  box-shadow: 0 0 14px rgba(110, 181, 232, 0.55);
}
.cookie-switch input:checked + .cookie-slider::before {
  transform: translateX(21px);
}
.cookie-switch input:disabled + .cookie-slider {
  background-color: rgba(148, 166, 184, 0.35);
  box-shadow: none;
  cursor: not-allowed;
}
.cookie-switch input:disabled + .cookie-slider::before {
  background-color: rgba(226, 234, 242, 0.75);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 620;
  padding: 0.75rem 1.55rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.cookie-btn--secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.cookie-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}
.cookie-btn--primary {
  background: linear-gradient(135deg, #2472B0 0%, #1B5E91 100%);
  color: #FFFFFF;
  border: 1px solid rgba(110, 181, 232, 0.55);
  box-shadow: 0 0 24px rgba(45, 132, 198, 0.52);
}
.cookie-btn--primary:hover {
  background: linear-gradient(135deg, #2D83C6 0%, #216BA3 100%);
  box-shadow: 0 0 30px rgba(110, 181, 232, 0.7);
  transform: translateY(-1px);
}

/* Reduced Motion (#158) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
