/* ===================================================================
   ZAHNARZTPRAXEN NILS TITTEL - COMPREHENSIVE DESIGN SYSTEM & A11Y
   Four Themes:
   1. [data-theme="maritim"]: Fresh Nordic Coastal Teal & Slate (Default)
   2. [data-theme="cambodont"]: High-End Architectural Charcoal & Gold
   3. [data-theme="barrier-free"]: High-Contrast A11y (Color-blind & Visually Impaired)
   4. [data-theme="calm-sage"]: Soft Pastel Sage & Cream (Dental Anxiety Care)
   =================================================================== */

:root {
  /* Default: Variante A (Maritim Teal) - Optimized for WCAG 2.1 AA/AAA 4.5+:1 Contrast */
  --primary: #0f766e;
  --primary-hover: #115e59;
  --primary-light: #ccfbf1;
  --primary-glow: rgba(15, 118, 110, 0.2);
  
  --secondary: #0284c7;
  --secondary-hover: #0369a1;
  
  --accent: #d97706;
  --accent-light: #fef3c7;
  
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --text: #1e293b;
  --text-muted: #475569;
  --text-light: #475569;
  
  --bg: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-soft: #e2e8f0;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --border-focus: #0d9488;
  
  --header-bg: rgba(248, 250, 252, 0.95);
  --header-border: #e2e8f0;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 14px 30px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===================================================================
   VARIANTE B: CAMBODONT HIGH-END STYLE (Charcoal, Espresso & Champagne Gold)
   =================================================================== */
[data-theme="cambodont"] {
  --primary: #c8a97e;
  --primary-hover: #b59365;
  --primary-light: rgba(200, 169, 126, 0.16);
  --primary-glow: rgba(200, 169, 126, 0.25);
  
  --secondary: #a6b1b7;
  --secondary-hover: #8e9a9f;
  
  --accent: #d97706;
  --accent-light: #2d261e;
  
  --dark: #ffffff;
  --dark-soft: #ece9e2;
  --text: #d6d3cd;
  --text-muted: #9c9992;
  --text-light: #726f69;
  
  --bg: #161513;
  --bg-subtle: #1c1b18;
  --bg-soft: #24221e;
  --card-bg: #1e1d1a;
  --border: #33312c;
  --border-focus: #c8a97e;
  
  --header-bg: rgba(22, 21, 19, 0.95);
  --header-border: #2a2925;
  
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.4);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.5);
  --shadow-lg: 0 16px 36px rgba(0,0,0,0.65);
  
  --font-heading: "Playfair Display", Georgia, serif, system-ui;
}

/* ===================================================================
   VARIANTE C: HIGH-CONTRAST & BARRIEREFREI (Farbenblinde & Sehbehinderte)
   =================================================================== */
[data-theme="barrier-free"] {
  --primary: #facc15;
  --primary-hover: #eab308;
  --primary-light: #422006;
  --primary-glow: rgba(250, 204, 21, 0.4);
  
  --secondary: #38bdf8;
  --secondary-hover: #0284c7;
  
  --accent: #facc15;
  --accent-light: #1c1917;
  
  --dark: #ffffff;
  --dark-soft: #ffffff;
  --text: #ffffff;
  --text-muted: #e2e8f0;
  --text-light: #cbd5e1;
  
  --bg: #000000;
  --bg-subtle: #0f172a;
  --bg-soft: #1e293b;
  --card-bg: #09090b;
  --border: #facc15;
  --border-focus: #ffffff;
  
  --header-bg: #000000;
  --header-border: #facc15;
  
  --shadow-sm: none;
  --shadow-md: 0 0 0 2px #facc15;
  --shadow-lg: 0 0 0 3px #facc15;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

[data-theme="barrier-free"] body {
  font-weight: 500;
}

[data-theme="barrier-free"] a,
[data-theme="barrier-free"] button,
[data-theme="barrier-free"] .service-card,
[data-theme="barrier-free"] .location-card,
[data-theme="barrier-free"] .form-control {
  border-width: 2px !important;
}

/* ===================================================================
   VARIANTE D: SANFTES SALBEI & ANGSTFREI (Pastel Soft Calm)
   =================================================================== */
[data-theme="calm-sage"] {
  --primary: #4d7c0f;
  --primary-hover: #3f6212;
  --primary-light: #ecfccb;
  --primary-glow: rgba(77, 124, 15, 0.2);
  
  --secondary: #0284c7;
  --secondary-hover: #0369a1;
  
  --dark: #1e293b;
  --dark-soft: #334155;
  --text: #374151;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  
  --bg: #fcfbf9;
  --bg-subtle: #f7f6f0;
  --bg-soft: #eeede4;
  --card-bg: #ffffff;
  --border: #e5e4dc;
  --border-focus: #4d7c0f;
  
  --header-bg: rgba(252, 251, 249, 0.95);
  --header-border: #e5e4dc;
}

/* ===================================================================
   ACCESSIBILITY & SKIP LINK & FOCUS
   =================================================================== */

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--primary);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 99999;
  box-shadow: var(--shadow-lg);
  transition: top 0.2s ease-out;
}

