/* ============================================================
   OrthoHELLERN – Haupt-Stylesheet
   CI-Farben: Grün #94C01C | Grau-Blau #727F8B | Weiß #FFFFFF
   Dunkel: #1a2332 | Hell-Grau: #f4f6f8 | Border: #e2e8f0
   ============================================================ */

/* === VARIABLEN ============================================= */
:root {
  --green:        #94C01C;
  --green-dark:   #7aA015;
  --green-light:  #b8dc40;
  --green-bg:     #f0f7e0;
  --slate:        #727F8B;
  --slate-dark:   #4a5568;
  --slate-light:  #a0adb8;
  --dark:         #1a2332;
  --white:        #ffffff;
  --off-white:    #f8fafc;
  --light-grey:   #f4f6f8;
  --border:       #e2e8f0;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.14);
  --radius-sm:    4px;
  --radius:       8px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --transition:   .25s ease;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Quicksand', 'Inter', system-ui, sans-serif;
  --max-w:        1200px;
  --header-h:     72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--slate-dark);
  background: var(--white);
  line-height: 1.65;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

.section {
  padding: 5rem 0;
  position: relative;
}

.section--alt {
  background: var(--light-grey);
}

.section--dark {
  background: var(--dark);
  color: var(--white);
}

.section__eyebrow {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .5rem;
}

.section__title {
  margin-bottom: 1rem;
}

.section > .container,
.cta-section > .container,
.hours-section > .container {
  position: relative;
  z-index: 1;
}

.section__title span { color: var(--green); }

.section__lead {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 680px;
  margin-bottom: 3rem;
}

.text-center { text-align: center; }
.text-center .section__lead { margin-left: auto; margin-right: auto; }

/* === BUTTONS ============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn--primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(148,192,28,.35);
}

.btn--outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn--outline:hover {
  background: var(--green);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--off-white);
  color: var(--green-dark);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

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

/* === HEADER =============================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  overflow: hidden;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1.5rem;
}

.header-logo {
  flex-shrink: 0;
}

.header-logo img {
  height: 44px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}

.header-nav__link {
  padding: .45rem .8rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--slate-dark);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.header-nav__link:hover,
.header-nav__link.active {
  color: var(--green);
  background: var(--green-bg);
}

.header-phone {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--slate);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}
.header-phone svg { color: var(--green); flex-shrink: 0; }

.header-cta {
  flex-shrink: 0;
}

/* Header: Ampel und Termin-Button gleiche Größe */
.site-header .header-status-badge {
  padding: .75rem 1.35rem;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  border: 2px solid transparent;
  letter-spacing: 0;
  text-decoration: none;
  box-sizing: border-box;
}

.site-header .header-status-badge::before {
  width: 10px;
  height: 10px;
}

.site-header .header-cta {
  padding: .75rem 1.35rem;
  font-size: .9rem;
  line-height: 1;
}

.site-header .header-inner {
  gap: 1rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === MOBILE NAV =========================================== */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  overflow-y: auto;
  padding: 1.5rem;
  flex-direction: column;
  gap: .25rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu__status {
  display: none;
}

.mobile-menu__status-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate);
}

.mobile-menu__status .status-badge {
  font-size: .92rem;
  padding: .55rem 1.1rem;
}

.mobile-menu__link {
  display: block;
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  border-radius: var(--radius);
  border-bottom: 1px solid var(--border);
}
.mobile-menu__link:hover,
.mobile-menu__link.active {
  color: var(--green);
  background: var(--green-bg);
}

.mobile-menu__cta {
  margin-top: 1.5rem;
  padding: 0 .25rem;
}

/* === HERO ================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: var(--header-h);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  z-index: 0;
}

.hero__parallax-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
  backface-visibility: hidden;
}

@media (min-width: 921px) and (prefers-reduced-motion: no-preference) {
  .hero.is-parallax .hero__parallax-layer {
    inset: -15% -8% -10% -8%;
    will-change: transform;
  }

  .hero.is-parallax .hero__slide {
    transform: scale(1.18);
  }

  .hero.is-parallax .hero__content {
    will-change: transform, opacity;
  }
}

@media (max-width: 920px) {
  .hero__parallax-layer,
  .hero__slide,
  .hero__content {
    transform: none !important;
    opacity: 1 !important;
    will-change: auto !important;
  }
}

.hero__slide.active {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(26,35,50,.75) 0%,
    rgba(26,35,50,.55) 55%,
    rgba(26,35,50,.20) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(255,255,255,.12);
  padding: .4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}
.hero__eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero__title .accent { color: var(--green); }

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.6);
  font-size: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  animation: scrollBounce 2s infinite;
}
.hero__scroll svg { width: 20px; height: 20px; }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Slider Punkte */
.hero__dots {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: .5rem;
}
.hero__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.hero__dot.active {
  background: var(--green);
  width: 24px;
  border-radius: 4px;
}

/* === STATUS BADGE ========================================= */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem 1rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.status-badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}
.status-badge.open {
  background: rgba(148,192,28,.15);
  color: var(--green);
}
.status-badge.closed {
  background: rgba(220,38,38,.12);
  color: #dc2626;
}
.status-badge.closing {
  background: rgba(245,158,11,.15);
  color: #d97706;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* === TRUST BAR ============================================ */
.trust-bar {
  background: var(--dark);
  padding: 1.5rem 0;
}

.trust-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
}
.trust-item__icon {
  width: 40px; height: 40px;
  background: rgba(148,192,28,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-item__icon svg { width: 20px; height: 20px; color: var(--green); }
.trust-item strong { color: var(--white); display: block; font-size: .95rem; }

/* === LEISTUNGEN =========================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.service-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef1f4;
}

.service-card__img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: unset;
  background: linear-gradient(135deg, var(--green-bg), rgba(114,127,139,.1));
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card__img-placeholder svg {
  width: 48px; height: 48px;
  color: var(--green);
  opacity: .5;
}

.service-card__body {
  padding: 1.5rem;
}

.service-card__tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .5rem;
}

.service-card__title {
  font-size: 1.15rem;
  margin-bottom: .75rem;
  color: var(--dark);
}

.service-card__text {
  font-size: .9rem;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-card__link {
  font-size: .85rem;
  font-weight: 700;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.service-card__link:hover { gap: .6rem; }
.service-card__link svg { width: 14px; height: 14px; }

/* Leistungs-Detail */
.service-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 3rem;
  align-items: start;
}

.service-detail__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.service-detail__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  background: #eef1f4;
}

.service-detail__content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--slate-dark);
}

.service-detail__sidebar-box {
  background: var(--green-bg);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

@media (max-width: 900px) {
  .service-detail-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-detail__media {
    aspect-ratio: 16 / 10;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
  }

  .service-detail__image {
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
  }

  .service-detail__sidebar-box {
    position: static;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-card {
    display: flex;
    flex-direction: column;
  }

  .service-card__media {
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 10;
    flex-shrink: 0;
  }

  .service-card__media .service-card__img,
  .service-card__media .service-card__img-placeholder {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 100%;
    aspect-ratio: unset;
    flex-shrink: 0;
  }
}

/* === CTA SECTION ========================================== */
.cta-section {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  padding: 4rem 0;
  text-align: center;
}

.cta-section__title {
  color: var(--white);
  margin-bottom: .75rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.cta-section__text {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* === TEAM ================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-card__img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--light-grey);
}
.team-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .4s ease;
}
.team-card:hover .team-card__img { transform: scale(1.04); }

.team-card__badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--green);
  padding: .25rem .65rem;
  border-radius: 50px;
}

.team-card__body {
  padding: 1.25rem 1rem;
}

.team-card__role {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .35rem;
}
.team-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .35rem;
}
.team-card__specialty {
  font-size: .85rem;
  color: var(--slate);
}

/* === ÖFFNUNGSZEITEN ======================================= */
.hours-section {
  background: var(--dark);
  color: var(--white);
}

.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.hours-table {
  width: 100%;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .65rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .95rem;
}
.hours-row:last-child { border-bottom: none; }

.hours-day {
  font-weight: 600;
  color: rgba(255,255,255,.9);
  min-width: 110px;
}
.hours-day.today {
  color: var(--green);
}

.hours-time {
  color: rgba(255,255,255,.7);
  text-align: right;
}
.hours-time.closed-text {
  color: rgba(255,255,255,.35);
  font-style: italic;
}

.hours-note {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(148,192,28,.12);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9rem;
  color: rgba(255,255,255,.85);
}

.hours-contact {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-item__icon {
  width: 44px; height: 44px;
  background: rgba(148,192,28,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item__icon svg { width: 20px; height: 20px; color: var(--green); }
.contact-item__label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: .2rem;
}
.contact-item__value {
  font-size: .95rem;
  color: var(--white);
  font-weight: 500;
}
.contact-item__value a { color: var(--white); }
.contact-item__value a:hover { color: var(--green); }

/* === GALERIE ============================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,35,50,.0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.gallery-item:hover .gallery-item__overlay {
  background: rgba(26,35,50,.45);
}
.gallery-item__overlay svg {
  width: 36px; height: 36px;
  color: var(--white);
  opacity: 0;
  transform: scale(.8);
  transition: all var(--transition);
}
.gallery-item:hover .gallery-item__overlay svg {
  opacity: 1;
  transform: scale(1);
}

/* === MAP CTA ============================================== */
.map-section {
  background: var(--light-grey);
  padding: 4rem 0;
}

.map-privacy-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.map-privacy-box svg {
  width: 56px; height: 56px;
  color: var(--slate-light);
  margin: 0 auto 1rem;
}

.map-frame-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-frame-wrap iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* === LIGHTBOX ============================================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox.open { display: flex; }

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  transition: background var(--transition);
}
.lightbox__close:hover { background: rgba(255,255,255,.3); }
.lightbox__close svg { width: 20px; height: 20px; }

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  transition: background var(--transition);
}
.lightbox__prev { left: 1.25rem; }
.lightbox__next { right: 1.25rem; }
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255,255,255,.3); }

/* === POPUP ================================================ */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1800;
  background: rgba(0,0,0,.6);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn .3s ease;
}
.popup-overlay.open { display: flex; }

.popup-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: slideUp .35s ease;
}

.popup-box__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px; height: 36px;
  background: var(--light-grey);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--slate);
  transition: background var(--transition);
}
.popup-box__close:hover { background: var(--border); color: var(--dark); }
.popup-box__close svg { width: 18px; height: 18px; }

