/**
 * CSS Custom Properties & Design System
 * dr-huettl.de Dermatology Practice
 *
 * Color Usage: 60-30-10 Rule
 * - 60% Primary (backgrounds, large areas)
 * - 30% Secondary (cards, sections)
 * - 10% Accent (CTAs, highlights)
 *
 * Spacing: 8px base unit (all margins divisible by 4 or 8)
 */

:root {
  /* Colors - aligned with the official practice logo */
  --color-ink: #263a4d;
  --color-heading: #194BAA;
  --color-blue: #1f6f9f;
  --color-blue-soft: #547390;
  --color-red: #c9120f;
  --color-red-dark: #9e0d0b;
  --color-red-light: #e94b43;
  --color-paper: #fbfaf8;
  --color-surface: #ffffff;
  --color-border-logo: #d9e1e7;

  --color-primary: var(--color-ink);
  --color-primary-dark: #172636;
  --color-primary-light: var(--color-blue-soft);

  --color-secondary: #64748b;     /* Slate - elegant & professionell */
  --color-secondary-dark: #475569;
  --color-secondary-light: #94a3b8;

  --color-accent: var(--color-red);
  --color-accent-dark: var(--color-red-dark);
  --color-accent-light: var(--color-red-light);

  /* Neutrals - Warme Töne statt kalt */
  --color-text: var(--color-ink);
  --color-text-light: #43586c;
  --color-text-muted: #647789;
  --color-background: var(--color-paper);
  --color-background-alt: #f2f6f8;
  --color-background-white: var(--color-surface);
  --color-border: var(--color-border-logo);

  /* Status */
  --color-success: #059669;
  --color-error: #dc2626;

  /* Typography */
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 2rem;      /* 32px */
  --font-size-4xl: 2.75rem;   /* 44px - etwas größer */

  --line-height: 1.7;
  --line-height-tight: 1.25;

  /* Spacing (8px base) - ausgewogen */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.5rem;    /* 24px */
  --space-6: 2rem;      /* 32px */
  --space-8: 3rem;      /* 48px */
  --space-10: 4rem;     /* 64px */
  --space-12: 5rem;     /* 80px */

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;

  /* Borders & Shadows - weichere, modernere Schatten */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 10px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.06), 0 20px 48px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.12);

  /* Transitions - etwas langsamer für Eleganz */
  --transition-fast: 180ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 280ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 450ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Focus */
  --focus-ring: 0 0 0 3px rgba(31, 111, 159, 0.28);

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-overlay: 1000;
  --z-modal: 9999;
  --z-modal-top: 10000;
  --z-toast: 10001;
}

/* ============================================
   Reset & Base Styles
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background-color: var(--color-background);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

.is-hidden {
  display: none !important;
}

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

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

a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

h1, h2, h3, h4, h5, h6 {
  line-height: var(--line-height-tight);
  color: var(--color-heading);
  font-weight: 600;
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

p {
  margin-bottom: var(--space-4);
}

/* ============================================
   Accessibility
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--color-primary);
  color: white;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  z-index: 1000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

/* ============================================
   Header
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-background);
  box-shadow: var(--shadow-sm);
  z-index: 100;
}

.header__container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  text-decoration: none;
}

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

.header__logo-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
}

.header__logo-name {
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.header__logo-tagline {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text-light);
}

.header__nav {
  display: flex;
  align-items: center;
}

.header__menu {
  display: flex;
  list-style: none;
  gap: var(--space-6);
}

.header__link {
  color: var(--color-text);
  font-weight: 500;
  padding: var(--space-2) 0;
  position: relative;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-fast);
}

.header__link:hover::after,
.header__link--active::after {
  width: 100%;
}

/* Scroll-spy: current section highlighting */
.header__link--current::after {
  width: 100%;
}

.header__link--current {
  color: var(--color-primary);
}

.header__link--active {
  color: var(--color-primary);
}

/* Hide mobile-only CTA on desktop */
.header__menu-cta-item {
  display: none;
}

.header__menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
}

.header__menu-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  position: relative;
}

.header__menu-icon::before,
.header__menu-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: inherit;
  left: 0;
}

.header__menu-icon::before { top: -8px; }
.header__menu-icon::after { top: 8px; }

.header__cta {
  background: var(--color-accent);
  color: white;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(201, 18, 15, 0.3);
}

.header__cta:hover {
  background: var(--color-accent-light);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 18, 15, 0.4);
}

@media (min-width: 769px) and (max-width: 1024px) {
  .header__logo {
    gap: var(--space-2);
  }

  .header__logo-icon {
    width: 40px;
    height: 40px;
  }

  .header__logo-name {
    font-size: var(--font-size-base);
  }

  .header__logo-tagline {
    display: none;
  }

  .header__menu {
    gap: var(--space-4);
  }

  .header__cta {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
  }
}

