/* ============================================
   MKG PRAXIS DR. DR. KÖNIG
   Aesthetic: Refined Medical Luxury
   Fonts: Cormorant Garamond (display) + Plus Jakarta Sans (body)
   Palette: Warm cream · Deep navy · Gold accents
   ============================================ */

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  --bg: #f8f6f1;
  --bg-deep: #0f1923;
  --surface: #ffffff;
  --surface-alt: #f0ede6;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --text: #1c2331;
  --text-soft: #5a6577;
  --text-muted: #8b95a3;
  --border: #e2ded6;
  --border-light: #edeae4;
  --accent: #2d5a7b;
  --accent-hover: #1e4560;
  --accent-light: rgba(45, 90, 123, 0.07);
  --gold: #b8956a;
  --gold-light: #d4b896;
  --gold-dark: #96754a;
  --danger: #b83232;
  --danger-light: #fef2f0;

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --text-display: clamp(2.5rem, 5vw, 3.75rem);
  --text-h2: clamp(1.75rem, 3vw, 2.5rem);
  --text-h3: clamp(1.1rem, 1.5vw, 1.3rem);
  --text-body: clamp(1rem, 1.05vw, 1.1rem);
  --text-small: 0.875rem;
  --text-xs: 0.75rem;

  --leading-tight: 1.15;
  --leading-body: 1.72;

  --section-pad: clamp(5rem, 9vw, 8rem);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(15, 25, 35, 0.04);
  --shadow: 0 4px 24px rgba(15, 25, 35, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 25, 35, 0.08);
  --shadow-xl: 0 24px 64px rgba(15, 25, 35, 0.1);
  --shadow-glow: 0 0 40px rgba(45, 90, 123, 0.15);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.35s var(--ease);
  --transition-slow: 0.7s var(--ease);

  /* Fallback bis script.js Headerhöhe setzt (--anchor-offset) */
  --anchor-offset-fallback: clamp(150px, 16vh, 240px);
}