.skip-link:focus {
  top: 20px;
}

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

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Global Smooth Theme Transition without jarring contrast shocks */
html, body,
header, nav, main, footer, section, div, article, aside,
h1, h2, h3, h4, h5, h6, p, span, a, button, input, select, textarea,
.service-card, .location-card, .form-wrapper, .modal-box, .contact-box,
.membership-card, .stat-card, .top-bar, .main-header, .main-footer,
.loc-tab-btn, .booking-choice-card, .trust-icon, .admin-section {
  transition: background-color 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.25s ease,
              border-color 0.28s ease,
              box-shadow 0.28s ease;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  font-size: 16px;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 74px; /* Space for mobile bottom bar */
  background-color: var(--bg);
  color: var(--text);
}

body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

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

/* WCAG 2.1 Level AA (1.4.1): In-text links must have an underline so they do not rely solely on color */
p a,
label a,
.form-checkbox-group a,
.legal-notice a,
.emergency-box a,
.gdpr-section-box a,
.text-block a,
.modal-header a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  font-weight: 600;
}

p a:hover,
label a:hover,
.form-checkbox-group a:hover,
.legal-notice a:hover,
.emergency-box a:hover,
.gdpr-section-box a:hover {
  text-decoration-thickness: 2.5px;
  color: var(--primary-hover);
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.text-center {
  text-align: center;
}

/* ===================================================================
   LIVE OPEN/CLOSED STATUS INDICATOR (Sprechzeiten-Ampel)
   =================================================================== */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--dark);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-open .status-dot {
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseGreen 2s infinite;
}