/* Mobile Menu */
@media (max-width: 768px) {
  .header__menu-toggle {
    display: block;
  }

  .header__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-background);
    padding: var(--space-4);
    gap: 0;
    box-shadow: var(--shadow-md);
    display: none;
  }

  .header__menu--open {
    display: flex;
  }

  .header__menu li {
    border-bottom: 1px solid var(--color-border);
  }

  .header__menu li:last-child {
    border-bottom: none;
  }

  .header__link {
    display: block;
    padding: var(--space-4);
  }

  /* Mobile menu CTA link (logo-red button with white text) */
  .header__menu-cta-item {
    display: block;
    border-bottom: none !important;
  }

  .header__menu-cta {
    display: block;
    padding: var(--space-4) var(--space-5);
    margin: var(--space-4) var(--space-4) var(--space-2);
    background: var(--color-accent);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-align: center;
    transition: background var(--transition-fast), transform var(--transition-fast);
  }

  .header__menu-cta:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
  }

  .header__cta {
    display: none;
  }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  padding: calc(var(--header-height) + var(--space-10)) var(--space-4) var(--space-10);
  background: linear-gradient(135deg, #263a4d 0%, #172636 50%, #263a4d 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Dezentes Hintergrund-Pattern */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
}

.hero__container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-5);
  color: white;
  font-weight: 700;
  letter-spacing: 0;
}

.hero__subtitle {
  font-size: var(--font-size-xl);
  opacity: 0.92;
  margin-bottom: var(--space-8);
  font-weight: 400;
}

.hero__cta {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-lg);
  font-weight: 600;
  transition: all var(--transition-base);
  box-shadow: 0 4px 14px rgba(201, 18, 15, 0.4);
}

.hero__cta:hover {
  background: var(--color-accent-light);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(201, 18, 15, 0.5);
}

@media (max-width: 768px) {
  .hero__title {
    font-size: var(--font-size-3xl);
  }

  .hero__subtitle {
    font-size: var(--font-size-lg);
  }
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: var(--space-10) var(--space-4);
}

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

.section__container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section__header::before {
  content: '';
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: 2px;
  margin-bottom: var(--space-4);
}

.section__title {
  margin-bottom: var(--space-4);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--color-heading);
  font-size: var(--font-size-2xl);
}

.section__title--large {
  font-size: var(--font-size-3xl);
}

.section__intro {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.8;
}


/* ============================================
   Team Cards
   ============================================ */

.team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.team-cards--detailed {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .team-cards--detailed {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .team-cards--detailed {
    grid-template-columns: 1fr;
  }
}

.team-card {
  background: linear-gradient(135deg, #263a4d 0%, #172636 50%, #263a4d 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  position: relative;
  color: white;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
  pointer-events: none;
  z-index: 0;
  border-radius: var(--radius-xl);
}

.team-card > * {
  position: relative;
  z-index: 1;
}

.team-card:hover {
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(201, 18, 15, 0.3);
  transform: translateY(-4px);
  border-color: rgba(201, 18, 15, 0.5);
}

/* Subtle corner arrow indicator for clickable team cards */
.team-card__arrow {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  opacity: 0.8;
  transition: all 0.25s ease;
  z-index: 10;
}

.team-card:hover .team-card__arrow {
  opacity: 1;
  background: var(--color-accent);
  color: white;
  transform: translateX(3px);
}

/* Touch devices: always show arrow clearly */
@media (hover: none) {
  .team-card__arrow {
    opacity: 1;
    background: var(--color-accent);
    color: white;
  }
}

.team-card__image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center 20%;
  background-color: var(--color-background-alt);
  display: block;
  flex-shrink: 0;
}

.team-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
}

.team-card__content {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.team-card__name {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
  font-weight: 700;
  color: white;
}

.team-card__title {
  font-size: var(--font-size-sm);
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.team-card__specialization {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-3);
  min-height: 1.4em;
}

.team-card__bio {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-4);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(var(--font-size-sm) * 1.6 * 4);
}

.team-card__footer {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.team-card__languages {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-4);
}

.team-card__footer .btn {
  display: block;
  width: calc(100% - 64px);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  border-radius: var(--radius-md);
}

/* "Mehr Informationen" link in team card footer */
.team-card__more-link {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  margin-top: var(--space-3);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.team-card__more-link:hover {
  color: var(--color-accent-light);
  text-decoration: underline;
}

.section__actions {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ============================================
   Contact Page Layout
   ============================================ */

.page-header--spaced {
  padding-top: calc(var(--header-height) + var(--space-8));
}

.contact-section__container {
  max-width: 1440px;
}

.contact-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: start;
}

.contact-arrival-card,
.contact-info-card {
  background: var(--color-background-white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-info__divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-1) 0;
}

.contact-info__icon {
  margin-right: var(--space-2);
}

.contact-info__block h2,
.contact-info__block h3 {
  margin-bottom: var(--space-3);
  color: var(--color-primary);
  font-size: var(--font-size-lg);
  display: flex;
  align-items: center;
}

.contact-info__block p {
  margin-bottom: var(--space-2);
  line-height: 1.6;
}

.contact-address {
  font-style: normal;
  line-height: 1.8;
}

.contact-arrival-photo {
  position: relative;
  height: clamp(360px, 30vw, 460px);
  min-height: 0;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-background-alt);
}

