/* ==========================================================================
   KINDERARZTPRAXIS DR. MED. SYLVIA TEUBNER - DESIGN SYSTEM & STYLES
   Fonts: Playfair Display (Headings) + Overused Grotesk / Plus Jakarta Sans (Body)
   Theme: Light Premium Medical Green (Mint, Sage, Emerald, Ivory, Slate)
   ========================================================================== */

/* 1. IMPORTS & FONT FACES */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

@font-face {
  font-family: 'Overused Grotesk';
  src: local('Overused Grotesk'), local('Plus Jakarta Sans'), url('https://fonts.gstatic.com/s/plusjakartasans/v8/L0x8DF4xlVMF-BfR8bXMIhJHg45mwgGE65Gv7vBv2pE.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
}

/* 2. ROOT VARIABLES & DESIGN TOKENS */
:root {
  /* Brand Colors (Medical Green Theme) */
  --primary: #2D6A4F;
  --primary-hover: #1B4332;
  --primary-light: #D8F3DC;
  --primary-soft: #E8F5E9;
  
  --accent-mint: #52B788;
  --accent-emerald: #74C69D;
  --accent-warm: #E07A5F;
  
  /* Neutral Palette */
  --bg-body: #F8FAF8;
  --bg-card: #FFFFFF;
  --bg-alt: #F0F5F2;
  
  --text-main: #1B2D2A;
  --text-muted: #4A635D;
  --text-light: #718E87;
  --text-white: #FFFFFF;
  
  /* Borders & Shadows */
  --border-light: rgba(45, 106, 79, 0.08);
  
  --shadow-sm: 0 4px 10px rgba(27, 45, 42, 0.03);
  --shadow-md: 0 10px 25px rgba(27, 45, 42, 0.06);
  --shadow-lg: 0 20px 40px rgba(27, 45, 42, 0.08);

  /* Typography Tokens */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Overused Grotesk', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing & Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  
  --container-width: 1200px;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s ease;
}

/* 3. BASE RESET & GLOBAL STYLES */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

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

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

img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 4. LAYOUT UTILITIES */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.align-center { align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.text-center { text-align: center; }

.section-padding {
  padding: 5rem 0;
}

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

.icon-sm { width: 18px; height: 18px; display: inline-block; vertical-align: middle; }

/* 5. TOP ANNOUNCEMENT BAR */
.top-bar {
  background-color: var(--primary);
  color: var(--text-white);
  padding: 0.5rem 0;
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  z-index: 100;
}

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

.top-bar a {
  color: #FFFFFF;
  text-decoration: underline;
  font-weight: 600;
}

.top-bar-info {
  display: flex;
  gap: 1.5rem;
  opacity: 0.95;
}

.btn-top-booking {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background var(--transition-fast);
}

.btn-top-booking:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* 6. MAIN HEADER & NAVIGATION */
.main-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  background: rgba(248, 250, 248, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.doctor-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  display: block;
  line-height: 1.2;
}

.doctor-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-mint);
  transition: width var(--transition-fast);
}

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

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

.mobile-menu-toggle {
  display: none;
  background: transparent;
  color: var(--primary);
  font-size: 1.5rem;
  padding: 0.4rem;
}

/* 7. BUTTON SYSTEM WITH ALIGNED ICONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.btn svg, .btn i {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex-shrink: 0;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-emerald {
  background-color: var(--primary);
  color: #FFFFFF;
}

.btn-emerald:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--primary-soft);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

/* 8. HERO SECTION */
.hero-section {
  position: relative;
  width: 100%;
  height: 65vh;
  min-height: 480px;
  max-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #11281F;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.75;
}

.hero-shadow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(17, 40, 31, 0.4) 0%, rgba(17, 40, 31, 0.85) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-text-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
  color: #FFFFFF;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 2rem auto;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* 9. USP HIGHLIGHT BANNER */
.usp-banner-wrapper {
  position: relative;
  z-index: 10;
  padding: 2.5rem 0 1rem 0;
  background-color: var(--bg-body);
}

.usp-banner {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  border: 1px solid var(--border-light);
  width: 100%;
}

.usp-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.4rem;
}

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

.usp-content h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--text-main);
}

