@media (max-width: 1150px) {
  /* Burger sichtbar und als Icon */
  .site-burger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 22px;
    background: transparent;
  }
  .site-burger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .site-burger.open span:nth-child(2) {
    opacity: 0;
  }

  .site-burger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .site-burger span {
    width: 26px;
    height: 3px;

    border-radius: 2px;
  }
  /* Desktop-Navi ausblenden, zu Dropdown umbauen */
  .site-nav {
    display: none;
    /* WICHTIG: sonst bleibt sie oben stehen */
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 16px;
    right: 16px;
    background: #faf8f5;
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 12px;
    gap: 6px;
    z-index: 1400;
    height: 350px;
  }

  .site-nav.open {
    display: flex !important;
    /* wird per JS gesetzt */
  }
.behandlung{
  width: 900px;
}
  .site-nav a {
    display: block;
    padding: 10px 12px;
    font-size: 18px;
    border-radius: 8px;
  }
  .pill {
    width: 200px;
    height: 65px;
    font-size: 16px;
  }

    .contact-form {
      width: 750px;
    }
}
@media (max-width: 900px) {
  .hero-inner {
    padding: 32px 28px;
    width: 700px;
  }
.hero-inner-kontakt{
  width: 650px;

}
 
  .hero-lead {
    font-size: 20px;
  }
  .primary {
    font-size: 20px;
  }
  .hero-actions {
    gap: 16px;

          justify-content: center;
 
  }

  .btn {
    width: 190px;
    height: 70px;
  }
}

/* Smartphones – bis 600px Breite */
@media (max-width: 750px) {
  .hero-inner-hom {
    top: 50px;
    width: 500px;
    height: 750px;
  }

.contact-form{
  width: 650px;
}
  .hero-inner-kontakt{

                width: 550px;
                height: 550px;
  }
h2,h4, .thema{
  font-size: 21px;
}
.more>summary{
  font-size: 19px;
}
.spec-details>summary.thema::before{
  font-size: 22px;
}
.hero-lead, .muted,.list-clean li{
  font-size: 16px;
}
  .hero-inner {
    padding: 24px 20px;
    border-radius: 12px;
    height: 500px;
    background: rgba(255, 255, 255, 0.8);
    width: 500px;
    height: 700px;
   
  }
.contact-form {
      width: 400px;
      /* margin-top: 150px; */
    }
  .hero-tags {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .hero-card{
    margin-top: 180px;
  }
  .img-portrait{
    width: 400px;
  }
  .footer-inner{
    flex-direction: column;
  }

  .behandlung{
    width: 600px;
  }
  h1{
    font-size: 32px;
  }
}
@media (max-width: 530px){
          .homo-task {
              flex-direction: column;
              gap: 20px;
            }
}
/* Kleine Geräte – bis 400px Breite */
@media (max-width: 460px) {
  .behandlung{
    display: none;
  }

  .ueber-grid{
        height: 450px;
        
            overflow-y: auto;
          overflow-x: hidden;
  }
  .hero-inner, .hero-inner-hom,.hero-inner-kontakt{
    width: 350px;
    height: 650px;

  }
  h1  {
    font-size: 24px;
  }
        .contact-form {
          width: 350px;
        }
  .pill {
    width: 100%;
    height: 50px;
    font-size: 16px;
  }
        .img-portrait {
          width: 300px;
        }
.hero-full-mental,.hero-full-familie,.hero-full-women{
  height: 650px;
}
.spec-card-praxis,.hero-inner-kontakt{
          overflow-y: auto;
            overflow-x: hidden;
            width: 100%;
}
/* Für alle drei Hero-Sektionen die Card sauber zentrieren */
.hero-full-familie>.spec-card,
.hero-full-women>.spec-card,
.hero-full-mental>.spec-card,
.spec-card-praxis {
  width: 300px;
        overflow-y: auto;
          overflow-x: hidden;
          height: 450px;
  margin: 24px auto;

  justify-self: center;

}
}
@media (max-width: 768px) {



  /* Overlay Hintergrund */
  .spec-overlay-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
    z-index: 999;
  }

  .spec-overlay-background.active {
    opacity: 1;
    pointer-events: all;
  }

  /* Slide-Up Panel */
  .spec-overlay {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 24px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    transition: bottom 350ms ease;
    z-index: 1000;
    max-height: 75%;
    overflow-y: auto;
  }

  .spec-overlay.active {
    bottom: 0;
  }

  /* Mobile-Trigger */
  .spec-details-mobile {
    display: block;
    margin-top: 16px;
  }

  .spec-details-mobile summary {
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    padding: 12px 18px;
    list-style: none;
    text-align: center;
    border-radius: 999px;
    background: var(--accent-3);
    border: 1px solid #dde4dc;
    color: #99685d;
  }
}