/* =============================================
   Dentalteam Schneeberg – Modern Responsive CSS
   ============================================= */

:root {
  --color-primary: #92c01f;
  --color-primary-dark: #6e9a17;
  --color-primary-light: #a8d43a;
  --color-accent: #9b1b30;
  --color-accent-dark: #701525;
  --color-accent-light: #b82e45;
  --color-bg: #fafbf8;
  --color-surface: #ffffff;
  --color-text: #2a2a2a;
  --color-text-muted: #5c5c5c;
  --color-border: #e8ebe3;
  --font-sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(146, 192, 31, 0.14);
  --radius: 12px;
  --header-height: 80px;
  --transition: 0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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-accent);
}

ul {
  list-style: none;
}

body.nav-open {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

body.nav-open .site-header,
body.nav-open .site-header.is-scrolled {
  --header-height: 80px;
}

body.nav-open .site-header .logo-img,
body.nav-open .site-header.is-scrolled .logo-img {
  height: 52px;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  --header-height: 80px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

@media (max-width: 1024px) {
  .site-header {
    z-index: 1002;
  }
}

.site-header.is-scrolled {
  --header-height: 64px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(155, 27, 48, 0.12);
  box-shadow: 0 4px 20px rgba(155, 27, 48, 0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: height 0.35s ease;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
  transition: height 0.35s ease, transform 0.35s ease;
}

.site-header.is-scrolled .logo-img {
  height: 42px;
}

/* ---- Navigation ---- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text);
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav > li {
  position: relative;
}

.main-nav > li > a,
.main-nav > li > .nav-parent {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--color-accent);
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: 8px;
  border: solid 1px transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
  background: none;
  font-family: inherit;
}

.main-nav > li > a:hover,
.main-nav > li > .nav-parent:hover {
  color: var(--color-accent);
  background: rgba(137, 21, 13, 0.22);
  border: solid 1px #9b1b3044;
}

.main-nav > li.active > a,
.has-dropdown.active > .nav-parent {
  color: var(--color-accent);
}

/* Dropdown */
.has-dropdown > .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 100;
}

.has-dropdown:hover > .dropdown,
.has-dropdown.open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 0.55rem 0.85rem;
  color: #9b1b30;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  border: solid 1px transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.dropdown li a:hover {
  background: rgba(137, 21, 13, 0.22);
  color: #9b1b30;
  border: solid 1px #9b1b3044;
}

.dropdown .dropdown-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  padding: 0.5rem 0.85rem 0.25rem;
}

.dropdown .dropdown-divider {
  height: 1px;
  background: var(--color-border);
  margin: 0.35rem 0;
}

/* ---- Hero (Startseite) ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #f8fbf3 0%, #ffffff 42%, #f3f8ea 100%);
  color: var(--color-text);
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  top: -45%;
  right: -8%;
  width: min(440px, 58vw);
  height: min(440px, 58vw);
  background: radial-gradient(circle, rgba(146, 192, 31, 0.14) 0%, transparent 68%);
}

.hero::after {
  bottom: -38%;
  left: -6%;
  width: min(340px, 48vw);
  height: min(340px, 48vw);
  background: radial-gradient(circle, rgba(155, 27, 48, 0.07) 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.hero-title {
  margin: 0 0 2rem;
  line-height: 0;
}

.hero-logo {
  width: min(100%, 460px);
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(146, 192, 31, 0.12));
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.9rem);
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.01em;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.5;
}

.hero-tagline::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin: 1.1rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

/* ---- Main Content ---- */
main {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 0.5rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--color-primary);
}

