/* =========================================================
   Tierarztpraxis Dr. Laube – Hauptstylesheet
   Hauptfarbe: #b90306 (Warmrot)
   ========================================================= */

/* --- Self-hosted Fonts: Noto Sans (OFL-Lizenz) --- */
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/noto-sans-light.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/noto-sans-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/noto-sans-bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/noto-sans-italic.woff2') format('woff2');
}

/* --- CSS Custom Properties --- */
:root {
  --color-primary:     #b90306;
  --color-primary-dark:#8f0205;
  --color-primary-light:#d94145;
  --color-bg:          #fdf8f3;
  --color-bg-alt:      #f5ede2;
  --color-card:        #ffffff;
  --color-text:        #2c1a0e;
  --color-text-light:  #6b4c32;
  --color-border:      #e8d5c0;
  --color-footer-bg:   #2c1a0e;
  --color-footer-text: #f5ede2;
  --font-serif:        'Noto Sans', Arial, sans-serif;
  --font-sans:         'Noto Sans', Arial, sans-serif;
  --radius:            10px;
  --radius-lg:         18px;
  --shadow:            0 2px 12px rgba(44,26,14,.10);
  --shadow-lg:         0 8px 32px rgba(44,26,14,.14);
  --transition:        0.22s ease;
  --container-max:     1140px;
  --header-height:     72px;
}

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

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

body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--color-text);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

ul { list-style: none; }
table { border-collapse: collapse; }
td, th { padding: 5px; }

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================================================
   TOPBAR
   ========================================================= */
.topbar {
  background: var(--color-primary);
  color: #fff;
  font-size: 0.82rem;
  padding: 0.4rem 0;
}
.topbar .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.topbar a { color: #fff; }
.topbar a:hover { color: rgba(255,255,255,.75); }
.topbar .sep { opacity: 0.4; margin: 0 0.25rem; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  background: var(--color-card);
  border-bottom: 2px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
}
.logo:hover { opacity: 0.85; }
.logo-img {
  width: auto;
  display: block;
}

/* Navigation – nur das direkte Kind-ul, nicht die Dropdowns */
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.main-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text);
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--color-primary);
  color: #fff;
}

/* Hamburger Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 60%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '🐾';
  position: absolute;
  font-size: 22rem;
  opacity: 0.04;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-content { max-width: 680px; }
.hero-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  color: var(--color-text);
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(185,3,6,.3);
}
.btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
}

/* =========================================================
   ÖFFNUNGSZEITEN-BAR
   ========================================================= */
.hours-bar {
  background: var(--color-primary);
  color: #fff;
  padding: 1.75rem 0;
}
.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.hours-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hours-item strong {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
}
.hours-item span { font-size: 0.95rem; }
.notfall-item strong { opacity: 1; }
.notfall-item a { color: #fff; font-weight: 700; text-decoration: underline; }
.notfall-item a:hover { opacity: 0.8; }

/* =========================================================
   NEWS / AKTUELLE HINWEISE BANNER
   ========================================================= */
.news-banner {
  background: #fff3cd;
  border-top: 3px solid #e6a817;
  border-bottom: 3px solid #e6a817;
  padding: 1rem 0;
}
.news-banner .container {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.news-icon {
  font-size: 1.35rem;
  line-height: 1.5;
  flex-shrink: 0;
}
.news-content {
  flex: 1;
  color: #5a3e00;
  font-size: 0.97rem;
  line-height: 1.55;
}
.news-content p { margin: 0; }
.news-content strong { color: #3d2a00; }

/* =========================================================
   HOME CONTENT (Fließtext aus Markdown)
   ========================================================= */
.home-content {
  padding: 4rem 0 2rem;
}

/* =========================================================
   SERVICES PREVIEW
   ========================================================= */
.services-preview {
  padding: 2rem 0 5rem;
}
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
}
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  margin: 0.6rem auto 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--color-text);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--color-primary);
  color: var(--color-text);
}
.service-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--color-primary);
}
.service-card p {
  font-size: 0.92rem;
  color: var(--color-text-light);
}

/* =========================================================
   PAGE HERO (Unterseiten)
   ========================================================= */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
}
.page-hero h1 { color: #fff; }
.page-subtitle {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-top: 0.5rem;
}

/* =========================================================
   PAGE CONTENT
   ========================================================= */
.page-content {
  padding: 3.5rem 0 5rem;
}
.content-wrapper {
  max-width: 820px;
}

/* Markdown-Inhalt-Styling */
.content-wrapper h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-border);
}
.content-wrapper h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
}
.content-wrapper p { margin-bottom: 1rem; }
.content-wrapper ul,
.content-wrapper ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.content-wrapper ul { list-style: disc; }
.content-wrapper ol { list-style: decimal; }
.content-wrapper li { margin-bottom: 0.4rem; }
.content-wrapper strong { color: var(--color-text); font-weight: 700; }
.content-wrapper blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-text-light);
}
.content-wrapper table {
  width: 100%;
  margin: 1.5rem 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.content-wrapper th {
  background: var(--color-primary);
  color: #fff;
  padding: 0.6rem 1rem;
  text-align: left;
  font-weight: 700;
}
.content-wrapper td {
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--color-border);
}
.content-wrapper tr:nth-child(even) td { background: var(--color-bg-alt); }

