/* ============================================================
   TIERARZTPRAXIS DR. MARCO GERMANN
   Custom Design - Organic, Playful, Professional
   ============================================================ */

/* ---------- LOCAL FONTS (DSGVO-konform, kein Google CDN) ---------- */
@font-face { font-family: 'Playfair Display'; src: url('/assets/fonts/playfair-display-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('/assets/fonts/playfair-display-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('/assets/fonts/playfair-display-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('/assets/fonts/playfair-display-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('/assets/fonts/source-sans-3-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('/assets/fonts/source-sans-3-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('/assets/fonts/source-sans-3-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('/assets/fonts/source-sans-3-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('/assets/fonts/caveat-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('/assets/fonts/caveat-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('/assets/fonts/caveat-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Blues from the flyer */
  --blue-900: #0a3156;
  --blue-800: #0d4275;
  --blue-700: #115a8c;
  --blue-600: #1a6fa3;
  --blue-500: #2384b8;
  --blue-400: #4a9fcc;
  --blue-300: #7fbfde;
  --blue-200: #b3daea;
  --blue-100: #dceef5;
  --blue-50:  #f0f7fb;

  /* Warm accents */
  --amber-500: #d4912a;
  --amber-400: #e4a840;
  --amber-300: #f0c06a;
  --amber-100: #fdf3e0;

  /* Neutrals */
  --gray-900: #1a1a2e;
  --gray-800: #2d2d44;
  --gray-700: #444460;
  --gray-600: #5c5c76;
  --gray-500: #7a7a90;
  --gray-400: #9e9eb0;
  --gray-300: #c4c4d0;
  --gray-200: #e0e0e8;
  --gray-100: #f0f0f4;
  --gray-50:  #f8f8fa;

  --white: #ffffff;
  --cream: #fefcf8;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --font-handwritten: 'Caveat', cursive;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 8rem);
  --container-max: 1200px;

  /* Borders & Shadows */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --shadow-soft: 0 4px 30px rgba(10, 49, 86, 0.08);
  --shadow-medium: 0 8px 40px rgba(10, 49, 86, 0.12);
  --shadow-strong: 0 16px 60px rgba(10, 49, 86, 0.18);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: var(--blue-800); }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--gray-900);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.handwritten {
  font-family: var(--font-handwritten);
  font-weight: 500;
}

.hide-mobile { display: inline; }
@media (max-width: 640px) { .hide-mobile { display: none; } }

/* ---------- SECTION UTILITIES ---------- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 2rem;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.25rem;
  height: 2px;
  background: var(--blue-400);
  transform: translateY(-50%);
}
.section-label-light { color: var(--blue-200); }
.section-label-light::before { background: var(--blue-300); }

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 1.25rem;
  color: var(--gray-900);
}
.section-title-light { color: var(--white); }

.text-accent {
  color: var(--blue-600);
  font-style: italic;
}

.section-intro {
  font-size: 1.15rem;
  color: var(--gray-600);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ---------- SECTION WAVES ---------- */
.section-wave {
  display: block;
  width: 100%;
  height: auto;
  position: absolute;
  left: 0;
  pointer-events: none;
}
.section-wave-top { top: -1px; }
.section-wave-bottom { bottom: -1px; }

.hero-wave {
  bottom: -1px;
}
.hero-wave path { fill: var(--cream); }

.praxis .section-wave-top path { fill: var(--cream); }
.praxis .section-wave-bottom path { fill: var(--cream); }

.notdienst .section-wave-top path { fill: var(--cream); }
.notdienst .section-wave-bottom path { fill: var(--cream); }

.footer .section-wave-top path { fill: var(--cream); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--white);
  color: var(--blue-700);
  border-color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.btn-primary:hover {
  background: var(--blue-50);
  color: var(--blue-800);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ---------- NAVIGATION ---------- */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.4s ease;
}

.main-nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(10, 49, 86, 0.08);
  padding: 0.5rem 0;
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.5rem 2rem;
    gap: 0.5rem;
    box-shadow: var(--shadow-strong);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .nav-links.open { right: 0; }
  .nav-links a {
    color: var(--gray-700) !important;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
  }
  .nav-links a:hover {
    background: var(--blue-50) !important;
    color: var(--blue-700) !important;
  }
  .nav-cta {
    background: var(--blue-600) !important;
    color: var(--white) !important;
    text-align: center;
    margin-top: 0.5rem;
  }
  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ---------- HERO (Refined Editorial Split) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  overflow: hidden;
  background: var(--cream);
}

/* soft radial warmth behind text */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(36, 132, 184, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(212, 145, 42, 0.05) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

/* --- Left side: Text --- */
.hero-left {
  display: flex;
  align-items: center;
  padding: clamp(2rem, 8vw, 6rem) 0 5rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 560px;
  margin-left: auto;
  padding: 0 clamp(1.5rem, 4vw, 4.5rem);
}

/* Eyebrow with pulsing dot */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--white);
  padding: 0.5rem 1rem 0.5rem 0.85rem;
  border-radius: 50px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 2rem;
}
.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 0 rgba(36, 132, 184, 0.5);
  animation: heroPulse 2.4s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(36, 132, 184, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(36, 132, 184, 0); }
}

/* Editorial title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
}
.hero-title-script {
  font-family: var(--font-handwritten);
  font-weight: 500;
  color: var(--blue-600);
  font-size: 1.05em;
  letter-spacing: 0;
  margin-right: 0.1em;
}
.hero-title-amp {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--amber-500);
  margin: 0 0.05em;
}
.hero-title-accent {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  color: var(--blue-700);
  display: inline-block;
  margin-top: 0.15em;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 480px;
}

/* Actions row */
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.75rem;
}

/* Stacked phone button */
.hero-btn-primary {
  padding: 0.85rem 1.5rem 0.85rem 1.25rem;
  background: var(--blue-700);
  color: var(--white);
  border-color: var(--blue-700);
  box-shadow: 0 10px 30px -10px rgba(10, 49, 86, 0.45);
  border-radius: 14px;
  align-items: center;
  gap: 0.85rem;
}
.hero-btn-primary:hover {
  background: var(--blue-800);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -10px rgba(10, 49, 86, 0.55);
}
.hero-btn-primary .btn-icon {
  width: 20px;
  height: 20px;
}
.hero-btn-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  text-align: left;
}
.hero-btn-stack small {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 2px;
}
.hero-btn-stack strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Inline text-style secondary link */
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
  border-bottom: 1px solid transparent;
  padding: 0.25rem 0;
  transition: all 0.3s ease;
}
.hero-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}
.hero-link:hover {
  color: var(--blue-700);
  border-bottom-color: var(--blue-300);
}
.hero-link:hover svg {
  transform: translateX(4px);
}