.contact-arrival-photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.contact-arrival-photo::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(23, 38, 54, 0), rgba(23, 38, 54, 0.72));
}

.contact-arrival-photo figcaption {
  position: absolute;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 1;
  display: grid;
  gap: 2px;
  color: #fff;
}

.contact-arrival-photo figcaption span {
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--font-size-sm);
}

/* ============================================
   Contact Map (OpenStreetMap)
   ============================================ */

.contact-map {
  margin-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-5);
}

.contact-map__container {
  width: 100%;
  height: 250px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.contact-map__link {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  font-weight: 500;
}

.contact-map__link:hover {
  text-decoration: underline;
}

/* Leaflet Popup Styling */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.leaflet-popup-content {
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  margin: 12px 16px;
}

/* Map Consent Placeholder */
.map-consent {
  width: 100%;
  height: 250px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-background-alt) 0%, var(--color-border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--color-border);
}

.map-consent__content {
  text-align: center;
  padding: var(--space-4);
}

.map-consent__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-3);
  opacity: 0.7;
}

.map-consent__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-3);
}

.map-consent__info-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  cursor: pointer;
  padding: var(--space-2);
  margin-bottom: var(--space-3);
  display: block;
  width: 100%;
  transition: color var(--transition-fast);
}

.map-consent__info-btn:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.map-consent__btn {
  margin-top: var(--space-2);
}

/* Info Panel */
.map-consent__info-panel {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  right: var(--space-3);
  background: var(--color-background-white);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
  text-align: left;
  z-index: 10;
  animation: fadeIn 0.2s ease;
}

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

.map-consent__info-panel h4 {
  font-size: var(--font-size-base);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.map-consent__info-panel p {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-2);
  line-height: 1.5;
}

.map-consent__info-panel p:last-of-type {
  margin-bottom: 0;
}

.map-consent__info-panel a {
  color: var(--color-primary);
}

.map-consent__info-close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  background: none;
  border: none;
  font-size: var(--font-size-xl);
  color: var(--color-text-muted);
  cursor: pointer;
  padding: var(--space-1);
  line-height: 1;
  transition: color var(--transition-fast);
}

.map-consent__info-close:hover {
  color: var(--color-text);
}

