@font-face {
  font-family: "Bodoni Moda LApp";
  src: url("assets/fonts/bodoni-lapp.woff2") format("woff2");
  font-display: block;
}
@font-face {
  font-family: "Abril Fatface";
  src: url("assets/fonts/abril-fatface.woff2") format("woff2");
  font-display: block;
}

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0A0808;
}

.viewport {
  position: fixed;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.viewport.dragging { cursor: grabbing; }

/* Designfläche 1440 × 960, wird per JS auf das Fenster skaliert */
.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1440px;
  height: 960px;
  transform-origin: 0 0;
}

.layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.t-lapp {
  font-family: "Bodoni Moda LApp", serif;
  font-size: 250px;
  letter-spacing: -3px;
}
.t-vient {
  font-family: "Bodoni Moda LApp", serif;
  font-size: 78px;
}
.t-lapp-m {
  font-family: "Bodoni Moda LApp", serif;
  font-size: 98px;
  letter-spacing: -1.2px;
}
.t-vient-m {
  font-family: "Bodoni Moda LApp", serif;
  font-size: 40.18px;
}

/* Umschalten Desktop / Handy */
body[data-mode="desktop"] .mob { display: none; }
body[data-mode="mobile"] .desk { display: none; }

/* Karten */
.cards { position: absolute; inset: 0; z-index: 1; }
.layer.front { z-index: 2; }

.card {
  position: absolute;
  left: 0;                /* Position kommt per JS (transform) */
  top: 0;
  width: 539.74px;        /* 532 px Karte + Rand für den Außenring */
  height: 539.74px;
  transform-origin: 50% 50%;
  border-radius: 50%;
  will-change: transform, filter;
}
.card img.base,
.card svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.card .hit {             /* runde Klickfläche */
  position: absolute;
  inset: 3.87px;
  border-radius: 50%;
}
.card-name {
  font-family: "Abril Fatface", serif;
  fill: #1D1510;
  text-transform: uppercase;
}

/* Navigationshilfe */
.nav {
  position: absolute;
  z-index: 3;
  top: 918px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 14px;
  pointer-events: none;
}
.nav span {
  width: 9px;
  height: 9px;
  box-sizing: border-box;
  border: 1px solid #16130F;
}
body[data-mode="mobile"] .nav { top: 790.9px; gap: 13.4px; }
body[data-mode="mobile"] .nav span { width: 8.9px; height: 8.9px; border-width: 1.1px; }
.nav span.active {
  background: #A9686B;
  border-color: #A9686B;
}

/* Übergang Karte → Rezeptseite */
.expander {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  visibility: hidden;
  transform-origin: 50% 50%;
  z-index: 10;
}
.ex-gold, .ex-dark {
  position: absolute;
  inset: 1.2545%;          /* Rand im Kartenkasten (14 / 1116) */
  border-radius: 50%;
}
.ex-gold { background: linear-gradient(150deg, #E4C47C 0%, #CFA955 48%, #B38C40 100%); }
.ex-dark {
  background: radial-gradient(circle, #3A2E2E 0%, #1E1717 58%, #0A0908 100%);
  opacity: 0;
}
.ex-content { position: absolute; inset: 0; }
.ex-content img, .ex-content svg {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
/* ---------------- Rezeptseite ---------------- */
@font-face {
  font-family: "Roboto";
  src: url("assets/fonts/roboto-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("assets/fonts/roboto-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
.rp {
  position: fixed;
  inset: 0;
  z-index: 11;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  background: radial-gradient(ellipse 80% 90% at 50% 25%, #4C3D3D 0%, #1E1717 60%, #0A0908 100%);
  opacity: 0;
  transition: opacity .4s ease;
}
.rp.show { opacity: 1; }
.rp[hidden] { display: none; }
.rp-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1440px;
  height: 960px;
  transform-origin: 0 0;
}
.rp-circles { position: absolute; inset: 0; }
.rc {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 50% 50%;
  will-change: transform;
}
.rc::before {             /* Schatten: günstiger als ein Filter */
  content: "";
  position: absolute;
  inset: 1.2545%;
  border-radius: 50%;
  box-shadow: 0 -8px 26px rgba(0,0,0,.5);
}
.rc .disc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.rc-title {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.rc-title text {
  font-family: "Abril Fatface", serif;
  fill: #15120E;
  text-transform: uppercase;
}
.rc-body {
  position: absolute;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 34px);
}
.rc-scroll {
  padding-top: 44px;
  text-align: center;
  color: #15120E;
  font-family: "Roboto", sans-serif;
  will-change: transform;
}
.rc-scroll h3 {
  margin: 26px 0 8px;
  font-family: "Abril Fatface", serif;
  font-weight: 400;
  font-size: 30px;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.rc-scroll h3:first-child { margin-top: 0; }
.rc-ing p {
  margin: 0;
  font-size: 28px;
  line-height: 49px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.rc-steps p {
  margin: 0 0 22px;
  font-size: 26px;
  line-height: 1.55;
}
.rc-photo .photo {
  width: 600px;
  height: 600px;
  margin: 30px auto 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 3px #F4DCA0, 0 0 0 17px #2A1C13, 0 0 0 20px #4A3412;
}
.rc-photo .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.rp-bar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
#rp-title {
  font-family: "Abril Fatface", serif;
  font-size: 87.8px;
  letter-spacing: -1.05px;
  text-transform: uppercase;
  fill: #AB968F;
}
.rp-play {
  position: absolute;
  left: 640px;
  top: 760px;
  width: 160px;
  height: 110px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.rp-play svg { width: 100%; height: 100%; display: block; }
.rp-play .i-stop { display: none; }
.rp-play.playing .i-play { display: none; }
.rp-play.playing .i-stop { display: inline; }
.rp-play[hidden] { display: none; }
.rp-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  padding: 10px;
  border: 0;
  background: none;
  cursor: pointer;
  z-index: 5;
}
.rp-close svg { width: 100%; height: 100%; display: block; }
.rp-close path { stroke: #AB968F; stroke-width: 1.6; fill: none; stroke-linecap: round; }
.rp-close:hover path { stroke: #E4C47C; }