/* --- Right side: Image --- */
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 8vw, 5rem) 2.5rem 5rem 1rem;
  overflow: hidden;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4 / 5;
}

/* Organic blob behind image */
.hero-visual-wash {
  position: absolute;
  inset: -4% -6% 6% 4%;
  background:
    radial-gradient(ellipse 60% 55% at 30% 30%, rgba(30, 120, 170, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 55% at 80% 80%, rgba(212, 145, 42, 0.12) 0%, transparent 70%);
  border-radius: 24px;
  z-index: 1;
}

/* Image frame */
.hero-image-frame {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(10, 49, 86, 0.3),
    0 10px 25px -10px rgba(10, 49, 86, 0.15);
  z-index: 2;
  transition: transform 0.6s ease;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transition: transform 8s ease;
}
.hero-visual:hover .hero-image {
  transform: scale(1.04);
}

/* ---------- HERO SLIDER ---------- */
.hero-slider {
  position: absolute;
  inset: 0;
  /* border-radius / overflow / box-shadow kommen vom Parent .hero-image-frame */
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s ease;
  z-index: 1;
}
.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide .hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

/* Katze: typischerweise im oberen Bildbereich */
.hero-image--cat {
  object-position: center 20%;
}

.hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.45);
  transition: transform 0.25s ease, background 0.25s ease;
}
/* Unsichtbarer Klick-Bereich: 44×44px für Touch-Geräte */
.hero-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
}
.hero-dot.active {
  background: #ffffff;
  transform: scale(1.25);
}

/* Nav adaption for light hero */
.nav-logo-img {
  height: 44px;
  width: auto;
  transition: all 0.3s;
  filter: none;
}

.nav-links a {
  padding: 0.5rem 1rem;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 50px;
  transition: all 0.3s;
}
.nav-links a:hover {
  background: var(--blue-50);
  color: var(--blue-700);
}

.nav-cta {
  background: var(--blue-600) !important;
  color: var(--white) !important;
  border-color: var(--blue-600) !important;
  font-weight: 600 !important;
}
.nav-cta:hover {
  background: var(--blue-700) !important;
  color: var(--white) !important;
}
 