.status-pause .status-dot {
  background-color: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.status-closed .status-dot {
  background-color: #ef4444;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ===================================================================
   ANNOUNCEMENT / URGENT VACATION BANNER (Admin Managed)
   =================================================================== */

.announcement-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border-bottom: 1px solid #fcd34d;
  padding: 0.65rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  animation: slideDown 0.3s ease-out;
}

[data-theme="cambodont"] .announcement-banner {
  background: linear-gradient(135deg, #2d2315 0%, #3d301c 100%);
  color: #fde68a;
  border-bottom: 1px solid #5a4729;
}

[data-theme="barrier-free"] .announcement-banner {
  background: #facc15;
  color: #000000;
  border-bottom: 2px solid #ffffff;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.announcement-badge {
  background: #f59e0b;
  color: #ffffff;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  flex-shrink: 0;
}

[data-theme="cambodont"] .announcement-badge {
  background: #c8a97e;
  color: #161513;
}

[data-theme="barrier-free"] .announcement-badge {
  background: #000000;
  color: #facc15;
}

.announcement-text {
  flex-grow: 1;
}

.announcement-dismiss {
  background: transparent;
  border: none;
  font-size: 1.35rem;
  line-height: 1;
  color: inherit;
  cursor: pointer;
  padding: 0 0.5rem;
}

/* ===================================================================
   BUTTONS & UI COMPONENTS
   =================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

[data-theme="cambodont"] .btn-primary {
  background: linear-gradient(135deg, #c8a97e 0%, #b08d5c 100%);
  color: #161513;
  box-shadow: 0 4px 14px rgba(200, 169, 126, 0.3);
}

[data-theme="barrier-free"] .btn-primary {
  background: #facc15;
  color: #000000;
  font-weight: 800;
  border: 2px solid #ffffff;
  box-shadow: none;
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  color: #ffffff;
}

[data-theme="cambodont"] .btn-primary:hover {
  color: #161513;
}

[data-theme="barrier-free"] .btn-primary:hover {
  color: #000000;
  background: #ffffff;
  border-color: #facc15;
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--dark);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-soft);
  border-color: var(--primary);
  transform: translateY(-2px);
}

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

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

.btn-sm {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

.btn-lg {
  font-size: 1.05rem;
  padding: 0.9rem 1.8rem;
}

.btn-block {
  width: 100%;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="barrier-free"] .gradient-text {
  background: none;
  -webkit-text-fill-color: #facc15;
  color: #facc15;
}

/* ===================================================================
   TOP INFO BAR (QUICK-DIAL, I18N & THEME SWITCHER)
   =================================================================== */

.top-bar {
  background-color: var(--bg-subtle);
  color: var(--text);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-locations {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.quick-dial-group {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dial-label {
  font-size: 0.8rem;
  color: #334155;
  font-weight: 600;
}

.dial-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--dark);
  font-weight: 700;
  background-color: var(--bg-soft);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.dial-link:hover {
  background-color: var(--primary-light);
  color: var(--primary-hover);
  border-color: var(--primary);
}

.fax-btn, .fax-pill {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-subtle);
  color: #1e293b;
  border: 1px solid #94a3b8;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  min-height: 32px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.fax-btn:hover, .fax-pill:hover {
  background-color: var(--bg-soft);
  color: var(--primary);
  border-color: var(--primary);
}

/* Ensure accessible distinguishable links inside body text */
p a:not(.btn):not(.dial-link):not(.phone-link) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.separator {
  color: var(--border);
}

.top-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Language Switcher */
.lang-switcher-pill {
  display: inline-flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--card-bg);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Theme Switcher Dropdown / Pill */
.theme-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.65rem;
  transition: var(--transition);
}

.theme-select-wrap:hover,
.theme-select-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.theme-select-wrap select {
  background: transparent;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  font-family: inherit;
  outline: none;
  padding: 0.1rem 0.2rem;
}

/* Universal Select & Option Legibility (fixes unreadable options in dark themes) */
select {
  color-scheme: light dark;
}

select option,
select optgroup {
  background-color: var(--card-bg, #ffffff);
  color: var(--dark, #0f172a);
  font-weight: 500;
  padding: 8px 12px;
}

/* Theme-specific Option Popups */
[data-theme="cambodont"] select {
  color-scheme: dark;
}

[data-theme="cambodont"] select option,
[data-theme="cambodont"] select optgroup {
  background-color: #1e1d1a !important;
  color: #f8fafc !important;
}

[data-theme="cambodont"] select option:checked,
[data-theme="cambodont"] select option:hover {
  background-color: #2e2b24 !important;
  color: #c8a97e !important;
}

[data-theme="barrier-free"] select {
  color-scheme: dark;
}

[data-theme="barrier-free"] select option,
[data-theme="barrier-free"] select optgroup {
  background-color: #000000 !important;
  color: #facc15 !important;
}

[data-theme="barrier-free"] select option:checked {
  background-color: #facc15 !important;
  color: #000000 !important;
}

[data-theme="calm-sage"] select {
  color-scheme: light;
}

[data-theme="calm-sage"] select option,
[data-theme="calm-sage"] select optgroup {
  background-color: #ffffff !important;
  color: #132a1e !important;
}

[data-theme="calm-sage"] select option:checked {
  background-color: #e2ede5 !important;
  color: #2d5a3c !important;
}

[data-theme="maritim"] select {
  color-scheme: light;
}

[data-theme="maritim"] select option,
[data-theme="maritim"] select optgroup {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

[data-theme="maritim"] select option:checked {
  background-color: #f1f5f9 !important;
  color: #0d9488 !important;
}

/* ===================================================================
   MAIN HEADER & NAV
   =================================================================== */

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--header-border);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  max-width: 320px;
}

.brand-vector-wrap {
  width: 220px;
  height: 52px;
  display: flex;
  align-items: center;
}

.brand-vector-wrap svg {
  width: 100%;
  height: 100%;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.6rem;
}

.desktop-nav a {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.5rem 0;
  position: relative;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.desktop-nav a:hover {
  color: var(--primary);
}

.desktop-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 34px;
  height: 30px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: var(--card-bg);
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.75rem 0;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
}

.mobile-drawer-cta {
  margin-top: 1.25rem;
}

@media (min-width: 992px) {
  .desktop-nav {
    display: flex;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* ===================================================================
   HERO SECTION
   =================================================================== */

.hero-section {
  padding: 3.5rem 0 4.5rem;
  background: radial-gradient(circle at top right, var(--primary-glow) 0%, rgba(0, 0, 0, 0) 50%);
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-container {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-badges-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--border);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
}

.hero-heading {
  font-size: 2.35rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  font-family: var(--font-heading);
}

@media (min-width: 768px) {
  .hero-heading {
    font-size: 3.2rem;
  }
}

.hero-lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .hero-trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--bg-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.trust-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--dark);
}

.trust-item span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.hero-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-image-card:hover .hero-img {
  transform: scale(1.03);
}

.hero-floating-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.floating-avatar-group {
  display: flex;
}

.floating-avatar-group img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--card-bg);
  object-fit: cover;
  margin-left: -12px;
}

.floating-avatar-group img:first-child {
  margin-left: 0;
}

.floating-title {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark);
}