.breadcrumb a {
  color: var(--color-accent);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb span[aria-hidden] {
  opacity: 0.5;
}

/* ---- Home content ---- */
.home-content {
  width: 100%;
  max-width: 100%;
}

.home-greeting {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.home-content p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
  color: var(--color-text);
}

.home-content p:last-child {
  margin-bottom: 0;
}

/* ---- Leistungen content ---- */
.leistung-content,
.hours-content,
.team-content,
.rundgang-content,
.download-content,
.legal-content,
.contact-page {
  width: 100%;
  max-width: 100%;
}

/* Blocktext: Blocksatz mit deutscher Silbentrennung */
.blocktext,
.home-content .leistung-row-text > p:not(.home-greeting),
.leistung-row-text > p,
.leistung-content > p,
.leistung-content li,
.download-intro,
.legal-content :is(p, li),
.team-content .team-entry p,
.team-content .team-note,
.hours-content .hours-intro {
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  hyphenate-limit-lines: 2;
  hyphenate-limit-last: always;
  hyphenate-limit-zone: 8%;
}

.leistung-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  margin-bottom: 2.5rem;
}

.leistung-row-text {
  min-width: 0;
}

.leistung-row:last-child {
  margin-bottom: 0;
}

.leistung-row--reverse .leistung-row-text {
  order: 2;
}

.leistung-row--reverse .leistung-row-media {
  order: 1;
  justify-self: start;
}

.leistung-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin: 1.75rem 0 0.75rem;
}

.leistung-row-text h2:first-child {
  margin-top: 0;
}

.leistung-content p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
  color: var(--color-text);
}

.leistung-row-text p:last-child,
.leistung-content > p:last-child {
  margin-bottom: 0;
}

.leistung-content ul {
  margin: 0 0 1.25rem 1.25rem;
  list-style: disc;
}

.leistung-content li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
  color: var(--color-text);
}

.leistung-row-media {
  display: block;
  width: 100%;
  max-width: 540px;
  justify-self: end;
  padding: 0;
  border: none;
  background: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.leistung-row-media:hover,
.leistung-row-media:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  outline: none;
}

.leistung-row-media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.leistung-content > h2,
.leistung-content > p,
.leistung-content > ul,
.hours-content > h2,
.hours-content > .hours-table-wrap,
.hours-content > .hours-contact,
.hours-content > #hours-special-container {
  max-width: 100%;
}

.leistung-content > h2,
.hours-content > h2 {
  margin-top: 2rem;
}

.leistung-row-text .hours-subtitle {
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .leistung-row,
  .leistung-row--reverse {
    grid-template-columns: 1fr;
  }

  .leistung-row-media {
    max-width: none;
    justify-self: stretch;
  }

  .leistung-row--reverse .leistung-row-text,
  .leistung-row--reverse .leistung-row-media {
    order: unset;
  }
}

/* ---- Rundgang / Lightbox ---- */
.rundgang-content {
  width: 100%;
  max-width: 100%;
}

.rundgang-content > p {
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  outline: none;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  display: block;
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: contain;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.92);
  opacity: 0;
  transition: opacity 0.38s ease;
}

.lightbox.is-open .lightbox-backdrop {
  opacity: 1;
}