/* Hinweis-Box */
.content-wrapper .hinweis,
.content-wrapper .notice {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

/* =========================================================
   SUBPAGES GRID (List-Layout)
   ========================================================= */
.subpages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.subpage-card {
  display: block;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--color-text);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.subpage-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--color-primary);
  color: var(--color-text);
}
.subpage-card h3 { color: var(--color-primary); margin-bottom: 0.6rem; }
.subpage-card p { font-size: 0.93rem; color: var(--color-text-light); margin-bottom: 1rem; }
.read-more { font-size: 0.88rem; font-weight: 700; color: var(--color-primary); }

/* =========================================================
   KONTAKT-SEITE
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.contact-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.contact-card h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.contact-card p { margin-bottom: 0.5rem; }
.contact-card a { font-weight: 700; }

.hours-table { width: 100%; }
.hours-table td { padding: 0.35rem 0.5rem; }
.hours-table td:first-child {
  font-weight: 700;
  min-width: 140px;
  color: var(--color-text);
}
.hours-table td:last-child { color: var(--color-text-light); }

.map-container {
  margin-top: 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 380px;
  isolation: isolate;
}
.map-container iframe,
.map-container > div {
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 3.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-col h3 {
  color: var(--color-primary-light);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.footer-col p { font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--color-footer-text); opacity: 0.85; }
.footer-col a { color: var(--color-footer-text); opacity: 0.85; }
.footer-col a:hover { color: var(--color-primary-light); opacity: 1; }
.notfall { color: #ffb3b4 !important; opacity: 1 !important; }

.footer-hours { width: 100%; font-size: 0.88rem; }
.footer-hours td { padding: 0.25rem 0.5rem; opacity: 0.82; }
.footer-hours td:first-child { font-weight: 700; opacity: 1; min-width: 120px; }

.footer-nav li { margin-bottom: 0.4rem; }
.footer-nav a { font-size: 0.9rem; opacity: 0.82; }
.footer-nav a:hover { opacity: 1; color: var(--color-primary-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  opacity: 0.6;
}
.motto-footer { font-style: italic; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(var(--header-height) + 2px);
    left: 0;
    right: 0;
    background: var(--color-card);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    padding: 0.5rem 1.5rem 1.25rem;
    z-index: 99;
    max-height: calc(100vh - var(--header-height) - 2px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li { width: 100%; }
  .main-nav a { padding: 0.65rem 1.5rem; text-align: right; width: 100%; display: block; }
  .main-nav a.active { background: none; color: var(--color-primary); font-weight: 700; }
  .has-dropdown > a { display: flex; align-items: center; justify-content: flex-end; gap: 0.3rem; }

  .topbar .container {
    font-size: 0.75rem;
    justify-content: center;
  }
  .topbar .container span { display: inline; }
  .topbar .sep { display: inline; }
  /* Adresse + zugehöriger Separator auf Mobile ausblenden */
  .topbar .container span:nth-child(4),
  .topbar .container span:nth-child(5) { display: none; }

  .hero { padding: 3rem 0 2.5rem; }
  .hero::before { display: none; }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .content-wrapper { max-width: 100%; }
}

@media (max-width: 480px) {
  .hours-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
}

/* =========================================================
   DROPDOWN NAVIGATION
   ========================================================= */
.has-dropdown { position: relative; }

.nav-arrow {
  font-size: 0.65rem;
  margin-left: 0.25rem;
  display: inline-block;
  transition: transform var(--transition);
}
.has-dropdown.open .nav-arrow { transform: rotate(180deg); }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 210px;
  z-index: 200;
  padding: 0.4rem 0;
  flex-direction: column;
}

/* Hover nur auf echten Pointer-Geräten (kein Touch) */
@media (hover: hover) and (min-width: 769px) {
  .has-dropdown:hover .nav-arrow,
  .has-dropdown:focus-within .nav-arrow { transform: rotate(180deg); }
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown { display: flex; }
}