/* ---------- KEYFRAME ANIMATIONS ---------- */

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

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

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes clipRevealUp {
  from { clip-path: inset(100% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes clipRevealLeft {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes heroZoom {
  from { transform: scale(1.08); filter: brightness(0.7); }
  to   { transform: scale(1); filter: brightness(1); }
}

@keyframes heroTextReveal {
  from { opacity: 0; transform: translateY(40px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(2deg); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) translateX(0); }
  33%      { transform: translateY(-12px) translateX(6px); }
  66%      { transform: translateY(6px) translateX(-8px); }
}

@keyframes floatReverse {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(14px) rotate(-3deg); }
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.7; transform: scale(1.05); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes drawLine {
  from { height: 0; }
  to   { height: 100%; }
}

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

@keyframes modalIn {
  0%   { opacity: 0; transform: scale(0.85) translateY(30px); filter: blur(4px); }
  60%  { opacity: 1; transform: scale(1.02) translateY(-4px); filter: blur(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

@keyframes slideInBottom {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@keyframes borderGlow {
  0%, 100% { border-color: var(--border); }
  50%      { border-color: var(--gold-light); }
}

@keyframes tickerFade {
  0%   { opacity: 0; transform: translateY(8px); }
  15%  { opacity: 1; transform: translateY(0); }
  85%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-8px); }
}

/* ---------- RESET & BASE ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--anchor-offset, var(--anchor-offset-fallback)) + env(safe-area-inset-top, 0px));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  padding-top: 110px;
  max-width: 100%;
  min-width: 0;
}

#main {
  position: relative;
  background-color: var(--bg);
  min-width: 0;
  overflow-x: clip;
}

main section[id],
main article[id],
main li[id],
main#main {
  /*
   * Nur html scroll-padding-top trägt --anchor-offset (siehe oben).
   * Zusätzliches scroll-margin hier würde sich mit scroll-padding summieren
   * und die Sektion zu weit nach unten schieben.
   */
  scroll-margin-top: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--leading-tight);
}

p {
  line-height: var(--leading-body);
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ---------- GRAIN OVERLAY ---------- */

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
  mix-blend-mode: multiply;
}

/* ---------- SCROLL-TRIGGERED REVEALS ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
  will-change: opacity, transform;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Split-word animation — only hidden inside [data-reveal] containers */
.split-word {
  display: inline-block;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

[data-reveal] .split-word {
  opacity: 0;
  transform: translateY(12px);
}

[data-reveal].revealed .split-word,
.hero .split-word {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="fade-left"] {
  transform: translateX(-40px);
}

[data-reveal="fade-left"].revealed {
  transform: translateX(0);
}

[data-reveal="fade-right"] {
  transform: translateX(40px);
}

[data-reveal="fade-right"].revealed {
  transform: translateX(0);
}

[data-reveal="scale"] {
  transform: scale(0.9);
}

[data-reveal="scale"].revealed {
  transform: scale(1);
}

[data-reveal="clip"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s var(--ease);
}

[data-reveal="clip"].revealed {
  clip-path: inset(0 0 0 0);
}

/* Stagger delays — hero overlay */
.hero-overlay > .container > [data-reveal]:nth-child(2) { transition-delay: 0.2s; }
.hero-overlay > .container > [data-reveal]:nth-child(3) { transition-delay: 0.4s; }
.hero-overlay > .container > [data-reveal]:nth-child(4) { transition-delay: 0.6s; }
.hero-overlay > .container > [data-reveal]:nth-child(5) { transition-delay: 0.8s; }
.hero-overlay > .container > [data-reveal]:nth-child(6) { transition-delay: 1s; }

/* Stagger — action cards */
.action-grid [data-reveal]:nth-child(1) { transition-delay: 0.1s; }
.action-grid [data-reveal]:nth-child(2) { transition-delay: 0.2s; }
.action-grid [data-reveal]:nth-child(3) { transition-delay: 0.3s; }

/* Stagger — service cards */
.service-grid .card:nth-child(1) { transition-delay: 0.05s; }
.service-grid .card:nth-child(2) { transition-delay: 0.15s; }
.service-grid .card:nth-child(3) { transition-delay: 0.25s; }
.service-grid .card:nth-child(4) { transition-delay: 0.35s; }

.service-grid .card li:nth-child(1) { transition-delay: 0.1s; }
.service-grid .card li:nth-child(2) { transition-delay: 0.15s; }
.service-grid .card li:nth-child(3) { transition-delay: 0.2s; }
.service-grid .card li:nth-child(4) { transition-delay: 0.25s; }
.service-grid .card li:nth-child(5) { transition-delay: 0.3s; }
.service-grid .card li:nth-child(6) { transition-delay: 0.35s; }

/* Stagger — timeline */
.timeline .timeline-step:nth-child(1) { transition-delay: 0.05s; }
.timeline .timeline-step:nth-child(2) { transition-delay: 0.15s; }
.timeline .timeline-step:nth-child(3) { transition-delay: 0.25s; }
.timeline .timeline-step:nth-child(4) { transition-delay: 0.35s; }
.timeline .timeline-step:nth-child(5) { transition-delay: 0.45s; }

/* ---------- SKIP LINK ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- CONTAINER ---------- */

.container {
  width: min(1200px, calc(100% - 2rem));
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
}

/* ---------- SCROLL PROGRESS ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 1002;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--accent), var(--gold));
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
  transition: width 0.15s ease;
  border-radius: 0 2px 2px 0;
}

/* ---------- HEADER / NAV ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  max-width: 100vw;
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(28, 35, 49, 0.08);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.site-header.scrolled {
  border-bottom-color: var(--text-muted);
  box-shadow: 0 1px 4px rgba(28, 35, 49, 0.08), 0 2px 12px rgba(15, 25, 35, 0.06);
  background: rgba(255, 255, 255, 0.92);
}

.nav-wrapper {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-inline: clamp(0.5rem, 1.5vw, 1rem);
  margin-inline: 0;
  box-sizing: border-box;
}

.brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  min-width: 0;
  flex-basis: auto;
  transition: opacity var(--transition);
}

.brand:hover { opacity: 0.8; }

.brand-logo {
  flex-shrink: 0;
  object-fit: contain;
  height: clamp(55px, 8vw, 110px);
  width: auto;
  mix-blend-mode: multiply;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
  overflow-wrap: break-word;
}

.brand-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(0.6rem, 2.2vw, 0.8rem);
  text-transform: uppercase;
  letter-spacing: clamp(0.08em, 1.5vw, 0.2em);
  color: var(--gold);
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
}

.brand-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.15rem, 0.5vw, 0.5rem);
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
  flex-basis: auto;
  min-width: min-content;
  max-width: 100%;
}

.nav-wrapper.nav-wrap-below .main-nav {
  flex-basis: 100%;
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
  justify-content: flex-start;
}

.main-nav a,
.submenu-btn,
.main-nav button {
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--accent);
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.4rem clamp(0.4rem, 0.8vw, 0.65rem);
  font-size: inherit;
  position: relative;
  transition: color var(--transition), background var(--transition);
  border-radius: var(--radius-sm);
  white-space: normal;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  min-height: 36px;
  box-sizing: border-box;
}

.main-nav a:hover,
.submenu-btn:hover,
.main-nav button:hover {
  color: #4a5568;
}

.main-nav a.active {
  color: var(--accent);
  font-weight: 600;
}

/* Animated underline on nav links */
.main-nav a::after,
.submenu-btn::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.2rem;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.main-nav a:hover::after,
.submenu-btn:hover::after,
.main-nav a:focus-visible::after,
.submenu-btn:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-emergency {
  color: var(--danger) !important;
  font-weight: 600 !important;
}

.nav-emergency:hover {
  background: var(--danger-light) !important;
}

/* Language Switcher */
.lang-btn {
  font-size: 1.2rem !important;
  line-height: 1;
  padding: 0.4rem 0.5rem !important;
  border-radius: 50% !important;
  min-width: 38px;
  min-height: 38px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.lang-btn::after { display: none !important; }

.lang-menu {
  min-width: 180px !important;
  right: 0;
  left: auto !important;
  transform: translateY(8px) !important;
}

.has-submenu.lang-switcher:hover .lang-menu,
.has-submenu.lang-switcher:focus-within .lang-menu,
.has-submenu.lang-switcher.open .lang-menu {
  transform: translateY(0) !important;
}

.lang-menu a {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
}

.lang-flag {
  flex-shrink: 0;
  vertical-align: middle;
  display: inline-block;
  width: 20px;
  height: 14px;
}

/* Submenu */
.has-submenu {
  position: relative;
  padding-bottom: 0.3rem;
  margin-bottom: -0.3rem;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  min-width: min(260px, calc(100vw - 2rem));
  padding: 0.5rem;
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease), transform 0.3s var(--ease);
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu.open .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.submenu a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.submenu a::after { display: none; }

.submenu a:hover {
  background: var(--accent-light);
  color: var(--accent);
}

/* Menu Toggle (mobile) */
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  position: relative;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- HERO ---------- */

.hero {
  --hero-a: 0, 63, 107;
  --hero-b: 45, 90, 123;
  --hero-c: 0, 120, 180;
}

.hero {
  position: relative;
  min-height: 75vh;
  max-height: 85vh;
  display: grid;
  align-items: stretch;
  overflow: hidden;
  overflow-x: clip;
  background: none;
}

/* Hero background – gleiche Farbe wie restliche Website */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg);
}

.hero-bg::before,
.hero-bg::after {
  display: none;
}

.hero-blob {
  display: none;
}

.hero-grid {
  display: none;
}

@keyframes heroDrift {
  0%   { transform: translate3d(-8%, -6%, 0) rotate(-8deg) scale(1.08); }
  50%  { transform: translate3d(8%, 5%, 0) rotate(6deg) scale(1.15); }
  100% { transform: translate3d(-8%, -6%, 0) rotate(-8deg) scale(1.08); }
}

@keyframes heroGrain {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-6%, 4%); }
  50%  { transform: translate(4%,-6%); }
  75%  { transform: translate(-2%,-2%); }
  100% { transform: translate(0,0); }
}

@keyframes heroFloat1 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(22vmin, -10vmin, 0) scale(1.12); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes heroFloat2 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-18vmin, 18vmin, 0) scale(1.14); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes heroFloat3 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(16vmin, 14vmin, 0) scale(1.15); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg::before, .hero-bg::after, .hero-blob { animation: none !important; }
}

.hero-image {
  width: 100%;
  min-height: 75vh;
  max-height: 85vh;
  object-fit: cover;
  animation: heroZoom 1.8s var(--ease) forwards;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  align-items: start;
  padding-top: clamp(2rem, 8vh, 5rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
  color: var(--text);
}

.hero-overlay::before {
  display: none;
}


.hero-overlay > .container {
  position: relative;
  z-index: 2;
}

/* Goldregen-Linie links neben dem Hero-Text */
.hero-gold-rain {
  position: absolute;
  top: 0.4rem;
  height: 15cm;
  max-height: calc(100% - 0.8rem);
  width: 2px;
  left: max(-1.1rem, -2vw);
  transform: none;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(212, 184, 150, 0) 0%,
    rgba(212, 184, 150, 0.18) 18%,
    rgba(184, 149, 106, 0.70) 52%,
    rgba(212, 184, 150, 0.18) 84%,
    rgba(212, 184, 150, 0) 100%
  );
  box-shadow:
    0 0 12px rgba(184, 149, 106, 0.18),
    0 0 26px rgba(184, 149, 106, 0.10);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.hero-overlay > .container > :not(.hero-gold-rain) {
  position: relative;
  z-index: 1;
}

/* Sternschnuppe: Kopf + Schweif laufen nach unten */
.hero-gold-rain::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 26px;
  height: 150px;
  top: -160px;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    /* Kopf (Stern) */
    radial-gradient(circle at 50% 18%, rgba(255, 250, 236, 0.98) 0 6px, rgba(255, 233, 186, 0.65) 14px, rgba(184, 149, 106, 0.20) 28px, transparent 44px),
    /* Schweif */
    linear-gradient(to bottom,
      transparent 0%,
      rgba(255, 236, 196, 0.85) 20%,
      rgba(184, 149, 106, 0.40) 46%,
      rgba(184, 149, 106, 0.12) 72%,
      transparent 100%
    );
  filter:
    blur(0.15px)
    drop-shadow(0 0 16px rgba(255, 236, 196, 0.24))
    drop-shadow(0 0 42px rgba(184, 149, 106, 0.18));
  opacity: 0.98;
  mix-blend-mode: screen;
  animation: shootingStar 14s cubic-bezier(0.2, 0.0, 0.2, 1) infinite;
  /* Schweif schmaler machen */
  mask-image: radial-gradient(circle at 50% 18%, rgba(0,0,0,1) 0 16px, rgba(0,0,0,0.55) 22px, rgba(0,0,0,0) 34px);
}