.lightbox.is-closing .lightbox-backdrop {
  opacity: 0;
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  min-height: 0;
  padding:
    calc(1rem + env(safe-area-inset-top, 0px))
    calc(1rem + env(safe-area-inset-right, 0px))
    calc(1rem + env(safe-area-inset-bottom, 0px))
    calc(1rem + env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  overflow: hidden;
}

.lightbox-header {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  min-height: 2.75rem;
  margin-bottom: 0.35rem;
  pointer-events: none;
}

.lightbox-header > * {
  pointer-events: auto;
}

.lightbox-stage {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.lightbox-image-area {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.lightbox-figure {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  transform-origin: center center;
  opacity: 0;
  transform: scale(0.92) translateY(18px);
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  touch-action: pan-y pinch-zoom;
}

.lightbox-figure.is-swiping {
  transition: none !important;
  animation: none !important;
}

.lightbox.is-open .lightbox-figure {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition-delay: 0.06s;
}

.lightbox.is-closing .lightbox-figure {
  opacity: 0;
  transform: scale(0.96) translateY(10px);
  transition-delay: 0s;
  transition-duration: 0.28s;
}

.lightbox-figure.is-switching-out {
  opacity: 0;
  transform: scale(0.96);
  transition-duration: 0.18s;
  transition-delay: 0s;
}

.lightbox-figure.is-switching-in {
  animation: lightbox-image-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes lightbox-image-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.lightbox-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 11rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  object-fit: contain;
}

.lightbox-meta {
  flex: 0 0 auto;
  width: 100%;
  padding: 0.75rem 0.5rem 0.25rem;
  text-align: center;
}

.lightbox-caption {
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s ease 0.12s,
    transform 0.35s ease 0.12s;
}

.lightbox.is-open .lightbox-caption {
  opacity: 1;
  transform: translateY(0);
}

.lightbox.is-closing .lightbox-caption {
  opacity: 0;
  transform: translateY(6px);
  transition-delay: 0s;
  transition-duration: 0.2s;
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  margin: 0.35rem 0 0;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.35s ease 0.16s,
    transform 0.35s ease 0.16s;
}

.lightbox.is-open .lightbox-counter {
  opacity: 1;
  transform: translateY(0);
}

.lightbox.is-closing .lightbox-counter {
  opacity: 0;
  transform: translateY(4px);
  transition-delay: 0s;
}

.lightbox-close,
.lightbox-nav {
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  z-index: 50;
  transition:
    opacity 0.3s ease,
    background 0.2s ease,
    transform 0.3s ease,
    box-shadow 0.2s ease;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3.1rem;
  height: 3.1rem;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
}

.lightbox--single .lightbox-nav,
.lightbox-nav[hidden] {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.lightbox-nav-logo {
  width: 1.85rem;
  height: 1.85rem;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.lightbox-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-52%);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent);
  pointer-events: none;
}

.lightbox-prev .lightbox-nav-arrow {
  left: 0.2rem;
}

.lightbox-next .lightbox-nav-arrow {
  right: 0.2rem;
}

.lightbox-prev {
  left: 0.5rem;
}

.lightbox-next {
  right: 0.5rem;
}

.lightbox.is-open .lightbox-close,
.lightbox.is-open .lightbox-nav {
  opacity: 1;
}

.lightbox.is-closing .lightbox-close,
.lightbox.is-closing .lightbox-nav {
  opacity: 0;
  transition-duration: 0.2s;
}

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: none;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: #fff;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
  transform: translateY(-50%) scale(1.04);
}

.lightbox-close {
  position: relative;
  top: auto;
  right: auto;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-size: 1.75rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.16);
  transform: scale(0.85);
}

.lightbox-header .lightbox-close {
  transform: scale(1);
}

.lightbox.is-open .lightbox-close {
  transform: scale(1);
  transition-delay: 0.14s;
}

.lightbox.is-open .lightbox-nav {
  opacity: 1;
  transition-delay: 0.16s;
}

.lightbox.is-open .lightbox-nav {
  transform: translateY(-50%);
}

.lightbox.is-closing .lightbox-nav {
  transform: translateY(-50%);
}