/* NEU: */
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hero wave on light bg */
.hero-wave {
  z-index: 5;
}

/* Mobile hero */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero::before { display: none; }
  .hero-left {
    padding: 7rem 0 2rem;
    order: 2;
  }
  .hero-content {
    margin: 0 auto;
    max-width: 640px;
  }
  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }
  .hero-right {
    order: 1;
    padding: 5rem 1.5rem 3rem;
  }
  .hero-visual {
    max-width: 420px;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .hero-btn-primary { justify-content: center; }
  .hero-link { justify-content: center; }
}

/* ---------- WELCOME SECTION ---------- */
.welcome {
  position: relative;
  padding: var(--section-pad) 0 calc(var(--section-pad) + 2rem);
  background: var(--cream);
  overflow: hidden;
}

.welcome::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -8%;
  transform: translateY(-50%);
  width: 620px;
  height: 620px;
  background: url('assets/img/icon-hund-katze.png') no-repeat center / contain;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.welcome .container { position: relative; z-index: 1; }

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.welcome-lead {
  font-size: 1.15rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.welcome-text p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

.welcome-highlight {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--blue-700) !important;
  padding: 1.25rem;
  border-left: 3px solid var(--blue-400);
  background: var(--blue-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 1.5rem !important;
}

.welcome-visual {
  position: relative;
}

.welcome-img-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.welcome-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.welcome-img-frame {
  position: absolute;
  inset: -8px;
  border: 3px solid var(--blue-300);
  border-radius: calc(var(--radius-xl) + 8px);
  opacity: 0.4;
  pointer-events: none;
}

.welcome-note {
  position: absolute;
  bottom: -2.5rem;
  right: -1rem;
  font-size: 1.6rem;
  color: var(--blue-600);
  transform: rotate(-3deg);
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
  pointer-events: none;
}

/* Paw trail */
.paw-trail {
  position: absolute;
  display: flex;
  gap: 2rem;
  opacity: 0.06;
  color: var(--blue-700);
  pointer-events: none;
}
.paw-trail svg { width: 30px; height: 30px; }
.paw-trail-1 {
  bottom: 3rem;
  left: 5%;
  transform: rotate(-20deg);
}

@media (max-width: 860px) {
  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .welcome-visual { order: -1; }
  .welcome-note { display: none; }
  /* Prevent the 4:5 portrait image from being too tall in single-column layout */
  .welcome-img {
    max-height: 55vh;
    object-position: center 30%;
  }
}

/* ---------- PRAXIS / DR. GERMANN ---------- */
.praxis {
  position: relative;
  padding: calc(var(--section-pad) + 3rem) 0;
  background: linear-gradient(170deg, var(--blue-800) 0%, var(--blue-900) 100%);
  color: var(--white);
}

.praxis-intro {
  text-align: center;
  margin-bottom: 4rem;
}

.praxis-specialty {
  font-family: var(--font-handwritten);
  font-size: 1.5rem;
  color: var(--amber-300);
  margin-top: 0.5rem;
}

.praxis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: 4rem;
}

.praxis-bio p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}
.praxis-bio strong {
  color: var(--amber-300);
}

.praxis-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.25rem 1.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.praxis-badge-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--amber-300);
  line-height: 1;
}

.praxis-badge-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

/* Timeline */
.timeline-title {
  font-family: var(--font-handwritten);
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue-400), var(--amber-400));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: baseline;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 1rem;
  width: 8px;
  height: 8px;
  background: var(--blue-400);
  border-radius: 50%;
  transform: translateX(-3px);
}

.timeline-item-highlight::before {
  width: 12px;
  height: 12px;
  background: var(--amber-400);
  transform: translateX(-5px);
  box-shadow: 0 0 12px rgba(228, 168, 64, 0.4);
}

.timeline-year {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--blue-300);
  min-width: 5.5rem;
  flex-shrink: 0;
}

.timeline-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}
.timeline-desc small {
  color: var(--amber-300);
  font-style: italic;
}