/* Glitzernde Partikelspur entlang der Bahn */
.hero-gold-rain::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -160px;
  width: 14px;
  height: calc(15cm + 220px);
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 244, 214, 0.95) 0 1px, transparent 2px),
    radial-gradient(circle at 50% 32%, rgba(255, 244, 214, 0.70) 0 1px, transparent 2px),
    radial-gradient(circle at 50% 58%, rgba(255, 244, 214, 0.60) 0 1px, transparent 2px),
    radial-gradient(circle at 50% 78%, rgba(255, 244, 214, 0.85) 0 1px, transparent 2px);
  background-size: 14px 120px;
  background-repeat: repeat-y;
  background-position: center -120px;
  opacity: 0.65;
  filter:
    blur(0.15px)
    drop-shadow(0 0 10px rgba(184, 149, 106, 0.26));
  mix-blend-mode: screen;
  animation: shootingGlitter 16s linear infinite;
  /* Partikel nur als feine Linie / Bahn sichtbar */
  mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 30%, rgba(0,0,0,0) 62%);
}

@keyframes shootingStar {
  0%   { transform: translateX(-50%) translateY(0); opacity: 0; }
  10%  { opacity: 1; }
  88%  { opacity: 0.95; }
  100% { transform: translateX(-50%) translateY(calc(15cm + 160px)); opacity: 0; }
}

@keyframes shootingGlitter {
  0%   { background-position: center -120px; opacity: 0.45; }
  30%  { opacity: 0.75; }
  100% { background-position: center 120px; opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-gold-rain::before,
  .hero-gold-rain::after {
    animation: none !important;
  }
}

/* Kein dicker Leuchtkörper – nur feine Linie + Glitzer */
.hero-gold-rain::before {
  content: none !important;
}

/* Decorative hero elements */
.hero-decor {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.hero-decor-circle {
  width: min(300px, 40vw);
  height: min(300px, 40vw);
  border-radius: 50%;
  border: 1px solid var(--border);
  top: 10%;
  right: max(-5%, -24px);
  animation: floatSlow 12s ease-in-out infinite;
}

.hero-decor-ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(184, 149, 106, 0.25);
  bottom: 25%;
  right: 15%;
  animation: float 8s ease-in-out infinite;
}

.hero-decor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
  top: 30%;
  right: 25%;
  animation: pulseGlow 4s ease-in-out infinite;
}

.hero-decor-line {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--border), transparent);
  bottom: 10%;
  left: 8%;
  animation: float 6s ease-in-out infinite 1s;
}

.hero h1 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 600;
  line-height: 1.1;
  max-width: min(16ch, 100%);
  letter-spacing: -0.02em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero p {
  max-width: min(50ch, 100%);
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: var(--leading-body);
  margin: 0;
  color: var(--text-soft);
  overflow-wrap: break-word;
}

.hero p.hero-notice {
  max-width: min(52ch, 100%);
  font-size: clamp(0.95rem, 0.55vw + 0.85rem, 1.12rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--gold);
  margin-bottom: 0.6rem;
  display: inline-block;
}

.hero .eyebrow {
  color: var(--gold);
}

.hero .eyebrow::before {
  display: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.hero-actions .btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.hero-actions .btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(45, 90, 123, 0.25);
}

.hero-actions .btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.hero-actions .btn-secondary:hover {
  background: var(--accent-light);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: calc(1.8rem + 1cm);
  left: 0;
  right: 0;
  width: max-content;
  margin-inline: auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeInUp 1.5s var(--ease) 1.2s backwards;
}

.hero-scroll-indicator .scroll-line {
  width: 2px;
  height: calc(52px + 1cm);
  background: linear-gradient(to bottom, var(--accent), transparent);
  position: relative;
  overflow: hidden;
  border-radius: 999px;
}

.hero-scroll-indicator .scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, var(--gold-light) 35%, var(--gold) 65%, transparent 100%);
  animation: scrollDown 1.7s ease-in-out infinite;
}

@keyframes scrollDown {
  0%   { top: -100%; }
  50%  { top: 100%; }
  100% { top: 100%; }
}

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  padding: 0.7rem 1.5rem;
  min-height: 46px;
  font-weight: 600;
  font-size: var(--text-small);
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

/* Ripple effect container */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: rippleEffect 0.6s linear;
  pointer-events: none;
}

@keyframes rippleEffect {
  to { transform: scale(4); opacity: 0; }
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn:focus-visible,
a:focus-visible,
.submenu-btn:focus-visible,
.main-nav button:focus-visible,
.action-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(45, 90, 123, 0.2);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 24px rgba(45, 90, 123, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: var(--shadow-sm);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 2px 12px rgba(184, 50, 50, 0.2);
}
.btn-danger:hover {
  background: #a02929;
  box-shadow: 0 6px 24px rgba(184, 50, 50, 0.3);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-soft);
}
.btn-ghost:hover {
  border-color: var(--text-muted);
  background: var(--surface-alt);
}

.btn-gray {
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-gray:hover {
  background: var(--border);
  border-color: var(--text-muted);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  box-shadow: 0 2px 12px rgba(184, 149, 106, 0.25);
}
.btn-gold:hover {
  box-shadow: 0 6px 24px rgba(184, 149, 106, 0.35);
}

.btn.loading {
  color: transparent !important;
  pointer-events: none;
}
.btn.loading::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
  min-height: 52px;
  border-radius: var(--radius-lg);
}

/* ---------- QUICK ACTIONS ---------- */

.quick-actions {
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.action-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.action-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.action-card:hover::before {
  transform: scaleX(1);
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.action-card--notfall::before {
  background: linear-gradient(90deg, var(--danger), #e74c3c);
}
.action-card--notfall:hover {
  border-color: rgba(184, 50, 50, 0.15);
}

.action-card h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.action-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: var(--text-small);
}

/* ---------- SECTIONS ---------- */

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-alt {
  background: var(--surface-alt);
  position: relative;
}

.section-alt > .container {
  position: relative;
  z-index: 2;
}

/* Organic wave divider between sections */
.section-alt::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 0%);
  z-index: 1;
}

.section-alt::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 1;
}

.section h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--text);
  margin: 0 0 1.2rem;
  letter-spacing: -0.01em;
}

/* h2 zentrieren wenn direkt im Container (nicht in Split) */
.section > .container > h2 {
  text-align: center;
}

.split h2 {
  text-align: left;
}

.section p {
  font-size: var(--text-body);
  line-height: 1.78;
  color: var(--text-soft);
}

