/* ==========================================================================
   Tablet — ≤900px: burger takes over, grids lose their asymmetric split
   ========================================================================== */
@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .site-header__cta {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  /* Reset any desktop :hover/:focus-within transforms — higher specificity
     would otherwise win over a plain mobile reset. */
  .site-nav__list a:hover,
  .site-nav__list a:focus-visible {
    transform: none;
  }

  .intro__grid,
  .about-teaser__grid,
  .leistung-row,
  .leistung-row--media-right,
  .service-detail__columns,
  .kontakt-grid__columns {
    grid-template-columns: 1fr;
  }

  .leistung-row--media-right .leistung-row__media {
    order: 0;
  }

  .intro__aside {
    padding-left: 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
  }

  .intro__rule {
    display: none;
  }

  .service-detail__aside {
    position: static;
    padding-left: 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    margin-top: var(--space-md);
  }

  .service-detail__rule {
    display: none;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .hero__title {
    max-width: none;
  }

  .break__quote p {
    max-width: none;
  }
}

/* ==========================================================================
   Mobile — ≤600px
   ========================================================================== */
@media (max-width: 600px) {
  .section {
    padding-block: var(--space-lg);
  }

  .hero {
    padding-top: var(--space-xl);
  }

  .intro,
  .about-teaser {
    padding-block: var(--space-lg);
  }

  .cta-band {
    padding-block: var(--space-md);
  }

  .services__row-link {
    grid-template-columns: auto 1fr;
    row-gap: 0.5rem;
  }

  .services__row-arrow {
    grid-column: 2;
    justify-self: start;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    justify-content: center;
  }

  .cta-band__actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-band__actions .btn {
    justify-content: center;
    width: 100%;
  }

  .break {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .service-detail__hero-media {
    aspect-ratio: 4 / 5;
  }
}

/* ==========================================================================
   No backdrop-filter on the header at mobile widths — it creates a new
   containing block and would trap the fixed-position drawer underneath it.
   ========================================================================== */
@media (max-width: 900px) {
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