.popup-box__icon {
  width: 56px; height: 56px;
  background: var(--green-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.popup-box__icon svg { width: 28px; height: 28px; color: var(--green); }

.popup-box__title {
  font-size: 1.4rem;
  margin-bottom: .75rem;
}
.popup-box__text {
  color: var(--slate);
  margin-bottom: 1.75rem;
  font-size: .95rem;
}

/* === MOBILE STICKY CTA ==================================== */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: .85rem 1rem;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,.1);
}
.sticky-cta .btn { width: 100%; justify-content: center; }

/* === FOOTER =============================================== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding-top: 4rem;
}

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

.footer-brand__logo {
  height: 40px;
  width: auto;
  margin-bottom: 1.25rem;
  /* Filter für weißes Logo */
  filter: brightness(0) invert(1);
}

.footer-brand__text {
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-col__title {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-nav a {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--green); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.footer-contact__item {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .88rem;
  color: rgba(255,255,255,.65);
}
.footer-contact__item svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; margin-top: 3px; }
.footer-contact__item a { color: rgba(255,255,255,.65); }
.footer-contact__item a:hover { color: var(--green); }

.footer-hours .hours-row {
  font-size: .85rem;
  padding: .45rem 0;
}
.footer-hours .hours-day { min-width: 80px; font-size: .82rem; }
.footer-hours .hours-time { font-size: .82rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  flex-wrap: wrap;
  gap: .5rem;
}

.footer-bottom a {
  color: rgba(255,255,255,.45);
}
.footer-bottom a:hover { color: var(--green); }

.footer-bottom__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-bottom__cookie {
  background: none;
  border: none;
  color: rgba(255,255,255,.45);
  font-size: .82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  line-height: 1.4;
}

.footer-bottom__cookie:hover {
  color: var(--green);
}

/* === BREADCRUMB =========================================== */
.breadcrumb {
  padding: .75rem 0;
  font-size: .85rem;
  color: var(--slate);
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--slate); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb__sep { color: var(--slate-light); }
.breadcrumb__current { color: var(--dark); font-weight: 500; }

/* === PAGE HERO (innere Seiten) ============================ */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #2d3f56 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  margin-top: var(--header-h);
}

.page-hero__eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .75rem;
}