.section .eyebrow {
  color: var(--gold);
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* In Split-Layouts: Eyebrow links ausrichten */
.split .eyebrow {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

/* ---------- SPLIT LAYOUT ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

/* ---------- SECTION IMAGE ---------- */

.section-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  position: relative;
  transition: transform 0.6s var(--ease);
}

/* Parallax wrapper gets the visual styling */
.parallax-img {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: box-shadow 0.6s var(--ease);
}

.parallax-img:hover {
  box-shadow: var(--shadow-xl);
}

.parallax-img:hover .section-image {
  transform: scale(1.03) rotate(0.5deg);
}

/* ---------- STATS ---------- */

.stats {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.stats article {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  min-width: min(145px, 100%);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.stats article::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  transform: scaleX(0);
  transition: transform 0.5s var(--ease);
}

.stats article:hover::after {
  transform: scaleX(1);
}

.stats article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.stats strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  transition: color 0.3s ease;
  line-height: 1.2;
  min-height: 1.8em;
}

/* Einheitliche Schriftgröße wie 3D-DVT */
.stats article strong {
  font-size: 1.85rem;
}

.stats-revealed {
  animation: fadeInUp 0.6s var(--ease) forwards;
}

.stats article[data-animated] strong {
  color: var(--accent);
}

.stats span {
  display: block;
  color: var(--text-muted);
  font-size: var(--text-small);
  margin-top: 0.2rem;
  font-weight: 500;
  line-height: 1.4;
}

.about-doctor-cta {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.services-full-cta {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.cv-subheading {
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 0.45vw + 0.96rem, 1.22rem);
  font-weight: 600;
  color: var(--text-muted);
  margin: 0.9rem 0 0.35rem;
  line-height: 1.15;
}

/* ---------- SERVICE GRID ---------- */

.service-intro {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.service-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

/* ---------- CARDS ---------- */

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--ease);
  position: relative;
  min-width: 0;
  overflow-wrap: break-word;
  /* 3D tilt preparation */
  transform-style: preserve-3d;
  perspective: 800px;
}

.card:hover {
  border-color: rgba(45, 90, 123, 0.12);
  box-shadow: var(--shadow-lg);
}

/* Card glow effect — follows cursor via JS --glow-x / --glow-y */
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(45, 90, 123, 0.07),
    rgba(184, 149, 106, 0.04) 40%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: -1;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card h2, .card h3 {
  margin-top: 0;
  font-family: var(--font-display);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  position: relative;
  display: inline-block;
}

/* Gold accent line under card titles */
.service-grid .card h3::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 2rem;
  height: 2px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}

.service-grid .card:hover h3::after {
  width: 100%;
}

.card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.card ul li {
  position: relative;
  padding-left: 1.2rem;
  font-size: var(--text-small);
  color: var(--text-soft);
  line-height: 1.65;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  transition: transform 0.3s var(--ease);
}

.card ul li:hover::before {
  transform: scale(1.4);
}

/* ---------- FAQ ---------- */

.faq { margin-top: 1.5rem; }

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  overflow: hidden;
  transition: all 0.35s var(--ease);
  background: var(--surface);
}

.faq-item:hover {
  border-color: rgba(45, 90, 123, 0.15);
}

.faq-item[open] {
  box-shadow: var(--shadow);
  border-color: rgba(45, 90, 123, 0.15);
}

.faq-item summary {
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.12rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background var(--transition), color var(--transition);
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--gold);
  transition: transform 0.35s var(--ease-spring);
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item[open] summary {
  color: var(--accent);
}

.faq-item p {
  padding: 0 1.3rem 1.2rem;
  margin: 0;
  font-size: var(--text-body);
  line-height: 1.75;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.faq-item[open] p {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- STANDALONE CARD SECTIONS (Anamnese, Karriere etc.) ---------- */

#anamnese .card,
#karriere .card,
#anfahrt .split > .card:first-child {
  text-align: center;
}

#anamnese .card .prep-list,
#karriere .card .prep-list {
  text-align: left;
}

#karriere .card .btn {
  display: inline-flex;
}

/* ---------- ANAMNESE / PREP ---------- */

.choice-buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 1.2rem 0;
  justify-content: center;
}

.prep-list {
  margin-top: 1.2rem;
  list-style: none;
  padding: 0;
}

.prep-list li {
  padding: 0.9rem 0 0.9rem 1.4rem;
  border-bottom: 1px solid var(--border-light);
  line-height: 1.75;
  font-size: var(--text-body);
  color: var(--text-soft);
}
#anamnese .prep-list li::before {
  top: 50%;
  transform: translateY(-50%);
}
#anamnese .prep-list li:hover::before {
  transform: translateY(-50%) scale(1.4);
}
.prep-list li:last-child { border-bottom: 0; }

/* ---------- TIMELINE ---------- */

.timeline {
  margin-top: 2rem;
  display: grid;
  gap: 0;
  position: relative;
  padding-left: 2.5rem;
}

/* Vertical animated line */
.timeline::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, var(--gold), var(--accent));
  transition: height 1.5s var(--ease);
}

.timeline.timeline-animated::after {
  height: 100%;
}

.timeline-step {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  transition: all 0.4s var(--ease);
  position: relative;
  margin-bottom: 1rem;
}

/* Timeline dot */
.timeline-step::before {
  content: "";
  position: absolute;
  left: -2.15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  transition: all 0.4s var(--ease);
  z-index: 1;
}

.timeline-step:hover::before {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.3);
}

.timeline-step:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
  border-color: rgba(184, 149, 106, 0.2);
}

.timeline-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.timeline-step p {
  margin: 0;
}

/* ---------- CONTACT ---------- */

.contact-card {
  max-width: 100%;
  display: grid;
  gap: 2rem;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

/* Decorative corner accent */
.contact-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, transparent 50%, rgba(184, 149, 106, 0.06) 50%);
  pointer-events: none;
}

.contact-grid-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 2rem;
}

.contact-block-title {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin: 0 0 0.8rem;
  font-weight: 700;
  font-family: var(--font-body);
}

.contact-block-text {
  margin: 0;
  line-height: 1.7;
}

.contact-block-text a,
.contact-dl a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
.contact-block-text a:hover,
.contact-dl a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-dl {
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.contact-dl dt {
  font-size: var(--text-small);
  color: var(--text-muted);
  font-weight: 500;
}

.contact-dl dd {
  margin: 0 0 0.4rem;
}
.contact-dl dd:last-child { margin-bottom: 0; }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.tel-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(45, 90, 123, 0.3);
  transition: text-decoration-color var(--transition);
}
.tel-link:hover {
  text-decoration-color: var(--accent);
}

.opening-hours {
  display: grid;
  gap: 0;
  max-width: 280px;
}

.oh-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: var(--text-small);
}

.oh-row:last-child { border-bottom: 0; }

/* Map iframe */
.map-iframe {
  border: 0;
  border-radius: var(--radius);
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* ---------- NOTFALL SECTION ---------- */

#notfall .card {
  background: linear-gradient(135deg, #fef8f6, #feeae6);
  border-color: rgba(184, 50, 50, 0.1);
  text-align: center;
}

#notfall .eyebrow {
  color: var(--danger);
}

