/* =========================================================================
   Café SOY: Startseite
   Leitidee: Schwarz und Weiß wie die beiden Tüten. Der Eingang ist ein
   dunkles Video (fallende Bohnen) mit heller, ruhiger Schrift.
   ========================================================================= */

:root {
  interpolate-size: allow-keywords;
}

.section {
  padding-block: clamp(4.5rem, 12vw, 11rem);
}

.section-title {
  font-family: var(--display);
  font-size: clamp(2.7rem, 5.6vw, 5.2rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.lede {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 32rem;
  transition: color 900ms var(--ease-soft);
}

/* ---------- Eingang: Video im ganzen Bild, helle Schrift ---------- */

.hero {
  --fg: #f5f4f0;
  --bg: var(--night);
  --fg-muted: rgba(245, 244, 240, 0.74);
  --line: rgba(245, 244, 240, 0.26);
  --line-strong: rgba(245, 244, 240, 0.5);
  --shell: rgba(245, 244, 240, 0.08);
  position: relative;
  isolation: isolate;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: #060505;
  color: var(--fg);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__poster,
.hero__poster img,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* Zwei Ströme aus dem Auslauf in der Bildmitte. Am Handy steht die Schrift oben,
   am Computer links auf der dunklen Maschine (siehe unten). */
.hero__poster img,
.hero__video {
  object-fit: cover;
  object-position: 50% 50%;
}
.hero__video {
  opacity: 0;
  transition: opacity 1.4s var(--ease-soft);
}
.hero.is-playing .hero__video {
  opacity: 1;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6, 5, 5, 0.8), rgba(6, 5, 5, 0.5) 42%, rgba(6, 5, 5, 0) 68%);
}
.hero__content {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--island-top) + var(--island-h) + clamp(2.5rem, 9svh, 7rem));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: clamp(1.1rem, 2.4svh, 1.75rem);
  text-align: center;
}
.hero__eyebrow {
  border-color: var(--line);
  color: var(--fg-muted);
}
.hero__title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
/* Maske, aus der die Zeile aufsteigt (Platz für Unterlängen) */
.hero__line {
  display: block;
  overflow: hidden;
  padding-block: 0.2em 0.12em;
  margin-block: -0.2em -0.12em;
}
.hero__in {
  display: inline-block;
}
.hero__amp {
  font-style: italic;
}
.hero__sub {
  max-width: 30rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--fg-muted);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.hero .btn--ghost {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
/* Computer: Schrift links, die Ströme laufen rechts daneben */
@media (min-width: 900px) and (min-aspect-ratio: 4/5) and (min-height: 541px) {
  .hero__poster img,
  .hero__video {
    object-position: 60% 50%;
  }
  .hero__media::after {
    background:
      linear-gradient(to right, rgba(6, 5, 5, 0.62), rgba(6, 5, 5, 0.25) 40%, rgba(6, 5, 5, 0) 58%),
      linear-gradient(to bottom, rgba(6, 5, 5, 0.45), rgba(6, 5, 5, 0) 28%);
  }
  .hero__content {
    top: 50%;
    translate: 0 -40%;
    justify-items: start;
    text-align: left;
  }
  .hero__title {
    max-width: 7.2em;
  }
  .hero__sub {
    max-width: 26rem;
  }
  .hero__ctas {
    justify-content: flex-start;
  }
}
/* Anhalten und Abspielen (Pflicht bei Bewegung, die länger als fünf Sekunden läuft) */
.hero__toggle {
  position: absolute;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: clamp(1rem, 4svh, 2.5rem);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(245, 244, 240, 0.1);
  color: #f5f4f0;
  box-shadow: inset 0 0 0 1px rgba(245, 244, 240, 0.28);
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color 300ms var(--ease);
}
/* Ohne laufendes Video (Bewegung reduzieren, Datensparmodus, ohne JavaScript) kein Knopf */
.hero__toggle[hidden] {
  display: none;
}
@media (hover: hover) {
  .hero__toggle:hover {
    background: rgba(245, 244, 240, 0.2);
  }
}
.hero__toggle:active {
  background: rgba(245, 244, 240, 0.24);
}
.hero__toggle:focus-visible {
  outline: 2px solid #f5f4f0;
  outline-offset: 3px;
}
.hero__icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}
.hero__icon--play,
.hero__toggle[data-state="paused"] .hero__icon--pause {
  display: none;
}
.hero__toggle[data-state="paused"] .hero__icon--play {
  display: block;
}
@media (max-width: 899px) {
  .hero__content {
    top: calc(var(--island-top) + var(--island-h) + 2.25rem);
  }
  .hero__title {
    font-size: 9.6vw;
    line-height: 1.14;
  }
  .hero__sub {
    max-width: 22rem;
    font-size: 0.98rem;
  }
  .hero__ctas {
    width: 100%;
    flex-wrap: nowrap;
  }
  .hero__ctas .btn {
    flex: 1;
    min-width: 0;
  }
}
/* Schmale Handys: Beide Knöpfe passen nebeneinander, unter 340 px untereinander. */
@media (max-width: 400px) {
  .hero__ctas .btn {
    gap: 0.5rem;
    padding-left: 1.15rem;
    font-size: 0.95rem;
  }
  .hero__ctas .btn__icon {
    width: 2.4rem;
    height: 2.4rem;
  }
}
@media (max-width: 339px) {
  .hero__ctas {
    flex-wrap: wrap;
  }
  .hero__ctas .btn {
    flex-basis: 100%;
  }
}
/* Handy quer: Alles passt auf eine Bildschirmhöhe. */
@media (orientation: landscape) and (max-height: 540px) {
  .hero {
    min-height: 0;
  }
  .hero__content {
    top: calc(var(--island-top) + var(--island-h) + 0.75rem);
    gap: 0.65rem;
  }
  .hero__title {
    font-size: min(9.6vw, 12svh);
    line-height: 1.1;
  }
  .hero__sub {
    max-width: 36rem;
    font-size: 0.92rem;
  }
  .hero__ctas {
    width: auto;
    margin-top: 0.2rem;
  }
  .hero__ctas .btn {
    flex: none;
  }
  .hero__media::after {
    background: linear-gradient(to bottom, rgba(6, 5, 5, 0.6), rgba(6, 5, 5, 0.42) 65%, rgba(6, 5, 5, 0.2));
  }
}

