/* ALFARI Startseite Final 6.5.0 – nur Startseite, bewusst zuletzt geladen */
body.home,
body.home #page,
body.home .site,
body.home main.alfari-entry-main {
  background:#f7f8f5 !important;
  color:#1f2328 !important;
}

/* HERO – hell, ruhig, wie freigegebener Entwurf */
body.home .alfari-entry-hero {
  padding:clamp(2.25rem,6vw,5rem) 0 !important;
  background:#ffffff !important;
  color:#1f2328 !important;
  border-bottom:1px solid #e1e5df !important;
}
body.home .alfari-entry-hero__grid {
  display:grid !important;
  gap:clamp(1.8rem,4vw,3.5rem) !important;
  align-items:center !important;
}
body.home .alfari-entry-hero__copy { max-width:48rem !important; }
body.home .alfari-entry-hero__badge {
  color:#69a622 !important;
  -webkit-text-fill-color:#69a622 !important;
  opacity:1 !important;
}
body.home .alfari-entry-hero__title,
body.home .alfari-entry-hero__title-line {
  color:#1f2328 !important;
  -webkit-text-fill-color:#1f2328 !important;
  opacity:1 !important;
  filter:none !important;
  max-width:13ch !important;
  font-size:clamp(2.35rem,7vw,4.8rem) !important;
  line-height:1.02 !important;
  letter-spacing:-.05em !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
  hyphens:none !important;
}
body.home .alfari-entry-hero__highlight {
  color:#69a622 !important;
  -webkit-text-fill-color:#69a622 !important;
  font-size:.62em !important;
  line-height:1.1 !important;
  margin-top:.35em !important;
}
body.home .alfari-entry-hero__text,
body.home .alfari-entry-hero__benefits,
body.home .alfari-entry-hero__benefits li,
body.home .alfari-entry-hero__actions small {
  color:#4b5563 !important;
  -webkit-text-fill-color:#4b5563 !important;
  opacity:1 !important;
  filter:none !important;
}
body.home .alfari-entry-hero__text {
  max-width:40rem !important;
  font-size:clamp(1.03rem,2vw,1.18rem) !important;
  line-height:1.68 !important;
}
body.home .alfari-entry-button--primary {
  background:#73ad28 !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  border:1px solid #73ad28 !important;
  box-shadow:0 10px 24px rgba(65,104,18,.18) !important;
}
body.home .alfari-entry-button--text {
  color:#4f7e16 !important;
  -webkit-text-fill-color:#4f7e16 !important;
}
body.home .alfari-entry-hero__benefits li:before { color:#73ad28 !important; }
body.home .alfari-entry-hero__visual img { filter:drop-shadow(0 22px 32px rgba(31,35,40,.14)) !important; }

/* ABSCHNITTE */
body.home .alfari-entry-section,
body.home .alfari-entry-section--white,
body.home .alfari-entry-section--soft,
body.home .alfari-entry-planfinder {
  background:#f7f8f5 !important;
  color:#1f2328 !important;
  padding:clamp(2.8rem,6vw,5.3rem) 0 !important;
}
body.home .alfari-entry-section--white { background:#ffffff !important; }
body.home .alfari-entry-section--soft { background:#f0f3ed !important; }

body.home .alfari-entry-kicker {
  color:#69a622 !important;
  -webkit-text-fill-color:#69a622 !important;
  opacity:1 !important;
}
body.home .alfari-entry-title,
body.home .alfari-entry-heading h2,
body.home .alfari-entry-next h2 {
  color:#1f2328 !important;
  -webkit-text-fill-color:#1f2328 !important;
  opacity:1 !important;
  filter:none !important;
}
body.home .alfari-entry-intro,
body.home .alfari-entry-heading p,
body.home .alfari-entry-next p {
  color:#4b5563 !important;
  -webkit-text-fill-color:#4b5563 !important;
  opacity:1 !important;
  filter:none !important;
}

/* ALLE INHALTSKARTEN HELL */
body.home .alfari-entry-card,
body.home .alfari-entry-card--dark,
body.home .alfari-entry-trainer__quote,
body.home .alfari-entry-next {
  background:#ffffff !important;
  color:#1f2328 !important;
  border:1px solid #dfe4dc !important;
  border-radius:20px !important;
  box-shadow:0 10px 28px rgba(31,35,40,.08) !important;
  opacity:1 !important;
  filter:none !important;
  mix-blend-mode:normal !important;
}
body.home .alfari-entry-card h3,
body.home .alfari-entry-card--dark h3,
body.home .alfari-entry-trainer__quote h3,
body.home .alfari-entry-next h2,
body.home .alfari-entry-card h3 * {
  color:#1f2328 !important;
  -webkit-text-fill-color:#1f2328 !important;
  opacity:1 !important;
  filter:none !important;
}
body.home .alfari-entry-card p,
body.home .alfari-entry-card li,
body.home .alfari-entry-card span:not(.alfari-entry-card__number):not(.alfari-entry-link),
body.home .alfari-entry-card--dark p,
body.home .alfari-entry-card--dark li,
body.home .alfari-entry-trainer__quote p,
body.home .alfari-entry-trainer__quote small,
body.home .alfari-entry-next p {
  color:#4b5563 !important;
  -webkit-text-fill-color:#4b5563 !important;
  opacity:1 !important;
  filter:none !important;
}
body.home .alfari-entry-card__number,
body.home .alfari-entry-card--dark .alfari-entry-card__number {
  background:#edf6df !important;
  color:#5f951f !important;
  -webkit-text-fill-color:#5f951f !important;
  opacity:1 !important;
}
body.home .alfari-entry-link { color:#5f951f !important; -webkit-text-fill-color:#5f951f !important; }

/* TRAINER-ABSCHNITT: keine dunkle Vollfläche */
body.home .alfari-entry-section--dark {
  background:#f0f3ed !important;
  color:#1f2328 !important;
  padding:clamp(2.8rem,6vw,5.3rem) 0 !important;
}
body.home .alfari-entry-section--dark .alfari-entry-kicker { color:#69a622 !important; -webkit-text-fill-color:#69a622 !important; }
body.home .alfari-entry-section--dark .alfari-entry-title { color:#1f2328 !important; -webkit-text-fill-color:#1f2328 !important; }
body.home .alfari-entry-section--dark .alfari-entry-intro,
body.home .alfari-entry-section--dark .alfari-entry-list li { color:#4b5563 !important; -webkit-text-fill-color:#4b5563 !important; opacity:1 !important; }
body.home .alfari-entry-trainer__quote { border-left:4px solid #73ad28 !important; }

/* FAKTOREN */
body.home .alfari-entry-factor {
  background:#fff !important;
  color:#374151 !important;
  -webkit-text-fill-color:#374151 !important;
  border:1px solid #d7ded3 !important;
  box-shadow:0 4px 12px rgba(31,35,40,.04) !important;
  opacity:1 !important;
}

/* PLANFINDER: nur die echte Fokuskarte darf dunkel sein, dann mit hellem Text */
body.home .alfari-entry-planfinder .alfari-planfinder-disclosure,
body.home .alfari-entry-planfinder .alfari-planfinder-stage,
body.home .alfari-entry-planfinder .alfari-public-slot-plan-finder {
  background:transparent !important;
}
body.home .alfari-entry-planfinder .alfari-planfinder-card,
body.home .alfari-entry-planfinder .alfari-planfinder-focus,
body.home .alfari-entry-planfinder .alfari-planfinder-panel,
body.home .alfari-entry-planfinder article {
  background:#ffffff !important;
  color:#1f2328 !important;
  border:1px solid #dfe4dc !important;
  box-shadow:0 10px 28px rgba(31,35,40,.08) !important;
}
body.home .alfari-entry-planfinder h1,
body.home .alfari-entry-planfinder h2,
body.home .alfari-entry-planfinder h3,
body.home .alfari-entry-planfinder h4 {
  color:#1f2328 !important;
  -webkit-text-fill-color:#1f2328 !important;
  opacity:1 !important;
}
body.home .alfari-entry-planfinder p,
body.home .alfari-entry-planfinder li,
body.home .alfari-entry-planfinder span:not(.button):not(.wp-element-button) {
  color:#4b5563 !important;
  -webkit-text-fill-color:#4b5563 !important;
  opacity:1 !important;
}

/* FINALE CTA */
body.home .alfari-entry-next__links .alfari-entry-button--primary {
  background:#73ad28 !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
body.home .alfari-entry-secondary a { color:#4f7e16 !important; -webkit-text-fill-color:#4f7e16 !important; }

/* Avatar darf keine Inhalte überdecken */
@media (max-width:767px) {
  body.home .alfari-entry-hero__title,
  body.home .alfari-entry-hero__title-line {
    max-width:10ch !important;
    font-size:clamp(2.25rem,12vw,3.55rem) !important;
  }
  body.home .alfari-entry-hero__highlight { font-size:.58em !important; }
  body.home .alfari-entry-card,
  body.home .alfari-entry-card--dark,
  body.home .alfari-entry-trainer__quote,
  body.home .alfari-entry-next { padding:1.2rem !important; }
  body.home .alfari-entry-section { padding-block:2.5rem !important; }
  body.home .alfari-entry-next__links .alfari-entry-button { width:100% !important; }
  body.home .alfari-trainer-fab,
  body.home .alfari-coach-launcher,
  body.home [data-alfari-trainer-launcher] {
    bottom:calc(1rem + env(safe-area-inset-bottom)) !important;
    right:.75rem !important;
    transform:scale(.86) !important;
    transform-origin:bottom right !important;
  }
}


/* 6.32.7 – HOMEPAGE MOBILE HERO LAYOUT CLOSURE
   Live issue: fixed/sticky public header overlapped the top of the hero and
   the two-column mobile hero made the copy unnecessarily narrow.
   Existing !important declarations in this same stylesheet require matching
   specificity/importance for a deterministic release fix. */
@media (max-width:899px) {
  body.home .alfari-entry-hero {
    padding-top:clamp(3.25rem,10vw,4.5rem) !important;
  }

  body.home .alfari-entry-hero__grid {
    grid-template-columns:minmax(0,1fr) !important;
    gap:1.25rem !important;
    align-items:start !important;
  }

  body.home .alfari-entry-hero__copy {
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
  }

  body.home .alfari-entry-hero__title,
  body.home .alfari-entry-hero__title-line {
    max-width:12ch !important;
  }

  body.home .alfari-entry-hero__text {
    width:100% !important;
    max-width:38rem !important;
  }

  /* 6.32.4 trainer integration remains visible; only its layout changes. */
  body.home .alfari-entry-hero__visual {
    display:block !important;
    width:min(10rem,34vw) !important;
    justify-self:end !important;
    align-self:end !important;
    margin-top:-.5rem !important;
  }

  body.home .alfari-entry-hero__visual img {
    display:block !important;
    width:100% !important;
    max-width:10rem !important;
    height:auto !important;
    max-height:15rem !important;
    object-fit:contain !important;
  }

  /* 6.32.6 cleanup remains authoritative: the extra trainer-ID overlay stays hidden. */
  body.home .alfari-entry-hero__trainer-id {
    display:none !important;
  }

  body.home .alfari-entry-hero__actions,
  body.home .alfari-entry-hero__benefits {
    width:100% !important;
  }
}

@media (max-width:430px) {
  body.home .alfari-entry-hero {
    padding-top:3.5rem !important;
  }
  body.home .alfari-entry-hero__title,
  body.home .alfari-entry-hero__title-line {
    max-width:11ch !important;
    font-size:clamp(2.15rem,11vw,3.15rem) !important;
  }
  body.home .alfari-entry-hero__text {
    max-width:100% !important;
    font-size:1rem !important;
    line-height:1.58 !important;
  }
  body.home .alfari-entry-hero__visual {
    width:7.5rem !important;
  }
  body.home .alfari-entry-hero__visual img {
    max-width:7.5rem !important;
  }
}

/* 6.34.1 – PRE-RELEASE MOBILE HERO CONTRAST / READABILITY CLOSURE
   Root cause: legacy start-page final CSS forced dark text for the historical
   light hero while the current pre-release hero can resolve onto a dark surface.
   These rules are scoped to the pre-release homepage only and loaded last. */
body.home .alfari-pre-release-home .alfari-entry-hero {
  background:radial-gradient(circle at 82% 14%,rgba(216,242,71,.10),transparent 27rem),linear-gradient(180deg,#252b30 0%,#1f2428 100%) !important;
  color:#fff !important;
  border-bottom-color:rgba(255,255,255,.08) !important;
}
body.home .alfari-pre-release-home .alfari-entry-hero__title,
body.home .alfari-pre-release-home .alfari-entry-hero__title-line {
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  text-shadow:none !important;
}
body.home .alfari-pre-release-home .alfari-entry-hero__text,
body.home .alfari-pre-release-home .alfari-entry-hero__benefits,
body.home .alfari-pre-release-home .alfari-entry-hero__benefits li,
body.home .alfari-pre-release-home .alfari-entry-hero__actions small {
  color:#f0f2f4 !important;
  -webkit-text-fill-color:#f0f2f4 !important;
}
body.home .alfari-pre-release-home .alfari-entry-hero__badge {
  color:#d8f247 !important;
  -webkit-text-fill-color:#d8f247 !important;
}
body.home .alfari-pre-release-home .alfari-entry-hero .alfari-entry-button--primary {
  background:#d8f247 !important;
  color:#171b1e !important;
  -webkit-text-fill-color:#171b1e !important;
  border-color:#d8f247 !important;
}
body.home .alfari-pre-release-home .alfari-entry-hero .alfari-entry-button--text {
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}

@media (max-width:899px) {
  body.home .alfari-pre-release-home .alfari-entry-hero {
    padding-top:clamp(2rem,7vw,3rem) !important;
    padding-bottom:2.4rem !important;
  }
  body.home .alfari-pre-release-home .alfari-entry-hero__grid {
    grid-template-columns:minmax(0,1fr) !important;
    gap:1.35rem !important;
  }
  body.home .alfari-pre-release-home .alfari-entry-hero__copy {
    width:100% !important;
    max-width:none !important;
  }
  body.home .alfari-pre-release-home .alfari-entry-hero__title,
  body.home .alfari-pre-release-home .alfari-entry-hero__title-line {
    width:100% !important;
    max-width:18ch !important;
    font-size:clamp(2rem,8.8vw,2.85rem) !important;
    line-height:1.04 !important;
    letter-spacing:-.035em !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
    hyphens:none !important;
  }
  body.home .alfari-pre-release-home .alfari-entry-hero__text {
    width:100% !important;
    max-width:38rem !important;
    margin-top:1.05rem !important;
    font-size:1.02rem !important;
    line-height:1.58 !important;
  }
  body.home .alfari-pre-release-home .alfari-entry-hero__actions {
    display:flex !important;
    align-items:flex-start !important;
    gap:.7rem !important;
    width:100% !important;
    margin-top:1.25rem !important;
  }
  body.home .alfari-pre-release-home .alfari-entry-hero .alfari-entry-button--primary {
    width:auto !important;
    max-width:100% !important;
    min-width:0 !important;
    min-height:3.4rem !important;
    padding:.9rem 1.15rem !important;
    font-size:1rem !important;
    line-height:1.2 !important;
    border-radius:.8rem !important;
  }
  body.home .alfari-pre-release-home .alfari-entry-hero__visual {
    margin-top:0 !important;
  }
}

@media (max-width:430px) {
  body.home .alfari-pre-release-home .alfari-entry-hero__title,
  body.home .alfari-pre-release-home .alfari-entry-hero__title-line {
    max-width:100% !important;
    font-size:clamp(1.95rem,8.6vw,2.35rem) !important;
  }
  body.home .alfari-pre-release-home .alfari-entry-hero .alfari-entry-button--primary {
    font-size:.98rem !important;
  }
}