#notfall h2 {
  color: var(--danger);
}

/* ---------- FOOTER ---------- */

.site-footer {
  background: var(--bg-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
}

/* Footer decorative gradient */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-content p {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-small);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: var(--text-small);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-btn-review {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition);
}
.footer-btn-review:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ---------- FLOATING TERMIN BUTTON ---------- */

.floating-termin {
  position: fixed;
  right: max(clamp(0.75rem, 2vw, 1.2rem), env(safe-area-inset-right));
  top: 33vh;
  z-index: 100;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.8rem;
  min-height: 50px;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, transparent 50%, rgba(0,0,0,0.05) 100%),
    linear-gradient(135deg, #00e676 0%, #00c853 30%, #69f0ae 60%, #00e676 100%);
  background-size: 100% 100%, 300% 300%;
  animation: slideInRight 0.6s var(--ease) 1.5s backwards, terminGradient 6s ease infinite 2.1s;
  color: #1a1a1a;
  font-weight: 700;
  font-size: var(--text-small);
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: none;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow:
    0 6px 20px rgba(0, 200, 83, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  isolation: isolate;
  overflow: hidden;
}

@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes terminGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Shine sweep */
.floating-termin::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 70%
  );
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
  animation: shineSweep 20s ease-in-out infinite;
}

@keyframes shineSweep {
  0%, 100% { left: -100%; }
  50%      { left: 120%; }
}

/* Rainbow pulse dot */
.floating-termin::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff0000;
  animation: dotRainbow 40s linear infinite, dotPulse 10s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes dotRainbow {
  0%      { background: #ff0000; box-shadow: 0 0 8px rgba(255, 0, 0, 0.6); }
  16%     { background: #ff8800; box-shadow: 0 0 8px rgba(255, 136, 0, 0.6); }
  33%     { background: #ffdd00; box-shadow: 0 0 8px rgba(255, 221, 0, 0.6); }
  50%     { background: #00cc44; box-shadow: 0 0 8px rgba(0, 204, 68, 0.6); }
  66%     { background: #0088ff; box-shadow: 0 0 8px rgba(0, 136, 255, 0.6); }
  83%     { background: #aa00ff; box-shadow: 0 0 8px rgba(170, 0, 255, 0.6); }
  100%    { background: #ff0000; box-shadow: 0 0 8px rgba(255, 0, 0, 0.6); }
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.3); }
}

.floating-termin:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow:
    0 12px 40px rgba(0, 200, 83, 0.45),
    0 4px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.06em;
}

.floating-termin:active {
  transform: translateY(1px) scale(0.97);
  box-shadow:
    0 1px 6px rgba(0, 200, 83, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.2),
    inset 0 2px 6px rgba(0, 0, 0, 0.15);
}

.floating-termin:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ---------- SIDEBAR ACTION BUTTONS (Desktop only) ---------- */

@keyframes sidebarItemIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.sidebar-actions {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 56px;
}

.sidebar-action-item {
  position: relative;
  width: 56px;
  height: 56px;
  animation: sidebarItemIn 0.55s var(--ease) backwards;
}
.sidebar-action-item:nth-child(1) { animation-delay: 1.50s; }
.sidebar-action-item:nth-child(2) { animation-delay: 1.65s; }
.sidebar-action-item:nth-child(3) { animation-delay: 1.80s; }
.sidebar-action-item:nth-child(4) { animation-delay: 1.95s; }

/* Label expands to the left, absolutely – does NOT affect siblings */
.sidebar-action-label-wrap {
  position: absolute;
  right: 56px;
  top: 0;
  bottom: 0;
  overflow: hidden;
  max-width: 0;
  display: flex;
  align-items: center;
  border-radius: 6px 0 0 6px;
  transition: max-width 0.4s var(--ease);
}

.sidebar-action-item:hover .sidebar-action-label-wrap {
  max-width: 230px;
}

.sidebar-action-label {
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 1rem 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.sidebar-action-btn {
  position: absolute;
  inset: 0;
  width: 56px;
  height: 56px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow 0.35s var(--ease), filter 0.25s var(--ease);
}

/* Shine sweep on hover */
.sidebar-action-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 75%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.32) 50%,
    transparent 80%
  );
  pointer-events: none;
  z-index: 1;
  transition: left 0.55s var(--ease);
}

.sidebar-action-item:hover .sidebar-action-btn::after {
  left: 130%;
}

.sidebar-action-btn svg {
  display: block;
  pointer-events: none;
  position: relative;
  z-index: 2;
  transition: transform 0.35s var(--ease-spring);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}

.sidebar-action-item:hover .sidebar-action-btn svg {
  transform: scale(1.2);
}

/* ── Green: Termin vereinbaren ── */
.sidebar-action-item--green .sidebar-action-label-wrap {
  background: linear-gradient(135deg, #00e676 0%, #00c853 55%, #00a040 100%);
}
.sidebar-action-item--green .sidebar-action-btn {
  background: linear-gradient(160deg, #00e676 0%, #00c853 50%, #009624 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: -3px 0 16px rgba(0, 200, 83, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #0a2a0a;
}
.sidebar-action-item--green .sidebar-action-label {
  color: #072010;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}
.sidebar-action-item--green:hover .sidebar-action-btn {
  box-shadow: -6px 0 28px rgba(0, 200, 83, 0.6), -2px 0 8px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  filter: brightness(1.07);
}

/* ── Blue: Email schreiben ── */
.sidebar-action-item--blue .sidebar-action-label-wrap {
  background: linear-gradient(135deg, #4a7fa8 0%, #2d5a7b 55%, #1a3d5c 100%);
}
.sidebar-action-item--blue .sidebar-action-btn {
  background: linear-gradient(160deg, #4a7fa8 0%, #2d5a7b 50%, #1a3d5c 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: -3px 0 16px rgba(45, 90, 123, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.sidebar-action-item--blue .sidebar-action-label {
  color: #ddeaf5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.sidebar-action-item--blue:hover .sidebar-action-btn {
  box-shadow: -6px 0 28px rgba(45, 90, 123, 0.65), -2px 0 8px rgba(0, 0, 0, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
  filter: brightness(1.12);
}

/* ── Teal: Route berechnen ── */
.sidebar-action-item--teal .sidebar-action-label-wrap {
  background: linear-gradient(135deg, #2eb897 0%, #1a8a6e 55%, #0d5c49 100%);
}
.sidebar-action-item--teal .sidebar-action-btn {
  background: linear-gradient(160deg, #2eb897 0%, #1a8a6e 50%, #0d5c49 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: -3px 0 16px rgba(26, 138, 110, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.sidebar-action-item--teal .sidebar-action-label {
  color: #ddf5ef;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.sidebar-action-item--teal:hover .sidebar-action-btn {
  box-shadow: -6px 0 28px rgba(26, 138, 110, 0.65), -2px 0 8px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
  filter: brightness(1.1);
}

/* ── Gold: Praxis bewerten ── */
.sidebar-action-item--gold .sidebar-action-label-wrap {
  background: linear-gradient(135deg, #d4b896 0%, #b8956a 55%, #96754a 100%);
}
.sidebar-action-item--gold .sidebar-action-btn {
  background: linear-gradient(160deg, #d4b896 0%, #b8956a 50%, #7a5c35 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: -3px 0 16px rgba(184, 149, 106, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.sidebar-action-item--gold .sidebar-action-label {
  color: #fff8ef;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.sidebar-action-item--gold:hover .sidebar-action-btn {
  box-shadow: -6px 0 28px rgba(184, 149, 106, 0.7), -2px 0 8px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.18);
  filter: brightness(1.1);
}

/* ---------- BACK TO TOP ---------- */

.back-to-top {
  position: fixed;
  right: max(clamp(0.75rem, 2vw, 1.2rem), env(safe-area-inset-right));
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  border: 1px solid #003F6B;
  border-radius: 50%;
  background: #003F6B;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.4s var(--ease);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #002a47;
  color: #fff;
  border-color: #002a47;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ---------- MODALS ---------- */

.anamnese-modal,
.termin-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  border: none;
  border-radius: var(--radius-lg);
  max-width: min(480px, calc(100vw - 2rem));
  width: min(92vw, 480px);
  max-height: min(90vh, 90dvh);
  overflow: hidden;
  padding: 0;
  box-shadow:
    0 25px 80px rgba(15, 25, 35, 0.2),
    0 8px 24px rgba(15, 25, 35, 0.1);
  animation: modalIn 0.4s var(--ease-spring);
  background: var(--surface);
}

.doctor-bio-modal {
  max-width: min(1080px, calc(100vw - 3rem));
  width: min(94vw, 1080px);
}

.termin-modal[open] {
  display: flex;
  flex-direction: column;
}

.modal-content--bio .modal-header {
  margin-bottom: 1.25rem;
}

.doctor-bio-body {
  padding-right: 0.25rem;
  display: grid;
  gap: 0.65rem;
}

.job-posting-cta .btn {
  margin-top: 0.65rem;
}

.job-mail-hint {
  font-weight: 600;
  color: var(--accent);
}

.cv-section {
  margin-bottom: 0;
  padding: 0.55rem 0 0.9rem 1.05rem;
  border-left: 2px solid rgba(184, 149, 106, 0.42);
  border-bottom: 1px solid rgba(215, 224, 230, 0.65);
  background: transparent;
  box-shadow: none;
  position: relative;
  overflow: visible;
}

.cv-section::before {
  content: "";
  position: absolute;
  top: 1.88rem;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--surface);
}

.cv-section:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.cv-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 0.75vw + 1.12rem, 1.65rem);
  font-weight: 600;
  color: var(--accent);
  margin: 0.55rem 0 0.5rem;
  padding-bottom: 0;
  border-bottom: none;
  line-height: 1.15;
}

.cv-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-soft);
  line-height: 1.58;
  font-size: var(--text-body);
}

.cv-list li {
  margin-bottom: 0.28rem;
  padding-left: 0.1rem;
}

.cv-list li::marker {
  color: var(--gold);
}

.cv-p {
  margin: 0 0 0.55rem;
  font-size: var(--text-body);
  color: var(--text-soft);
  line-height: 1.62;
}

.cv-p:last-child {
  margin-bottom: 0;
}

.anamnese-modal::backdrop,
.termin-modal::backdrop {
  background: rgba(15, 25, 35, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: backdropIn 0.3s ease forwards;
}

@keyframes backdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Decorative top accent bar */
.modal-decor {
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--accent), var(--gold));
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

.modal-content {
  padding: 2rem 2.2rem 2.2rem;
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

/* X: direktes Kind von dialog — bleibt sichtbar, scrollt nur .modal-content */
.termin-modal > .modal-close-x {
  position: absolute;
  top: calc(4px + 1.75rem);
  right: 1rem;
  z-index: 10;
}

/* X close button */
.modal-close-x {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--surface-alt);
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}

.modal-close-x:hover {
  background: var(--border);
  color: var(--text);
  transform: rotate(90deg);
}

/* Modal header */
.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-right: 2rem;
  opacity: 0;
  animation: modalHeaderIn 0.5s var(--ease) 0.05s forwards;
}

@keyframes modalHeaderIn {
  0%   { opacity: 0; transform: translateY(-10px); filter: blur(3px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.modal-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(0.55rem, 2vw + 0.5rem, 1rem);
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.4rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.modal-content h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text);
}

.modal-content--bio h3 {
  font-size: clamp(2rem, 1.25vw + 1.65rem, 2.55rem);
  line-height: 1.08;
}

.modal-subtitle {
  margin: 0;
  font-size: var(--text-small);
  color: var(--text-muted);
}

/* Action cards */
.modal-actions {
  display: grid;
  gap: 0.65rem;
}

.modal-action-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) translateX(-10px);
  animation: modalCardIn 0.5s var(--ease) forwards;
}

.modal-action-card:nth-child(1) { animation-delay: 0.15s; }
.modal-action-card:nth-child(2) { animation-delay: 0.25s; }
.modal-action-card:nth-child(3) { animation-delay: 0.35s; }
.modal-action-card:nth-child(4) { animation-delay: 0.45s; }

@keyframes modalCardIn {
  0%   { opacity: 0; transform: translateY(16px) translateX(-10px); }
  100% { opacity: 1; transform: translateY(0) translateX(0); }
}

.modal-action-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.35s var(--ease);
}

.modal-action-card:hover::before {
  transform: scaleY(1);
}

.modal-action-card:hover {
  border-color: rgba(45, 90, 123, 0.15);
  background: var(--accent-light);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

/* Primary action (online buchen) */
.modal-action-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-color: transparent;
  color: #fff;
}

.modal-action-primary::before {
  background: var(--gold);
}

.modal-action-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), #163a52);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(45, 90, 123, 0.25);
}

.modal-action-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 2.2rem;
  text-align: center;
}