/* ---------- Statement ---------- */

.statement {
  padding-block: clamp(7rem, 16vw, 14rem) clamp(5rem, 10vw, 9rem);
}
.statement__text {
  max-width: 21ch;
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.8vw, 4.6rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
}
.statement__text em {
  font-style: italic;
}

/* ---------- Produkt-Bühnen ---------- */

.feature {
  padding-block: clamp(5rem, 10vw, 9rem);
  /* Der Lichtschein hinter der Tüte ragt seitlich über; ohne Scrollbalken abschneiden. */
  overflow-x: clip;
}
.feature__title {
  position: relative;
  z-index: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 11.5vw, 11rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Buchstaben-Masken von SplitText: oben Platz für Akzente wie in CAFÉ CRÈME */
.feature__title .char-mask {
  padding-top: 0.3em;
  margin-top: -0.3em;
}
.feature--creme .feature__title {
  text-align: right;
}
.feature__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  margin-top: 2rem;
}
/* Freigestellte Tüte, schwebend vor dem großen Titel */
.pack {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  align-items: end;
  width: 100%;
  max-width: 560px;
  padding-bottom: 1.25rem;
}
.pack::before {
  content: "";
  position: absolute;
  inset: 4% -14% 10%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.75), transparent 72%);
  transition: opacity 900ms var(--ease-soft);
}
.pack--night::before {
  background: radial-gradient(closest-side, rgba(245, 244, 240, 0.13), transparent 72%);
}
.pack__float {
  width: min(100%, 410px);
  transform-origin: 50% 100%;
  transition: scale 900ms var(--ease-soft);
}
.pack__img {
  width: 100%;
  height: auto;
}
.pack__shadow {
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  z-index: -1;
  width: min(78%, 340px);
  height: 2.2rem;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(28, 28, 27, 0.32), transparent);
  transition: scale 900ms var(--ease-soft);
}
.pack--night .pack__shadow {
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), transparent);
}
.pack.is-small .pack__float {
  scale: 0.8;
}
/* Ganz ausverkaufte Sorte: Tüte blass */
.pack.is-sold-out .pack__img {
  opacity: 0.5;
  filter: grayscale(1);
}
.pack.is-small .pack__shadow {
  scale: 0.78;
}
@media (max-width: 899px) {
  .pack {
    max-width: none;
  }
  .pack__float {
    width: min(78%, 340px);
  }
}
[data-parallax] {
  position: absolute;
  inset: -8% 0;
}
[data-parallax] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}