/* Ausstattung */
.ausstattung {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ausstattung-title {
  font-family: var(--font-handwritten);
  font-size: 1.4rem;
  color: var(--blue-200);
  margin-bottom: 1.5rem;
}

.ausstattung-items {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.ausstattung-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.ausstattung-icon {
  width: 28px;
  height: 28px;
  color: var(--blue-300);
}

@media (max-width: 860px) {
  .praxis-grid { grid-template-columns: 1fr; }
}

/* ---------- LEISTUNGEN ---------- */
.leistungen {
  position: relative;
  padding: var(--section-pad) 0;
  background: var(--cream);
  overflow: hidden;
}

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

.service-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-300));
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--blue-200);
}
.service-card:hover::before { opacity: 1; }

.service-card-featured {
  background: linear-gradient(145deg, var(--blue-50) 0%, var(--white) 100%);
  border-color: var(--blue-200);
  border-width: 2px;
}
.service-card-featured::before { opacity: 1; }

.service-card-icon-wrap {
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-50);
  border-radius: var(--radius-md);
  padding: 10px;
  transition: transform 0.4s;
}
.service-card:hover .service-card-icon-wrap {
  transform: scale(1.1) rotate(-3deg);
}

.service-card-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.service-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

.service-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.25rem 0.8rem;
  background: var(--amber-100);
  color: var(--amber-500);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 50px;
}

.service-details {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--blue-200);
}
.service-details li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--gray-600);
  font-size: 0.9rem;
}
.service-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-400);
}

/* Services tags (additional) */
.services-more {
  margin-bottom: 3rem;
}

.services-more-title {
  font-family: var(--font-handwritten);
  font-size: 1.4rem;
  color: var(--gray-700);
  margin-bottom: 1.25rem;
  text-align: center;
}

.services-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.service-tag {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  font-size: 0.88rem;
  color: var(--gray-700);
  transition: all 0.3s;
}
.service-tag:hover {
  border-color: var(--blue-300);
  background: var(--blue-50);
  color: var(--blue-700);
  transform: translateY(-2px);
}

/* Info box */
.info-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--blue-100);
  border-left: 4px solid var(--blue-400);
  box-shadow: var(--shadow-soft);
}

.info-box-icon svg {
  width: 28px;
  height: 28px;
  color: var(--blue-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-box h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--blue-700);
  margin-bottom: 0.3rem;
}

.info-box p {
  color: var(--gray-700);
  font-size: 0.95rem;
}

/* Decorative animal bar */
.leistungen-deco {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.04;
}
.leistungen-deco-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

@media (max-width: 700px) {
  .services-showcase {
    grid-template-columns: 1fr;
  }
}

/* ---------- NOTDIENST ---------- */
.notdienst {
  position: relative;
  padding: calc(var(--section-pad) + 3rem) 0;
  background: linear-gradient(160deg, #6b1520 0%, #8b1e2a 40%, #a32535 100%);
  color: var(--white);
}

.notdienst-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.notdienst-emergency {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 2.5rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.notdienst-pulse {
  width: 20px;
  height: 20px;
  background: #ff6b6b;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.6); }
  50% { box-shadow: 0 0 0 15px rgba(255, 107, 107, 0); }
}

.notdienst-phone-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.3rem;
}

.notdienst-phone-number {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.notdienst-phone-number:hover { color: var(--amber-300); }

.notdienst-behavior h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.notdienst-behavior ul {
  padding-left: 0;
}
.notdienst-behavior li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}
.notdienst-behavior li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border: 2px solid var(--amber-400);
  border-radius: 50%;
}

.notdienst-cta-text {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--amber-300);
  font-size: 0.95rem;
}
.notdienst-cta-text strong {
  color: var(--white);
}

/* Right column */
.notdienst-extra {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.notdienst-ring-info,
.notdienst-kliniken {
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
}

.notdienst-ring-info h3,
.notdienst-kliniken h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.notdienst-ring-number {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}
.notdienst-ring-number:hover { color: var(--amber-300); }

.notdienst-ring-info small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

.klinik {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.klinik:last-child { border: none; }
.klinik strong {
  display: block;
  color: var(--amber-300);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.klinik span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}
.klinik a {
  color: var(--white);
  font-weight: 600;
}
.klinik a:hover { color: var(--amber-300); }

@media (max-width: 860px) {
  .notdienst-grid { grid-template-columns: 1fr; }
}

/* ---------- KONTAKT & SPRECHZEITEN ---------- */
.kontakt {
  position: relative;
  padding: var(--section-pad) 0;
  background: var(--cream);
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.kontakt-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gray-200);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.kontakt-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.kontakt-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--blue-100);
}