.dropdown li { width: 100%; }
.dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 400;
  border-radius: 0;
  color: var(--color-text);
  white-space: nowrap;
}
.dropdown a:hover,
.dropdown a.active {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

/* Footer legal links */
.footer-legal {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-legal a {
  color: var(--color-footer-text);
  opacity: 0.7;
  font-size: 0.82rem;
}
.footer-legal a:hover { opacity: 1; color: var(--color-primary-light); }

/* =========================================================
   BILDSLIDER (Hero)
   ========================================================= */
.hero { padding: 0; position: relative; }

.slider {
  position: relative;
  width: 100%;
  height: clamp(400px, 55vh, 680px);
  overflow: hidden;
}

.slider-track { position: relative; width: 100%; height: 100%; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.slide.active { opacity: 1; pointer-events: auto; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Dunkles Overlay für Text-Lesbarkeit */
.slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(20,10,5,.72) 0%,
    rgba(20,10,5,.45) 55%,
    rgba(20,10,5,.15) 100%
  );
  z-index: 1;
}

/* Text über dem Slider */
.slider-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 50% 3rem max(2rem, calc((100% - var(--container-max)) / 2 + 2rem));
  color: #fff;
}
.slider-content .hero-badge {
  background: var(--color-primary);
  color: #fff;
  align-self: flex-start;
}
.slider-content h1 {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.slider-content .hero-sub {
  color: rgba(255,255,255,.88);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

@media (max-width: 768px) {
  .slider-content {
    padding: 1.25rem 1.5rem 4rem 1.5rem;
    justify-content: flex-start;
  }
}

.btn-outline-light {
  border: 2px solid rgba(255,255,255,.75);
  color: #fff;
  background: transparent;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
  color: #fff;
}

/* Slider-Buttons (Pfeile) */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,.18);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  backdrop-filter: blur(4px);
}
.slider-btn:hover { background: rgba(185,3,6,.65); }
.slider-btn.prev { left: 1rem; }
.slider-btn.next { right: 1rem; }

/* Slider-Dots */
.slider-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.dot.active,
.dot:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.2);
}

/* =========================================================
   TEAM-CARDS
   ========================================================= */
.team-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 640px) {
  .team-card { grid-template-columns: 1fr; }
}
.team-photo {
  width: 100%;
  max-width: 220px;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow);
}
.team-info h3 { color: var(--color-primary); margin-bottom: 0.5rem; }
.team-info ul { list-style: disc; padding-left: 1.25rem; }
.team-info li { margin-bottom: 0.3rem; font-size: 0.95rem; }
.team-info p { margin-bottom: 0.5rem; font-size: 0.95rem; }

/* =========================================================
   GALERIE-GRID (Räumlichkeiten)
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.gallery-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.gallery-item p {
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin: 0;
  font-weight: 600;
}

/* =========================================================
   GRUNDRISS
   ========================================================= */
.grundriss {
  margin: 2rem 0;
  text-align: center;
}
.grundriss img {
  max-width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.grundriss figcaption {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--color-text-light);
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 48px rgba(0, 0, 0, .6);
  cursor: default;
}
.lightbox-caption {
  color: rgba(255, 255, 255, .8);
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity var(--transition);
}
.lightbox-close:hover { opacity: 1; }

/* =========================================================
   MOBILE DROPDOWN (im aufgeklappten Mobile-Menü)
   ========================================================= */
@media (max-width: 768px) {
  .has-dropdown .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: none;
    margin: 0;
    padding: 0.15rem 0 0.5rem;
    flex-direction: column;
  }
  .has-dropdown.open .dropdown { display: flex; }
  .has-dropdown .dropdown li { width: 100%; }
  .has-dropdown .dropdown a {
    font-size: 0.88rem;
    color: var(--color-muted);
    font-weight: 400;
    padding: 0.4rem 2.75rem 0.4rem 1.5rem;
    text-align: right;
  }
  .has-dropdown .dropdown a.active {
    background: none;
    color: var(--color-primary);
    font-weight: 600;
  }
  /* Aktiver Eltern-Eintrag: rechter Balken nur wenn kein Kind-Eintrag aktiv ist */
  .has-dropdown:not(:has(.dropdown a.active)) > a.active {
    border-right: 3px solid var(--color-primary);
    padding-right: calc(1.5rem - 3px);
  }
  .nav-arrow { margin-left: 0; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* =========================================================
   UTILITY CLASSES
   ========================================================= */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* =========================================================
   VIDEO-CONTAINER (responsiv, 16:9)
   ========================================================= */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================================================
   SOCIAL LINKS (Footer)
   ========================================================= */
.social-links {
  margin-top: 0.75rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-footer-text);
  opacity: 0.85;
  transition: opacity var(--transition), color var(--transition);
  text-decoration: none;
}
.social-link:hover {
  opacity: 1;
  color: var(--color-primary-light);
}
.social-link svg {
  flex-shrink: 0;
}

/* =========================================================
   LEISTUNGS-KARTEN (Allgemeines Leistungsangebot)
   ========================================================= */
.leistungen-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.leistungs-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 1rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.leistungs-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.leistungs-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}
.leistungs-text {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.45;
  padding-top: 0.2rem;
}

/* =========================================================
   BACK-TO-TOP BUTTON
   ========================================================= */
#back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 900;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover {
  background: var(--color-primary-dark);
}