.contact-form-wrapper {
  background: var(--color-background-white);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.contact-form-wrapper h2 {
  margin-bottom: var(--space-5);
  color: var(--color-primary);
}

@media (max-width: 900px) {
  .page-header--spaced {
    padding-top: calc(var(--header-height) + var(--space-10) + var(--space-8));
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .contact-form-wrapper {
    order: -1;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .contact-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  }

  .contact-form-wrapper {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .contact-arrival-photo {
    height: 360px;
  }
}

/* ============================================
   Contact Form
   ============================================ */

.contact-form {
  max-width: 100%;
}

.contact-form .privacy-modal-trigger {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: var(--color-accent);
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
}

.contact-form .privacy-modal-trigger:hover,
.contact-form .privacy-modal-trigger:focus-visible {
  color: var(--color-accent-dark);
}

.privacy-modal__full-link {
  margin-top: var(--space-4);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.form-label--required::after {
  content: ' *';
  color: var(--color-error);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: var(--font-size-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--focus-ring);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.form-checkbox input {
  margin-top: 4px;
}

.form-hint {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.form-error {
  font-size: var(--font-size-sm);
  color: var(--color-error);
  margin-top: var(--space-2);
}

/* Honeypot (hidden) */
.form-honeypot {
  position: absolute;
  left: -9999px;
}

.btn {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.btn:hover {
  background: var(--color-primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn:disabled,
.btn:disabled:hover {
  background: var(--color-secondary);
  color: white;
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
  box-shadow: none;
}

.btn--secondary {
  background: var(--color-secondary);
  box-shadow: 0 2px 8px rgba(100, 116, 139, 0.25);
}

.btn--secondary:hover {
  background: var(--color-secondary-dark);
  box-shadow: 0 4px 16px rgba(100, 116, 139, 0.35);
}

.btn--accent {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 2px 8px rgba(201, 18, 15, 0.3);
}

.btn--accent:hover {
  background: var(--color-accent-light);
  box-shadow: 0 4px 16px rgba(201, 18, 15, 0.4);
}

.btn--outline-accent {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  box-shadow: none;
}

.btn--outline-accent:hover {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 4px 16px rgba(201, 18, 15, 0.4);
}

/* Form Messages */
.form-message {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.form-message--success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-message--error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: linear-gradient(180deg, #263a4d 0%, #172636 100%);
  color: white;
  padding: var(--space-12) var(--space-4) var(--space-8);
}

.footer__container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

.footer__title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-5);
  color: white;
  font-weight: 700;
}

.footer__address {
  font-style: normal;
  line-height: 1.8;
  opacity: 0.9;
}

.footer__address a {
  color: white;
  opacity: 0.9;
}

.footer__address a:hover {
  opacity: 1;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: var(--space-2);
}

.footer__links a {
  color: white;
  opacity: 0.9;
}

.footer__links a:hover {
  opacity: 1;
}

/* Footer hours - aligned times */
.footer__hours p {
  display: flex;
  margin-bottom: var(--space-1);
}

.footer__hours strong {
  min-width: 2.5em;
}

.footer__hours-note {
  margin-top: var(--space-2);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
}

/* Admin hint in footer */
.footer__admin-hint {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-6);
}

.footer__admin-hint-content {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  color: white;
}

.footer__admin-hint-icon {
  flex-shrink: 0;
}

.footer__admin-hint a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  font-weight: 600;
}

.footer__admin-hint a:hover {
  color: white;
  text-decoration-thickness: 2px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--space-6);
  text-align: center;
  opacity: 0.7;
  font-size: var(--font-size-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
}

.footer__bottom p {
  margin: 0;
}

.footer__admin-login {
  background: transparent;
  border: none;
  color: white;
  opacity: 0.3;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.footer__admin-login:hover {
  opacity: 0.7;
}

/* Modal styles moved to /css/modal.css (shared with admin panel) */

/* ============================================
   Login Modal
   ============================================ */

.login-modal {
  /* Extends: .modal-backdrop.modal-backdrop--dark.modal-backdrop--top */
}

.login-modal--visible {
  opacity: 1;
  visibility: visible;
}

.login-modal__content {
  background: white;
  border-radius: 16px;
  padding: 32px;
  width: calc(100% - 32px);
  max-width: 320px;
  text-align: center;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.2s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.login-modal--visible .login-modal__content {
  transform: translateY(0) scale(1);
}

.login-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.login-modal__close:hover {
  background: #f3f4f6;
  color: #374151;
}

.login-modal__icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #263a4d 0%, #172636 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: white;
}

.login-modal__title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 20px;
}

.login-modal__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-modal__field {
  position: relative;
}

.login-modal__input {
  width: 100%;
  padding: 12px 44px 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  text-align: center;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.login-modal__input:focus {
  outline: none;
  border-color: var(--color-primary, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.login-modal__toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.login-modal__toggle:hover {
  background: #f3f4f6;
  color: #374151;
}

.login-modal__toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.login-modal__toggle-icon {
  width: 18px;
  height: 18px;
}

.login-modal__toggle-icon--hide {
  display: none;
}

.login-modal__toggle[aria-pressed="true"] .login-modal__toggle-icon--show {
  display: none;
}

.login-modal__toggle[aria-pressed="true"] .login-modal__toggle-icon--hide {
  display: block;
}

.login-modal__error {
  color: #dc2626;
  font-size: 13px;
  margin: 0;
  min-height: 18px;
}

.login-modal__submit {
  background: linear-gradient(135deg, #263a4d 0%, #172636 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.login-modal__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

.login-modal__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   Legal Pages
   ============================================ */

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding-top: calc(var(--header-height) + var(--space-8));
  overflow-wrap: anywhere;
}

.legal-content h1 {
  margin-bottom: var(--space-6);
}

.legal-content h2 {
  font-size: var(--font-size-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.legal-content p,
.legal-content ul {
  margin-bottom: var(--space-4);
}

.legal-content ul {
  padding-left: var(--space-6);
}

/* ============================================
   Loading State
   ============================================ */

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12);
  color: var(--color-text-muted);
}

.loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: var(--space-4);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   Editable Content (Admin Mode)
   ============================================ */

[data-editable] {
  position: relative;
}

.admin-mode [data-editable]:hover {
  outline: 2px dashed var(--color-accent);
  outline-offset: 4px;
  cursor: pointer;
}

.admin-mode [data-editable]:hover::after {
  content: '✏️ Bearbeiten';
  position: absolute;
  top: -24px;
  right: 0;
  background: var(--color-accent);
  color: white;
  font-size: var(--font-size-xs);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 768px) {
  .section {
    padding: var(--space-8) var(--space-4);
  }

  .section.page-header--spaced {
    padding-top: calc(var(--header-height) + var(--space-10) + var(--space-8));
  }

  .section.legal-content {
    padding-top: calc(var(--header-height) + var(--space-8));
  }

  .section__header {
    margin-bottom: var(--space-6);
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ============================================
   Modal
   ============================================ */

.modal-overlay {
  /* Extends: .modal-backdrop.modal-backdrop--dark.modal-backdrop--padded */
  z-index: var(--z-overlay);
}

.modal-overlay--visible {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  transform: translateY(-20px);
  transition: transform 0.2s ease;
  box-shadow: var(--shadow-lg);
}

.modal-overlay--visible .modal {
  transform: translateY(0);
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-gray-200);
}

.modal__title {
  font-size: var(--font-size-lg);
  margin: 0;
}

.modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-gray-500);
  padding: var(--space-1);
  line-height: 1;
  transition: color 0.2s ease;
}

.modal__close:hover {
  color: var(--color-gray-800);
}

.modal__body {
  padding: var(--space-5);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal__body h2 {
  font-size: var(--font-size-base);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.modal__body h2:first-child {
  margin-top: 0;
}

.modal__body p {
  margin-bottom: var(--space-3);
  color: var(--color-gray-600);
  font-size: var(--font-size-sm);
}

/* ============================================
   Privatpraxis Badge
   ============================================ */

.privatpraxis-badge {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
  border: none;
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-6);
  margin-bottom: var(--space-10);
  box-shadow: var(--shadow-md);
}

.privatpraxis-badge__icon {
  font-size: 2rem;
  flex-shrink: 0;
  background: var(--color-primary);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.privatpraxis-badge__content {
  flex: 1;
}

.privatpraxis-badge__title {
  display: block;
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-2);
}

.privatpraxis-badge__text {
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .privatpraxis-badge {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .privatpraxis-badge__icon {
    font-size: 2rem;
  }
}

/* ============================================
   Services Grid (Compact Cards)
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
  grid-auto-rows: 1fr;
}

.service-card {
  background: var(--color-background-white);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  text-align: center;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(15, 23, 42, 0.12);
}

.service-card__icon-wrapper {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-background-alt);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-card__icon {
  font-size: 1.75rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
  color: var(--color-primary);
}

.service-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.service-card__title {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--color-text);
  line-height: 1.35;
}

.service-card__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

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

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .service-card {
    padding: var(--space-3);
  }

  .service-card__icon-wrapper {
    width: 52px;
    height: 52px;
  }

  .service-card__icon {
    font-size: 1.5rem;
  }

  .service-card__title {
    font-size: var(--font-size-sm);
  }

  .service-card__text {
    display: none;
  }
}

/* ============================================
   Team Card Image Placeholder
   ============================================ */

.team-card__image-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  padding: var(--space-6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.team-card__image-wrapper .team-card__image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  border: 4px solid color-mix(in srgb, var(--color-red) 30%, transparent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.team-card__placeholder {
  width: 200px;
  height: 200px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  text-transform: uppercase;
  border-radius: 50%;
  border: 4px solid color-mix(in srgb, var(--color-red) 30%, transparent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.team-card__placeholder--visible,
.team-card__image.is-hidden + .team-card__placeholder {
  display: flex;
}

.loading-message {
  text-align: center;
  color: var(--color-text-muted);
  padding: var(--space-8);
  font-style: italic;
}

/* ============================================
   Hero Intro Text (expanded hero)
   ============================================ */

.hero__intro {
  font-size: var(--font-size-base);
  max-width: 700px;
  margin: 0 auto var(--space-8);
  opacity: 0.9;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .hero__intro {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-6);
  }
}

/* ============================================
   Team Detail Modal (Read-only view for all visitors)
   ============================================ */

.team-detail-modal {
  /* Extends: .modal-backdrop.modal-backdrop--dark.modal-backdrop--padded */
  transition-duration: 0.25s;
}

.team-detail-modal--visible {
  opacity: 1;
  visibility: visible;
}

.team-detail-modal__content {
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.25s ease;
  position: relative;
}

.team-detail-modal--visible .team-detail-modal__content {
  transform: translateY(0) scale(1);
}

.team-detail-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: white;
  border: none;
  border-radius: 50%;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.15s ease;
}

.team-detail-modal__close:hover {
  background: #f3f4f6;
  color: #111827;
  transform: scale(1.1);
}

.team-detail-modal__header {
  display: flex;
  gap: 24px;
  padding: 32px 32px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.team-detail-modal__image-wrapper {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
}

.team-detail-modal__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-detail-modal__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 600;
  color: #9ca3af;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.team-detail-modal__title-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-detail-modal__name {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
  line-height: 1.2;
}

.team-detail-modal__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary, #3b82f6);
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.team-detail-modal__specialization {
  font-size: 15px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.team-detail-modal__body {
  padding: 24px 32px;
}

.team-detail-modal__section {
  margin-bottom: 24px;
}

.team-detail-modal__section:last-child {
  margin-bottom: 0;
}

.team-detail-modal__section h3 {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0 0 12px;
}

.team-detail-modal__section p {
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
  margin: 0;
}

.team-detail-modal__section--meta {
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.team-detail-modal__section--meta p {
  font-size: 14px;
  color: #6b7280;
}

.team-detail-modal__section--meta strong {
  color: #374151;
}

.team-detail-modal__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.team-detail-modal__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
}

.team-detail-modal__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary, #3b82f6);
  font-weight: 600;
}

.team-detail-modal__list li:last-child {
  margin-bottom: 0;
}

.team-detail-modal__footer {
  padding: 20px 32px 32px;
  text-align: center;
}

.team-detail-modal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--color-accent, #c9120f);
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(201, 18, 15, 0.3);
}

.team-detail-modal__cta:hover {
  background: var(--color-accent-dark, #9e0d0b);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(201, 18, 15, 0.4);
}

@media (max-width: 768px) {
  .team-detail-modal__header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px 20px;
  }

  .team-detail-modal__image-wrapper {
    width: 120px;
    height: 120px;
  }

  .team-detail-modal__body {
    padding: 20px;
  }

  .team-detail-modal__footer {
    padding: 16px 20px 24px;
  }

  .team-detail-modal__name {
    font-size: 20px;
  }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  .header,
  .hero__cta,
  .header__cta,
  .skip-link,
  .gallery-section {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: black;
  }

  .section {
    padding: 1rem 0;
  }
}

/* ============================================
   Sync Overlay & Error Toast
   ============================================ */

.sync-overlay {
  /* Extends: .modal-backdrop.modal-backdrop--top */
}

.sync-overlay--visible {
  opacity: 1;
  visibility: visible;
}

.sync-overlay__content {
  background: white;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.sync-overlay__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--color-primary, #2d5a7b);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 1rem;
}

.sync-overlay__text {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text, #374151);
  font-weight: 500;
}

/* Error Toast */
.sync-error-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  z-index: 10001;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.sync-error-toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.sync-error-toast__content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #dc2626;
  color: white;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 90vw;
}

.sync-error-toast__icon {
  flex-shrink: 0;
}

.sync-error-toast__text {
  font-size: 0.9375rem;
  font-weight: 500;
}

.sync-error-toast__close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: white;
  opacity: 0.8;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: 0.5rem;
}

.sync-error-toast__close:hover {
  opacity: 1;
}

/* ============================================
   Express CMS v2 Brand Refresh
   ============================================ */

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(251, 250, 248, 0.95)),
    var(--color-paper);
}

a {
  color: var(--color-blue);
}

a:hover {
  color: var(--color-red-dark);
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: 0;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 225, 231, 0.85);
  box-shadow: 0 10px 30px rgba(38, 58, 77, 0.06);
  backdrop-filter: blur(14px);
}

.header__logo-icon {
  border-radius: 8px;
}

.header__logo-name {
  color: var(--color-ink);
}

.header__logo-tagline {
  color: var(--color-blue-soft);
  letter-spacing: 0;
}

.header__link::after,
.header__link--current::after,
.header__link--active::after {
  background: var(--color-red);
}

.header__cta,
.header__menu-cta,
.hero__cta,
.btn--accent,
.login-modal__submit {
  background: var(--color-red);
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(201, 18, 15, 0.22);
}

.header__cta:hover,
.header__menu-cta:hover,
.hero__cta:hover,
.btn--accent:hover,
.login-modal__submit:hover {
  background: var(--color-red-dark);
  color: #fff;
  box-shadow: 0 14px 28px rgba(201, 18, 15, 0.25);
}

.btn--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-ink);
  font-weight: 600;
}

.btn--secondary:hover {
  border-color: rgba(31, 111, 159, 0.35);
  color: var(--color-blue);
  background: #f7fbfd;
}

.hero {
  padding: calc(var(--header-height) + var(--space-5)) var(--space-4) var(--space-8);
  background: linear-gradient(180deg, #fff 0%, var(--color-paper) 100%);
  color: var(--color-text);
  text-align: left;
}

.hero::before {
  display: none;
}

.hero__container {
  max-width: var(--max-width);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.84fr);
  gap: var(--space-10);
  align-items: stretch;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__eyebrow,
.service-hero__eyebrow {
  margin-bottom: var(--space-4);
  color: var(--color-red);
  font-size: var(--font-size-sm);
  font-weight: 700;
}

.hero__title {
  max-width: 680px;
  color: var(--color-heading);
  font-size: 3.15rem;
  line-height: 1.08;
  margin-bottom: var(--space-5);
  letter-spacing: 0;
}

.hero__subtitle {
  max-width: 640px;
  color: var(--color-blue);
  font-size: var(--font-size-xl);
  font-weight: 600;
  white-space: pre-line;
  opacity: 1;
  margin-bottom: var(--space-5);
}

.hero__intro {
  max-width: 680px;
  color: var(--color-text-light);
  font-size: var(--font-size-base);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.hero__secondary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  color: var(--color-blue);
  font-weight: 700;
}

.hero__aside {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero__media {
  position: relative;
  height: 280px;
  min-height: 0;
  flex: 0 0 auto;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(38, 58, 77, 0.16);
  background: var(--color-background-alt);
}

.hero__media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.hero__media-note {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4);
  border-radius: 0 0 8px 8px;
  color: #fff;
  background: var(--color-red-dark);
}

.hero__media-note strong {
  font-size: var(--font-size-base);
}

.hero__media-note span {
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--font-size-sm);
}

.hero__hours {
  margin-bottom: var(--space-6);
}

.hero__hours-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-heading);
  margin-bottom: var(--space-2);
}

.hero__hours-table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: var(--space-2);
}

.hero__hours-table th,
.hero__hours-table td {
  padding: 2px 0;
  font-size: var(--font-size-sm);
  text-align: left;
  color: var(--color-text);
  font-weight: 700;
}

.hero__hours-table th {
  font-weight: 700;
  padding-right: var(--space-4);
  color: var(--color-text);
  white-space: nowrap;
}

.hero__hours-note {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  font-style: italic;
}

.hero__services {
  flex: 1 1 auto;
  min-height: 0;
  padding: var(--space-4);
  background: var(--color-paper);
  border-radius: 8px;
  margin-top: var(--space-3);
  border: 1px solid rgba(38, 58, 77, 0.08);
}

.hero__services--mobile {
  display: none;
}

.hero__services-link {
  display: none;
}

.hero__services-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-heading);
  margin-bottom: var(--space-3);
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero__services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-3);
}