.modal-action-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.modal-action-text strong {
  font-size: 0.92rem;
  font-weight: 600;
}

.modal-action-text small {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.modal-action-primary .modal-action-text small {
  color: rgba(255, 255, 255, 0.7);
}

.modal-close {
  width: 100%;
}

/* ---------- COOKIE BANNER ---------- */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 1.2rem 1.5rem;
  padding-bottom: max(1.2rem, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  z-index: 1001;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2);
  animation: slideInBottom 0.5s var(--ease);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.cookie-banner.hidden { display: none; }
.cookie-banner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-small);
  margin: 0;
}
.cookie-banner a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- DECORATIVE SECTION ELEMENTS ---------- */

.section-decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.section-decor-dots {
  width: 60px;
  height: 60px;
  background-image:
    radial-gradient(circle, var(--gold) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.15;
  right: 5%;
  top: 15%;
}

.section-decor-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0.08;
  left: -3%;
  bottom: 20%;
  animation: rotateSlow 30s linear infinite;
}

/* ---------- "VERTRAUEN" SECTION STYLING ---------- */

.section-alt > .container > h2 {
  text-align: center;
}

.section-alt > .container > p {
  text-align: center;
  max-width: 65ch;
  margin-inline: auto;
}

/* ---------- LEAD ---------- */

.lead {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--text-soft);
  max-width: 60ch;
  margin-bottom: 0.5rem;
}

/* ---------- UTILITIES ---------- */