.floating-sub {
  display: block;
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* ===================================================================
   STANDORTE SECTION (DUAL LOCATION SWITCHER)
   =================================================================== */

.section {
  padding: 5rem 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #044e46;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.6rem;
  }
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 3rem;
}

.location-switcher-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

@media (min-width: 640px) {
  .location-switcher-tabs {
    grid-template-columns: 1fr 1fr;
  }
}

.loc-tab-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-soft);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.loc-tab-btn .tab-icon {
  font-size: 1.6rem;
}

.loc-tab-btn strong {
  display: block;
  font-size: 1.05rem;
  color: var(--dark);
}

.loc-tab-btn small {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.loc-tab-btn:hover {
  background-color: var(--card-bg);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.loc-tab-btn.active {
  background-color: var(--card-bg);
  border-color: var(--primary);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.loc-tab-btn.active strong {
  color: var(--primary);
}

.location-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  margin-bottom: 2.5rem;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.loc-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .loc-card-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.loc-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.loc-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.loc-details h3 {
  font-size: 1.6rem;
  color: var(--dark);
  font-weight: 800;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
}

.loc-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.loc-meta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.loc-meta-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.loc-meta-list svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.loc-meta-list strong {
  display: block;
  font-size: 0.85rem;
  color: var(--dark);
}

.direct-contact-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.phone-link {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
}

.loc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.loc-visual {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.loc-preview-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.loc-visual:hover .loc-preview-img {
  transform: scale(1.03);
}

.map-card-wrapper {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  overflow: hidden;
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.map-header h4 {
  font-size: 1.15rem;
  color: var(--dark);
  font-family: var(--font-heading);
}

.map-hint {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.map-service-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.privacy-tag {
  font-size: 0.775rem;
  background-color: rgba(16, 185, 129, 0.12);
  color: #10b981;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ===================================================================
   SERVICES SECTION
   =================================================================== */

.leistungen-section {
  background-color: var(--bg-subtle);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-card.highlighted {
  border-color: var(--primary);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.service-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

[data-theme="cambodont"] .service-badge {
  color: #161513;
}

[data-theme="barrier-free"] .service-badge {
  background: #facc15;
  color: #000000;
  border: 1px solid #ffffff;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
}

.service-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.service-features li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.service-features li::before {
  content: "•";
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.financing-banner {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.financing-icon {
  font-size: 2rem;
}

.financing-text strong {
  display: block;
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 0.15rem;
}

.financing-text span {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ===================================================================
   PRAXISLABOR FEATURE SECTION
   =================================================================== */

.praxislabor-section {
  background-color: var(--bg);
}

.labor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .labor-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.labor-content .lead-text {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 2rem;
}

.labor-benefits {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.benefit-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  border: 1px solid var(--border);
}

.benefit-item strong {
  display: block;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

.benefit-item span {
  font-size: 0.925rem;
  color: var(--text-muted);
}

.implant-showcase-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.showcase-img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  margin: 0 auto 1rem;
}

.showcase-caption strong {
  display: block;
  font-size: 1rem;
  color: var(--dark);
}

.showcase-caption span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===================================================================
   TEAM SECTION
   =================================================================== */

.team-section {
  background-color: var(--bg-subtle);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.team-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.team-img-wrap {
  width: 100%;
  height: 280px;
  background-color: var(--bg-soft);
  overflow: hidden;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.team-card:hover .team-img {
  transform: scale(1.04);
}

.team-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.team-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.2rem;
  font-family: var(--font-heading);
}

.team-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.65rem;
}

.team-bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===================================================================
   GALERIE SECTION
   =================================================================== */

.galerie-section {
  background-color: var(--bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 260px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ===================================================================
   SOCIAL SHARING BAR (100% DSGVO-KONFORM SHARIFF PRINZIP)
   =================================================================== */

.share-section {
  background-color: var(--bg-soft);
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.share-header {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.share-buttons-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  background-color: var(--card-bg);
  color: var(--dark);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.share-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.share-btn.btn-whatsapp:hover { border-color: #25d366; color: #25d366; }
.share-btn.btn-telegram:hover { border-color: #229ed9; color: #229ed9; }
.share-btn.btn-facebook:hover { border-color: #1877f2; color: #1877f2; }
.share-btn.btn-x:hover { border-color: #000000; color: #000000; }

/* ===================================================================
   OBFUSCATED EMAIL
   =================================================================== */

.obfuscated-email {
  cursor: pointer;
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

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

/* ===================================================================
   MEMBERSHIPS
   =================================================================== */

.memberships-section {
  background-color: var(--bg-soft);
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.memberships-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.memberships-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.memberships-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: left;
}

@media (min-width: 640px) {
  .memberships-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .memberships-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.membership-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition);
}

.membership-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.membership-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.membership-badge-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--primary-light);
  color: #0f766e;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.membership-card h4 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
}

.membership-full-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.membership-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.membership-benefit {
  background: var(--bg-soft);
  border-left: 3px solid var(--primary);
  padding: 0.65rem 0.75rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.775rem;
  color: var(--text);
  line-height: 1.4;
}

.membership-benefit strong {
  color: var(--dark);
  display: block;
  margin-bottom: 0.15rem;
}

/* ===================================================================
   KONTAKT & FORMULAR (DSGVO)
   =================================================================== */

.kontakt-section {
  background-color: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact-box {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.contact-box h4 {
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.contact-box p {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.contact-box-actions {
  display: flex;
  gap: 0.5rem;
}

.emergency-alert {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(185, 28, 28, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  color: #991b1b;
}

.alert-icon {
  font-size: 1.75rem;
}

.emergency-alert strong {
  display: block;
  font-size: 0.95rem;
  color: #991b1b;
  margin-bottom: 0.25rem;
}

.emergency-alert p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
}

.emergency-link {
  color: #991b1b;
  text-decoration: underline;
  font-weight: 700;
}

.form-wrapper {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.form-wrapper h3 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.form-notice {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--bg);
  color: var(--dark);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
}

.form-checkbox-group input {
  margin-top: 4px;
  cursor: pointer;
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

.form-checkbox-group label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.form-feedback-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-feedback-message.success {
  display: block;
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ===================================================================
   STICKY MOBILE BAR (SMARTPHONE FOCUS)
   =================================================================== */

.sticky-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  padding: 0.5rem 0.75rem;
  gap: 0.5rem;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
}

@media (min-width: 768px) {
  .sticky-mobile-bar {
    display: none;
  }
}

.mobile-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.45rem 0.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--border);
  cursor: pointer;
}

.mobile-bar-btn.btn-call {
  background-color: var(--bg-soft);
  color: var(--dark);
}

.mobile-bar-btn.btn-doctolib {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

[data-theme="cambodont"] .mobile-bar-btn.btn-doctolib {
  color: #161513;
}

[data-theme="barrier-free"] .mobile-bar-btn.btn-doctolib {
  color: #000000;
  background: #facc15;
}

/* ===================================================================
   FOOTER
   =================================================================== */

.main-footer {
  background-color: var(--bg-subtle);
  color: var(--text);
  padding: 4.5rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-logo {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--dark);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-privacy-note {
  font-size: 0.8rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
}

.footer-col h4 {
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 1.25rem;
  font-family: var(--font-heading);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a, .link-btn {
  color: var(--text-muted);
  background: transparent;
  border: none;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.footer-links a:hover, .link-btn:hover {
  color: var(--primary);
  text-decoration: underline;
}

.hidden-cockpit-link {
  background: transparent;
  border: none;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hidden-cockpit-link:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  cursor: default;
}

/* ===================================================================
   MODALS: PERFECT SCROLL & NO-OVERFLOW FIX
   The background is locked (body.modal-open), the modal backdrop scrolls,
   and the modal box has max-height with internal overflow-y auto.
   =================================================================== */

html.modal-open,
body.modal-open {
  overflow: hidden !important;
  height: 100% !important;
  touch-action: none;
  overscroll-behavior: contain;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  animation: fadeIn 0.2s ease-out;
  box-sizing: border-box;
}

.modal-backdrop.active {
  display: flex;
}

.modal-box {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 3rem);
  max-height: calc(100dvh - 3rem);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  margin: auto;
  box-sizing: border-box;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 480px) {
  .modal-backdrop {
    padding: 1rem 0.5rem;
  }
  .modal-box {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }
}

.legal-modal-box {
  max-width: 820px;
}

.admin-modal-box {
  width: 95vw;
  max-width: 1180px;
  height: 88vh;
  max-height: 920px;
  min-width: 350px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 2rem;
  resize: both;
  overflow: auto;
  position: relative;
  transition: width 0.2s ease, height 0.2s ease, max-width 0.2s ease;
}

.admin-modal-box.fullscreen {
  width: 98vw !important;
  max-width: 98vw !important;
  height: 96vh !important;
  max-height: 96vh !important;
  resize: none !important;
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header-actions {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
}

.modal-icon-btn, .modal-close {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-icon-btn:hover, .modal-close:hover {
  background-color: var(--dark);
  color: var(--bg);
}

.modal-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.1em;
}

.modal-header h3 {
  font-size: 1.45rem;
  color: var(--dark);
  margin: 0.25rem 0 0.5rem;
  font-family: var(--font-heading);
  padding-right: 2rem;
  word-break: break-word;
}

.modal-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  word-break: break-word;
}

/* Doctolib Booking Choice Cards - Non-overflowing responsive grid */
.booking-choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 520px) {
  .booking-choice-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.booking-choice-card {
  background-color: var(--bg-soft);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: var(--transition);
  text-decoration: none;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.booking-choice-card:hover {
  background-color: var(--card-bg);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.choice-icon {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.booking-choice-card h4 {
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 0.2rem;
  font-family: var(--font-heading);
  word-break: break-word;
}

.booking-choice-card p {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  word-break: break-word;
}

.booking-choice-card .btn {
  width: 100%;
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
}

.modal-footer-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* Route Navigation Picker Apps Grid */
.route-apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  width: 100%;
}

@media (min-width: 480px) {
  .route-apps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.route-app-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background-color: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  min-width: 0;
}

.route-app-card:hover {
  border-color: var(--primary);
  background-color: var(--card-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.route-app-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.route-app-card strong {
  display: block;
  font-size: 0.95rem;
  color: var(--dark);
}

.route-app-card small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Fax Modal */
.fax-display-box {
  background-color: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.fax-number-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: 0.05em;
}

/* Admin Cockpit Dashboard */
.admin-section {
  background-color: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.admin-section h4 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  max-height: 85vh;
  text-align: center;
  margin: auto;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}

.lightbox-caption {
  color: #ffffff;
  font-size: 1rem;
  margin-top: 0.75rem;
}

/* Accessible Toast Notification */
.a11y-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--dark, #0f172a);
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md, 12px);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  border: 1px solid var(--border);
}

.a11y-toast.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 600px) {
  .a11y-toast {
    bottom: 5.5rem;
    left: 1rem;
    right: 1rem;
    text-align: center;
  }
}

/* ===================================================================
   ADMIN COCKPIT TABS & INBOX
   =================================================================== */

.admin-tab-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.admin-tab-btn {
  padding: 0.65rem 1.25rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.admin-tab-btn:hover {
  color: var(--dark);
}

.admin-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.inbox-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 420px;
  overflow-y: auto;
  margin-top: 1rem;
}

.inbox-item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: var(--transition);
}

.inbox-item.completed {
  opacity: 0.7;
  background: var(--card-bg);
  border-color: var(--border);
}

.inbox-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.inbox-patient-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
}

.inbox-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.inbox-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.inbox-badge.new {
  background: #fef3c7;
  color: #b45309;
}

.inbox-badge.done {
  background: #dcfce7;
  color: #15803d;
}

.inbox-body {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--card-bg);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.inbox-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.inbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.25rem;
}

/* ===================================================================
   GDPR / DSGVO PATIENT SELF-SERVICE MODAL
   =================================================================== */

.gdpr-section-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.gdpr-section-box h4 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.gdpr-data-preview {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-family: monospace;
  font-size: 0.75rem;
  max-height: 140px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0.75rem 0;
  color: var(--text);
}

/* ===================================================================
   ADMIN COCKPIT ENHANCEMENTS: HTML VALIDATOR, 2FA, TXT REMINDER, RESIZE
   =================================================================== */

.admin-grid-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .admin-grid-2col {
    grid-template-columns: 1fr 1fr;
  }
}

.admin-sticky-bar {
  position: sticky;
  bottom: 0;
  background: var(--card-bg);
  padding: 1rem 0 0.5rem 0;
  border-top: 2px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  z-index: 25;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.resizable-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  line-height: 1.5;
  width: 100%;
}

.resizable-input {
  resize: horizontal;
  min-width: 200px;
  max-width: 100%;
}

/* HTML Live Validator & Preview Card */
.html-validator-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 0.75rem;
}

.html-validator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.html-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.html-status-pill.valid {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.html-status-pill.invalid {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.html-status-pill.neutral {
  background: var(--bg-soft);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.html-error-list {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  list-style: disc inside;
}

.html-live-preview-box {
  background: var(--primary-light);
  color: var(--dark);
  border: 1.5px dashed var(--primary);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  min-height: 48px;
}

.html-toolbar-btn {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-family: monospace;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.html-toolbar-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* 2FA Card & Live Authenticator Simulator */
.two-factor-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
}

.totp-code-display {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--primary);
  background: var(--card-bg);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--primary);
  display: inline-block;
  margin: 0.5rem 0;
  user-select: all;
}

.totp-timer-bar {
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 1s linear;
}

/* TXT Files Maintenance Card */
.txt-maintenance-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
}

.txt-file-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.txt-file-row:last-child {
  border-bottom: none;
}