.hero__service {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  border-radius: 6px;
  color: var(--color-text);
  font-size: var(--font-size-sm);
  overflow: hidden;
}

.hero__service-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
}

.hero__service-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.hero__services-more {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--color-blue);
  font-weight: 600;
  text-decoration: none;
}

.hero__services-more:hover {
  text-decoration: underline;
}

.section {
  padding: var(--space-12) var(--space-4);
}

.section.page-header--spaced {
  padding-top: calc(var(--header-height) + var(--space-8));
}

@media (max-width: 900px) {
  .section.page-header--spaced {
    padding-top: calc(var(--header-height) + var(--space-10) + var(--space-8));
  }
}

.section--alt,
.gallery-section {
  background: #f3f7f8;
}

.section__header::before {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-red));
}

.section__title {
  color: var(--color-heading);
  letter-spacing: 0;
}

.section__intro {
  color: var(--color-text-light);
}

.section__header--left {
  align-items: flex-start;
  text-align: left;
}

.gallery-carousel__slide,
.gallery-carousel__slide img {
  border-radius: 8px;
}

.gallery-carousel__slide {
  box-shadow: 0 14px 34px rgba(38, 58, 77, 0.12);
}

.gallery-section__header {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.gallery-section__header .section__intro {
  text-align: center;
}

.privatpraxis-badge {
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-red);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(38, 58, 77, 0.09);
}

