@charset "UTF-8";

/* ==========================================================================
   Startseite – Editorial-Design, flach und vollflächig (kein Box-in-Box)
   Mobile-first, rein CSS (kein JS), scoped unter .home
   ========================================================================== */

.home {
  --home-ink: #171f15;
  --home-copy: #495446;
  --home-muted: #6d766a;
  --home-green: var(--scharr-green, #2e4f20);
  --home-green-deep: #12220e;
  --home-orange: var(--scharr-orange, #ff9900);
  --home-orange-dark: #8a4e00;
  --home-mist: #f2f6ee;
  --home-sand: #faf6ef;
  --home-blush: #fdf1e3;
  --home-shell: 1240px;
  --home-pad: clamp(20px, 5vw, 80px);
  color: var(--home-ink);
  background: #fff;
  overflow: clip;
}

/* Untere Inhaltsbereiche müssen den Above-the-fold-Renderpfad nicht blockieren.
   Der intrinsische Platz verhindert dabei Layout-Sprünge beim Nachladen. */
.home-banner,
.home-final {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

.home *,
.home *::before,
.home *::after {
  box-sizing: border-box;
}

.home :where(h1, h2, h3, p, ul, ol, dl, dd, figure) {
  margin: 0;
}

.home :where(ul, ol) {
  padding: 0;
  list-style: none;
}

.home :where(h1, h2, h3) {
  color: inherit;
  font-weight: 780;
  line-height: 1.04;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

.home p {
  color: var(--home-copy);
  line-height: 1.6;
}

.home a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.home a:focus-visible,
.home summary:focus-visible {
  outline: 3px solid var(--home-orange);
  outline-offset: 4px;
  border-radius: 2px;
}

.home-kicker {
  color: var(--home-orange-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Haupt-Hero
   -------------------------------------------------------------------------- */

.home-hero {
  display: grid;
  width: min(100%, var(--home-shell));
  margin-inline: auto;
  padding: clamp(24px, 4vw, 52px) var(--home-pad) clamp(28px, 4vw, 44px);
  gap: clamp(20px, 3.5vw, 40px);
}

.home-hero__copy {
  display: grid;
  gap: clamp(16px, 3vw, 26px);
  align-content: center;
}

.home-hero h1 {
  max-width: 19ch;
  font-size: clamp(2rem, 5vw, 3.6rem);
  text-wrap: balance;
}

.home-lead {
  max-width: 52ch;
  font-size: clamp(1.02rem, 1.9vw, 1.24rem);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid var(--home-green-deep);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.home-button:hover {
  transform: translateY(-2px);
}

.home .home-button--primary,
.home .home-button--primary:visited {
  background: var(--home-green-deep);
  color: #fff;
}

.home-button--quiet {
  color: var(--home-green-deep);
  background: transparent;
}

.home-button--quiet:hover {
  background: var(--home-mist);
}

.home-hero__media {
  position: relative;
}

.home-hero__media::after {
  content: "";
  position: absolute;
  inset: auto -6% -10% auto;
  width: clamp(120px, 22vw, 240px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--home-orange) 22%, transparent);
  z-index: -1;
}

.home-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(18px, 3vw, 34px);
}

.home-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px clamp(24px, 5vw, 52px);
  border-top: 1px solid color-mix(in srgb, var(--home-ink) 14%, transparent);
  padding-top: clamp(18px, 3vw, 28px);
}

.home-facts dt {
  color: var(--home-green-deep);
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 820;
  line-height: 1;
}

.home-facts dd {
  margin-top: 5px;
  color: var(--home-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.home-facts dd a {
  color: inherit;
}

.home-facts dd a:hover {
  color: var(--home-green);
}

/* --------------------------------------------------------------------------
   Bestseller – Rangnummern, mobile Wischleiste, Desktop-Raster
   -------------------------------------------------------------------------- */

.home-best {
  background: var(--home-mist);
  padding: clamp(36px, 5vw, 60px) 0 clamp(40px, 5vw, 64px);
}

.home-best__head {
  display: grid;
  gap: 12px;
  width: min(100%, var(--home-shell));
  margin-inline: auto;
  padding-inline: var(--home-pad);
}

.home-best__head h2 {
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
}

.home-best__head p {
  max-width: 60ch;
}

.home-best__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(72vw, 340px);
  gap: clamp(20px, 4vw, 40px);
  margin-top: clamp(22px, 4vw, 40px);
  padding-inline: var(--home-pad);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--home-pad);
  scrollbar-width: none;
}

.home-best__list::-webkit-scrollbar {
  display: none;
}

.home-best__item {
  scroll-snap-align: start;
  min-width: 0;
}

.home-product {
  position: relative;
  display: grid;
  gap: 8px;
  padding-top: clamp(34px, 5vw, 46px);
}

.home-product__rank {
  position: absolute;
  top: 0;
  left: -0.05em;
  z-index: 0;
  color: transparent;
  -webkit-text-stroke: 2px color-mix(in srgb, var(--home-green) 55%, transparent);
  font-size: clamp(3.8rem, 7vw, 5.4rem);
  font-weight: 820;
  line-height: 1;
  pointer-events: none;
}

.home-product__media {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: clamp(14px, 2vw, 22px);
  background:
    linear-gradient(160deg, rgba(46, 79, 32, 0.07), rgba(255, 153, 0, 0.12)),
    #fffdf8;
}

.home-product__media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 86%;
  max-height: 86%;
  object-fit: contain;
  transition: transform 220ms ease;
}

.home-product__media:hover img {
  transform: scale(1.04);
}

.home-product__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  color: var(--home-muted);
  font-size: 0.82rem;
  font-weight: 640;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-product__badge {
  color: #fff;
  background: var(--home-orange-dark);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.home-product h3 {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.25;
}

.home-product h3 a {
  text-decoration: none;
}

.home-product h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.home-product h3 a:hover {
  color: var(--home-green);
  text-decoration: underline;
}

.home-product__price {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
}

.home-product__price s {
  color: #5f6a5c; /* mind. 4.5:1 auf --home-surface (#f2f6ee), WCAG AA */
  font-size: 0.92rem;
}

.home-product__price strong {
  color: var(--home-green);
  font-size: 1.18rem;
  font-weight: 820;
}

/* --------------------------------------------------------------------------
   Kategorie-Hero-Banner – vollflächig, alternierend
   -------------------------------------------------------------------------- */

.home-banner {
  display: grid;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  padding: clamp(24px, 3.5vw, 40px) var(--home-pad);
}

.home-banner:nth-of-type(odd) {
  background: var(--home-sand);
}

.home-banner:nth-of-type(even) {
  background: var(--home-blush);
}

.home-banner__media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(42vh, 340px);
  margin-inline: auto;
  object-fit: contain;
  border-radius: clamp(14px, 2vw, 26px);
}

.home-banner__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  min-height: min(64vw, 340px);
}

.home-banner__copy {
  display: grid;
  gap: clamp(12px, 2vw, 18px);
  max-width: 34rem;
}

.home-banner h2 {
  font-size: clamp(1.6rem, 3.8vw, 2.6rem);
  text-wrap: balance;
}

.home-banner p:not(.home-kicker) {
  font-size: clamp(0.98rem, 1.8vw, 1.12rem);
}

.home-arrow {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--home-green-deep);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

.home-arrow::after {
  content: "→";
  transition: transform 160ms ease;
}

.home-arrow:hover::after,
.home-arrow:focus-visible::after {
  transform: translateX(5px);
}

/* --------------------------------------------------------------------------
   Finale – Service und FAQ auf Dunkelgrün
   -------------------------------------------------------------------------- */

.home-final {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  background: var(--home-green-deep);
  color: #fff;
  padding: clamp(44px, 6vw, 80px) var(--home-pad);
}

.home-final > * {
  width: min(100%, calc((var(--home-shell) - 2 * var(--home-pad)) ));
  margin-inline: auto;
}

.home-final .home-kicker {
  color: var(--home-orange);
}

.home-final h2 {
  font-size: clamp(1.7rem, 4.2vw, 2.9rem);
  margin-bottom: clamp(16px, 3vw, 26px);
}

.home-final p {
  color: rgba(255, 255, 255, 0.78);
}

.home-final__service ul {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.home-final__service li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.home-final__service a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  color: #fff;
  font-size: clamp(1.02rem, 2vw, 1.3rem);
  font-weight: 760;
  text-decoration: none;
}

.home-final__service a::after {
  content: "→";
  flex: none;
  color: var(--home-orange);
  font-size: 1.2em;
  line-height: 1;
  transition: transform 160ms ease;
}

.home-final__service a:hover::after,
.home-final__service a:focus-visible::after {
  transform: translateX(5px);
}

.home-final__faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.home-final__faq details:first-of-type {
  border-top: 1px solid rgba(255, 255, 255, 0.36);
}

.home-final__faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 60px;
  padding-block: 16px;
  color: #fff;
  font-size: clamp(1rem, 1.9vw, 1.14rem);
  font-weight: 740;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.home-final__faq summary::-webkit-details-marker {
  display: none;
}

.home-final__faq summary::after {
  content: "+";
  flex: none;
  color: var(--home-orange);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 160ms ease;
}

.home-final__faq details[open] summary::after {
  transform: rotate(45deg);
}

.home-final__faq details p {
  max-width: 74ch;
  padding-bottom: 22px;
}

/* --------------------------------------------------------------------------
   Ab Tablet / Desktop
   -------------------------------------------------------------------------- */

@media (min-width: 720px) {
  .home-best__list {
    grid-auto-columns: minmax(260px, 300px);
  }
}

@media (min-width: 980px) {
  .home-hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
  }

  .home-facts {
    grid-column: 1 / -1;
  }

  .home-best__list {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100%, var(--home-shell));
    margin-inline: auto;
    overflow-x: visible;
  }

  .home-banner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-banner > * {
    width: min(100%, calc(var(--home-shell) / 2 - var(--home-pad)));
  }

  .home-banner__media {
    justify-self: end;
  }

  .home-banner__copy {
    justify-self: start;
  }

  .home-banner:nth-of-type(even) .home-banner__media {
    order: 2;
    justify-self: start;
  }

  .home-banner:nth-of-type(even) .home-banner__copy {
    justify-self: end;
  }

  .home-final {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }

  .home-final > * {
    width: auto;
    margin-inline: 0;
  }
}

/* --------------------------------------------------------------------------
   Reduzierte Bewegung
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .home-button,
  .home-product__media img,
  .home-arrow::after,
  .home-final__service a::after,
  .home-final__faq summary::after {
    transition: none;
  }

  .home-product__media:hover img {
    transform: none;
  }
}