.page-hero__title {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.page-hero__subtitle,
.page-hero__text {
  color: rgba(255,255,255,.7);
  font-size: 1.05rem;
  margin-top: .75rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero__title span {
  color: var(--green);
}

/* === FORMS ================================================ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .4rem;
}

.form-control {
  width: 100%;
  padding: .7rem 1rem;
  font-size: .95rem;
  color: var(--dark);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  font-family: var(--font-body);
}
.form-control:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(148,192,28,.15);
}

textarea.form-control { resize: vertical; min-height: 120px; }

/* === ANIMATIONS =========================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

.fade-in {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(5px);
  transition:
    opacity .75s cubic-bezier(.22, 1, .36, 1),
    transform .75s cubic-bezier(.22, 1, .36, 1),
    filter .75s cubic-bezier(.22, 1, .36, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Scroll Reveal – data-reveal / data-stagger */
[data-reveal] {
  opacity: 0;
  filter: blur(8px);
  transition:
    opacity .8s cubic-bezier(.22, 1, .36, 1),
    transform .8s cubic-bezier(.22, 1, .36, 1),
    filter .8s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal="up"]    { transform: translateY(42px); }
[data-reveal="down"]  { transform: translateY(-28px); }
[data-reveal="left"]  { transform: translateX(-48px); }
[data-reveal="right"] { transform: translateX(48px); }
[data-reveal="fade"]  { transform: none; }
[data-reveal="scale"] { transform: scale(.94); }

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

[data-stagger] > * {
  opacity: 0;
  transform: translateY(34px) scale(.985);
  filter: blur(6px);
  transition:
    opacity .7s cubic-bezier(.22, 1, .36, 1),
    transform .7s cubic-bezier(.22, 1, .36, 1),
    filter .7s cubic-bezier(.22, 1, .36, 1);
}

[data-stagger].is-revealed > * {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

[data-stagger].is-revealed > *:nth-child(1)  { transition-delay: 0ms; }
[data-stagger].is-revealed > *:nth-child(2)  { transition-delay: 75ms; }
[data-stagger].is-revealed > *:nth-child(3)  { transition-delay: 150ms; }
[data-stagger].is-revealed > *:nth-child(4)  { transition-delay: 225ms; }
[data-stagger].is-revealed > *:nth-child(5)  { transition-delay: 300ms; }
[data-stagger].is-revealed > *:nth-child(6)  { transition-delay: 375ms; }
[data-stagger].is-revealed > *:nth-child(7)  { transition-delay: 450ms; }
[data-stagger].is-revealed > *:nth-child(8)  { transition-delay: 525ms; }
[data-stagger].is-revealed > *:nth-child(9)  { transition-delay: 600ms; }
[data-stagger].is-revealed > *:nth-child(10) { transition-delay: 675ms; }
[data-stagger].is-revealed > *:nth-child(11) { transition-delay: 750ms; }
[data-stagger].is-revealed > *:nth-child(12) { transition-delay: 825ms; }

.page-hero .container > * {
  animation: pageHeroFadeIn .85s cubic-bezier(.22, 1, .36, 1) both;
}
.page-hero .container > *:nth-child(2) { animation-delay: .12s; }
.page-hero .container > *:nth-child(3) { animation-delay: .24s; }

@keyframes pageHeroFadeIn {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

/* === RESPONSIVE =========================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }

  .header-nav,
  .header-phone,
  .header-cta {
    display: none;
  }

  .nav-toggle { display: flex; }

  .sticky-cta { display: block; }

  .hero { min-height: 85vh; }
  .hero__title { font-size: clamp(1.8rem, 7vw, 2.8rem); }

  .services-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding-top: 1.5rem;
    padding-bottom: 1.25rem;
    font-size: .88rem;
    color: rgba(255,255,255,.72);
  }

  .footer-nav a {
    color: rgba(255,255,255,.9);
    font-size: 1rem;
    line-height: 1.45;
    padding: .2rem 0;
  }

  .footer-bottom__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem 1rem;
    width: 100%;
    max-width: 22rem;
    margin: 0 auto;
  }

  .footer-bottom a,
  .footer-bottom__cookie {
    color: rgba(255,255,255,.95);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.35;
    padding: .45rem .25rem;
  }

  .trust-bar__inner {
    gap: 1rem 2rem;
  }

  .lightbox__prev { left: .5rem; }
  .lightbox__next { right: .5rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* === SKIP LINK (Barrierefreiheit) ======================== */
.skip-link {
  position: absolute;
  top: -50px;
  left: 1rem;
  padding: .5rem 1rem;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius);
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* === ACCESSIBILITY & PERFORMANCE =========================== */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.contact-item__action {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--green);
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.contact-item__action:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

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

  .hero__slide {
    transition: none !important;
    transform: none !important;
    will-change: auto !important;
  }

  .hero__content {
    transform: none !important;
    opacity: 1 !important;
    will-change: auto !important;
  }

  .hero__scroll {
    animation: none !important;
  }

  .fade-in,
  [data-reveal],
  [data-stagger] > *,
  .page-hero .container > * {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .fade-in.visible,
  [data-reveal].is-revealed,
  [data-stagger].is-revealed > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* === PRINT =============================================== */
@media print {
  .site-header, .sticky-cta, .popup-overlay, .site-footer { display: none !important; }
  .hero { margin-top: 0 !important; }
}

/* Classic Team Layout – näher am alten OrthoHELLERN-Team */
.team-page-classic {
  padding-top: 4.5rem;
  padding-bottom: 5rem;
  background: #fff;
}

.team-classic-heading {
  margin-bottom: 3rem;
}

.team-classic-heading h2 {
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: .95;
  letter-spacing: .08em;
  font-weight: 300;
  color: #7c8794;
}

.team-classic-heading h2 span {
  color: var(--green);
  font-weight: 800;
  letter-spacing: .02em;
  margin-left: .12em;
}

.team-classic-grid {
  display: grid;
  grid-template-columns: repeat(4, 220px);
  gap: 4.4rem 2.1rem;
  align-items: start;
}

.team-classic-card {
  display: block;
  width: 220px;
  text-decoration: none;
  color: inherit;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  transition: transform .2s ease;
}

.team-classic-card:hover {
  transform: translateY(-3px);
}

.team-classic-image {
  display: block;
  width: 220px;
  height: 220px;
  background: #f5f7f8;
  overflow: hidden;
}

.team-classic-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  transform: none !important;
}

.team-classic-card--doctor .team-classic-image img {
  object-position: center top;
}

.team-classic-name {
  display: block;
  min-height: 34px;
  padding: .42rem .75rem;
  background: var(--green);
  color: #fff;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: .04em;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-classic-cta {
  padding: 4.5rem 0;
  text-align: center;
  background: var(--green);
  color: #fff;
}

.team-classic-cta h2 {
  color: #fff;
  margin: 0 0 .8rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.team-classic-cta p {
  margin: 0 0 1.8rem;
  color: rgba(255,255,255,.88);
}

.team-classic-cta .btn {
  background: #fff;
  color: var(--dark);
}

@media (max-width: 1100px) {
  .team-classic-grid {
    grid-template-columns: repeat(3, 220px);
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .team-page-classic {
    padding-top: 3rem;
  }

  .team-classic-heading h2 {
    font-size: 3.2rem;
  }

  .team-classic-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 2rem 1rem;
  }

  .team-classic-card,
  .team-classic-image {
    width: 100%;
  }

  .team-classic-image {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .team-classic-name {
    font-size: .9rem;
  }
}

@media (max-width: 430px) {
  .team-classic-grid {
    grid-template-columns: 1fr;
  }
}

/* OrthoHELLERN Team Redesign – Ärzte hervorgehoben, Praxisteam ruhig */
.ortho-team-page,
.ortho-team-home {
  background: #fff;
}

.ortho-team-head {
  max-width: 820px;
  margin: 0 auto 2.2rem;
  text-align: center;
}

.ortho-team-head--staff {
  margin-top: 4.5rem;
}

.ortho-team-head--home {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.ortho-team-head--home h3 {
  margin: .35rem 0 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--dark);
}

.ortho-team-head--home h3 span {
  color: var(--green);
}

.ortho-doctor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 420px));
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
}

.ortho-doctor-grid--home {
  margin-top: 2.4rem;
}

.ortho-doctor-card {
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: 320px;
  background: #fff;
  border: 1px solid rgba(132,148,164,.28);
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 18px 55px rgba(20,38,58,.08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.ortho-doctor-card:hover {
  transform: translateY(-4px);
  border-color: rgba(132,190,0,.45);
  box-shadow: 0 24px 70px rgba(20,38,58,.13);
}

.ortho-doctor-card__image {
  position: relative;
  min-height: 320px;
  background: #f3f6f7;
  overflow: hidden;
}

.ortho-doctor-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.ortho-doctor-card__image span {
  position: absolute;
  top: .9rem;
  left: .9rem;
  right: .9rem;
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 1.8rem);
  padding: .42rem .7rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: .68rem;
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ortho-doctor-card__body {
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ortho-doctor-card__body p {
  margin: 0 0 .65rem;
  color: var(--green);
  font-size: .74rem;
  line-height: 1.35;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.ortho-doctor-card__body h3 {
  margin: 0 0 .65rem;
  color: var(--dark);
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.15;
}

.ortho-doctor-card__text {
  color: var(--slate);
  font-size: .94rem;
  line-height: 1.65;
  margin-bottom: 1.1rem;
}

.ortho-doctor-card__body strong {
  margin-top: auto;
  color: var(--green);
  font-size: .92rem;
}

.ortho-staff-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 1.4rem;
}

.ortho-staff-grid--home {
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  max-width: 850px;
  margin: 0 auto;
}

.ortho-staff-card {
  background: #fff;
  border: 1px solid rgba(132,148,164,.24);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(20,38,58,.06);
}

.ortho-staff-card__image {
  aspect-ratio: 1 / 1;
  background: #f5f7f8;
  overflow: hidden;
}

.ortho-staff-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.ortho-staff-card__body {
  padding: 1rem .9rem 1.15rem;
  text-align: center;
}

.ortho-staff-card__body p {
  margin: 0 0 .45rem;
  color: var(--green);
  font-size: .66rem;
  line-height: 1.25;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.ortho-staff-card__body h3 {
  margin: 0;
  color: var(--dark);
  font-size: 1rem;
  line-height: 1.25;
}

.team-classic-cta {
  padding: 4.5rem 0;
  text-align: center;
  background: var(--green);
  color: #fff;
}

.team-classic-cta h2 {
  color: #fff;
  margin: 0 0 .8rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.team-classic-cta p {
  margin: 0 0 1.8rem;
  color: rgba(255,255,255,.88);
}

.team-classic-cta .btn {
  background: #fff;
  color: var(--dark);
}

@media (max-width: 1020px) {
  .ortho-doctor-grid {
    grid-template-columns: minmax(280px, 620px);
  }

  .ortho-staff-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }
}

@media (max-width: 760px) {
  .ortho-doctor-card {
    grid-template-columns: 1fr;
  }

  .ortho-doctor-card__image {
    min-height: auto;
    aspect-ratio: 1 / 1;
  }

  .ortho-staff-grid,
  .ortho-staff-grid--home {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 430px) {
  .ortho-staff-grid,
  .ortho-staff-grid--home {
    grid-template-columns: 1fr;
  }
}

/* Team Tags + Startseiten-Vorschau ohne optische Lücken */
.ortho-staff-card__image {
  position: relative;
}

.ortho-staff-card__tag {
  position: absolute;
  top: .7rem;
  left: .7rem;
  right: .7rem;
  width: fit-content;
  max-width: calc(100% - 1.4rem);
  padding: .38rem .62rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: .62rem;
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  box-shadow: 0 8px 18px rgba(132,190,0,.22);
}

.ortho-staff-grid--home {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  max-width: 1040px;
}

@media (max-width: 1020px) {
  .ortho-staff-grid--home {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    max-width: 620px;
  }
}

@media (max-width: 520px) {
  .ortho-staff-grid--home {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}

/* Kontaktseite – OrthoHELLERN Feinschliff */
.contact-page,
.contact-section {
  background: linear-gradient(180deg, #f7faf9 0%, #ffffff 42%, #ffffff 100%);
}

.contact-shell,
.contact-grid,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.contact-card,
.contact-info-card,
.contact-form-card,
.contact-box {
  background: #fff;
  border: 1px solid rgba(132,148,164,.22);
  border-radius: 24px;
  box-shadow: 0 18px 55px rgba(20,38,58,.08);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.contact-info-card {
  position: sticky;
  top: 110px;
}

.contact-card h2,
.contact-info-card h2,
.contact-form-card h2,
.contact-box h2 {
  margin-top: 0;
  color: var(--dark);
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
}

.contact-card h2 span,
.contact-info-card h2 span,
.contact-form-card h2 span,
.contact-box h2 span {
  color: var(--green);
}

.contact-list,
.contact-details,
.contact-items {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
}

.contact-item,
.contact-detail,
.contact-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: .9rem;
  align-items: start;
  padding: 1rem;
  border-radius: 18px;
  background: #f7faf9;
  border: 1px solid rgba(132,148,164,.16);
}

.contact-item svg,
.contact-detail svg,
.contact-row svg {
  width: 22px;
  height: 22px;
  color: var(--green);
  margin-top: .1rem;
}

.contact-item strong,
.contact-detail strong,
.contact-row strong {
  display: block;
  color: var(--dark);
  margin-bottom: .18rem;
}

.contact-item a,
.contact-detail a,
.contact-row a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 700;
}

.contact-item a:hover,
.contact-detail a:hover,
.contact-row a:hover {
  color: var(--green);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: .45rem;
  color: var(--dark);
  font-weight: 700;
  font-size: .92rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid rgba(132,148,164,.35);
  border-radius: 16px;
  background: #fff;
  padding: .95rem 1rem;
  color: var(--dark);
  font: inherit;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(132,190,0,.14);
}

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

.contact-form .checkbox,
.contact-form .form-check,
.contact-form .privacy-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: .75rem;
  align-items: start;
  padding: .8rem 0;
  color: var(--slate);
  font-weight: 500;
}

.contact-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: .12rem;
  accent-color: var(--green);
}

.contact-form button,
.contact-form .btn {
  justify-self: start;
}

.contact-success,
.form-success,
.alert-success {
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: rgba(132,190,0,.12);
  border: 1px solid rgba(132,190,0,.32);
  color: #315000;
  font-weight: 700;
}

.contact-error,
.form-error,
.alert-error {
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: rgba(190, 45, 45, .08);
  border: 1px solid rgba(190, 45, 45, .26);
  color: #7a1616;
  font-weight: 700;
}

.contact-hours,
.contact-map-card,
.contact-appointment-card {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-radius: 20px;
  background: #f7faf9;
  border: 1px solid rgba(132,148,164,.16);
}

.contact-appointment-card {
  background: linear-gradient(135deg, var(--green), #6da500);
  color: #fff;
}

.contact-appointment-card h3,
.contact-appointment-card p {
  color: #fff;
}

.contact-appointment-card .btn {
  background: #fff;
  color: var(--dark);
}

@media (max-width: 920px) {
  .contact-shell,
  .contact-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-info-card {
    position: static;
  }
}

@media (max-width: 620px) {
  .contact-form .form-row,
  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .contact-item,
  .contact-detail,
  .contact-row {
    grid-template-columns: 36px 1fr;
  }
}

/* Team-Tags nicht über Gesichtern anzeigen */
.ortho-staff-card__image > .ortho-staff-card__tag {
  display: none !important;
}

.ortho-staff-card__body > .ortho-staff-card__tag {
  position: static !important;
  display: inline-flex;
  width: auto;
  max-width: 100%;
  margin: 0 auto .55rem;
  padding: .34rem .6rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: .6rem;
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  box-shadow: none;
  white-space: normal;
  text-align: center;
}

/* Arzt-Tags nicht über Gesichtern anzeigen */
.ortho-doctor-card__image > span {
  display: none !important;
}

.ortho-doctor-card__body > .ortho-doctor-card__tag {
  position: static !important;
  display: inline-flex;
  align-self: flex-start;
  width: auto;
  max-width: 100%;
  margin: 0 0 .75rem;
  padding: .42rem .7rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: .66rem;
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  box-shadow: none;
  white-space: normal;
}

/* Startseite: kompakter Team-Teaser ohne große 12er-Liste */
.home-team-preview {
  background: #fff;
}

.home-doctor-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 420px));
  gap: 1.4rem;
  justify-content: center;
  margin-top: 2.2rem;
}

.home-doctor-tile {
  display: grid;
  grid-template-columns: 145px 1fr;
  min-height: 190px;
  background: #fff;
  border: 1px solid rgba(132,148,164,.24);
  border-radius: 20px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 16px 45px rgba(20,38,58,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.home-doctor-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 60px rgba(20,38,58,.12);
}

.home-doctor-tile__image {
  display: block;
  background: #f3f6f7;
  overflow: hidden;
}

.home-doctor-tile__image img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.home-doctor-tile__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.15rem 1.25rem;
}

.home-doctor-tile__label {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: .65rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: .62rem;
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.home-doctor-tile strong {
  color: var(--dark);
  font-size: 1.25rem;
  line-height: 1.18;
  margin-bottom: .35rem;
}

.home-doctor-tile small {
  color: var(--slate);
  font-size: .86rem;
  line-height: 1.4;
}

.home-doctor-tile em {
  margin-top: .75rem;
  color: var(--green);
  font-style: normal;
  font-weight: 800;
  font-size: .85rem;
}

.home-staff-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(145px, 1fr));
  gap: 1.15rem;
  max-width: 940px;
  margin: 2rem auto 0;
}

.home-staff-tile {
  background: #fff;
  border: 1px solid rgba(132,148,164,.22);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(20,38,58,.06);
}

.home-staff-tile__image {
  display: block;
  aspect-ratio: 1 / 1;
  background: #f3f6f7;
  overflow: hidden;
}

.home-staff-tile__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.home-staff-tile__body {
  display: block;
  padding: .85rem .75rem 1rem;
  text-align: center;
}

.home-staff-tile__body small {
  display: block;
  color: var(--green);
  font-size: .58rem;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .35rem;
}

.home-staff-tile__body strong {
  display: block;
  color: var(--dark);
  font-size: .94rem;
  line-height: 1.2;
}

@media (max-width: 960px) {
  .home-doctor-preview {
    grid-template-columns: minmax(280px, 560px);
  }

  .home-staff-preview {
    grid-template-columns: repeat(2, minmax(145px, 1fr));
    max-width: 560px;
  }
}

@media (max-width: 540px) {
  .home-doctor-preview {
    grid-template-columns: 1fr;
  }

  .home-doctor-tile {
    grid-template-columns: 1fr;
  }

  .home-doctor-tile__image {
    width: 100%;
    aspect-ratio: 16 / 11;
    min-height: 0;
  }

  .home-doctor-tile__image img {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 11;
    object-fit: cover;
  }

  .home-staff-preview {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

/* Startseite: Trust-Bar unter Hero mobil sauber ausrichten */
@media (max-width: 760px) {
  .trust-bar {
    padding: 1rem 0;
  }

  .trust-bar__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: .7rem;
  }

  .trust-item {
    width: 100%;
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    gap: .75rem;
    padding: .85rem .95rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    background: rgba(255,255,255,.045);
  }

  .trust-item__icon {
    width: 38px;
    height: 38px;
  }

  .trust-item strong {
    font-size: .92rem;
    line-height: 1.2;
  }

  .trust-item span {
    display: block;
    margin-top: .15rem;
    font-size: .8rem;
    line-height: 1.3;
    color: rgba(255,255,255,.68);
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .trust-bar__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 1rem;
  }

  .trust-item {
    padding: .75rem .85rem;
    border-radius: 16px;
    background: rgba(255,255,255,.035);
  }

  .trust-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 420px;
  }
}

/* Startseite: Willkommen-Block mobil nicht quetschen */
@media (max-width: 760px) {
  #ueber-uns {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .home-welcome-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .home-welcome-grid .section__title {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
  }

  .home-welcome-grid p {
    font-size: .98rem !important;
    line-height: 1.7 !important;
  }

  .home-welcome-grid blockquote {
    margin: 1.4rem 0 !important;
    font-size: .98rem !important;
  }

  .home-welcome-media {
    max-width: 360px;
    margin: .5rem auto 0;
    width: 100%;
  }

  .home-welcome-media img,
  .home-welcome-media > div:first-child {
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .home-welcome-media > div[style*="position:absolute"] {
    display: none !important;
  }
}

@media (min-width: 761px) and (max-width: 1020px) {
  .home-welcome-grid {
    gap: 2.5rem !important;
  }
}

/* Header: weißer Startzustand, beim Scrollen grün mit weißem Logo */
.header-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-logo__default {
  display: block;
}

.header-logo__white {
  display: none;
}

.site-header {
  transition:
    background .22s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    color .22s ease;
}

.site-header.scrolled {
  background: rgba(148, 192, 28, .96);
  border-bottom-color: rgba(255,255,255,.18);
  box-shadow: 0 12px 35px rgba(20,38,58,.18);
}

.site-header.scrolled .header-logo__default {
  display: none;
}

.site-header.scrolled .header-logo__white {
  display: block;
}

.site-header.scrolled .header-nav__link {
  color: rgba(255,255,255,.92);
}

.site-header.scrolled .header-nav__link:hover,
.site-header.scrolled .header-nav__link.active {
  color: #fff;
  background: rgba(255,255,255,.18);
}

.site-header.scrolled .header-phone {
  color: #fff;
}

.site-header.scrolled .header-phone svg {
  color: #fff;
}

/* Ampel auf grünem Header: weiße Pill wie Termin-Button, nur Text/Punkt in Ampelfarbe */
.site-header.scrolled .status-badge.open,
.site-header.scrolled .status-badge.closing,
.site-header.scrolled .status-badge.closed {
  background: #fff;
  border-color: #fff;
  box-shadow: none;
}

.site-header.scrolled .status-badge.open {
  color: var(--green-dark);
}

.site-header.scrolled .status-badge.closing {
  color: #b45309;
}

.site-header.scrolled .status-badge.closed {
  color: #dc2626;
}

.site-header.scrolled .header-cta,
.site-header.scrolled .header-cta.btn,
.site-header.scrolled a.header-cta,
.site-header.scrolled button.header-cta {
  background: #fff;
  border-color: #fff;
  color: var(--green);
}

.site-header.scrolled .header-cta:hover,
.site-header.scrolled .header-cta.btn:hover,
.site-header.scrolled a.header-cta:hover,
.site-header.scrolled button.header-cta:hover {
  background: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.92);
  color: var(--green-dark);
}

.site-header.scrolled .nav-toggle span {
  background: #fff;
}

/* Mobile: grüner Sticky-Header bleibt sauber, Menü selbst bleibt weiß */
@media (max-width: 920px) {
  .site-header.scrolled .header-logo img {
    height: 44px;
  }

  .site-header.scrolled .nav-toggle {
    color: #fff;
  }
}

/* Header: einheitliche Höhe über var(--header-h) */
.header-inner {
  height: var(--header-h);
  align-items: center;
}

.header-logo {
  height: var(--header-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.header-nav,
.header-phone,
.header-cta,
.nav-toggle {
  align-self: center;
}

.nav-toggle {
  align-items: center;
  justify-content: center;
}

@media (max-width: 920px) {
  .header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between;
    gap: .75rem;
  }

  .header-logo {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
  }

  .header-logo img {
    height: 44px;
    width: auto;
    max-width: min(100%, 220px);
    object-fit: contain;
    object-position: left center;
  }

  .header-nav,
  .header-phone,
  .header-cta,
  .header-only-status {
    display: none !important;
  }

  .mobile-menu__status {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .55rem;
    padding: 1rem 1.1rem 1.15rem;
    margin: -1.5rem -1.5rem 1rem;
    background: linear-gradient(180deg, var(--green-bg), #fff 85%);
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle {
    display: flex !important;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    margin-left: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
  }

  .nav-toggle span {
    width: 30px;
    height: 2px;
    background: var(--dark);
  }

  .site-header.scrolled .nav-toggle span {
    background: #fff;
  }
}

@media (max-width: 420px) {
  .header-inner {
    gap: .5rem;
  }

  .header-logo img {
    height: 42px;
    max-width: min(100%, 200px);
  }

  .nav-toggle {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .nav-toggle span {
    width: 28px;
  }
}

/* =========================================================
   Contact page polish 2026-06-23
   ========================================================= */

.contact-clean {
  background:
    linear-gradient(180deg, rgba(248,250,252,.88), #fff 42%),
    radial-gradient(circle at 85% 12%, rgba(148,192,28,.10), transparent 28%);
  padding-top: clamp(3rem, 6vw, 5.5rem);
}

.contact-clean__top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-quick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-height: 132px;
  padding: 1.35rem;
  border-radius: 24px;
  background: #fff;
  color: var(--dark);
  text-decoration: none;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.contact-quick-card:hover {
  transform: translateY(-4px);
  border-color: rgba(148,192,28,.42);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .13);
}

.contact-quick-card--primary {
  background: linear-gradient(135deg, var(--green), #7faa16);
  color: #fff;
}

.contact-quick-card__icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(148,192,28,.13);
  font-size: 1.25rem;
}

.contact-quick-card--primary .contact-quick-card__icon {
  background: rgba(255,255,255,.20);
}

.contact-quick-card strong {
  font-size: 1.05rem;
  line-height: 1.25;
}

.contact-quick-card small {
  color: var(--slate);
  line-height: 1.45;
}

.contact-quick-card--primary small {
  color: rgba(255, 255, 255, 0.95);
}

.contact-clean__grid {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.contact-clean__side {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 100px;
}

.contact-panel,
.contact-form-card--clean,
.contact-map-card--clean {
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 18px 55px rgba(15, 23, 42, .08);
}

.contact-panel {
  padding: 1.45rem;
}

.contact-panel h2,
.contact-form-card--clean h2,
.contact-map-card--clean h2 {
  margin: .6rem 0 1rem;
  color: var(--dark);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.contact-panel .status-badge {
  margin-bottom: .35rem;
}

.contact-hours-list {
  display: grid;
  gap: .45rem;
}

.contact-hours-list__row {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: .75rem;
  align-items: center;
  padding: .78rem .85rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, .035);
  border: 1px solid rgba(15, 23, 42, .055);
}

.contact-hours-list__row strong {
  color: var(--dark);
  font-size: .92rem;
}

.contact-hours-list__row span {
  color: var(--slate);
  font-size: .92rem;
  line-height: 1.35;
}

.contact-hours-list__row.is-today {
  background: rgba(148,192,28,.14);
  border-color: rgba(148,192,28,.35);
}

.contact-hours-list__row.is-today strong,
.contact-hours-list__row.is-today span {
  color: var(--dark);
}

.contact-note {
  margin-top: 1rem;
  padding: .95rem 1rem;
  border-radius: 18px;
  background: rgba(148,192,28,.12);
  color: var(--dark);
  line-height: 1.5;
  font-size: .92rem;
}

.contact-note--warning {
  background: rgba(245,158,11,.13);
}

.contact-panel--address address {
  margin: 0 0 1rem;
  font-style: normal;
  color: var(--slate);
  line-height: 1.65;
}

.contact-panel--address address strong {
  display: inline-block;
  margin-bottom: .2rem;
  color: var(--dark);
}

.contact-clean__main {
  display: grid;
  gap: 1rem;
}

.contact-form-card--clean,
.contact-map-card--clean {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.contact-form-card--clean > p {
  max-width: 720px;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 1.35rem;
}

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

.contact-form .form-group--full {
  grid-column: 1 / -1;
}

.contact-form .form-label {
  color: var(--dark);
  font-weight: 700;
  margin-bottom: .4rem;
}

.contact-form .form-control {
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.13);
  background: rgba(248,250,252,.72);
  box-shadow: none;
}

.contact-form textarea.form-control {
  min-height: 150px;
  line-height: 1.55;
}

.contact-form .form-control:focus {
  border-color: rgba(148,192,28,.8);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(148,192,28,.15);
}

.contact-privacy-check {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin: 1rem 0 1.25rem;
  padding: .95rem 1rem;
  border-radius: 18px;
  background: rgba(15,23,42,.035);
  color: var(--slate);
  line-height: 1.5;
}

.contact-privacy-check input {
  margin-top: .25rem;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--green);
}

.contact-privacy-check a {
  color: var(--dark);
  font-weight: 700;
}

.contact-form__submit {
  width: auto;
  min-width: 210px;
}

.form-feedback {
  border-radius: 18px;
  padding: 1rem 1.1rem;
  margin: 1rem 0 1.25rem;
  line-height: 1.5;
}

.form-feedback--success {
  background: rgba(148,192,28,.14);
  border: 1px solid rgba(148,192,28,.35);
  color: var(--dark);
}

.form-feedback--error {
  background: rgba(220,38,38,.10);
  border: 1px solid rgba(220,38,38,.25);
  color: #991b1b;
}

.map-privacy-box {
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(25,58,67,.92), rgba(16,41,50,.92)),
    radial-gradient(circle at 20% 20%, rgba(148,192,28,.2), transparent 35%);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
}

.map-privacy-box p {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255,255,255,.82);
}

.map-privacy-box p strong {
  display: block;
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: .35rem;
}

.map-privacy-box .btn {
  margin-top: .5rem;
  background: #fff;
  color: var(--dark);
  border-color: #fff;
}

.map-frame-wrap {
  border-radius: 22px;
  overflow: hidden;
  min-height: 340px;
}

.map-frame-wrap iframe {
  width: 100%;
  min-height: 340px;
  border: 0;
  display: block;
}

@media (max-width: 980px) {
  .contact-clean__top {
    grid-template-columns: 1fr;
  }

  .contact-clean__grid {
    grid-template-columns: 1fr;
  }

  .contact-clean__side {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .contact-clean {
    padding-top: 2.25rem;
  }

  .contact-clean__side {
    grid-template-columns: 1fr;
  }

  .contact-quick-card {
    min-height: 112px;
    padding: 1.1rem;
    border-radius: 20px;
  }

  .contact-panel,
  .contact-form-card--clean,
  .contact-map-card--clean {
    border-radius: 22px;
    padding: 1.15rem;
  }

  .contact-hours-list__row {
    grid-template-columns: 1fr;
    gap: .2rem;
  }

  .contact-form__grid {
    grid-template-columns: 1fr;
  }

  .contact-form__submit {
    width: 100%;
  }

  .map-privacy-box {
    min-height: 230px;
    padding: 1.35rem;
  }
}

/* =========================================================
   Home trust/contact polish 2026-06-23
   ========================================================= */

@media (min-width: 1101px) {
  .trust-bar {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: clamp(1.25rem, 2.6vw, 2.8rem) !important;
    align-items: start !important;
  }

  .trust-bar .trust-item {
    justify-content: flex-start !important;
  }

  .trust-bar .trust-item:last-child {
    grid-column: auto !important;
    justify-self: auto !important;
    max-width: none !important;
  }
}

@media (max-width: 1100px) and (min-width: 761px) {
  .trust-bar {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }

  .trust-bar .trust-item:last-child {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    width: min(100%, 480px) !important;
  }
}

/* Kontakt-/Adresskarten auf dunklem Startseitenbereich sauber lesbar */
.hours-contact .contact-item,
.contact-section .contact-item,
.hours-section .contact-item {
  background: rgba(255,255,255,.98) !important;
  color: var(--dark) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
}

.hours-contact .contact-item__label,
.contact-section .contact-item__label,
.hours-section .contact-item__label {
  color: rgba(26,35,50,.56) !important;
}

.hours-contact .contact-item__value,
.hours-contact .contact-item__value a,
.contact-section .contact-item__value,
.contact-section .contact-item__value a,
.hours-section .contact-item__value,
.hours-section .contact-item__value a {
  color: var(--dark) !important;
}

.hours-contact .contact-item__icon,
.contact-section .contact-item__icon,
.hours-section .contact-item__icon {
  background: rgba(148,192,28,.13) !important;
  color: var(--green) !important;
}

/* =========================================================
   Trust-Leiste Startseite final 2026-06-23
   Desktop 5 nebeneinander / Tablet 2 / Mobil 1
   ========================================================= */

.trust-bar,
.hero-trust,
.home-trust,
.trust-list,
.benefits-bar,
.benefits-list,
.usp-bar,
.usp-list {
  width: min(100% - 2rem, 1180px) !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: clamp(1rem, 1.6vw, 1.75rem) !important;
  align-items: stretch !important;
}

.trust-bar > *,
.hero-trust > *,
.home-trust > *,
.trust-list > *,
.benefits-bar > *,
.benefits-list > *,
.usp-bar > *,
.usp-list > * {
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: .8rem !important;
  margin: 0 !important;
  padding: .65rem .25rem !important;
}

.trust-item,
.benefit-item,
.usp-item {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: .8rem !important;
  margin: 0 !important;
}

.trust-item__icon,
.benefit-item__icon,
.usp-item__icon,
.trust-icon,
.benefit-icon,
.usp-icon {
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
}

.trust-item strong,
.benefit-item strong,
.usp-item strong {
  display: block !important;
  white-space: normal !important;
  line-height: 1.15 !important;
}

.trust-item span,
.trust-item small,
.trust-item p,
.benefit-item span,
.benefit-item small,
.benefit-item p,
.usp-item span,
.usp-item small,
.usp-item p {
  line-height: 1.35 !important;
}

@media (max-width: 1100px) {
  .trust-bar,
  .hero-trust,
  .home-trust,
  .trust-list,
  .benefits-bar,
  .benefits-list,
  .usp-bar,
  .usp-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .trust-bar > *:last-child,
  .hero-trust > *:last-child,
  .home-trust > *:last-child,
  .trust-list > *:last-child,
  .benefits-bar > *:last-child,
  .benefits-list > *:last-child,
  .usp-bar > *:last-child,
  .usp-list > *:last-child {
    grid-column: 1 / -1 !important;
    max-width: 520px !important;
    justify-self: center !important;
  }
}

@media (max-width: 760px) {
  .trust-bar,
  .hero-trust,
  .home-trust,
  .trust-list,
  .benefits-bar,
  .benefits-list,
  .usp-bar,
  .usp-list {
    width: min(100% - 1.5rem, 520px) !important;
    grid-template-columns: 1fr !important;
    gap: .8rem !important;
  }

  .trust-bar > *,
  .hero-trust > *,
  .home-trust > *,
  .trust-list > *,
  .benefits-bar > *,
  .benefits-list > *,
  .usp-bar > *,
  .usp-list > * {
    padding: .8rem 1rem !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.055) !important;
  }

  .trust-bar > *:last-child,
  .hero-trust > *:last-child,
  .home-trust > *:last-child,
  .trust-list > *:last-child,
  .benefits-bar > *:last-child,
  .benefits-list > *:last-child,
  .usp-bar > *:last-child,
  .usp-list > *:last-child {
    max-width: none !important;
  }
}

/* =========================================================
   Trust-Bar echter Wrapper-Fix 2026-06-23
   ========================================================= */

.trust-bar {
  width: 100% !important;
  margin: 0 !important;
  padding: 2rem 0 !important;
  background: var(--dark, #172235) !important;
  display: block !important;
}

.trust-bar > .container {
  width: min(100% - 2rem, 1180px) !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: block !important;
}

.trust-bar__inner {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: clamp(1rem, 1.8vw, 2rem) !important;
  align-items: stretch !important;
  justify-items: stretch !important;
}

.trust-bar__inner > .trust-item {
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: .85rem !important;
  margin: 0 !important;
  padding: .75rem .55rem !important;
}

.trust-bar__inner .trust-item__icon {
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
}

.trust-bar__inner .trust-item strong {
  display: block !important;
  color: #fff !important;
  line-height: 1.18 !important;
  margin: 0 0 .25rem !important;
}

.trust-bar__inner .trust-item span {
  display: block !important;
  color: rgba(255,255,255,.9) !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}

@media (max-width: 1100px) {
  .trust-bar__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .trust-bar__inner > .trust-item:last-child {
    grid-column: 1 / -1 !important;
    max-width: 520px !important;
    justify-self: center !important;
  }
}

@media (max-width: 760px) {
  .trust-bar {
    padding: 1.25rem 0 !important;
  }

  .trust-bar > .container {
    width: min(100% - 1.5rem, 520px) !important;
  }

  .trust-bar__inner {
    grid-template-columns: 1fr !important;
    gap: .75rem !important;
  }

  .trust-bar__inner > .trust-item,
  .trust-bar__inner > .trust-item:last-child {
    max-width: none !important;
    grid-column: auto !important;
    padding: .85rem 1rem !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.055) !important;
  }
}

/* =========================================================
   Dr. Flex Modal Overlay 2026-06-23
   ========================================================= */

.drfex-modal-open,
.drflex-modal-open {
  overflow: hidden !important;
}

.drflex-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.drflex-modal.is-open {
  display: block;
}

.drflex-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 40, .72);
  backdrop-filter: blur(8px);
}

.drflex-modal__dialog {
  position: relative;
  width: min(100% - 2rem, 980px);
  height: min(100vh - 4rem, 820px);
  margin: 2rem auto;
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
}

.drflex-modal__head {
  height: 68px;
  padding: 0 4.5rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--green, #94c01c);
  color: #fff;
}

.drflex-modal__head strong {
  font-size: 1.1rem;
  line-height: 1.2;
}

.drflex-modal__head span {
  font-size: .9rem;
  opacity: .9;
}

.drflex-modal__close {
  position: absolute;
  top: 13px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  color: var(--dark, #172235);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.drflex-modal__body {
  height: calc(100% - 68px);
  background: #fff;
}

.drflex-modal__body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

@media (max-width: 760px) {
  .drflex-modal__dialog {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
  }

  .drflex-modal__head {
    height: 64px;
  }

  .drflex-modal__body {
    height: calc(100% - 64px);
  }
}

/* =========================================================
   Trust-Bar echter Wrapper-Fix 2026-06-23
   ========================================================= */

.trust-bar {
  width: 100% !important;
  margin: 0 !important;
  padding: 2rem 0 !important;
  background: var(--dark, #172235) !important;
  display: block !important;
}

.trust-bar > .container {
  width: min(100% - 2rem, 1180px) !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: block !important;
}

.trust-bar__inner {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: clamp(1rem, 1.8vw, 2rem) !important;
  align-items: stretch !important;
  justify-items: stretch !important;
}

.trust-bar__inner > .trust-item {
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: .85rem !important;
  margin: 0 !important;
  padding: .75rem .55rem !important;
}

.trust-bar__inner .trust-item__icon {
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
}

.trust-bar__inner .trust-item strong {
  display: block !important;
  color: #fff !important;
  line-height: 1.18 !important;
  margin: 0 0 .25rem !important;
}

.trust-bar__inner .trust-item span {
  display: block !important;
  color: rgba(255,255,255,.9) !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}

@media (max-width: 1100px) {
  .trust-bar__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .trust-bar__inner > .trust-item:last-child {
    grid-column: 1 / -1 !important;
    max-width: 520px !important;
    justify-self: center !important;
  }
}

@media (max-width: 760px) {
  .trust-bar {
    padding: 1.25rem 0 !important;
  }

  .trust-bar > .container {
    width: min(100% - 1.5rem, 520px) !important;
  }

  .trust-bar__inner {
    grid-template-columns: 1fr !important;
    gap: .75rem !important;
  }

  .trust-bar__inner > .trust-item,
  .trust-bar__inner > .trust-item:last-child {
    max-width: none !important;
    grid-column: auto !important;
    padding: .85rem 1rem !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.055) !important;
  }
}

/* =========================================================
   Dr. Flex Modal: eigenen Header/X ausblenden 2026-06-23
   Nur Dr.-Flex-eigene Oberfläche sichtbar lassen
   ========================================================= */

.drflex-modal__head,
.drflex-modal__close {
  display: none !important;
}

.drflex-modal__body {
  height: 100% !important;
}

.drflex-modal__dialog {
  background: #fff !important;
}

@media (max-width: 760px) {
  .drflex-modal__body {
    height: 100% !important;
  }
}

/* Eigenes Dr.-Flex-Modal deaktiviert: offizielles Dr.-Flex-Overlay wird lazy geladen */
.drflex-modal,
.drflex-modal__backdrop,
.drflex-modal__dialog,
.drflex-modal__head,
.drflex-modal__close,
.drflex-modal__body {
  display: none !important;
}

/* =========================================================
   Team-Detail mobil sauber darstellen 2026-06-23
   ========================================================= */

.team-detail-memberships {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.team-detail-memberships li {
  position: relative;
  padding-left: 1.15rem;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--slate-dark);
}

.team-detail-memberships li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--green);
  transform: translateY(-50%);
}

html {
  max-width: 100%;
  overflow-x: clip;
}

body {
  max-width: 100%;
}

.team-detail,
.team-detail-page,
.doctor-detail,
.doctor-profile,
.profile-detail,
.member-detail {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 900px) {
  .team-detail .container,
  .team-detail-page .container,
  .doctor-detail .container,
  .doctor-profile .container,
  .profile-detail .container,
  .member-detail .container {
    width: min(100% - 1.5rem, 720px) !important;
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .team-detail__grid,
  .team-detail-grid,
  .doctor-detail__grid,
  .doctor-profile__grid,
  .profile-detail__grid,
  .member-detail__grid,
  .doctor-hero__grid,
  .team-member-detail,
  .team-detail-content,
  .profile-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .team-detail__media,
  .team-detail__image,
  .doctor-detail__media,
  .doctor-profile__media,
  .profile-detail__media,
  .member-detail__media,
  .doctor-image,
  .profile-image {
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto 1.25rem !important;
  }

  .team-detail__media img,
  .team-detail__image img,
  .doctor-detail__media img,
  .doctor-profile__media img,
  .profile-detail__media img,
  .member-detail__media img,
  .doctor-image img,
  .profile-image img,
  .team-detail img {
    display: block !important;
    width: 100% !important;
    max-width: 360px !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 22px !important;
    object-fit: cover !important;
  }

  .team-detail__content,
  .doctor-detail__content,
  .doctor-profile__content,
  .profile-detail__content,
  .member-detail__content,
  .team-detail-content,
  .profile-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }

  .team-detail h1,
  .doctor-detail h1,
  .doctor-profile h1,
  .profile-detail h1,
  .member-detail h1 {
    font-size: clamp(2rem, 8vw, 3.1rem) !important;
    line-height: 1.05 !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  .team-detail h2,
  .doctor-detail h2,
  .doctor-profile h2,
  .profile-detail h2,
  .member-detail h2 {
    font-size: clamp(1.35rem, 5vw, 2rem) !important;
    line-height: 1.2 !important;
  }

  .team-detail p,
  .doctor-detail p,
  .doctor-profile p,
  .profile-detail p,
  .member-detail p {
    font-size: 1.05rem !important;
    line-height: 1.65 !important;
  }

  .team-detail .btn,
  .doctor-detail .btn,
  .doctor-profile .btn,
  .profile-detail .btn,
  .member-detail .btn {
    width: 100% !important;
    justify-content: center !important;
    max-width: 100% !important;
  }
}

/* ganz kleine Geräte */
@media (max-width: 520px) {
  .team-detail .container,
  .team-detail-page .container,
  .doctor-detail .container,
  .doctor-profile .container,
  .profile-detail .container,
  .member-detail .container {
    width: min(100% - 1.25rem, 480px) !important;
  }

  .team-detail__media,
  .doctor-detail__media,
  .doctor-profile__media,
  .profile-detail__media,
  .member-detail__media,
  .doctor-image,
  .profile-image {
    max-width: 270px !important;
  }

  .team-detail__media img,
  .doctor-detail__media img,
  .doctor-profile__media img,
  .profile-detail__media img,
  .member-detail__media img,
  .doctor-image img,
  .profile-image img {
    max-width: 270px !important;
  }
}

/* =========================================================
   Mobile Overflow Hardfix für Detailseiten 2026-06-23
   Fängt auch Inline-Grids ab
   ========================================================= */

html {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: clip !important;
}

body {
  width: 100% !important;
  max-width: 100% !important;
}

body > *,
.site,
.page,
.page-main,
main {
  max-width: 100% !important;
}

img,
svg,
video,
iframe {
  max-width: 100% !important;
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 1.5rem, 720px) !important;
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  main .section [style*="display:grid"],
  main .section [style*="display: grid"],
  main .section [style*="grid-template-columns"],
  main [style*="display:grid"],
  main [style*="display: grid"],
  main [style*="grid-template-columns"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 1.5rem !important;
  }

  main .section [style*="display:flex"],
  main .section [style*="display: flex"],
  main [style*="display:flex"],
  main [style*="display: flex"] {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  main .section *,
  main article *,
  main .container * {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  main .section img:not(.service-card__img):not(.service-detail__image),
  main article img:not(.service-card__img):not(.service-detail__image) {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    object-fit: cover !important;
  }

  /* Karten & Leistungen: Bilder immer volle Kartenbreite */
  .service-card__media,
  .service-card__img,
  .service-card__img-placeholder,
  .service-detail__media,
  .service-detail__image,
  .home-doctor-tile__image img,
  .home-staff-tile__image img,
  .gallery-item img,
  .gallery-grid img {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .service-card__img,
  .service-detail__image {
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .service-card__img-placeholder {
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
  }

  .home-doctor-tile__image,
  .home-staff-tile__image {
    width: 100% !important;
    max-width: none !important;
  }

  main h1 {
    font-size: clamp(2rem, 8vw, 3rem) !important;
    line-height: 1.08 !important;
    overflow-wrap: anywhere !important;
  }

  main h2 {
    font-size: clamp(1.35rem, 6vw, 2rem) !important;
    line-height: 1.2 !important;
  }

  main p {
    overflow-wrap: break-word !important;
  }

  main .btn,
  main button,
  main a.btn {
    max-width: 100% !important;
    white-space: normal !important;
  }

  /* Detailseiten: Bild links rausziehen verhindern */
  .team-detail-card,
  .doctor-card,
  .profile-card,
  .team-profile,
  .doctor-profile,
  .member-profile,
  .team-member,
  .team-detail {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 1.25rem, 480px) !important;
  }

  /* Nur Team-Portraits klein zentriert – nicht Leistungs-/Kartenbilder */
  .team-detail img,
  .doctor-detail img,
  .doctor-profile img,
  .profile-detail img,
  .member-detail img {
    max-width: 280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  main .section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* =========================================================
   Mobile Team/Arzt-Detail Feinschliff 2026-06-23
   Nur mobil: Breadcrumb, Arztbild, Team-Bilder
   ========================================================= */

@media (max-width: 900px) {

  /* Breadcrumb wieder horizontal/wrappend statt kaputter Spalten-Darstellung */
  .breadcrumb,
  .breadcrumbs,
  .page-breadcrumb,
  .breadcrumb-list,
  nav[aria-label="Breadcrumb"],
  nav[aria-label="breadcrumb"] {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: .45rem .65rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 1.5rem !important;
    padding: 0 !important;
    text-align: left !important;
  }

  .breadcrumb *,
  .breadcrumbs *,
  .page-breadcrumb *,
  .breadcrumb-list *,
  nav[aria-label="Breadcrumb"] *,
  nav[aria-label="breadcrumb"] * {
    display: inline-flex !important;
    flex-direction: row !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    text-align: left !important;
    white-space: normal !important;
  }

  /* Wenn der Breadcrumb optisch zu viel Platz frisst: kompakt halten */
  .breadcrumb a,
  .breadcrumbs a,
  .page-breadcrumb a,
  .breadcrumb-list a,
  nav[aria-label="Breadcrumb"] a,
  nav[aria-label="breadcrumb"] a {
    font-size: .95rem !important;
    line-height: 1.35 !important;
  }

  /* Arzt-Detail: Bild/Karte mobil volle Breite statt schmalem Bild im breiten Rahmen */
  .team-detail img,
  .doctor-detail img,
  .doctor-profile img,
  .profile-detail img,
  .member-detail img,
  .team-detail__media img,
  .team-detail__image img,
  .doctor-detail__media img,
  .doctor-profile__media img,
  .profile-detail__media img,
  .member-detail__media img,
  .doctor-image img,
  .profile-image img {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
  }

  .team-detail__media,
  .team-detail__image,
  .doctor-detail__media,
  .doctor-profile__media,
  .profile-detail__media,
  .member-detail__media,
  .doctor-image,
  .profile-image {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 1.25rem !important;
  }

  /* Kartenbild im Arztdetail sauber füllen */
  .team-detail-card img,
  .doctor-card img,
  .profile-card img,
  .team-profile img,
  .doctor-profile img,
  .member-profile img {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    object-fit: cover !important;
    object-position: center top !important;
  }

  /* Team-Übersicht: Bilder füllen Rahmen */
  .team-card__image,
  .team-card__media,
  .team-member-card__image,
  .team-member-card__media,
  .doctor-card__image,
  .doctor-card__media,
  .staff-card__image,
  .staff-card__media,
  .ortho-staff-card__image,
  .ortho-doctor-card__image {
    width: 100% !important;
    overflow: hidden !important;
  }

  .team-card__image img,
  .team-card__media img,
  .team-member-card__image img,
  .team-member-card__media img,
  .doctor-card__image img,
  .doctor-card__media img,
  .staff-card__image img,
  .staff-card__media img,
  .ortho-staff-card__image img,
  .ortho-doctor-card__image img,
  .team-grid img,
  .team-list img {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 220px !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
    margin: 0 !important;
  }

  /* Ärzteteam auf Übersicht etwas höher, damit der Rahmen sauber gefüllt ist */
  .ortho-doctor-card__image img,
  .doctor-card__image img,
  .doctor-card__media img {
    min-height: 280px !important;
  }

  /* Personalbilder quadratisch/sauber gefüllt */
  .ortho-staff-card__image img,
  .staff-card__image img,
  .staff-card__media img {
    min-height: 220px !important;
    aspect-ratio: 1 / 1 !important;
  }
}

@media (max-width: 520px) {
  .team-card__image img,
  .team-card__media img,
  .team-member-card__image img,
  .team-member-card__media img,
  .doctor-card__image img,
  .doctor-card__media img,
  .staff-card__image img,
  .staff-card__media img,
  .ortho-staff-card__image img,
  .ortho-doctor-card__image img,
  .team-grid img,
  .team-list img {
    max-width: none !important;
  }

  .breadcrumb,
  .breadcrumbs,
  .page-breadcrumb,
  .breadcrumb-list,
  nav[aria-label="Breadcrumb"],
  nav[aria-label="breadcrumb"] {
    font-size: .92rem !important;
  }
}

/* =========================================================
   Mobile Team Final: echte Template-Klassen 2026-06-23
   Nur mobil
   ========================================================= */

@media (max-width: 900px) {

  /* Arzt-Detail: Breadcrumb mobil weg */
  .team-detail-breadcrumb {
    display: none !important;
  }

  /* Arzt-Detail: Layout sauber einspaltig */
  .team-detail-section .team-detail-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .team-detail-section .team-detail-sidebar,
  .team-detail-section .team-detail-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* Arztbild volle Kartenbreite */
  .team-detail-section .team-detail-photo {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
    object-position: center top !important;
    margin: 0 !important;
    border-radius: 22px !important;
  }

  .team-detail-section .team-detail-appointment-box {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1rem !important;
    margin-top: 1rem !important;
  }

  .team-detail-section .team-detail-appointment-box .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .team-detail-section h2 {
    font-size: clamp(1.7rem, 7vw, 2.35rem) !important;
    line-height: 1.1 !important;
  }

  /* Werdegang/Qualifikationen nicht zweispaltig auf Handy */
  .team-detail-section .team-detail-content [style*="grid-template-columns:160px 1fr"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: .25rem !important;
  }

  .team-detail-memberships li {
    display: block !important;
    flex-direction: row !important;
  }

  /* Team-Übersicht: Ärztebilder füllen Rahmen */
  .ortho-doctor-card__image {
    width: 100% !important;
    height: 320px !important;
    overflow: hidden !important;
    background: #f4f6f8 !important;
  }

  .ortho-doctor-card__image img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
    margin: 0 !important;
  }

  /* Team-Übersicht: Personalbilder füllen Rahmen */
  .ortho-staff-card__image {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    background: #f4f6f8 !important;
  }

  .ortho-staff-card__image img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
    margin: 0 !important;
  }
}

@media (max-width: 520px) {
  .team-detail-section .team-detail-photo {
    aspect-ratio: 1 / 1.05 !important;
  }

  .ortho-doctor-card__image {
    height: 300px !important;
  }
}

/* =========================================================
   Team-Übersicht mobil: Bilder müssen Rahmen füllen 2026-06-23
   Nur mobil
   ========================================================= */

@media (max-width: 900px) {

  /* /team: Arztkarten */
  .ortho-doctor-card {
    overflow: hidden !important;
  }

  .ortho-doctor-card__image {
    width: 100% !important;
    height: 360px !important;
    min-height: 360px !important;
    max-height: 360px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    display: block !important;
    background: #eef1f4 !important;
  }

  .ortho-doctor-card__image img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center top !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  /* /team: Praxisteam-Karten */
  .ortho-staff-card {
    overflow: hidden !important;
  }

  .ortho-staff-card__image {
    width: 100% !important;
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;
    aspect-ratio: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    display: block !important;
    background: #eef1f4 !important;
  }

  .ortho-staff-card__image img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center top !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  /* Startseite Team-Vorschau ebenfalls mobil sauber */
  .home-doctor-tile__image,
  .home-staff-tile__image {
    width: 100% !important;
    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    display: block !important;
    background: #eef1f4 !important;
  }

  .home-doctor-tile__image img,
  .home-staff-tile__image img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center top !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

@media (max-width: 520px) {
  .ortho-doctor-card__image {
    height: 340px !important;
    min-height: 340px !important;
    max-height: 340px !important;
  }

  .ortho-staff-card__image {
    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
  }

  .home-doctor-tile__image,
  .home-staff-tile__image {
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
  }
}

/* =========================================================
   Mobile Header / Öffnungszeiten / Footer Fix 2026-06-23
   ========================================================= */

@media (max-width: 920px) {
  /* Header: auf weißem Header nur farbiges Logo, auf grünem Header nur weißes Logo */
  .site-header:not(.scrolled) {
    background: rgba(255,255,255,.98) !important;
  }

  .site-header:not(.scrolled) .header-logo__default {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .site-header:not(.scrolled) .header-logo__white {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .site-header.scrolled {
    background: rgba(148,192,28,.97) !important;
  }

  .site-header.scrolled .header-logo__default {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .site-header.scrolled .header-logo__white {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .header-logo {
    position: relative;
    min-width: 0;
  }

  .header-logo img {
    max-width: min(100%, 220px);
    height: 44px;
    width: auto;
    object-fit: contain;
    object-position: left center;
  }
}

/* Sticky-CTA: Abstand nur einmal, nicht doppelt unter dem Footer */
@media (max-width: 760px) {
  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important;
  }

  body.footer-in-view {
    padding-bottom: env(safe-area-inset-bottom) !important;
  }

  .site-footer {
    position: relative !important;
    z-index: 2 !important;
    margin-bottom: 0 !important;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom)) !important;
  }

  .sticky-cta {
    z-index: 800 !important;
    padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)) !important;
    transition: transform .25s ease, opacity .25s ease, visibility .25s ease !important;
  }

  body.footer-in-view .sticky-cta {
    transform: translateY(110%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Öffnungszeiten-Hinweis wird per JS ausgeblendet, wenn Praxis geöffnet ist */
.oh-note-hidden-when-open.is-hidden {
  display: none !important;
}

/* =========================================================
   Galerie Filter Frontend 2026-06-23
   ========================================================= */

.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 0 0 2.5rem;
}

.gallery-filter__button {
  border: 1px solid rgba(148,192,28,.35);
  background: #fff;
  color: var(--dark);
  border-radius: 999px;
  padding: .65rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.gallery-filter__button:hover,
.gallery-filter__button.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-1px);
}

.gallery-grid--filterable .gallery-item {
  border: 0;
  cursor: pointer;
  text-align: left;
  padding: 0;
}

.gallery-item.is-filter-hidden,
.gallery-item[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .gallery-breadcrumb {
    display: none !important;
  }

  .gallery-filter {
    gap: .5rem;
    margin-bottom: 1.5rem;
  }

  .gallery-filter__button {
    padding: .55rem .9rem;
    font-size: .9rem;
  }
}

/* =========================================================
   Galerie Filter Frontend 2026-06-23
   ========================================================= */

.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 0 0 2.5rem;
}

.gallery-filter__button {
  border: 1px solid rgba(148,192,28,.35);
  background: #fff;
  color: var(--dark);
  border-radius: 999px;
  padding: .65rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.gallery-filter__button:hover,
.gallery-filter__button.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-1px);
}

.gallery-grid--filterable .gallery-item {
  border: 0;
  cursor: pointer;
  text-align: left;
  padding: 0;
}

.gallery-item.is-filter-hidden,
.gallery-item[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .gallery-breadcrumb {
    display: none !important;
  }

  .gallery-filter {
    gap: .5rem;
    margin-bottom: 1.5rem;
  }

  .gallery-filter__button {
    padding: .55rem .9rem;
    font-size: .9rem;
  }
}

/* =========================================================
   Scroll / Popup Toast / Hero – ein Scroll-Container 2026-06-23
   ========================================================= */

/*
 * overflow-x:hidden auf body oder body > * erzwingt laut CSS-Spezifikation
 * overflow-y:auto und erzeugt verschachtelte Scrollbalken (Header, main, …).
 * Horizontal nur auf html clipen; vertikal nur das Dokument scrollen lassen.
 */
html {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: clip !important;
  overflow-y: auto !important;
}

body {
  height: auto !important;
  min-height: 100% !important;
  overflow: visible !important;
}

body > *,
main,
.site-footer,
.mobile-menu,
.lightbox,
.sticky-cta,
.popup-toast-root {
  overflow: visible !important;
}

.site-header {
  overflow: hidden !important;
}

body.is-nav-open {
  overflow: hidden !important;
}

.hero {
  touch-action: pan-y !important;
  overscroll-behavior-y: auto !important;
  contain: none !important;
}

.hero__slide {
  will-change: opacity;
  transition: opacity .9s ease !important;
  pointer-events: none !important;
}

.hero.is-parallax .hero__parallax-layer {
  will-change: transform !important;
}

.hero.is-parallax .hero__slide {
  will-change: opacity !important;
}

.hero__slide.active {
  opacity: 1 !important;
}

.hero__content,
.hero__overlay {
  pointer-events: none !important;
}

.hero__actions,
.hero__actions *,
.hero__dots,
.hero__dots *,
.hero a,
.hero button {
  pointer-events: auto !important;
}

.hero__dots {
  display: flex !important;
}

.hero__scroll {
  display: block !important;
}

.popup-toast-root {
  position: fixed !important;
  top: auto !important;
  left: auto !important;
  right: 1.25rem !important;
  bottom: 1.25rem !important;
  width: min(440px, calc(100vw - 2.5rem)) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  overflow: visible !important;
  z-index: 1250 !important;
  pointer-events: none !important;
}

.popup-toast-root.open {
  display: block !important;
}

.popup-toast-root .popup-box {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  pointer-events: auto !important;
  box-shadow: 0 22px 70px rgba(23, 34, 53, .24) !important;
}

.popup-overlay {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

@media (max-width: 760px) {
  .popup-toast-root {
    left: 1rem !important;
    right: 1rem !important;
    bottom: calc(104px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
  }
}

/* =========================================================
   Mobile Leistungsbilder – Final Override (2026-06-24)
   ========================================================= */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .service-card__media,
  .service-detail__media {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    overflow: hidden !important;
    background: #eef1f4 !important;
  }

  .service-card__media .service-card__img,
  .service-card__media .service-card__img-placeholder,
  .service-detail__media .service-detail__image,
  .service-card .service-card__img,
  .service-detail__image {
    width: 100% !important;
    max-width: none !important;
    min-width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border-radius: 0 !important;
  }

  .service-card__img-placeholder {
    aspect-ratio: unset !important;
    min-height: 100% !important;
  }
}
/* =========================================================
   FAQ + Kontaktformular 2026-09-02
   ========================================================= */
.contact-form-notice {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148,192,28,.35);
  border-left: 4px solid var(--green);
  border-radius: 10px;
  background: var(--green-bg);
  color: var(--slate-dark);
}
.contact-form-notice strong { color: var(--dark); display:block; margin-bottom:.35rem; }
.contact-form-notice p { margin:0; line-height:1.6; }
.char-counter { margin-top:.35rem; text-align:right; font-size:.75rem; color:var(--slate); }
.char-counter.is-near-limit { color:#b45309; font-weight:700; }
.form-feedback--paused {
  padding: 1.1rem 1.2rem;
  border-radius: 10px;
  border: 1px solid #f6c453;
  background: #fff9e8;
  color: #7c5b12;
  line-height: 1.6;
}

.faq-tools {
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.faq-search-label { display:block; font-weight:700; color:var(--dark); margin-bottom:.45rem; }
.faq-search {
  width:100%;
  border:1.5px solid var(--border);
  border-radius:10px;
  padding:.85rem 1rem;
  font:inherit;
  color:var(--dark);
  background:#fff;
}
.faq-search:focus { outline:none; border-color:var(--green); box-shadow:0 0 0 3px rgba(148,192,28,.12); }
.faq-filters { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1rem; }
.faq-filter {
  border:1px solid var(--border);
  background:#fff;
  color:var(--slate);
  border-radius:999px;
  padding:.45rem .8rem;
  font:inherit;
  font-size:.8rem;
  font-weight:700;
  cursor:pointer;
}
.faq-filter:hover,
.faq-filter.active { border-color:var(--green); background:var(--green-bg); color:var(--green-dark); }
.faq-list { max-width:900px; margin:0 auto; display:grid; gap:.75rem; }
.faq-item {
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
}
.faq-item[hidden] { display:none !important; }
.faq-item summary {
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:1.05rem 1.2rem;
  color:var(--dark);
  font-weight:750;
}
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item__plus { color:var(--green); font-size:1.35rem; line-height:1; transition:transform .2s ease; }
.faq-item[open] .faq-item__plus { transform:rotate(45deg); }
.faq-item__answer { padding:0 1.2rem 1.2rem; color:var(--slate-dark); line-height:1.75; }
.faq-empty { text-align:center; color:var(--slate); padding:2rem 0; }

/* =========================================================
   Accessibility Hardening · WCAG 2.2 AA Basis · 2026-09-02
   ========================================================= */

:root {
  /*
   * CI-Grün #94C01C bleibt für große Flächen auf dunklem Grund bestehen.
   * Für kleine Texte auf hellen Flächen verwenden wir eine
   * kontraststärkere Variante.
   */
  --green-aa:       #55700c;
  --green-aa-hover: #405609;
  --slate-aa:       #63707a;
  --focus-aa:       #55700c;
}

/* ---------------------------------------------------------
   Textkontrast auf hellen Flächen
   --------------------------------------------------------- */

body {
  color: var(--slate-dark);
}

a {
  color: var(--green-aa);
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
}

a:hover {
  color: var(--green-aa-hover);
}

.section__lead,
.contact-quick-card small,
.contact-hours-list__row span,
.contact-panel--address address,
.faq-filter,
.faq-empty {
  color: var(--slate-aa);
}

.section:not(.section--dark) .section__eyebrow,
.section:not(.section--dark) .section__title span,
.service-card__tag,
.service-card__link,
.team-card__role,
.hours-day.today,
.contact-item__action,
.team-classic-heading h2 span,
.ortho-team-head--home h3 span,
.ortho-doctor-card__body p,
.ortho-doctor-card__body strong,
.ortho-staff-card__body p,
.home-doctor-tile em,
.home-staff-tile__body small,
.faq-item__plus,
.header-nav__link:hover,
.header-nav__link.active,
.mobile-menu__link:hover,
.mobile-menu__link.active,
.breadcrumb a:hover,
.site-header.scrolled .header-cta,
.site-header.scrolled .header-cta.btn,
.site-header.scrolled button.header-cta {
  color: var(--green-aa) !important;
}

.status-badge.open {
  color: #4f680c;
}

/*
 * Weiß auf #94C01C hat zu wenig Kontrast.
 * Das CI-Grün bleibt, der Text wird dunkel.
 */
.btn--primary,
.btn--primary:hover,
.contact-quick-card--primary,
.contact-quick-card--primary small,
.gallery-filter__button:hover,
.gallery-filter__button.is-active {
  color: var(--dark) !important;
}

.btn--outline {
  color: var(--green-aa);
  border-color: var(--green-aa);
}

.btn--outline:hover {
  background: var(--green-aa);
  border-color: var(--green-aa);
  color: #fff;
}

/* Grüne CTA-Flächen: dunkle Schrift für ausreichenden Kontrast */
.cta-section__title,
.cta-section__text {
  color: var(--dark) !important;
}

.cta-section .btn--outline-white {
  color: var(--dark);
  border-color: rgba(26,35,50,.65);
}

.cta-section .btn--outline-white:hover {
  background: rgba(255,255,255,.35);
  border-color: var(--dark);
  color: var(--dark);
}

/* ---------------------------------------------------------
   Fokus
   Zweifarbiger Ring funktioniert auf hell + dunkel.
   --------------------------------------------------------- */

:where(
  a,
  button,
  input,
  select,
  textarea,
  summary,
  [tabindex]
):focus-visible {
  outline: 3px solid var(--focus-aa) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px #fff !important;
}

.form-control:focus-visible,
.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.contact-form select:focus-visible,
.faq-search:focus-visible {
  border-color: var(--focus-aa) !important;
}

/* Fester Header darf fokussierte Elemente nicht verdecken */
html {
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

:where(
  h1,h2,h3,h4,h5,h6,
  [id],
  a,
  button,
  input,
  select,
  textarea,
  summary
):focus-visible {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

/* ---------------------------------------------------------
   Zielgrößen
   --------------------------------------------------------- */

:where(
  button,
  .btn,
  .nav-toggle,
  .hero__dot,
  .hero__pause,
  .gallery-filter__button,
  .faq-filter,
  .lightbox__close,
  .lightbox__prev,
  .lightbox__next
) {
  min-width: 44px;
  min-height: 44px;
}

/* ---------------------------------------------------------
   Hero Slider
   --------------------------------------------------------- */

.hero__dots {
  gap: .55rem;
  align-items: center;
}

.hero__dot {
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  position: relative;
}

.hero__dot::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.82);
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%,-50%);
}

.hero__dot.active::after {
  width: 28px;
  border-radius: 999px;
  background: var(--green);
}

.hero__pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;

  min-width: 76px;
  padding: .45rem .7rem;

  border: 1px solid rgba(255,255,255,.9);
  border-radius: 999px;

  background: rgba(26,35,50,.82);
  color: #fff;

  font: inherit;
  font-size: .78rem;
  font-weight: 700;

  cursor: pointer;
}

.hero__pause:hover {
  background: rgba(26,35,50,.98);
}

/* ---------------------------------------------------------
   Screenreader Utility
   --------------------------------------------------------- */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* FAQ */
.faq-item summary {
  min-height: 48px;
}

.faq-filter.active {
  color: #4f680c !important;
  border-color: #55700c;
}

/* ---------------------------------------------------------
   Reflow
   Keine vertikale Scroll-Logik verändern!
   --------------------------------------------------------- */

main {
  max-width: 100%;
  overflow-x: clip;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

.btn {
  max-width: 100%;
}

@media (max-width: 400px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .btn {
    white-space: normal;
    text-align: center;
    justify-content: center;
  }

  .contact-form__grid {
    grid-template-columns: 1fr !important;
  }

  .faq-tools {
    padding: 1rem;
  }
}

/* ---------------------------------------------------------
   Windows High Contrast / Forced Colors
   --------------------------------------------------------- */

@media (forced-colors: active) {

  :where(
    a,
    button,
    input,
    select,
    textarea,
    summary,
    [tabindex]
  ):focus-visible {
    outline: 3px solid Highlight !important;
    box-shadow: none !important;
  }

  .btn,
  .status-badge,
  .faq-filter,
  .gallery-filter__button,
  .hero__pause {
    forced-color-adjust: auto;
    border: 1px solid ButtonText;
  }
}

/* ---------------------------------------------------------
   Reduced Motion
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }

  /*
   * Bei Reduced Motion läuft der Slider überhaupt nicht
   * automatisch. Pause-Knopf wird dann nicht benötigt.
   */
  .hero__pause {
    display: none !important;
  }
}

/* =========================================================
   ORTHOHELLERN · MOBILE HERO V2 · 2026-09-18
   Mobile normaler Flow – keine Überlagerungen
   ========================================================= */
@media (max-width: 760px) {

  .hero {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .hero > .container {
    position: relative !important;
    z-index: 2 !important;
    padding-top: 2rem !important;
    padding-bottom: 1.1rem !important;
  }

  .hero__content {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    transform: none !important;
  }

  .hero__eyebrow {
    font-size: .84rem !important;
    line-height: 1.45 !important;
    margin-bottom: 1.35rem !important;
  }

  .hero__title {
    font-size: clamp(2.3rem, 10.5vw, 3rem) !important;
    line-height: 1.03 !important;
    margin-bottom: 1.2rem !important;
  }

  .hero__subtitle {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.4rem !important;
  }

  .hero__actions {
    display: flex !important;
    flex-direction: column !important;
    gap: .8rem !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .hero__actions .btn {
    width: 100% !important;
    min-height: 56px !important;
    margin: 0 !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /*
   * Ganz wichtig:
   * Punkte + Pause gehören zusammen und kommen NACH den CTAs
   * in normalen Dokumentfluss.
   */
  .hero__dots {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;

    transform: none !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;

    width: auto !important;
    gap: .35rem !important;

    margin: .35rem auto 0 !important;
    padding: .45rem 1rem 1.2rem !important;

    z-index: 3 !important;
  }

  .hero__pause {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;

    transform: none !important;
    margin: 0 0 0 .35rem !important;
  }

  /*
   * Scroll-Pfeil ist mobil unnötig und war eine weitere
   * absolute Ebene im unteren Hero-Bereich.
   */
  .hero__scroll {
    display: none !important;
  }

  /*
   * Bestehende alte Mobile-Regel setzte alle Slides auf opacity:1.
   * Korrektur: nur aktives Bild sichtbar.
   */
  .hero__slide {
    opacity: 0 !important;
    transform: none !important;
  }

  .hero__slide.active {
    opacity: 1 !important;
  }
}