.privatpraxis-badge__icon {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #f7fbfd;
  border: 1px solid var(--color-border);
}

.privatpraxis-badge__title {
  color: var(--color-ink);
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-5);
}

.service-card {
  position: relative;
  text-align: left;
  border-radius: 8px;
  border: 1px solid rgba(217, 225, 231, 0.9);
  box-shadow: 0 12px 32px rgba(38, 58, 77, 0.08);
  padding: var(--space-5);
  min-height: 245px;
}

.service-card:hover {
  border-color: rgba(31, 111, 159, 0.32);
  box-shadow: 0 18px 42px rgba(38, 58, 77, 0.13);
}

.service-card__icon-wrapper {
  width: 58px;
  height: 58px;
  margin: 0 0 var(--space-4);
  border-radius: 8px;
  background: #f7fbfd;
  border-color: var(--color-border);
}

.service-card__icon-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card__title {
  color: var(--color-ink);
  font-size: var(--font-size-lg);
}

.service-card__text {
  color: var(--color-text-light);
  margin-bottom: var(--space-5);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  color: var(--color-blue);
  font-weight: 700;
}

.service-card__link svg {
  transition: transform var(--transition-fast);
}

.service-flyer-section {
  background: var(--color-background-white);
  padding: var(--space-4) var(--space-4) var(--space-12);
}

