/* ==========================================================================
   Responsive Verhalten – Breakpoints wie Referenz (Avada):
   ≤ 1100 px  Seitenleiste wird zur Kopfleiste mit Menü-Button
   ≤ 1024 px  „Medium“: einspaltige Inhalte
   ≤  640 px  „Small“: Smartphone
   ========================================================================== */

/* ---------- Kopfleiste statt Seitenleiste ---------- */
@media (max-width: 1100px) {
  .site { display: block; }
  .sec { --sep-bleed: 0px; }

  .site-header {
    position: relative;
    top: auto !important;
    width: auto;
    min-height: 0;
  }
  .site-header__inner {
    display: grid;
    grid-template-columns: 22% 22% 22% 1fr;
    column-gap: 4%;
    align-items: center;
    padding: 20px 40px;
    text-align: center;
  }
  .site-header__logo img { width: 100%; max-width: 310px; }

  .site-header__appointment,
  .site-header__hours { display: block; }
  .site-header__appointment p,
  .site-header__hours p { margin: 0; color: #fff; }
  .site-header__appointment a,
  .site-header__hours a { color: #fff; }

  .nav-toggle {
    display: flex;
    justify-self: end;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
  }
  .nav-toggle svg { width: 40px; height: 40px; }
  .nav-toggle__close { display: none !important; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none !important; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block !important; }

  .main-nav {
    grid-column: 1 / -1;
    margin: 20px -40px -20px;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { margin: 0; }
  .main-nav li { background: #fff; border-bottom: 1px solid #999; }
  .main-nav li + li { margin-top: 0; }
  .main-nav a {
    display: block;
    height: 75px;
    padding: 0 28.5px;
    background: var(--color-primary);
    font-weight: 400;
    line-height: 75px;
    text-align: center;
  }
  .main-nav a:hover, .main-nav a:focus-visible { background: var(--color-secondary); color: #fff; }

  .site-header__find { display: none; }

  .hero, .booking { background-attachment: scroll; }
}

/* Kleinere Hintergrundbilder für schmalere Bildschirme */
@media (max-width: 1100px) and (max-resolution: 1.5dppx), (max-width: 640px) {
  .hero {
    background-image: url("../images/hero/hotstone-massage-schaafheim-babenhausen-1280.jpg");
    background-image: image-set(url("../images/hero/hotstone-massage-schaafheim-babenhausen-1280.webp") type("image/webp"), url("../images/hero/hotstone-massage-schaafheim-babenhausen-1280.jpg") type("image/jpeg"));
  }
  .booking {
    background-image: linear-gradient(180deg, rgba(74, 67, 61, 0.37) 0%, rgba(74, 67, 61, 0.35) 100%), url("../images/backgrounds/traditionelle-thaimassage-schaafheim-babenhausen-1280.jpg");
    background-image: linear-gradient(180deg, rgba(74, 67, 61, 0.37) 0%, rgba(74, 67, 61, 0.35) 100%), image-set(url("../images/backgrounds/traditionelle-thaimassage-schaafheim-babenhausen-1280.webp") type("image/webp"), url("../images/backgrounds/traditionelle-thaimassage-schaafheim-babenhausen-1280.jpg") type("image/jpeg"));
  }
  .contact {
    background-image: url("../images/backgrounds/kontakt-thaimassage-schaafheim-900.jpg");
    background-image: image-set(url("../images/backgrounds/kontakt-thaimassage-schaafheim-900.webp") type("image/webp"), url("../images/backgrounds/kontakt-thaimassage-schaafheim-900.jpg") type("image/jpeg"));
  }
}

/* ---------- Medium (Tablet) ---------- */
@media (max-width: 1024px) {
  :root {
    --fs-h1: clamp(52px, calc(37.4px + 3.77vw), 76px);
    --fs-h2: clamp(33.8px, calc(31.28px + 0.656vw), 38px);
    --fs-h2-booking: clamp(38.65px, calc(32.9px + 1.475vw), 48px);
  }

  .hero__info--large { display: none; }
  .hero__title { width: 96%; margin-top: 91px; }
  .hero__text { width: 96%; margin-top: 79px !important; padding-bottom: 65px; }

  .intro__grid,
  .prices__grid,
  .reasons__grid,
  .contact__grid { grid-template-columns: minmax(0, 1fr); }

  .intro { padding-bottom: 70px; }
  .card { margin-bottom: 10.3%; padding-bottom: calc(10px + 11.9%); }
  .card__body { padding-top: calc(8.9px + 21.8%); }
  .card:last-child { margin-bottom: 0; }

  .prices__lead { margin-top: calc(5.3px + 4.85%); }
  .prices__grid { margin-top: calc(2.7px + 11%); }
  .massage, .massage:nth-last-child(-n+3) { margin-bottom: calc(38px + 7.5%); }
  .massage:last-child { margin-bottom: 0; }

  .oil { display: none; }

  .booking__title { line-height: 1.25; }
  .booking p { margin-top: 22px; }
  .booking__inner { padding-bottom: 11.6%; }

  .reasons-head__title { width: 100%; }
  .reasons__grid { margin-top: calc(14% - 18.7px); }
  .reason { padding: 0 7.3%; margin-bottom: calc(1.3px + 6.95%); }
  .reason:last-child { margin-bottom: 0; }

  .contact { padding-bottom: calc(8% - 7px); }
  .contact__voucher { margin-top: 51px !important; }
  .contact__form-card { margin-top: 48px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }

  .to-top { right: 20px; }

  .site-footer__inner { flex-direction: column; align-items: flex-end; justify-content: center; }
}

@media (max-width: 900px) and (min-width: 641px) {
  .site-header__inner { padding-top: 40px; padding-bottom: 40px; }
  .main-nav { margin-bottom: -40px; }
  .intro { padding-bottom: 82px; }
  .contact__voucher { margin-top: 78px !important; }
  .contact__form-card { margin-top: 30px; }
}

/* ---------- Small (Smartphone) ---------- */
@media (max-width: 640px) {
  .site-header__inner {
    grid-template-columns: 1fr 1fr;
    padding: 20px 40px 40px;
  }
  .site-header__logo { grid-column: 1 / -1; margin-top: 20px; }
  .site-header__logo img { width: 100%; }
  .site-header__appointment { grid-column: 1 / -1; margin-top: 20px; }
  .site-header__hours { margin-top: 35px; text-align: left; }
  .nav-toggle { justify-self: center; margin-top: 35px; }
  .main-nav { margin-bottom: -40px; }

  .hero__info--small { display: block; padding-top: 21px; }
  .hero__info--small p + p { margin-top: 41px; }
  .hero__title { margin-top: 121px; }
  .hero__text { margin-top: 26px !important; padding-bottom: 50px; }

  .intro { padding-bottom: 50px; }
  .booking__inner { padding-bottom: 7%; }
  .btn--submit { padding: 13px 29px; }
  .contact__voucher { margin-top: 23px !important; }
  .contact__form-card { margin-top: 0; }

  .reasons { padding-top: 24px; }
  .sep--curve { display: none; }
  .reasons__grid { margin-top: 0; }
  .reason { margin-bottom: 20px; }

  .contact__list .icon { margin-right: 17px; }

  .site-footer { padding: 30px 11%; }
  .site-footer__inner { padding-left: 0; align-items: flex-start; }
  .site-footer__nav ul { flex-direction: column; align-items: center; }
}