/* Sprechzeiten */
.sprechzeiten-block {
  margin-bottom: 1.25rem;
}
.sprechzeiten-block h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 0.5rem;
}

.sz-table {
  width: 100%;
  border-collapse: collapse;
}
.sz-table td {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--gray-700);
}
.sz-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--gray-900);
}

.sprechzeiten-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--gray-200);
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.inline-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--blue-400);
  margin-top: 2px;
}

/* Kontaktdaten */
.kontakt-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.kontakt-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.kontakt-icon {
  width: 24px;
  height: 24px;
  color: var(--blue-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.kontakt-detail div {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.6;
}
.kontakt-detail strong {
  color: var(--gray-900);
}
.kontakt-detail a {
  color: var(--blue-600);
  font-weight: 600;
}

.anfahrt {
  padding-top: 1.5rem;
  border-top: 1px dashed var(--gray-200);
}
.anfahrt h4 {
  font-family: var(--font-handwritten);
  font-size: 1.3rem;
  color: var(--blue-700);
  margin-bottom: 0.75rem;
}
.anfahrt p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.parking-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--blue-600) !important;
}

/* Map */
.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  border: 4px solid var(--white);
}

@media (max-width: 860px) {
  .kontakt-grid { grid-template-columns: 1fr; }
}

/* ---------- FOOTER ---------- */
.footer {
  position: relative;
  padding: calc(var(--section-pad) + 2rem) 0 0;
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.7);
}

.footer-wave path { fill: var(--cream); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.footer-brand p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 1rem;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}
.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: all 0.3s;
}
.footer-links a:hover,
.footer-contact a:hover {
  color: var(--white);
  padding-left: 0.25rem;
}

.footer-contact p {
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}
.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.8);
  padding-left: 0;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* ---------- PAW CURSOR CANVAS ---------- */
#pawCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* ---------- SCROLL PAW TRAIL ---------- */
.scroll-paw-trail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.scroll-paw {
  position: absolute;
  width: 28px;
  height: 28px;
  color: var(--blue-300);
  opacity: 0.12;
  transition: color 0.3s;
}
.scroll-paw svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 1100px) {
  .scroll-paw-trail { display: none; }
}

/* ---------- SCROLL PROGRESS PAW ---------- */
.scroll-progress-paw {
  position: fixed;
  right: 0;          /* exakt bündig mit dem Scrollbar-Track */
  top: 0;
  width: 28px;       /* gleiche Breite wie der Scrollbar-Track */
  z-index: 998;
  color: var(--blue-400);
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.3s;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.15));
}
.scroll-progress-paw svg {
  display: block;
  margin: 0 auto;    /* SVG innerhalb des 28px-Containers zentrieren */
}

@media (max-width: 1100px) {
  .scroll-progress-paw { display: none; }
}

/* ---------- FLOATING PAW PRINTS ---------- */
.paw-prints {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* ---------- SMOOTH SCROLLBAR STYLING ----------
   Track = 28px breit (= Paw-Breite) → Paw bei right:0 ist perfekt zentriert.
   Thumb erscheint schmal (8px sichtbar) via Border-Trick.
   -------------------------------------------------------- */
@media (min-width: 1101px) {
  ::-webkit-scrollbar { width: 28px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb {
    background: var(--blue-300);
    border-radius: 14px;
    border: 10px solid transparent;   /* 28px − 2×10px = 8px sichtbarer Thumb */
    background-clip: content-box;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--blue-400);
    border-width: 10px;
  }
}

/* Restore default scrollbar on mobile */
@media (max-width: 1100px) {
  ::-webkit-scrollbar { width: 12px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb {
    background: var(--blue-300);
    border-radius: 6px;
  }
}

/* ---------- SELECTION COLOR ---------- */
::selection {
  background: var(--blue-200);
  color: var(--blue-900);
}

/* ---------- CREATIVE EXTRAS ---------- */

.welcome-highlight {
  position: relative;
}
.welcome-highlight::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 2px solid var(--blue-300);
  border-radius: 4px 12px 8px 16px;
  opacity: 0.3;
  pointer-events: none;
}

.service-card:hover .service-card-icon {
  animation: wiggle 0.5s ease-in-out;
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(6deg); }
  60% { transform: rotate(-4deg); }
  80% { transform: rotate(2deg); }
}