.service-flyer {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.service-flyer a {
  display: block;
}

.service-flyer img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(38, 58, 77, 0.12);
}

.service-card:hover .service-card__link svg {
  transform: translateX(3px);
}

.team-card {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(38, 58, 77, 0.10);
}

.team-card::before {
  display: none;
}

.team-card:hover {
  border-color: rgba(31, 111, 159, 0.32);
  box-shadow: 0 22px 46px rgba(38, 58, 77, 0.14);
}

.team-card__image-wrapper {
  background: linear-gradient(180deg, #f7fbfd 0%, #eef5f7 100%);
}

.team-card__image-wrapper .team-card__image,
.team-card__placeholder {
  border-color: var(--color-red);
}

.team-card__name {
  color: var(--color-heading);
}

.team-card__title {
  color: var(--color-red);
  letter-spacing: 0;
}

.team-card__specialization,
.team-card__bio,
.team-card__languages,
.team-card__more-link {
  color: var(--color-text-light);
}

.team-card__footer {
  border-top-color: var(--color-border);
}

.team-card__footer .btn {
  border-color: var(--color-red);
  color: var(--color-red);
}

.team-card__footer .btn:hover {
  background: var(--color-red);
  color: #fff;
}

.footer {
  background: var(--color-ink);
}

.footer__admin-hint-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--color-blue);
  color: #fff;
  font-weight: 700;
}

.contact-info__icon,
.map-consent__icon {
  width: 34px;
  height: 34px;
  display: inline-block;
  vertical-align: middle;
  margin-right: var(--space-2);
}

.map-consent__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
}

.contact-arrival-card,
.contact-info-card,
.contact-form-wrapper,
.map-consent {
  border-radius: 8px;
  border: 1px solid var(--color-border);
  box-shadow: 0 16px 42px rgba(38, 58, 77, 0.08);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.breadcrumb a {
  color: var(--color-blue);
  font-weight: 600;
}

.service-hero {
  padding: calc(var(--header-height) + var(--space-6)) var(--space-4) var(--space-10);
  background: linear-gradient(180deg, #fff 0%, var(--color-paper) 100%);
}

.service-hero__container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.service-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--space-8);
  align-items: end;
}

.service-hero__content {
  max-width: 780px;
}

.service-hero__icon {
  width: 72px;
  height: 72px;
  margin-bottom: var(--space-5);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #f7fbfd;
}

