/* ========= Hero ========= */

.hero {
  position: relative;
  isolation: isolate;

  min-height: 100svh;

  display: grid;
  align-items: center;

  color: var(--foreground);
  background-color: var(--background);

  overflow: hidden;
}

/* Hintergrundbild mit Kaffeebohnen */
.hero::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: -2;

  background-image:
    linear-gradient(
      90deg,
      rgba(10, 6, 4, 0.96) 0%,
      rgba(10, 6, 4, 0.78) 45%,
      rgba(10, 6, 4, 0.56) 100%
    ),
    url("../img/startseite/Hero-Hintergrund-Bohnen.webp");

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Abdunklung nach unten */
.hero::after {
  content: "";

  position: absolute;
  inset: 0;
  z-index: -1;

  background:
    linear-gradient(
      180deg,
      transparent 55%,
      rgba(10, 6, 4, 0.96) 100%
    );
}

.hero-container {
  width: min(100% - 3rem, 80rem);

  margin-inline: auto;
  padding-top: 8rem;
  padding-bottom: 7rem;

  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(22rem, 0.9fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

/* ========= Hero Inhalt ========= */

.hero-content {
  max-width: 44rem;
}

.hero-eyebrow {
  margin: 0 0 2rem;

  display: flex;
  align-items: center;
  gap: 0.9rem;

  color: var(--amber-500);

  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  line-height: 1.6;
  text-transform: uppercase;
}

.hero-title {
  max-width: 10ch;

  margin: 0;

  color: var(--text-cream);

  font-family: var(--font-display);
  font-size: clamp(4.5rem, 7vw, 7.5rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.045em;
}

.hero-title span {
  display: block;

  color: var(--amber-500);
}

.hero-description {
  max-width: 36rem;

  margin-top: 2rem;
  margin-bottom: 0;

  color: var(--text-cream);

  font-size: 1rem;
  line-height: 1.75;

  opacity: 0.88;
}

/* ========= Hero Buttons ========= */

.hero-actions {
  margin-top: 2.5rem;

  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ========= Hero Bild ========= */

.hero-visual {
  position: relative;

  width: min(100%, 33rem);
  aspect-ratio: 1;

  margin-inline: auto;

  display: grid;
  place-items: center;
}

/* Äußerer Kreis */
.hero-visual::before {
  content: "";

  position: absolute;
  inset: 2rem;

  border: 1px solid rgba(201, 125, 58, 0.18);
  border-radius: 50%;
}

/* Innerer Kreis */
.hero-visual::after {
  content: "";

  position: absolute;
  inset: 5rem;

  border: 1px solid rgba(201, 125, 58, 0.12);
  border-radius: 50%;
}

.hero-image-frame {
  position: relative;
  z-index: 2;

  width: clamp(15rem, 22vw, 20rem);
  aspect-ratio: 0.9;

  overflow: hidden;

  border-radius: 50%;
  background-color: var(--bg-image);

  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.4);
}

.hero-image-frame img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}

/* Kleines Symbol oben rechts */
.hero-award {
  position: absolute;
  top: 19%;
  right: 7%;
  z-index: 3;

  width: 3.5rem;
  height: 3.5rem;

  display: grid;
  place-items: center;

  color: var(--primary-foreground);
  background-color: var(--amber-600);

  font-size: 1.4rem;
}

/* SCA-Karte */
.hero-score {
  position: absolute;
  bottom: 19%;
  left: 9%;
  z-index: 3;

  min-width: 8.5rem;
  padding: 1.2rem 1.4rem;

  color: var(--foreground);
  background-color: var(--card);

  border: 1px solid var(--border);

  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35);
}

.hero-score strong {
  display: block;

  color: var(--amber-500);

  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.hero-score span {
  display: block;

  margin-top: 0.5rem;

  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}


/* ========= Hero Tablet ========= */

@media (max-width: 64rem) {
  .hero {
    min-height: auto;
  }

  .hero-container {
    padding-top: 9rem;
    padding-bottom: 7rem;

    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .hero-content {
    max-width: 42rem;
  }

  .hero-visual {
    width: min(100%, 29rem);
  }
}

/* ========= Hero Smartphone ========= */

@media (max-width: 40rem) {
  .hero-container {
    width: min(100% - 2rem, 80rem);

    padding-top: 7.5rem;
    padding-bottom: 4.5rem;

    gap: 3rem;
  }

  .hero-eyebrow {
    margin-bottom: 1.5rem;

    font-size: 0.58rem;
    letter-spacing: 0.22em;
  }

  .hero-title {
    font-size: clamp(3.5rem, 17vw, 5rem);
    line-height: 0.88;
  }

  .hero-description {
    margin-top: 1.5rem;

    font-size: 0.95rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

.hero-actions .button {
  width: 100%;
}

  .hero-visual {
    width: min(100%, 23rem);
  }

  .hero-visual::before {
    inset: 1rem;
  }

  .hero-visual::after {
    inset: 3.5rem;
  }

  .hero-image-frame {
    width: 14rem;
  }

  .hero-award {
    top: 12%;
    right: 3%;

    width: 3rem;
    height: 3rem;
  }

  .hero-score {
    bottom: 12%;
    left: 2%;

    min-width: 7.5rem;
    padding: 1rem;
  }

  .hero-score strong {
    font-size: 1.7rem;
  }
}

/* ========= Herkunfts-Laufleiste ========= */

.origin-marquee {
  width: 100%;

  overflow: hidden;

  background-color: var(--bg-footer);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.origin-marquee-track {
  width: max-content;

  display: flex;

  animation: origin-marquee-scroll 40s linear infinite;
}

.origin-marquee-group {
  margin: 0;
  padding: 1.35rem 0;

  display: flex;
  align-items: center;

  list-style: none;
}

.origin-marquee-group li {
  display: flex;
  align-items: center;
  gap: 3rem;

  color: var(--amber-700);

  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;

  white-space: nowrap;
}

/* Kleines Symbol zwischen den Herkunftsländern */
.origin-marquee-group li::after {
  content: "✦";

  margin-inline: 3rem;

  color: var(--amber-700);

  font-size: 0.55rem;
}

@keyframes origin-marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ========== Vorteile ========== */

.features-section {
  padding-block: clamp(6rem, 10vw, 10rem);

  color: var(--foreground);
  background-color: var(--background);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(3rem, 7vw, 7rem);
}

/* ---------- Vorteilskarten ---------- */

.feature-card {
  max-width: 22rem;
}

.feature-icon {
  width: 3.25rem;
  height: 3.25rem;

  display: grid;
  place-items: center;

  color: var(--amber-500);
  background-color: transparent;

  border: 1px solid var(--amber-800);
  border-radius: 50%;

  transition:
    color 250ms ease,
    background-color 250ms ease,
    border-color 250ms ease,
    transform 250ms ease;
}

/* Das eigentliche SVG-Symbol */
.feature-icon::before {
  content: "";

  width: 1.35rem;
  height: 1.35rem;

  display: block;

  background-color: currentColor;

  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;

  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

/* ---------- Einzelne Icons ---------- */

.feature-icon--origin::before {
  mask-image: url("../img/icons/globe.svg");
  -webkit-mask-image: url("../img/icons/globe.svg");
}

.feature-icon--roasting::before {
  mask-image: url("../img/icons/zap.svg");
  -webkit-mask-image: url("../img/icons/zap.svg");
}

.feature-icon--shipping::before {
  mask-image: url("../img/icons/heart.svg");
  -webkit-mask-image: url("../img/icons/heart.svg");
}

/* ---------- Hover ---------- */

.feature-card:hover .feature-icon {
  color: var(--primary-foreground);
  background-color: var(--amber-600);
  border-color: var(--amber-600);

  transform: translateY(-3px);
}

.feature-title {
  margin: 1.75rem 0 0;

  color: var(--text-cream);

  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
}

.feature-description {
  margin: 1.25rem 0 0;

  color: var(--foreground);

  font-size: 0.94rem;
  line-height: 1.75;

  opacity: 0.85;
}

/* ========== Vorteile Responsive ========== */

@media (max-width: 56rem) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem 3rem;
  }
}

@media (max-width: 40rem) {
  .features-section {
    padding-block: 5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .feature-card {
    max-width: none;
  }
}

/* ========== Signature Blends ========== */

.blends-section {
  padding-block: clamp(6rem, 10vw, 10rem);

  color: var(--foreground);
  background-color: var(--bg-section);

  border-top: 1px solid var(--border);
}

/* ---------- Bereichsüberschrift ---------- */

.blends-header {
  margin-bottom: clamp(3rem, 6vw, 5rem);

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.blends-title {
  margin: 0;

  color: var(--text-cream);

  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.blends-all-link {
  margin-bottom: 0.65rem;

  display: inline-flex;
  align-items: center;
  gap: 0.8rem;

  color: var(--amber-500);

  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-decoration: none;
  text-transform: uppercase;

  white-space: nowrap;

  transition:
    color 200ms ease,
    gap 200ms ease;
}

.blends-all-link:hover,
.blends-all-link:focus-visible {
  color: var(--accent);
  gap: 1.1rem;
}

/* ---------- Produkt-Raster ---------- */

.blends-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* ---------- Produktkarte ---------- */

.blend-card {
  min-width: 0;
}

.blend-image-wrapper {
  position: relative;

  aspect-ratio: 0.88;

  overflow: hidden;

  background-color: var(--bg-image);
}

/* Dunkler Verlauf am unteren Bildrand */
.blend-image-wrapper::after {
  content: "";

  position: absolute;
  inset: 45% 0 0;
  z-index: 1;

  background:
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(10, 6, 4, 0.2) 35%,
      rgba(10, 6, 4, 0.94) 100%
    );

  pointer-events: none;
}

.blend-image {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition:
    transform 600ms ease,
    filter 400ms ease;
}

.blend-card:hover .blend-image {
  transform: scale(1.045);
}

/* ---------- Röstgrad ---------- */

.blend-roast-level {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;

  padding: 0.55rem 0.8rem;

  color: var(--primary-foreground);
  background-color: var(--amber-600);

  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  line-height: 1;
  text-transform: uppercase;
}

/* ---------- SCA Score ---------- */

.blend-score {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  z-index: 2;
}

.blend-score strong {
  display: block;

  color: var(--amber-500);

  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 0.9;
}

.blend-score span {
  display: block;

  margin-top: 0.45rem;

  color: var(--text-cream);

  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

/* ---------- Produktinhalt ---------- */

.blend-content {
  padding-top: 1.7rem;
}

.blend-origin {
  margin: 0;

  color: var(--amber-700);

  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1.6;
  text-transform: uppercase;
}

.blend-name {
  margin-top: 0.65rem;
  margin-bottom: 0;

  color: var(--text-cream);

  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.2vw, 2.2rem);
  font-weight: 500;
  line-height: 1.1;

  transition: color 200ms ease;
}

.blend-card:hover .blend-name {
  color: var(--amber-500);
}

.blend-flavours {
  margin-top: 0.75rem;
  margin-bottom: 0;

  color: var(--foreground);

  font-size: 0.85rem;
  line-height: 1.6;

  opacity: 0.85;
}

/* ---------- Preis und Gewicht ---------- */

.blend-product-details {
  margin-top: 1.4rem;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.blend-price,
.blend-weight {
  margin: 0;
}

.blend-price {
  color: var(--text-cream);

  font-size: 1rem;
  font-weight: 700;
}

.blend-weight {
  color: var(--amber-700);

  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ========== Signature Blends Tablet ========== */

@media (max-width: 56rem) {
  .blends-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 4rem;
  }

  .blend-card:last-child {
    grid-column: 1 / -1;

    width: calc(50% - 0.75rem);
  }
}

/* ========== Signature Blends Smartphone ========== */

@media (max-width: 40rem) {
  .blends-section {
    padding-block: 5rem;
  }

  .blends-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .blends-all-link {
    margin-bottom: 0;
  }

  .blends-title {
    font-size: clamp(3.2rem, 15vw, 4.5rem);
  }

  .blends-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .blend-card:last-child {
    grid-column: auto;

    width: 100%;
  }

  .blend-image-wrapper {
    aspect-ratio: 1 / 1.15;
  }
}

/* ========== Kennzahlen ========== */

.stats-section {
  padding-block: clamp(2.5rem, 5vw, 5rem);

  color: var(--foreground);
  background-color: var(--background);

  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  margin: 0;

  color: var(--amber-500);

  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1;

  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: 0.9rem;
  margin-bottom: 0;

  color: var(--text-cream);

  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  line-height: 1.6;
  text-transform: uppercase;
}

/* ========== Kennzahlen Responsive ========== */

@media (max-width: 56rem) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem 2rem;
  }
}

@media (max-width: 32rem) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

/* ========== Abschluss-CTA ========== */

.cta-section {
  position: relative;
  isolation: isolate;

  min-height: 34rem;
  padding-block: clamp(7rem, 12vw, 11rem);

  display: grid;
  place-items: center;

  color: var(--foreground);
  background-color: var(--background);

  border-top: 1px solid var(--border);

  overflow: hidden;
}

/* ---------- Hintergrundbild ---------- */

.cta-section::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: -2;

  background-image:
    linear-gradient(
      rgba(10, 6, 4, 0.86),
      rgba(10, 6, 4, 0.9)
    ),
    url("../img/startseite/CTA-Banner-Rösterei.webp");

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* ---------- Zusätzliche Abdunklung ---------- */

.cta-section::after {
  content: "";

  position: absolute;
  inset: 0;
  z-index: -1;

  background:
    radial-gradient(
      circle at center,
      rgba(201, 125, 58, 0.06),
      transparent 50%
    );
}

/* ---------- Inhalt ---------- */

.cta-content {
  max-width: 58rem;

  margin-inline: auto;

  text-align: center;
}

.cta-eyebrow {
  justify-content: center;

  margin-bottom: 1.75rem;
}

.cta-title {
  margin: 0;

  color: var(--text-cream);

  font-family: var(--font-display);
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.cta-title span {
  display: block;

  color: var(--amber-500);
}

.cta-button {
  margin-top: 2.75rem;

  min-height: 4rem;
  padding-inline: 2.3rem;
}

/* ========== Abschluss-CTA Responsive ========== */

@media (max-width: 40rem) {
  .cta-section {
    min-height: 29rem;
    padding-block: 6rem;
  }

  .cta-content {
    max-width: 100%;
  }

  .cta-eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.22em;
  }

  .cta-title {
    font-size: clamp(2.9rem, 16vw, 5rem);
    line-height: 0.94;
  }

  .cta-button {
    width: 100%;

    margin-top: 2.25rem;
  }
}