/**
 * STARFRUIT STUDIO – FINAL UX R4
 * 2026-11-12
 */

/* =========================================================
   1. STARTSEITE: FÜR WEN WIR ARBEITEN
   ========================================================= */

.page-home .sfs-audience {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.page-home .sfs-audience__grid {
  display: grid;
  gap: clamp(42px, 7vw, 86px);
  align-items: start;
}

.page-home .sfs-audience__copy h2 {
  max-width: 17ch;
  margin: 10px 0 18px;
}

.page-home .sfs-audience__copy .lead {
  max-width: 62ch;
  margin: 0;
}

.page-home .sfs-audience__team {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.65;
}

.page-home .sfs-audience__groups {
  border-top: 1px solid var(--line);
}

.page-home .sfs-audience__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, .72fr) minmax(0, 1.28fr);
  gap: 20px;
  padding: 19px 0 19px 18px;
  border-bottom: 1px solid var(--line);
}

.page-home .sfs-audience__row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  transform: rotate(45deg);
}

.page-home .sfs-audience__row strong {
  color: var(--ink);
  font-size: .98rem;
}

.page-home .sfs-audience__row span {
  color: var(--muted);
  line-height: 1.55;
}

@media (min-width: 860px) {
  .page-home .sfs-audience__grid {
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  }
}

@media (max-width: 759px) {
  .page-home .sfs-audience {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  .page-home .sfs-audience__copy h2 {
    max-width: none;
  }

  .page-home .sfs-audience__team {
    margin-top: 20px;
  }

  .page-home .sfs-audience__row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 16px 0 16px 17px;
  }

  .page-home .sfs-audience__row::before {
    top: 22px;
  }
}

/* =========================================================
   2. KONTAKT: SUBMIT + RECAPTCHA
   ========================================================= */

body.page-id-250 #wpforms-submit-268,
body.page-id-250 .form-wrapper .wpforms-submit,
body.page-id-250 .form-wrapper button[type="submit"],
body.page-id-250 .form-wrapper input[type="submit"] {
  border-radius: 0 !important;
  clip-path: var(--clip-path-cut) !important;
}

body.page-id-250 .grecaptcha-badge {
  top: 102px !important;
  bottom: auto !important;
  z-index: 920 !important;
}

body.is-nav-open.page-id-250 .grecaptcha-badge {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 900px) {
  body.page-id-250 .grecaptcha-badge {
    top: 84px !important;
  }
}

/* =========================================================
   3. MOBILE BACK-TO-TOP + SCHNELLKONTAKT
   ========================================================= */

@media (max-width: 759px) {
  a.generate-back-to-top,
  .generate-back-to-top,
  .sfs-back-to-top,
  [data-sfs-back-to-top] {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 1170 !important;
  }
}

/* =========================================================
   4. MOBILE NAVIGATION: X SOFORT SICHTBAR + RUHIGERER DRAWER
   ========================================================= */

@media (max-width: 900px) {
  .sfs-mnav-head {
    min-height: 74px !important;
    border-bottom: 1px solid var(--line);
  }

  .sfs-mnav-close {
    position: relative !important;
    z-index: 25 !important;
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
    display: grid !important;
    place-items: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    border: 1px solid var(--line) !important;
    background: var(--surface) !important;
    color: var(--ink) !important;
    clip-path: var(--clip-path-cut) !important;
  }

  .sfs-mnav-close svg {
    display: block !important;
    width: 21px !important;
    height: 21px !important;
    opacity: 1 !important;
  }

  .sfs-mnav > a:not(.btn):not(.sfs-mnav-brand),
  .sfs-mnav > .nav-item > a {
    min-height: 56px !important;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 74%, transparent) !important;
  }

  .sfs-mnav > .sfs-mnav-head + a,
  .sfs-mnav > .sfs-mnav-head + .nav-item {
    margin-top: 8px !important;
  }

  .sfs-mnav .dropdown-menu {
    margin: 8px 20px 14px 24px !important;
    padding: 8px 10px !important;
    border: 1px solid var(--line) !important;
    border-left: 1px solid var(--line) !important;
    background: var(--bg) !important;
    clip-path: var(--clip-path-cut) !important;
  }

  .sfs-mnav .dropdown-menu a {
    min-height: 42px !important;
    padding: 9px 9px !important;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent) !important;
  }

  .sfs-mnav .dropdown-menu a:last-child {
    border-bottom: 0 !important;
  }

  .sfs-mnav .sfs-mnav-cta {
    margin-top: auto !important;
  }
}

/* =========================================================
   5. REPUTIFY: SEITE MUSS VERTIKAL SCROLLBAR BLEIBEN
   Die Inline-Bewertungen sitzen in einem Shadow DOM; JS setzt dort
   zusätzlich touch-action: pan-y direkt am Slider.
   ========================================================= */

@media (max-width: 759px) {
  .starfruit-reviews,
  .starfruit-reviews > *,
  .reputify-sitebar,
  .reputify-sitebar * {
    touch-action: pan-y !important;
  }

  .starfruit-reviews {
    overscroll-behavior-y: auto !important;
  }
}