@media (min-width: 601px) {
  .lightbox-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin-bottom: 0;
    min-height: 0;
    padding:
      calc(1rem + env(safe-area-inset-top, 0px))
      calc(1rem + env(safe-area-inset-right, 0px))
      0
      calc(1rem + env(safe-area-inset-left, 0px));
  }

  .lightbox-header .lightbox-close {
    position: absolute;
    top: calc(1rem + env(safe-area-inset-top, 0px));
    right: calc(1rem + env(safe-area-inset-right, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox-backdrop,
  .lightbox-figure,
  .lightbox-caption,
  .lightbox-counter,
  .lightbox-close,
  .lightbox-nav {
    transition: none !important;
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .lightbox:not(.is-open) .lightbox-backdrop,
  .lightbox:not(.is-open) .lightbox-figure {
    opacity: 1;
  }

  .lightbox-nav {
    transform: translateY(-50%);
  }

  .lightbox.is-open .lightbox-nav {
    transform: translateY(-50%);
  }
}

@media (max-width: 600px) {
  .lightbox-dialog {
    padding:
      calc(0.35rem + env(safe-area-inset-top, 0px))
      calc(0.15rem + env(safe-area-inset-right, 0px))
      calc(0.5rem + env(safe-area-inset-bottom, 0px))
      calc(0.15rem + env(safe-area-inset-left, 0px));
  }

  .lightbox-header {
    margin-bottom: 0.25rem;
    min-height: 2.35rem;
  }

  .lightbox-image-area {
    touch-action: none;
  }

  .lightbox-figure {
    max-width: 100%;
    touch-action: none;
  }

  .lightbox-nav {
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(255, 255, 255, 0.88);
  }

  .lightbox-nav-logo {
    width: 1.75rem;
    height: 1.75rem;
  }

  .lightbox-prev {
    left: calc(0.1rem + env(safe-area-inset-left, 0px));
  }

  .lightbox-next {
    right: calc(0.1rem + env(safe-area-inset-right, 0px));
  }

  .lightbox-image {
    max-height: calc(100dvh - 8.5rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    max-width: 96%;
    border-radius: 6px;
    box-shadow: none;
    user-select: none;
    -webkit-user-drag: none;
  }

  .lightbox-meta {
    padding: 0.55rem 0.35rem 0.15rem;
  }

  .lightbox-caption {
    font-size: 0.9rem;
  }

  .lightbox-counter {
    font-size: 0.75rem;
    margin-top: 0.3rem;
  }

  .lightbox-close {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* ---- Sprechzeiten ---- */
.hours-content {
  overflow-x: hidden;
}

.hours-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.hours-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 1.25rem;
}

.hours-appointment {
  margin-top: 0.25rem;
}

.hours-appointment h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin: 0 0 0.75rem;
}

.hours-contact-details {
  margin-bottom: 1rem;
  line-height: 1.75;
}

.hours-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hours-btn-mobile {
  display: none;
}

.hours-btn-desktop {
  display: inline-block;
}

@media (max-width: 768px) {
  .hours-hero-row .leistung-row-media {
    order: 1;
    margin-bottom: 1.25rem;
  }

  .hours-hero-row .leistung-row-text {
    order: 2;
  }

  .hours-hero-row .hours-intro,
  .hours-hero-row .hours-subtitle {
    display: none;
  }

  .hours-btn-mobile {
    display: inline-block;
    flex: 1 1 calc(50% - 0.375rem);
    text-align: center;
    min-width: 8.5rem;
  }

  .hours-btn-desktop {
    display: none;
  }

  .hours-contact-details a[href^="tel:"],
  .hours-contact-details a[href^="mailto:"] {
    pointer-events: none;
    color: inherit;
    text-decoration: none;
  }
}

.hours-special {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: rgba(155, 27, 48, 0.06);
  border: 1px solid rgba(155, 27, 48, 0.2);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
}

.hours-special-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.hours-special p {
  margin-bottom: 1rem;
  line-height: 1.65;
}

.hours-table-wrap--special {
  margin-bottom: 0;
}

.hours-special-expand {
  display: block;
  width: 100%;
  margin: 1rem 0 1rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--color-accent);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s ease;
}

.hours-special-expand:hover,
.hours-special-expand:focus-visible {
  color: var(--color-accent-dark);
  outline: none;
  text-decoration: underline;
}

.hours-regular-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.hours-table-wrap {
  overflow-x: auto;
  margin-bottom: 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  max-width: 100%;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  table-layout: fixed;
}

.hours-table th,
.hours-table td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  overflow-wrap: break-word;
  word-break: break-word;
}

.hours-table thead th {
  background: rgba(146, 192, 31, 0.12);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hours-table-th-empty {
  background: rgba(146, 192, 31, 0.12);
  border-bottom: 1px solid var(--color-border);
}

.hours-table tbody th {
  font-weight: 700;
  color: var(--color-accent);
  width: 28%;
}

.hours-table tbody tr:last-child th,
.hours-table tbody tr:last-child td {
  border-bottom: none;
}

.hours-table tbody tr:hover {
  background: rgba(155, 27, 48, 0.04);
}

.hours-table tbody tr.hours-special-row--extra.is-collapsed {
  display: none;
}

.hours-contact h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 0.75rem;
}

.hours-contact p {
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .hours-table-wrap,
  .hours-table-wrap--special {
    overflow-x: hidden;
  }

  .hours-table {
    display: block;
    width: 100%;
    min-width: 0;
    table-layout: auto;
  }

  .hours-table thead {
    display: none;
  }

  .hours-table tbody {
    display: block;
    width: 100%;
  }

  .hours-table tbody tr:not(.hours-special-row--extra.is-collapsed) {
    display: block;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .hours-table tbody tr.hours-special-row--extra.is-collapsed {
    display: none !important;
  }

  .hours-table tbody tr:last-child:not(.hours-special-row--extra.is-collapsed) {
    border-bottom: none;
  }

  .hours-table tbody th,
  .hours-table tbody td {
    display: block;
    padding: 0.2rem 0;
    border: none;
    width: 100%;
    max-width: 100%;
  }

  .hours-table tbody td + td {
    margin-top: 0.15rem;
    color: var(--color-text);
  }

  .hours-table tbody th {
    margin-bottom: 0.35rem;
    width: auto;
  }
}

/* ---- Team content ---- */
.team-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.team-role {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent);
  background: rgba(155, 27, 48, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.team-since {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 1.5rem;
}

.team-content h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin: 1.75rem 0 0.75rem;
}

.team-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.team-entry {
  padding-left: 1rem;
  border-left: 3px solid var(--color-primary);
}

.team-year {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.team-entry p {
  line-height: 1.65;
  color: var(--color-text);
}

.team-note {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: rgba(146, 192, 31, 0.1);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-primary);
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--color-text);
}

.team-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}

.team-list li {
  padding: 0.5rem 0.85rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

/* Legal / text content */
.legal-content section {
  margin-bottom: 2.5rem;
}

.legal-content section:last-child {
  margin-bottom: 0;
}

.legal-content h2 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.legal-content p {
  margin-bottom: 0.75rem;
  color: var(--color-text);
  line-height: 1.7;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content ul {
  margin: 0.5rem 0 0.75rem 1.25rem;
  list-style: disc;
}

.legal-content li {
  margin-bottom: 0.35rem;
  line-height: 1.6;
}

.legal-content a {
  word-break: break-word;
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 1.25rem 0 0.5rem;
}

.legal-meta {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

/* ---- Download page ---- */
.download-content {
  width: 100%;
  max-width: 760px;
}

.download-intro {
  margin-bottom: 2rem;
  line-height: 1.75;
  color: var(--color-text);
}

.download-section {
  margin-bottom: 2rem;
}

.download-section:last-child {
  margin-bottom: 0;
}

.download-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.download-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.download-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.download-link:hover,
.download-link:focus-visible {
  border-color: rgba(146, 192, 31, 0.45);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  color: var(--color-text);
  outline: none;
}

.download-link-icon {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(146, 192, 31, 0.12);
  color: var(--color-primary-dark);
}

.download-link-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.download-link-text {
  flex: 1 1 auto;
  min-width: 0;
}

.download-link-title {
  display: block;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 0.15rem;
}

.download-link-meta {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.download-link-action {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(155, 27, 48, 0.1);
  color: var(--color-accent);
  font-size: 1.1rem;
  font-weight: 700;
}

/* ---- Contact page ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-heading {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 0.35rem;
}

.contact-subheading {
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}

.contact-block {
  margin-bottom: 1.75rem;
}

.contact-block h3 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.contact-block p,
.contact-list {
  line-height: 1.7;
}

.contact-list li {
  margin-bottom: 0.25rem;
}

.contact-map .contact-heading {
  margin-bottom: 1rem;
}

/* Map consent */
.map-consent {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
}

.map-consent-placeholder {
  padding: 2rem 1.5rem;
  text-align: center;
}

.map-consent-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--color-primary);
  opacity: 0.7;
}

.map-consent-icon svg {
  width: 100%;
  height: 100%;
}

.map-consent-placeholder p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  max-width: 360px;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}

.map-consent-loaded {
  padding: 0;
}

.map-consent-loaded.hidden,
.map-consent-placeholder.hidden {
  display: none;
}

.map-iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-border);
}