@media (min-width: 900px) {
  .feature__grid {
    grid-template-columns: 5fr 1fr 6fr;
    align-items: end;
    margin-top: calc(-1 * clamp(2rem, 5.5vw, 5.5rem));
  }
  .feature--espresso .feature__media {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
  .feature--espresso .feature__buy {
    grid-column: 1;
    grid-row: 1;
  }
  /* Der Kaufbereich beginnt immer unterhalb der großen Überschrift,
     nur das Foto darf sie überlappen. */
  .feature__buy {
    align-self: start;
    padding-top: calc(clamp(2rem, 5.5vw, 5.5rem) + clamp(1.25rem, 2vw, 2rem));
  }
  .feature--creme .feature__grid {
    grid-template-columns: 6fr 1fr 5fr;
  }
  .feature--creme .feature__media {
    grid-column: 1;
    grid-row: 1;
  }
  .feature--creme .feature__buy {
    grid-column: 3;
    grid-row: 1;
  }
}

/* Ohne Animationen bleiben der Espresso-Abschnitt und der Siebträger-Guide dauerhaft dunkel. */
html:not(.motion) .feature--espresso,
html:not(.motion-ready) .feature--espresso,
html:not(.motion) .brew,
html:not(.motion-ready) .brew {
  --fg: #f5f4f0;
  --fg-muted: #a9a69f;
  --line: rgba(245, 244, 240, 0.14);
  --line-strong: rgba(245, 244, 240, 0.38);
  --shell: rgba(245, 244, 240, 0.05);
  --shell-ring: rgba(245, 244, 240, 0.1);
  --dot-on: #c9c5bc;
  --dot-off: #3d3c39;
  --bg: var(--night);
  background: var(--night);
  color: var(--fg);
}

/* Kaufbereich (wird aus dem Katalog befüllt) */
.buy {
  display: grid;
  gap: 1.3rem;
  max-width: 32rem;
}
.buy__desc {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.45vw, 1.4rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
}
.buy__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.buy__row .price__main {
  font-size: clamp(2.1rem, 3vw, 2.6rem);
}
.buy__row .price__note {
  max-width: 15rem;
}
/* Steckbrief: Geschmack, Bohnen, Röstung, Säure, Crema */
.profile {
  display: grid;
  margin: 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 900ms var(--ease-soft);
}
.profile > div {
  display: grid;
  grid-template-columns: 5.9rem 1fr;
  gap: 0.75rem;
  padding: 0.36rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.93rem;
  line-height: 1.45;
  transition: border-color 900ms var(--ease-soft);
}
.profile dt {
  padding-top: 0.18rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.profile dd {
  margin: 0;
}
/* Link von der Startseite auf die Produktseite */
.buy__more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  color: var(--fg);
  font-size: 0.95rem;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.25em;
}
.buy__more .icon {
  width: 1rem;
  height: 1rem;
}
.finder__more,
.wissen__item h3 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.2em;
}
/* Lebensmittelangaben, aufklappbar unter dem Kaufknopf */
.food summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.35rem 0;
  list-style: none;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color 400ms var(--ease-soft);
}
.food summary::-webkit-details-marker {
  display: none;
}
.food summary .icon {
  width: 0.95rem;
  height: 0.95rem;
  transition: rotate 400ms var(--ease-soft);
}
.food[open] summary .icon {
  rotate: 45deg;
}
.food summary:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (hover: hover) {
  .food summary:hover {
    color: var(--fg);
  }
}
.food .profile {
  margin-top: 0.5rem;
}
.food .profile > div {
  grid-template-columns: 7.2rem 1fr;
}
.buy__label {
  margin-bottom: 0.7rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
/* Eignungspunkte wie auf dem Etikett, in einer Zeile */
.suit {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.8rem;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  list-style: none;
}
.suit li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.suit__dots {
  display: inline-flex;
  gap: 0.25rem;
}
.dot {
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 50%;
  background: var(--dot-off);
  transition: background-color 900ms var(--ease-soft);
}
.dot--on {
  background: var(--dot-on);
}

/* Segment-Auswahl (Größe, Kaffee-Finder) */
.seg {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.seg legend {
  padding: 0;
  margin-bottom: 0.7rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.seg__options {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.seg label {
  position: relative;
}
.seg input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  font-size: 0.97rem;
  white-space: nowrap;
  transition: background-color 500ms var(--ease-soft), color 500ms var(--ease-soft);
}
.seg label:hover input:not(:checked):not(:disabled) + span {
  background: var(--shell);
}
.seg input:checked + span {
  background: var(--fg);
  color: var(--bg);
}
/* Ausverkaufte Größe: durchgestrichen und nicht wählbar */
.seg input:disabled {
  cursor: not-allowed;
}
/* Ausverkaufte Größe: blass und schräg durchgestrichen, nicht wählbar */
.seg input:disabled + span {
  color: var(--fg-muted);
  background: linear-gradient(to top right, transparent calc(50% - 0.75px), var(--fg-muted) calc(50% - 0.75px), var(--fg-muted) calc(50% + 0.75px), transparent calc(50% + 0.75px));
  opacity: 0.7;
}
.sold-out-note {
  position: relative;
  margin: 0;
  padding: 0.8rem 1rem 0.8rem 2.15rem;
  border-radius: var(--r-field);
  background: var(--shell);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.92rem;
  line-height: 1.5;
}
.sold-out-note::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: calc(0.8rem + 0.5em);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}
.sold-out-note a {
  color: inherit;
  white-space: nowrap;
}
.seg input:focus-visible + span {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.price {
  display: grid;
  gap: 0.35rem;
}
.price__main {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  font-family: var(--display);
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: lining-nums;
}
.price__compare {
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--fg-muted);
}
.price__compare s {
  text-decoration-thickness: 1px;
}
.price__note {
  font-size: 0.875rem;
  color: var(--fg-muted);
}
.price.is-changing .price__main {
  animation: price-in 600ms var(--ease) both;
}
@keyframes price-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.buy .btn {
  justify-self: start;
  min-width: min(100%, 19rem);
}

@media (max-width: 899px) {
  .feature__title {
    font-size: clamp(2.6rem, 12.4vw, 6rem);
    line-height: 1.1;
    white-space: normal;
  }
  .feature--creme .feature__title {
    text-align: left;
  }
  .feature__media {
    max-width: none;
  }
  .buy .btn {
    width: 100%;
  }
}

/* ---------- Kaffee-Finder: Karten ---------- */

/* Sieben Karten im Fächer, je eine pro Zubereitung oder Getränk. Die gewählte
   fliegt nach vorn und dreht sich um: Auf der Rückseite liegt die passende Tüte,
   daneben steht die Empfehlung. Schmal liegen die Karten nebeneinander zum Wischen. */
.finder {
  overflow-x: clip;
}
.finder__head {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  text-align: center;
}
.finder__head .lede {
  max-width: 36rem;
}
.finder__table {
  --card-w: 270px;
  --card-h: 405px;
  --panel-w: 27rem;
  --gap: 3.5rem;
  position: relative;
  margin-top: clamp(0.5rem, 2vw, 1.5rem);
}
.finder__deck {
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  --i: 0;
  width: var(--card-w);
  height: var(--card-h);
  perspective: 1600px;
  transition: transform 900ms var(--ease-soft), opacity 700ms var(--ease-soft);
}
.card:nth-child(1) {
  --i: -3;
}
.card:nth-child(2) {
  --i: -2;
}
.card:nth-child(3) {
  --i: -1;
}
.card:nth-child(5) {
  --i: 1;
}
.card:nth-child(6) {
  --i: 2;
}
.card:nth-child(7) {
  --i: 3;
}
.finder__dots {
  display: none;
}
@keyframes card-nudge {
  45% {
    transform: translateX(-56px);
  }
}
@media (max-width: 359px), (max-width: 999px) and (max-height: 480px) {
  .card__hint {
    display: none;
  }
}
/* Austeilen (motion.js): von links nach rechts, kurz nacheinander */
.finder__deck.is-dealing .card {
  transition-delay: calc((var(--i) + 3) * 75ms);
}
.card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1100ms var(--ease-soft);
}
.card.is-open .card__inner {
  transform: rotateY(180deg);
}
.card__face {
  position: absolute;
  inset: 0;
  border-radius: var(--r-shell);
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
/* Feiner Innenrahmen wie bei einer Spielkarte */
.card__face::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: var(--r-core);
  box-shadow: inset 0 0 0 1px var(--card-ring, rgba(55, 55, 53, 0.1));
  pointer-events: none;
}
.card__front {
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: start;
  gap: 0.5rem;
  width: 100%;
  padding: 1.4rem 1.45rem 1.35rem;
  border: 0;
  background: radial-gradient(120% 75% at 50% 0%, #fff 0%, var(--paper) 55%, #f0eee8 100%);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(55, 55, 53, 0.1), 0 40px 70px -40px rgba(28, 28, 27, 0.55);
}
.card__front:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
/* Nummer und Name oben links wie der Index einer Spielkarte: Im Fächer bleibt diese Ecke frei. */
.card__index {
  display: grid;
  gap: 0.55rem;
}
.card__num {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #5f5e5a;
}
.card__name {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.card__icon {
  align-self: center;
  justify-self: center;
  width: 118px;
  height: 118px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 900ms var(--ease-soft);
}
.card__foot,
.card__top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5f5e5a;
}

/* Rückseite: die Tüte der Empfehlung, schwarz oder hell wie die Tüte selbst */
.card__back {
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  gap: 0.6rem;
  padding: 1.4rem 1.45rem 1.5rem;
  transform: rotateY(180deg);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}
.card__back--espresso {
  --card-ring: rgba(245, 244, 240, 0.14);
  background: radial-gradient(120% 75% at 50% 0%, #34322f 0%, var(--night) 60%);
  color: #f5f4f0;
}
.card__back--espresso .card__top {
  color: #a9a69f;
}
.card__back--cafe-creme {
  background: radial-gradient(120% 75% at 50% 0%, #fff 0%, var(--paper) 55%, #ece9e2 100%);
  color: var(--ink);
}
.card__bag {
  align-self: center;
  width: auto;
  height: 66%;
  max-height: 250px;
  filter: drop-shadow(0 22px 22px rgba(0, 0, 0, 0.35));
}
.card__product {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

/* Empfehlung neben der Karte. Verborgen ist sie inert (shop.js): nicht klickbar,
   nicht per Tastatur erreichbar und für Screenreader ausgeblendet. */
.finder__panel {
  display: grid;
  gap: 1rem;
  align-content: start;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms var(--ease-soft);
}
.finder__panel.is-shown {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 600ms var(--ease-soft) 350ms;
}
.finder__panel:focus {
  outline: none;
}
.finder__panel .buy__label {
  margin-bottom: 0;
}
.finder__pick {
  font-family: var(--display);
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.finder__why {
  max-width: 34rem;
  line-height: 1.55;
  color: var(--fg-muted);
}
.finder__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.finder__buy .price__main {
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
}
.finder__buy .price__note {
  max-width: 14rem;
}
.finder__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-top: 0.25rem;
}
.finder__back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.3em;
  cursor: pointer;
  transition: text-decoration-color 400ms var(--ease);
}
.finder__back:hover {
  text-decoration-color: currentColor;
}
.finder__back .icon {
  width: 1rem;
  height: 1rem;
  rotate: 180deg;
}
.finder__panel.is-changing > * {
  animation: price-in 800ms var(--ease) both;
}
.finder__panel.is-changing > :nth-child(2) {
  animation-delay: 70ms;
}
.finder__panel.is-changing > :nth-child(3) {
  animation-delay: 140ms;
}
.finder__panel.is-changing > :nth-child(4) {
  animation-delay: 210ms;
}
.finder__panel.is-changing > :nth-child(5) {
  animation-delay: 280ms;
}

@media (min-width: 1000px) {
  .finder__deck {
    --step: clamp(84px, 8.8vw, 122px);
    position: relative;
    height: 600px;
  }
  /* Fächer: Jede Karte rückt um --i Schritte zur Seite, dreht sich und sinkt
     zum Rand hin etwas ab. Der Drehpunkt liegt unter den Karten. */
  .card {
    --x: calc(var(--i) * var(--step));
    --y: calc(var(--i) * var(--i) * 5px);
    --r: calc(var(--i) * 7deg);
    position: absolute;
    left: 50%;
    bottom: 56px;
    z-index: calc(var(--i) + 4);
    margin-left: calc(var(--card-w) / -2);
    transform-origin: 50% 140%;
    transform: translate(var(--x), var(--y)) rotate(var(--r));
  }
  .motion .finder__deck:not(.is-dealt) .card {
    opacity: 0;
    transform: translate(0, 120px) rotate(0deg) scale(0.94);
  }
  .finder__deck:not(.has-open) .card:focus-within {
    z-index: 10;
    transform: translate(var(--x), calc(var(--y) - 44px)) rotate(calc(var(--r) * 0.6));
  }
  /* Die gewählte Karte rückt nach links, die anderen verschwinden nach unten */
  .finder__deck.has-open .card:not(.is-open) {
    opacity: 0;
    transform: translate(calc(var(--x) * 1.25), calc(var(--y) + 140px)) rotate(calc(var(--r) * 1.3)) scale(0.9);
  }
  .finder__deck.has-open .card.is-open {
    z-index: 20;
    transform: translate(calc((var(--gap) + var(--panel-w)) / -2), -14px) rotate(-2deg) scale(1.1);
  }
  .finder__panel {
    position: absolute;
    top: 50%;
    left: calc(50% + (var(--card-w) * 1.1 + var(--gap) - var(--panel-w)) / 2);
    z-index: 21;
    width: var(--panel-w);
    translate: 0 -50%;
  }
}
@media (min-width: 1000px) and (hover: hover) {
  .finder__deck:not(.has-open) .card:hover {
    z-index: 10;
    transform: translate(var(--x), calc(var(--y) - 44px)) rotate(calc(var(--r) * 0.6));
  }
  .card:hover .card__icon {
    transform: translateY(-6px) scale(1.04);
  }
}
@media (max-width: 999px) {
  /* Breite höchstens so, dass die Karte auch quer auf den Bildschirm passt */
  .finder__table {
    --card-w: min(64vw, 270px, 50svh);
    --card-h: calc(var(--card-w) * 1.5);
  }
  .card__icon {
    width: 42%;
    height: auto;
    aspect-ratio: 1;
  }
  /* Der Wischbereich schneidet ab, was unten übersteht: Platz für den Kartenschatten,
     der negative Abstand gleicht ihn für die Abschnitte darunter wieder aus. */
  .finder__deck {
    display: flex;
    gap: 1rem;
    margin-bottom: -3rem;
    padding: 1.5rem max(var(--gutter), calc(50% - var(--card-w) / 2)) 5.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .finder__deck::-webkit-scrollbar {
    display: none;
  }
  .card {
    flex: 0 0 var(--card-w);
    scroll-snap-align: center;
  }
  .motion .finder__deck:not(.is-dealt) .card {
    opacity: 0;
    transform: translateY(48px);
  }
  .finder__deck.has-open .card:not(.is-open) {
    opacity: 0.45;
  }
  /* Einmal nach dem Austeilen (motion.js): Die Reihe stupst zur Seite, man kann wischen. */
  .finder__deck.is-nudging .card {
    animation: card-nudge 1100ms var(--ease-soft) both;
  }
  .finder__dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin: -0.5rem 0 1.75rem;
  }
  .finder__dots i {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--dot-off);
    transition: width 450ms var(--ease-soft), background-color 450ms var(--ease-soft);
  }
  .finder__dots i.is-on {
    width: 22px;
    background: var(--ink);
  }
  .finder__panel {
    display: none;
    margin-inline: var(--gutter);
  }
  .finder__panel.is-shown {
    display: grid;
  }
  .finder__actions .btn {
    width: 100%;
  }
}

/* ---------- Laufband ---------- */

.marquee {
  overflow: hidden;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  border-block: 1px solid var(--line);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.motion-ready .marquee__track {
  animation: none;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-right: clamp(1.5rem, 3vw, 3rem);
}
.marquee span {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5.4vw, 5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee i {
  flex: none;
  width: clamp(1.5rem, 3vw, 3rem);
  height: 1px;
  background: var(--line-strong);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Wissen (Text für Suchmaschinen und KI-Suche) ---------- */

.wissen__top {
  display: grid;
  gap: 3rem;
}
.wissen__intro {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}
.facts {
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.facts div {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.facts dt {
  padding-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.facts dd {
  margin: 0;
}
.wissen__grid {
  display: grid;
  gap: 3rem 2.5rem;
  margin-top: clamp(4rem, 8vw, 7rem);
  counter-reset: wissen;
}
.wissen__item {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
}
.wissen__item::before {
  counter-increment: wissen;
  content: counter(wissen, decimal-leading-zero);
  display: block;
  margin-bottom: 1.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
}
.wissen__item h3 {
  margin-bottom: 0.9rem;
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.9vw, 1.7rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.wissen__item p {
  color: var(--fg-muted);
  line-height: 1.7;
}
@media (max-width: 520px) {
  .facts div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}
@media (min-width: 700px) {
  .wissen__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .wissen__top {
    grid-template-columns: 5fr 7fr;
    gap: clamp(3rem, 7vw, 7rem);
  }
  .wissen__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Siebträger-Guide: Zeitlupe und Richtwerte ---------- */

.brew__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 3.5rem);
}
.brew__head {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}
.brew__media {
  position: relative;
  isolation: isolate;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-shell);
  background: #060505;
  box-shadow: 0 40px 90px -45px rgba(0, 0, 0, 0.7);
}
.brew__media picture,
.brew__poster,
.brew__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brew__video {
  opacity: 0;
  transition: opacity 1.2s var(--ease-soft);
}
.brew__media.is-playing .brew__video {
  opacity: 1;
}
.brew__toggle {
  right: 1rem;
  bottom: 1rem;
}
.brew__body {
  display: grid;
  gap: 1.75rem;
  justify-items: start;
}
.brew__values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.brew__values div {
  display: grid;
  gap: 0.4rem;
  padding: 1.1rem 1rem 1.2rem 0;
  border-top: 1px solid var(--line);
}
.brew__values dt {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.brew__values dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.brew__tip {
  max-width: 34rem;
  color: var(--fg-muted);
  line-height: 1.7;
}
/* Computer: Text links, das Video als hohes Bild rechts daneben */
@media (min-width: 900px) {
  .brew__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
    grid-template-areas:
      "head media"
      "body media";
    column-gap: clamp(3rem, 7vw, 7.5rem);
    row-gap: 2.5rem;
  }
  .brew__head {
    grid-area: head;
    align-self: end;
  }
  .brew__media {
    grid-area: media;
    align-self: center;
  }
  .brew__body {
    grid-area: body;
    align-self: start;
  }
}

/* ---------- Produktseiten (/espresso, /cafe-creme) ---------- */

/* Erster Abschnitt unter der schwebenden Kopfzeile */
.feature.product {
  padding-top: calc(var(--island-top) + var(--island-h) + clamp(1.5rem, 4vw, 3rem));
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  margin: 0 0 clamp(1rem, 3vw, 2rem);
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.crumbs li + li::before {
  content: "/";
  margin-right: 0.6rem;
  opacity: 0.6;
}
.crumbs a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.2em;
}
.crumbs [aria-current] {
  color: var(--fg);
}
.product-about__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.product-about__text {
  display: grid;
  gap: 1.5rem;
  align-content: start;
  justify-items: start;
}
.product-about__text .lede {
  max-width: 38rem;
}
.product-pairing .section-title {
  margin-top: 1.25rem;
}
@media (min-width: 900px) {
  .product-about__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
/* „Auch probieren“: die andere Sorte als große Karte */
.more-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.5rem);
  border-radius: var(--r-shell);
  background: var(--shell);
  box-shadow: inset 0 0 0 1px var(--shell-ring);
  color: inherit;
  text-decoration: none;
  transition: background-color 400ms var(--ease-soft);
}
@media (hover: hover) {
  .more-card:hover {
    background: var(--line);
  }
}
.more-card:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
}
.more-card__img {
  width: clamp(64px, 12vw, 120px);
  height: auto;
}
.more-card__text {
  display: grid;
  gap: 0.4rem;
}
.more-card__name {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.more-card__desc {
  color: var(--fg-muted);
  line-height: 1.5;
}
.more-card__price {
  font-weight: 500;
}
.product-more__back {
  margin-top: 1.5rem;
  color: var(--fg-muted);
}
.product-more__back a {
  color: inherit;
}
@media (max-width: 560px) {
  .more-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .more-card__icon {
    display: none;
  }
}

/* ---------- Fragen ---------- */

.faq__grid {
  display: grid;
  gap: 3rem;
}
.faq__intro {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}
.faq__list details {
  border-top: 1px solid var(--line);
}
.faq__list details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  cursor: pointer;
  list-style: none;
}
.faq__list summary::-webkit-details-marker {
  display: none;
}
.faq__toggle {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: transform 600ms var(--ease-soft), background-color 400ms var(--ease);
}
@media (hover: hover) {
  .faq__list summary:hover .faq__toggle {
    background: var(--shell);
  }
}
.faq__list summary:active .faq__toggle {
  background: var(--shell);
}
.faq__list details[open] .faq__toggle {
  transform: rotate(45deg);
}
.faq__list details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 600ms var(--ease-soft), content-visibility 600ms allow-discrete;
}
.faq__list details[open]::details-content {
  block-size: auto;
}
.faq__answer {
  padding-bottom: 1.6rem;
  max-width: 40rem;
  color: var(--fg-muted);
}
@media (min-width: 900px) {
  .faq__grid {
    grid-template-columns: 5fr 7fr;
    gap: clamp(3rem, 7vw, 7rem);
  }
  .faq__intro {
    position: sticky;
    top: calc(var(--island-top) + var(--island-h) + 3rem);
    align-self: start;
  }
}

/* ---------- Handy und Tablet: kleine Etiketten in Großbuchstaben mindestens 12 px ---------- */

@media (max-width: 1024px) {
  .profile dt,
  .buy__label,
  .seg legend,
  .facts dt,
  .brew__values dt,
  .food summary,
  .hero__eyebrow,
  .card__num {
    font-size: 0.75rem;
  }
  .card__foot,
  .card__top {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
  }
}

/* ---------- Animations-Startzustände (nur mit aktiver Bewegung) ---------- */

.motion .hero__media,
.motion .hero__eyebrow,
.motion .hero__in,
.motion .hero__sub,
.motion .hero__ctas {
  opacity: 0;
}

/* Insel blendet sich beim Herunterscrollen aus und beim Hochscrollen ein. */
.island {
  transition: transform 700ms var(--ease-soft);
}
.island.is-hidden {
  transform: translate(-50%, calc(-100% - var(--island-top) - 10px));
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }
}