.welcome-img-wrapper::after {
  content: '';
  position: absolute;
  top: -15px;
  right: -15px;
  width: 120px;
  height: 120px;
  background: var(--blue-100);
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  z-index: -1;
  opacity: 0.6;
  animation: morphBlob 8s ease-in-out infinite;
}
@keyframes morphBlob {
  0%, 100% { border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%; }
  50% { border-radius: 40% 60% 45% 55% / 55% 40% 60% 45%; }
}

.praxis::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 5%;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  pointer-events: none;
}

@supports (-webkit-background-clip: text) {
  .hero-title-accent {
    background: linear-gradient(
      90deg,
      var(--blue-700) 0%,
      var(--blue-600) 50%,
      var(--blue-700) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}

.nav-links a.active {
  position: relative;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: var(--amber-400);
  border-radius: 50%;
}
.main-nav.scrolled .nav-links a.active {
  color: var(--blue-700);
}

.service-tag:nth-child(odd):hover {
  transform: translateY(-2px) rotate(-1deg);
}
.service-tag:nth-child(even):hover {
  transform: translateY(-2px) rotate(1deg);
}

.notdienst::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.05) 20%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.05) 80%,
    transparent 100%
  );
  pointer-events: none;
}

/* ---------- MAP TILE (Leaflet + OSM, restyled) ---------- */
.map-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  max-height: 480px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(10, 49, 86, 0.08);
  background: #e6eef5;
  isolation: isolate;
}
.map-tile-leaflet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  filter: saturate(0.9) contrast(0.98);
}
.map-tile-leaflet .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.85);
  padding: 2px 8px;
  border-radius: 6px 0 0 0;
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--gray-700);
}
.map-tile-leaflet .leaflet-control-attribution a {
  color: var(--blue-700);
}
.map-tile-leaflet .leaflet-control-zoom {
  border: none;
  box-shadow: 0 4px 12px rgba(10, 49, 86, 0.18);
  margin-left: 1rem;
  margin-top: 1rem;
}
.map-tile-leaflet .leaflet-control-zoom a {
  background: var(--white);
  color: var(--blue-700);
  border: none;
  border-bottom: 1px solid var(--gray-100);
  font-family: var(--font-body);
  font-weight: 600;
}
.map-tile-leaflet .leaflet-control-zoom a:hover {
  background: var(--blue-50, #f0f6fb);
  color: var(--blue-800);
}
.map-tile-leaflet .leaflet-popup-content-wrapper {
  border-radius: 10px;
  box-shadow: 0 10px 30px -8px rgba(10, 49, 86, 0.25);
}
.map-tile-leaflet .leaflet-popup-content {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--gray-700);
  line-height: 1.45;
  margin: 0.75rem 1rem;
}
.map-tile-leaflet .leaflet-popup-content strong {
  font-family: var(--font-display);
  color: var(--gray-900);
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.map-tile-filter {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, transparent 0%, rgba(10, 49, 86, 0.08) 100%);
  mix-blend-mode: multiply;
}

.praxis-marker {
  background: transparent !important;
  border: none !important;
}
.praxis-marker-pin {
  width: 32px;
  height: 44px;
  filter: drop-shadow(0 3px 6px rgba(10, 49, 86, 0.4));
  animation: praxisPinDrop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  display: block;
}
@keyframes praxisPinDrop {
  0% { transform: translateY(-30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.praxis-marker-pulse {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 24px;
  height: 8px;
  margin-left: -12px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(212, 145, 42, 0.5) 0%, transparent 70%);
  animation: praxisPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes praxisPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(2); opacity: 0; }
}

.map-tile-card {
  position: absolute;
  left: clamp(1rem, 3%, 2rem);
  bottom: clamp(1rem, 3%, 2rem);
  z-index: 10;
  background: var(--white);
  padding: 1rem 1.2rem;
  border-radius: 14px;
  box-shadow: 0 16px 36px -12px rgba(10, 49, 86, 0.25), 0 4px 12px -4px rgba(10, 49, 86, 0.1);
  max-width: 340px;
  min-width: 280px;
}
.map-tile-card-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 0.75rem;
}
.map-tile-card-eyebrow svg { width: 14px; height: 14px; }
.map-tile-card-address {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--gray-700);
  margin-bottom: 0.85rem;
}
.map-tile-card-address strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
  line-height: 1.3;
  white-space: normal;
}
.map-tile-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--gray-100);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-700);
  text-decoration: none;
  transition: gap 0.3s ease, color 0.3s ease;
  white-space: nowrap;
  flex-wrap: nowrap;
}
.map-tile-card-cta span { white-space: nowrap; }
.map-tile-card-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}
.map-tile-card-cta:hover { color: var(--blue-800); gap: 0.75rem; }
.map-tile-card-cta:hover svg { transform: translate(2px, -2px); }