.service-hero__image {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.service-hero__image--icon {
  object-fit: contain;
}

.service-hero__title {
  max-width: 760px;
  margin-bottom: var(--space-5);
  color: var(--color-heading);
  font-size: 3rem;
  line-height: 1.1;
}

.service-hero__intro {
  max-width: 720px;
  margin-bottom: var(--space-6);
  color: var(--color-text-light);
  font-size: var(--font-size-lg);
  line-height: 1.75;
}

.service-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.service-hero__aside,
.service-detail-facts,
.service-detail-note {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: 0 16px 40px rgba(38, 58, 77, 0.08);
}

.service-hero__aside {
  padding: var(--space-5);
  border-left: 5px solid var(--color-red);
}

.service-hero__aside-label {
  margin-bottom: var(--space-2);
  color: var(--color-red);
  font-weight: 700;
}

.service-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--space-8);
  align-items: start;
}

.service-detail-copy {
  max-width: 760px;
}

.service-detail-copy h2,
.service-detail-facts h2 {
  margin-bottom: var(--space-4);
  color: var(--color-heading);
}

.service-detail-copy p,
.service-detail-note p {
  color: var(--color-text-light);
  line-height: 1.8;
}

.service-detail-copy__text {
  max-width: 68ch;
  white-space: pre-line;
}

.service-detail-note {
  margin-top: var(--space-6);
  padding: var(--space-5);
}

.service-detail-note h3 {
  margin-bottom: var(--space-2);
  color: var(--color-blue);
}

.service-detail-facts {
  padding: var(--space-5);
}

.service-detail-facts dl {
  display: grid;
  gap: var(--space-4);
}

.service-detail-facts div {
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.service-detail-facts div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.service-detail-facts dt {
  margin-bottom: var(--space-1);
  color: var(--color-red);
  font-size: var(--font-size-sm);
  font-weight: 700;
}

.service-detail-facts dd {
  color: var(--color-text);
}

.related-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.related-service-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 92px;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-ink);
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(38, 58, 77, 0.07);
}

.related-service-card:hover {
  border-color: rgba(31, 111, 159, 0.34);
  color: var(--color-blue);
  transform: translateY(-2px);
}

.related-service-card__image {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

.related-service-card__image--icon {
  object-fit: contain;
}

@media (max-width: 1024px) {
  .hero__container,
  .service-hero__layout,
  .service-detail-layout {
    grid-template-columns: 1fr;
  }

  .hero__aside {
    max-width: 640px;
  }

  .hero__media,
  .hero__media img {
    height: 280px;
    min-height: 0;
  }

  .service-hero__aside,
  .service-detail-facts {
    max-width: 640px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: calc(var(--header-height) + var(--space-3)) var(--space-4) var(--space-5);
  }

  .hero__container {
    gap: var(--space-4);
  }

  .hero__title,
  .service-hero__title {
    font-size: 2.25rem;
  }

  .hero__subtitle,
  .service-hero__intro {
    font-size: var(--font-size-base);
  }

  .hero__eyebrow {
    margin-bottom: var(--space-2);
  }

  .hero__title,
  .hero__subtitle,
  .hero__intro {
    margin-bottom: var(--space-4);
  }

  .hero__intro {
    display: block;
    overflow: visible;
  }

  .hero__actions,
  .service-hero__actions {
    align-items: stretch;
    gap: var(--space-2);
  }

  .hero__cta,
  .service-hero__actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero__secondary {
    justify-content: center;
    min-height: 36px;
    padding: var(--space-1) var(--space-3);
  }

  .hero__aside {
    order: -1;
  }

  .hero__media,
  .hero__media img {
    height: 180px;
    min-height: 0;
  }

  .hero__media-note {
    padding: var(--space-2) var(--space-3);
  }

  .hero__services--desktop {
    display: none;
  }

  .hero__services--mobile {
    display: block;
    margin-top: var(--space-3);
    padding: var(--space-3);
  }

  .hero__services--mobile .hero__services-grid {
    gap: var(--space-1);
    margin-bottom: var(--space-2);
  }

  .hero__services--mobile .hero__service {
    min-width: 0;
    padding: var(--space-1);
    font-size: var(--font-size-sm);
  }

  .hero__services--mobile .hero__service-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .hero__services--mobile .hero__services-more {
    font-size: var(--font-size-sm);
  }

  .hero__services-link {
    display: none;
  }

  .section {
    padding: var(--space-8) var(--space-4);
  }

  .services-grid,
  .related-services__grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .service-card__text {
    display: block;
  }

  .privatpraxis-badge {
    text-align: left;
  }

}

/* Team group photo + roster */
.team-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border-logo);
}

.team-group__figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.team-group__image {
  width: 100%;
  height: auto;
  display: block;
}

.team-group__heading {
  color: var(--color-heading);
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-4);
  text-align: center;
}

.team-group__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.team-group__member {
  line-height: 1.55;
  color: var(--color-text);
}

.team-group__name {
  font-weight: 700;
  color: var(--color-heading);
}

.team-group__role {
  font-weight: 600;
}