.map-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-consent-loaded .btn-secondary {
  margin: 0.75rem 1rem 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-accent-dark);
  color: #fff;
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background: var(--color-accent-dark);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  color: var(--color-accent);
  border-color: var(--color-accent-light);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Content placeholder */
.content-placeholder {
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--color-text-muted);
}

.content-placeholder svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  opacity: 0.4;
}

/* Sub-navigation cards */
.subnav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.subnav-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: block;
  color: var(--color-text);
}

.subnav-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-primary-light);
  color: var(--color-text);
}

.subnav-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 0.35rem;
}

.subnav-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-accent-dark);
  color: rgba(255, 255, 255, 0.85);
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-inner h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-inner p,
.footer-inner a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.footer-inner a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom a:hover {
  color: white;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 1004;
  }

  body.nav-open .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: none !important;
    animation: none !important;
    z-index: 1003;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    padding-top: 0.5rem;
    background: var(--color-surface);
    flex-direction: column;
    align-items: stretch;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    gap: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1002;
    box-sizing: border-box;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav > li > a,
  .main-nav > li > .nav-parent {
    padding: 0.85rem 0.5rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }

  .has-dropdown > .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1rem;
    display: none;
    min-width: auto;
  }

  .has-dropdown.open > .dropdown {
    display: block;
  }

  .nav-parent::after {
    content: " ›";
    float: right;
    transition: transform var(--transition);
  }

  .has-dropdown.open > .nav-parent::after {
    transform: rotate(90deg);
    display: inline-block;
  }
}