.map-tile-compass {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 52px;
  height: 52px;
  z-index: 10;
  filter: drop-shadow(0 4px 8px rgba(10, 49, 86, 0.15));
  pointer-events: none;
}

@media (max-width: 640px) {
  .map-tile {
    aspect-ratio: 4 / 5;
    max-height: none;
  }
  .map-tile-card {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
    min-width: 0;
    padding: 0.9rem 1rem;
  }
  .map-tile-compass {
    width: 40px;
    height: 40px;
    top: 1rem;
    right: 1rem;
  }
  .map-tile-leaflet .leaflet-control-zoom { display: none; }
}

.footer::after {
  content: '';
  position: absolute;
  bottom: 4rem;
  right: 2rem;
  width: 220px;
  height: 220px;
  background: url('assets/img/icon-hund-katze-white.png') no-repeat center / contain;
  opacity: 0.04;
  pointer-events: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ================================================================
   MOBILE RESPONSIVE — Comprehensive overhaul
   Breakpoints: 960px (tablet landscape), 768px (tablet portrait),
                600px (large phone), 480px (phone), 380px (small phone)
   ================================================================ */

/* --- Globale Abstände auf kleinen Bildschirmen --- */
@media (max-width: 768px) {
  :root { --section-pad: clamp(3rem, 7vw, 5rem); }

  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }

  /* Verhindert horizontales Scrollen durch überstehende Dekoelemente */
  body { overflow-x: hidden; }
}

/* --- NAVIGATION (mobile schon geregelt, hier Verfeinerungen) --- */
@media (max-width: 860px) {
  .nav-inner { padding: 0 1.25rem; }
  .nav-logo-img { height: 36px; }
}

/* --- HERO --- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 0;
  }
  .hero-left {
    padding: 6rem 1.5rem 2rem;
    order: 2;
  }
  .hero-content { margin: 0 auto; max-width: 600px; }
  .hero-right {
    order: 1;
    padding: 4.5rem 1.5rem 2rem;
    justify-content: center;
  }
  .hero-visual {
    max-width: 440px;
    width: 100%;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
  }
  .hero-slider-dots { bottom: 14px; }
}

@media (max-width: 768px) {
  .hero-left { padding: 5.5rem 1.25rem 1.5rem; }
  .hero-right { padding: 4rem 1.25rem 1.5rem; }
  .hero-visual {
    max-width: 360px;
    aspect-ratio: 3 / 4;
  }
  .hero-title { font-size: clamp(2rem, 7.5vw, 2.8rem); }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-creds { gap: 0.4rem 1.2rem; padding-top: 1.25rem; }
}

@media (max-width: 520px) {
  .hero-left { padding: 5rem 1rem 1.25rem; }
  .hero-right { padding: 3.5rem 1rem 1.25rem; }
  .hero-visual { max-width: 100%; aspect-ratio: 3 / 4; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  .hero-btn-primary { justify-content: center; }
  .hero-link { justify-content: center; }
  .hero-eyebrow { font-size: 0.8rem; }
  .hero-creds li { font-size: 0.82rem; }
}

/* --- WELCOME --- */
@media (max-width: 860px) {
  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .welcome-visual { order: -1; }
  .welcome-note { display: none; }
  .welcome-img { max-height: 50vh; object-position: center 30%; }
}

@media (max-width: 520px) {
  .welcome-grid { gap: 1.5rem; }
  .welcome-img { max-height: 42vh; }
  .welcome-lead { font-size: 1rem; }
}

/* --- PRAXIS / WERDEGANG --- */
@media (max-width: 860px) {
  .praxis-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .praxis-intro { margin-bottom: 2.5rem; }
}