.usp-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 10. PAGE HERO BANNER FOR SUBPAGES */
.page-hero {
  background: linear-gradient(135deg, #1A352B 0%, #2D6A4F 100%);
  color: #FFFFFF;
  padding: 3.5rem 0 3rem 0;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: #FFFFFF;
  margin-bottom: 0.8rem;
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin: 0 auto;
}

/* 11. SECTION HEADERS & BADGES */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-soft);
  color: var(--primary);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.badge-warning {
  background-color: #FFF3E0;
  color: #E65100;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--text-main);
}

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

.lead-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

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

/* 12. FEATURE ITEMS LIST WITH FIXED ICON ALIGNMENT */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  font-size: 1rem;
  color: var(--text-main);
}

.feature-item svg, .feature-item i {
  width: 20px;
  height: 20px;
  color: var(--accent-mint);
  flex-shrink: 0;
  margin-top: 3px;
  display: inline-block;
}

/* Clean Image Card Layout */
.praxis-image-wrapper {
  position: relative;
  width: 100%;
}

.clean-image-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.clean-image-container {
  width: 100%;
  height: 380px;
  background-color: #E2E8F0;
  overflow: hidden;
}

.clean-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.clean-image-container img:hover {
  transform: scale(1.02);
}

.clean-image-caption {
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
}

.clean-image-caption h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

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

/* 13. LEISTUNGEN & TABS */
.services-tabs {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.tab-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  background-color: var(--bg-card);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid var(--border-light);
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: border-color var(--transition-fast);
}