.text-center { text-align: center; }
.mt { margin-top: 1rem; }
.small {
  font-size: var(--text-small);
  color: var(--text-soft);
  line-height: 1.6;
}
.hidden { display: none; }

.impressum-kammern {
  list-style: none;
  padding-left: 0;
  gap: 1.25rem;
}
.impressum-kammern li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.impressum-kammern li:last-child { border-bottom: 0; }

/* ---------- PAGE-LEVEL ELEMENTS (sub-pages) ---------- */

.breadcrumb {
  padding: 0.8rem 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.breadcrumb a { color: var(--accent); }

.page-hero {
  padding: 3rem 0;
  background: var(--surface-alt);
}
.page-hero h1 { margin: 0 0 0.5rem; }
.page-hero .lead { margin: 0; }

.page-hero-image {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.page-hero-danger {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.card-link {
  display: block;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.service-grid-home .card { min-height: 140px; }

.embed-container { margin-top: 1rem; }
.embed-container iframe {
  width: 100%;
  min-height: 540px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.treatment-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.treatment-block:last-of-type { border-bottom: 0; }

.anamnese-choice { margin-bottom: 1rem; }

.contact-form { display: grid; gap: 0.8rem; }
.contact-form label { font-weight: 600; }
.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-success { color: var(--accent); font-weight: 600; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-image { animation: none; }
  [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .split-word, [data-reveal] .split-word { opacity: 1; transform: none; }
  .modal-header, .modal-action-card { opacity: 1; transform: none; }
  .stats-revealed { animation: none; }
}

/* ---------- RESPONSIVE ---------- */

/* Nav darf umbrechen wenn Platz knapp – verhindert Überlappung mit Brand */
/* Erst ab 1500px: einzeilige Nav, vorher ggf. 2 Zeilen */
@media (min-width: 1500px) {
  .main-nav {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
}

/* Enger Desktop (1350–1500px): Brand schrumpft, Nav darf auf 2 Zeilen umbrechen */
@media (min-width: 1350px) and (max-width: 1499px) {
  .nav-wrapper {
    min-height: 88px;
  }
  .brand {
    flex-shrink: 1;
    min-width: 0;
    max-width: 42%;
  }
  .brand-title {
    font-size: clamp(0.55rem, 1.6vw, 0.72rem);
    letter-spacing: 0.1em;
  }
  .main-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    align-content: center;
    gap: 0.25rem 0.5rem;
    max-width: 56%;
    min-width: 0;
  }
}

@media (min-width: 1400px) {
  .container {
    width: min(1320px, calc(100% - 3rem));
    max-width: 100%;
  }

  .main-nav {
    gap: 0;
  }
}

@media (max-width: 1349px) {
  /* Hamburger-Menü: verhindert Überlappung Brand/Nav */
  .main-nav {
    position: absolute;
    top: 76px;
    right: 1rem;
    left: 1rem;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 0.75rem 1rem 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    animation: fadeInDown 0.3s var(--ease);
    max-height: none;
    overflow-y: visible;
    z-index: 999;
  }

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

  .main-nav a,
  .submenu-btn,
  .main-nav button {
    width: 100%;
    text-align: left;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
  }

  .main-nav a::after,
  .submenu-btn::after { display: none; }

  /* Reset ALL submenu desktop behavior on mobile */
  .submenu,
  .has-submenu:hover .submenu,
  .has-submenu:focus-within .submenu,
  .has-submenu.open .submenu {
    position: static;
    min-width: unset;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
    transform: none;
    left: 0;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Only .open class (JS click) shows submenu on mobile */
  .has-submenu.open .submenu {
    display: grid;
    gap: 0;
    padding-left: 0.8rem;
  }


  .has-submenu { width: 100%; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }

  /* Brand (Logo + Titel) am rechten Rand, wenn Menü-Button sichtbar */
  .nav-wrapper {
    justify-content: space-between;
  }

  /* Sprachmenü ersetzt Nav-Items */
  .main-nav.lang-open > a,
  .main-nav.lang-open > .has-submenu:not(.lang-switcher),
  .main-nav.lang-open > button.termin-modal-trigger {
    display: none !important;
  }

  .main-nav.lang-open .lang-switcher.open .lang-menu {
    display: grid !important;
    padding: 0 !important;
    gap: 2px;
  }

  .main-nav.lang-open .lang-menu a {
    min-height: 44px;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
  }

  .main-nav.lang-open .lang-menu .lang-flag,
  .main-nav.lang-open .lang-menu svg.lang-flag {
    width: 24px !important;
    height: 18px !important;
    min-width: 24px;
    flex-shrink: 0;
  }

  .action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .split,
  .split.reverse,
  .service-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .split { align-items: start; gap: 2rem; }

  /* Mobile: "Über uns" Eyebrow zentrieren */
  #ueber-uns .eyebrow {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .parallax-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  .section-image {
    max-height: 50vh;
    border-radius: inherit;
    display: block;
  }

  .hero { min-height: 60vh; max-height: 75vh; }
  .hero-image { min-height: 60vh; max-height: 75vh; }

  .section-alt::before,
  .section-alt::after {
    height: 35px;
  }

  /* Extra padding-top/bottom in section-alt so content stays clear of wave */
  .section-alt { padding-top: calc(var(--section-pad) + 1rem); padding-bottom: calc(var(--section-pad) + 1rem); }

  .timeline { padding-left: 2rem; }
  .timeline-step::before { left: -1.65rem; }

  .action-grid { grid-template-columns: minmax(0, 1fr); }

  /* Contact card tighter on tablet */
  .contact-card { padding: 1.5rem; }

  .contact-block { text-align: center; }
  .contact-dl { justify-items: center; }
  .opening-hours { margin-inline: auto; }

  /* Contact actions stack */
  .contact-actions { flex-direction: column; }
  .contact-actions .btn { width: 100%; }

  /* Footer stacked */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }

  /* Stats wrap nicely */
  .stats {
    gap: 0.7rem;
  }
  .stats article {
    min-width: 0;
    flex: 1 1 calc(50% - 0.7rem);
  }

  /* Cookie banner stack */
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
    padding: 1rem;
  }
  .cookie-banner .btn {
    width: 100%;
  }

  /* Notfall button full width */
  #notfall .btn-large {
    width: 100%;
    text-align: center;
  }

  /* Map height reduced */
  .card iframe {
    height: 200px;
  }
}

@media (max-height: 650px) and (min-width: 621px) {
  .hero {
    min-height: 500px;
    max-height: none;
  }

  .hero-overlay {
    padding-top: clamp(1.25rem, 5vh, 2rem);
    padding-bottom: 2rem;
  }

  .hero-actions {
    margin-top: 1.1rem;
    position: relative;
    z-index: 3;
  }

  .quick-actions {
    margin-top: 0.75rem;
  }
}

/* Desktop: sidebar replaces the floating termin button */
@media (min-width: 621px) {
  #floatingTerminBtn {
    display: none !important;
  }
}

@media (max-width: 620px) {
  /* Mobile: hide sidebar, show the classic floating-termin bar */
  .sidebar-actions {
    display: none;
  }

  .nav-wrapper {
    display: grid;
    grid-template-columns: clamp(124px, 31vw, 164px) minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    padding-inline: 0.75rem;
  }

  .menu-toggle {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    justify-content: flex-start;
    width: auto;
    flex-shrink: 1;
    min-width: 0;
    gap: 0.5rem;
  }

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

  .brand-logo {
    height: clamp(38px, 10vw, 52px);
  }

  .brand-title {
    font-size: clamp(0.58rem, 2vw, 0.72rem);
    letter-spacing: 0.1em;
    text-align: left;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .brand-subtitle { display: none; }
  .hero h1 { max-width: 100%; }

  /* Increase container side padding */
  .container {
    width: calc(100% - 2.5rem);
  }

  body {
    padding-bottom: 4.5rem;
  }

  .floating-termin {
    top: auto;
    bottom: max(1.5rem, env(safe-area-inset-bottom));
    width: calc(100% - 2.5rem);
    right: 1.25rem;
    left: 1.25rem;
    text-align: center;
    justify-content: center;
    border-radius: var(--radius);
    animation: slideInBottom 0.6s var(--ease) 1.5s backwards;
  }

  .back-to-top {
    bottom: 5.5rem;
    right: 1.25rem;
  }

  .hero { min-height: 55vh; }
  .hero-image { min-height: 55vh; }

  .hero-decor { display: none; }
  .hero-scroll-indicator { display: none; }

  /* Hero overlay needs more breathing room */
  .hero-overlay {
    padding-bottom: clamp(2rem, 5vw, 3rem);
    padding-top: 1.5rem;
  }

  /* Nav touch targets */
  .main-nav a,
  .submenu-btn,
  .main-nav button {
    padding: 0.65rem 0.8rem;
    font-size: 0.95rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Submenu full width on mobile */
  .submenu a {
    padding: 0.7rem 0.8rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Cards tighter on small screens */
  .card { padding: 1.3rem; }

  /* Timeline compact */
  .timeline { padding-left: 1.6rem; }
  .timeline-step { padding: 1rem 1.1rem; }
  .timeline-step::before { left: -1.35rem; width: 8px; height: 8px; }

  /* Section wave smaller */
  .section-alt::before,
  .section-alt::after {
    height: 25px;
  }

  /* Quick actions less negative margin */
  .quick-actions { margin-top: -1.5rem; }

  /* Choice buttons stack */
  .choice-buttons {
    flex-direction: column;
  }
  .choice-buttons .btn {
    width: 100%;
  }

  /* Eyebrow linksbündig mit h1 */
  .hero .eyebrow {
    font-size: 0.65rem;
  }

  /* Modal compact on mobile */
  .modal-content { padding: 1.5rem; }
  .modal-content h3 { font-size: 1.3rem; }
  .modal-content--bio h3 { font-size: 1.75rem; }
  .modal-eyebrow { font-size: 0.7rem; }
  .doctor-bio-body { gap: 0.45rem; }
  .cv-section { padding: 0.45rem 0 0.75rem 0.85rem; }
  .cv-section::before { top: 1.35rem; }
  .cv-section-title { font-size: 1.25rem; margin-top: 0.45rem; }
  .cv-subheading { font-size: 1rem; margin-top: 0.8rem; }
}

/* Very small screens (iPhone SE, Galaxy S8 etc) */
@media (max-width: 380px) {
  .container {
    width: calc(100% - 1.5rem);
  }

  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .hero p {
    font-size: 0.88rem;
  }

  .section h2 {
    font-size: clamp(1.4rem, 5vw, 1.75rem);
  }

  .action-card {
    padding: 1.1rem;
    min-height: 70px;
  }

  .action-card h3 { font-size: 1.05rem; }

  .stats article {
    padding: 0.75rem;
    flex: 1 1 100%;
  }

  .card { padding: 1rem; }

  .btn {
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
    min-height: 44px;
  }

  .btn-large {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }

  .floating-termin {
    top: auto;
    bottom: max(1.5rem, env(safe-area-inset-bottom));
    width: calc(100% - 1.5rem);
    right: 0.75rem;
    left: 0.75rem;
    padding: 0.7rem 1rem;
    font-size: 0.8rem;
  }

  .contact-card { padding: 1rem; }
  .contact-grid-inner { gap: 1.2rem; }

  .faq-item summary {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
  }

  .footer-content p { font-size: var(--text-xs); }
  .footer-links { font-size: var(--text-xs); gap: 0.6rem; }
  .footer-btn-review { padding: 0.35rem 0.7rem; font-size: var(--text-xs); }
}

/* Parallax image — slightly oversized to prevent gap from translate offset */
.parallax-img .section-image {
  transform: scale(1.06);
}

.parallax-img .section-image--about-portrait {
  transform: scale(1.02);
}

.parallax-img img {
  will-change: transform;
}

/* „Über uns“: freigestelltes Portrait – Rahmen, kein hartes Cropping */
#ueber-uns .split > .parallax-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(480px, 52vh);
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  isolation: isolate;
}

#ueber-uns .split > .parallax-img::before {
  content: "";
  display: none;
  position: absolute;
  inset: clamp(0.5rem, 2vw, 1rem);
  background-image: url("../img/1 - Bearbeitet.jpg");
  background-size: cover;
  background-position: center 18%;
  filter: blur(26px) saturate(0.92);
  opacity: 0.34;
  transform: scale(1.04);
  z-index: 0;
  pointer-events: none;
}

#ueber-uns .split > .parallax-img .section-image--about-portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(560px, 100%);
  aspect-ratio: 1920 / 1372;
  height: auto;
  object-fit: cover;
  object-position: center 18%;
  border-radius: calc(var(--radius-lg) - 6px);
  box-shadow: 0 18px 40px rgba(28, 35, 49, 0.16);
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 1) 66%,
    rgba(0, 0, 0, 0.96) 76%,
    rgba(0, 0, 0, 0.72) 88%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 1) 66%,
    rgba(0, 0, 0, 0.96) 76%,
    rgba(0, 0, 0, 0.72) 88%,
    rgba(0, 0, 0, 0) 100%
  );
}

#ueber-uns .split > .parallax-img:hover .section-image--about-portrait {
  box-shadow: 0 24px 52px rgba(28, 35, 49, 0.2);
}

#ueber-uns .split > .parallax-img:hover {
  box-shadow: none;
}

@media (max-width: 1080px) {
  #ueber-uns .split > .parallax-img {
    min-height: min(360px, 45vh);
    max-height: none;
  }
  #ueber-uns .split > .parallax-img .section-image--about-portrait {
    max-width: min(420px, 92vw);
  }
}

@media (max-width: 860px) {
  #ueber-uns .split > .parallax-img {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 28px;
    overflow: visible;
    clip-path: none;
    -webkit-clip-path: none;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  #ueber-uns .split > .parallax-img .section-image--about-portrait {
    width: 100%;
    max-width: 100%;
    border-radius: 28px !important;
    box-shadow: 0 12px 28px rgba(28, 35, 49, 0.14);
    -webkit-mask-image: none;
    mask-image: none;
    clip-path: none;
    -webkit-clip-path: none;
    transform: none !important;
    overflow: hidden;
    display: block;
  }
}