@media (max-width: 520px) {
  .praxis-badge {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .praxis-badge-number { font-size: 2.2rem; }
  .timeline-item { flex-direction: column; gap: 0.15rem; }
  .timeline-year { min-width: 0; }
  .ausstattung-items { gap: 1.5rem; flex-direction: column; align-items: center; }
}

/* --- LEISTUNGEN --- */
@media (max-width: 860px) {
  .services-showcase { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .services-showcase { grid-template-columns: 1fr; }
  .service-card { padding: 1.5rem; }
  .info-box { flex-direction: column; gap: 0.75rem; padding: 1.25rem; }
  .services-tags { gap: 0.5rem; }
  .service-tag { font-size: 0.82rem; padding: 0.45rem 0.9rem; }
}

/* --- NOTDIENST --- */
@media (max-width: 860px) {
  .notdienst-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 520px) {
  .notdienst-phone-number { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .notdienst-ring-number { font-size: 1.5rem; }
  .klinik { padding: 0.75rem 0; }
}

/* --- KONTAKT --- */
@media (max-width: 860px) {
  .kontakt-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .kontakt-card { padding: 1.5rem; }
  .sz-table td { font-size: 0.88rem; }
  .anfahrt p { font-size: 0.85rem; }
}

/* --- FOOTER --- */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* --- KARTEN (Map) --- */
@media (max-width: 640px) {
  .map-tile { aspect-ratio: 4 / 5; }
  .map-tile-card {
    left: 1rem; right: 1rem; bottom: 1rem;
    max-width: none; min-width: 0; padding: 0.9rem 1rem;
  }
  .map-tile-compass { width: 40px; height: 40px; top: 1rem; right: 1rem; }
  .map-tile-leaflet .leaflet-control-zoom { display: none; }
}

/* --- SECTION-LABELS & HEADINGS --- */
@media (max-width: 600px) {
  .section-label { font-size: 0.7rem; letter-spacing: 0.15em; }
  .section-intro { font-size: 0.95rem; }
}

/* --- TOUCH-ZIELE: alle klickbaren Elemente mindestens 44px --- */
@media (max-width: 860px) {
  .nav-toggle { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
  .btn { min-height: 48px; }
  .hero-cta, .nav-cta { min-height: 48px; }
  .klinik a { display: inline-block; padding: 0.3rem 0; }
}

/* --- ÜBERSTEHENDE DEKORATION AUF MOBIL AUSBLENDEN --- */
@media (max-width: 768px) {
  .paw-trail { display: none; }
  .leistungen-deco { height: 120px; }
  .hero-visual-wash { display: none; }
}

@media (max-width: 480px) {
  .hero-stamp {
    width: 78px;
    height: 78px;
    bottom: -12px;
    right: -8px;
  }
  .hero-stamp-year strong { font-size: 1.1rem; }
}

@media print {
  .main-nav, .hero-visual-wash, .paw-prints, .paw-trail,
  .section-wave, .hero-wave, .leistungen-deco,
  .map-container, .footer-wave { display: none !important; }
  .hero { min-height: auto; padding: 2rem 0; }
  .hero-title, .hero-subtitle { color: #000 !important; }
  body { background: #fff; color: #000; }
  section { padding: 1.5rem 0; }
}

/* ---------- HERO — stamp + credential chips ---------- */
.hero-stamp {
  position: absolute;
  bottom: -18px;
  right: -18px;
  z-index: 3;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 12px 30px -8px rgba(10, 49, 86, 0.25), 0 4px 10px -4px rgba(10, 49, 86, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
}
.hero-stamp::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(10, 49, 86, 0.25);
  border-radius: 50%;
}
.hero-stamp-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  text-align: center;
  line-height: 1;
}
.hero-stamp-since {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.hero-stamp-year {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-top: 0.25rem;
}
.hero-stamp-year strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  color: var(--blue-700);
  margin-top: 0.15rem;
}

.hero-creds {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--gray-200);
}
.hero-creds li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--gray-600);
}
.hero-creds li svg {
  width: 16px;
  height: 16px;
  color: var(--blue-600);
  flex-shrink: 0;
}
.hero-creds li strong {
  color: var(--gray-900);
  font-weight: 600;
}

@media (max-width: 768px) {
  .hero-stamp {
    width: 88px;
    height: 88px;
    bottom: -14px;
    right: -10px;
  }
  .hero-stamp-year strong { font-size: 1.25rem; }
  .hero-creds { gap: 0.5rem 1.25rem; }
  .hero-creds li { font-size: 0.85rem; }
}

/* ---------- POST-REVIEW FIXES ---------- */

.nav-cta,
.footer-contact p a,
.footer-contact p,
.sprechzeiten-phone,
.kontakt-phone,
.nav-links > li > a {
  white-space: nowrap;
}

.welcome-text > p,
.welcome-lead,
.welcome-highlight {
  opacity: 1;
}