.service-card:hover {
  border-color: var(--accent-mint);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-list li {
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.service-list li svg, .service-list li i {
  width: 16px;
  height: 16px;
  color: var(--accent-mint);
  flex-shrink: 0;
  display: inline-block;
}

/* 14. PRAXISTEAM */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.team-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.team-card-doctor {
  border-color: var(--accent-mint);
  background: linear-gradient(180deg, #FFFFFF 0%, #F6FCF9 100%);
}

.team-avatar-wrapper {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.team-avatar-placeholder {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-mint) 100%);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.6rem;
}

.team-role-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background-color: var(--primary-soft);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.6rem;
}

.team-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.team-specialty {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

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

.memory-card-box {
  background: #1B2D2A;
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  border: 1px solid var(--border-light);
}

.memory-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.memory-content h3 {
  color: #FFFFFF;
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.memory-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* 15. ELTERN-INFOS & EMERGENCY */
.emergency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.emergency-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.emergency-card-danger {
  background: #FFF5F5;
  border-color: #FEB2B2;
}

.emergency-card-danger .em-icon {
  background-color: #E53E3E;
  color: #FFFFFF;
}

.em-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-soft);
  color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.em-icon svg, .em-icon i {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.em-content h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.em-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.emergency-card-danger .em-number {
  color: #C53030;
}

.em-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.faq-accordion {
  max-width: 760px;
  margin: 0 auto;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.faq-accordion h3 {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-question {
  width: 100%;
  padding: 1.1rem 0;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: left;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.faq-item.open .faq-answer {
  max-height: 250px;
  padding-bottom: 1.1rem;
}

.faq-item.open .faq-question i, .faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

/* 16. SPRECHZEITEN & ANFAHRT */
.hours-box, .location-box {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.hours-note {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
}

.hours-table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
}

.hours-table tr.highlight-row td {
  background-color: var(--primary-soft);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 4px;
}

.badge-accent {
  background-color: var(--accent-warm);
  color: #FFFFFF;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  margin-left: 0.4rem;
}

.hours-subnote {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1.75rem;
}

.contact-direct-card {
  background-color: var(--bg-alt);
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.contact-direct-card h4 {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.contact-direct-card p {
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.location-address {
  background-color: var(--primary-soft);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
  border-left: 3px solid var(--primary);
}

.address-main {
  font-size: 0.95rem;
  color: var(--primary);
  line-height: 1.5;
}

.travel-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.travel-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.tr-icon {
  width: 36px;
  height: 36px;
  background-color: var(--bg-alt);
  color: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px;
}

.tr-icon svg, .tr-icon i {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.travel-card h5 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.travel-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.parking-future {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.parking-future svg, .parking-future i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--primary);
}

/* 17. FOOTER */
.main-footer {
  background-color: #11221F;
  color: #FFFFFF;
  padding-top: 3.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.text-white { color: #FFFFFF; }
.opacity-75 { opacity: 0.75; }

.footer-desc {
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 340px;
  font-size: 0.85rem;
}

.footer-links h4, .footer-legal h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #FFFFFF;
}

.footer-links ul, .footer-legal ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a, .footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.footer-links a:hover, .footer-legal a:hover {
  color: var(--accent-mint);
}

.footer-bottom {
  padding: 1.25rem 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* 18. INTERACTIVE MODAL WIDGETS */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 20, 0.65);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 92%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2.2rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(15px);
  transition: transform var(--transition-smooth);
}

.modal-backdrop.active .modal-container {
  transform: translateY(0);
}

.modal-lg {
  max-width: 760px;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-alt);
  font-size: 1.35rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.modal-header {
  margin-bottom: 1.75rem;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.booking-wizard {
  position: relative;
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid var(--bg-alt);
  margin-bottom: 1.75rem;
  padding-bottom: 0.6rem;
}

.step {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
}

.step.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  margin-bottom: -0.7rem;
  padding-bottom: 0.6rem;
}

.step-pane {
  display: none;
}

.step-pane.active {
  display: block;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

.booking-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.75rem;
}

.option-card input {
  display: none;
}

.option-box {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.option-card input:checked + .option-box {
  border-color: var(--primary);
  background-color: var(--primary-soft);
}

.option-box i {
  color: var(--primary);
  margin-bottom: 0.1rem;
}

.option-box strong {
  font-size: 0.9rem;
  color: var(--text-main);
}

.option-box span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-family: var(--font-body);
  font-size: 0.92rem;
  background-color: var(--bg-body);
  margin-bottom: 1rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.3rem 0.8rem;
}

.full-width {
  grid-column: span 2;
}

.gap-md { gap: 1.25rem; }

.booking-success {
  display: none;
  text-align: center;
  padding: 1.5rem 0;
}

.booking-success.active {
  display: block;
}

.success-icon {
  font-size: 3.5rem;
  color: var(--accent-mint);
  margin-bottom: 0.8rem;
}

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

.legal-text-content h4 {
  margin: 1.25rem 0 0.4rem 0;
  color: var(--text-main);
}

/* 18. RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .emergency-grid { grid-template-columns: repeat(1, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .top-bar-info { display: none; }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-links.mobile-open {
    display: flex;
  }
  .mobile-menu-toggle { display: block; }
  .grid-4, .services-grid, .team-grid, .booking-options { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .full-width { grid-column: span 1; }
  
  /* Hero Section Responsiveness (Avoid Content Clipping) */
  .hero-section {
    height: auto;
    min-height: auto;
    padding: 4rem 0 3rem 0;
  }
  .hero-subtitle {
    margin-bottom: 1.5rem;
  }
  
  /* Header Crowd Management on Mobile */
  .header-container {
    height: 70px;
  }
  .doctor-title {
    font-size: 1.05rem;
    white-space: nowrap;
  }
  .doctor-sub {
    font-size: 0.75rem;
    white-space: nowrap;
  }
  #openBookingNavBtn {
    display: none !important; /* Hide redundant booking button on mobile header */
  }
  .btn-top-booking {
    display: none !important; /* Hide top bar button on mobile */
  }
  .top-bar-content {
    justify-content: center;
  }
  
  /* General Layout Enhancements */
  .section-padding {
    padding: 3rem 0;
  }
  .grid-2 {
    gap: 2rem;
  }
  .usp-banner-wrapper {
    padding: 1.5rem 0 0.5rem 0;
  }
  .clean-image-container {
    height: 260px;
  }
  
  /* Stacked Image Captions */
  .clean-image-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1rem 1.25rem;
  }
  
  /* Stacked Footer Copyright Columns */
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }
}

/* Specific viewports for smaller mobile layouts */
@media (max-width: 600px) {
  /* Responsive Stacked Sprechzeiten Table */
  .hours-table,
  .hours-table tbody,
  .hours-table tr,
  .hours-table td {
    display: block;
    width: 100%;
  }
  .hours-table tr {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
  }
  .hours-table td {
    padding: 0.15rem 0;
    border: none;
  }
  .hours-table td:first-child {
    font-size: 1rem;
    color: var(--primary);
  }
  .badge-accent {
    display: inline-block;
    margin-top: 0.25rem;
    margin-left: 0;
    white-space: nowrap;
  }
}

@media (max-width: 576px) {
  .modal-container {
    padding: 1.5rem 1.25rem;
  }
  .contact-direct-card p {
    flex-wrap: wrap;
  }
  .contact-direct-card a {
    word-break: break-all;
  }
}