@media (max-width: 480px) {
  body.nav-open .site-header,
  body.nav-open .site-header.is-scrolled {
    --header-height: 64px;
  }

  body.nav-open .site-header .logo-img,
  body.nav-open .site-header.is-scrolled .logo-img {
    height: 40px;
  }

  .site-header.is-scrolled {
    --header-height: 56px;
  }

  .logo-img {
    height: 40px;
  }

  .site-header.is-scrolled .logo-img {
    height: 34px;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero-logo {
    width: min(100%, 280px);
  }

  .container {
    padding: 2rem 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ---- Page load & scroll animations ---- */
@keyframes page-fade-down {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes page-fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes page-fade-up-scale {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hero-logo-in {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(14px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes page-curtain-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    visibility: hidden;
  }
}

.page-load-curtain {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  background: linear-gradient(165deg, #f8fbf3 0%, #ffffff 50%, #f3f8ea 100%);
}

.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  html.js:not(.page-ready) body {
    overflow: hidden;
  }

  html.js:not(.page-ready) .site-header,
  html.js:not(.page-ready) .hero,
  html.js:not(.page-ready) .page-header,
  html.js:not(.page-ready) main,
  html.js:not(.page-ready) .site-footer {
    opacity: 0;
  }

  html.js.page-ready .page-load-curtain {
    animation: page-curtain-out 0.55s ease 0.05s forwards;
  }

  html.js.page-ready .site-header {
    animation: page-fade-down 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
  }

  @media (max-width: 1024px) {
    html.js.page-ready .site-header {
      animation: page-header-fade-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
    }
  }

  @keyframes page-header-fade-in {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  html.js.page-ready .hero {
    animation: page-fade-up-scale 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
  }

  html.js.page-ready .hero-logo {
    animation: hero-logo-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
  }

  html.js.page-ready .hero-tagline {
    animation: page-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.38s both;
  }

  html.js.page-ready .page-header {
    animation: page-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
  }

  html.js.page-ready main {
    animation: page-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
  }

  html.js.page-ready .site-footer {
    animation: page-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both;
  }

  html.js.page-ready body {
    overflow: auto;
  }

  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal--delay-1 {
    transition-delay: 0.08s;
  }

  .reveal--delay-2 {
    transition-delay: 0.16s;
  }

  .reveal--delay-3 {
    transition-delay: 0.24s;
  }
}
