/* ============================================================
   Kuriorama — Museal statt kindlich.
   Papier, Tusche, ein Grün nur für Zustand. EB Garamond trägt.
   ============================================================ */

@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/eb-garamond-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/eb-garamond-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/eb-garamond-400i.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #F2EEE3;
  --paper-card: #F7F4EC;
  --ink: #1A1714;
  --green: #1E4632;
  --seal: #182E21;
  --terra: #C2552F;
  --dim: #8B8171;
  --rule: #D9D2C2;
  --blind: #E6E0D2;

  --shadow-plate: 0 2px 3px rgba(14, 10, 6, .22), 0 10px 28px rgba(14, 10, 6, .10);
  --shadow-phone: 0 40px 90px rgba(26, 23, 20, .28), 0 6px 18px rgba(26, 23, 20, .18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Papierkorn — warm und sehr leise */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: .4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--green); color: var(--paper); }

img { display: block; max-width: 100%; }
a { color: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  z-index: 100;
}
.skip:focus { left: 12px; }

.inner { width: min(1140px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- Typografie ---------- */

h1, h2, h3 { font-weight: 400; line-height: 1.12; letter-spacing: -.01em; }

.label {
  font-size: 13px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--dim);
}
.label.ink { color: var(--ink); }
.label.paper { color: rgba(242, 238, 227, .72); }

.section { padding: 108px 0; }
.section.surface { background: var(--paper-card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(34px, 4vw, 52px); margin: 0 0 12px; }
.section-head p { color: var(--dim); font-size: 19px; }

/* Diamantlinie: die Trenner der App, als Element wiedergebaut */
.drule { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.drule::before, .drule::after { content: ''; height: 1px; flex: 1; background: currentColor; opacity: .8; }
.drule i {
  width: 9px; height: 9px;
  background: currentColor;
  transform: rotate(45deg);
  flex: none;
}
.drule.dim { color: var(--rule); }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--paper);
  font: inherit;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.button.ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.button.paper-btn {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.button:disabled, .button[aria-disabled='true'] { opacity: .55; cursor: default; }

/* Store-Zeilen: Textmarke + Glyph statt Bild-Badge */
.store-row { display: flex; gap: 14px; flex-wrap: wrap; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 11px 22px 11px 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  min-height: 56px;
}
.store[aria-disabled='true'] { opacity: .55; cursor: default; }
.store svg { width: 26px; height: 26px; flex: none; }
.store .t { display: flex; flex-direction: column; line-height: 1.25; }
.store .t small { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .72; }
.store .t b { font-weight: 600; font-size: 17px; letter-spacing: .02em; }
.store.paper-store { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* ---------- Kopfzeile ---------- */

.header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1140px, calc(100% - 32px));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px 12px 10px 20px;
  background: rgba(242, 238, 227, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--rule);
  transition: box-shadow .25s ease;
}
.header.scrolled { box-shadow: var(--shadow-plate); }

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  font-size: 17px;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand .d { width: 7px; height: 7px; background: var(--green); transform: rotate(45deg); align-self: center; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}

.header .button { min-height: 42px; padding: 9px 18px; font-size: 12.5px; }

@media (max-width: 860px) {
  .nav { display: none; }
  .brand span.ext { display: none; }
}

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

.hero { padding: 188px 0 96px; }
.hero .inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 72px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(44px, 5.4vw, 76px);
  letter-spacing: -.015em;
  margin: 22px 0 24px;
}
.hero h1 em { font-style: italic; color: var(--green); }
.hero .copy { font-size: 20px; color: var(--dim); max-width: 30em; margin-bottom: 34px; }
.hero .store-row { margin-bottom: 20px; }
.hero .hint { font-size: 15px; color: var(--dim); font-style: italic; }

.hero-phone { position: relative; justify-self: center; }
.hero-phone .phone { --pw: min(340px, 80vw); }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 88px;
  padding-top: 30px;
  border-top: 1px solid var(--rule);
}
.hero-facts b { display: block; margin-bottom: 6px; font-weight: 600; font-size: clamp(20px, 1.9vw, 25px); }
.hero-facts span { display: block; color: #5f574b; font-size: 16px; line-height: 1.45; }

/* Telefon-Rahmen: Proportionen eines iPhone 15 Pro, Maße relativ zur Breite */
.phone {
  --pw: min(320px, 78vw);
  width: var(--pw);
  padding: calc(var(--pw) * .028);
  border-radius: calc(var(--pw) * .155);
  background: #161412;
  box-shadow:
    inset 0 0 0 1.5px #57524c,
    inset 0 0 0 3px #0d0c0b,
    var(--shadow-phone);
  position: relative;
}
/* Dynamic Island */
.phone::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: calc(var(--pw) * .052);
  left: 50%;
  width: calc(var(--pw) * .3);
  height: calc(var(--pw) * .088);
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}
/* Seitentaste */
.phone::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 28%;
  width: 3px;
  height: 13%;
  border-radius: 0 2px 2px 0;
  background: #3a3632;
}
.phone > img {
  display: block;
  border-radius: calc(var(--pw) * .127);
  width: 100%;
  height: auto;
  aspect-ratio: 1320 / 2868;
  object-fit: cover;
  object-position: top;
  background: var(--paper-card);
}

/* ---------- Der Spielscreen (Hero spielbar, „So geht's" als Bilderfolge) ----------
   Maße in Punkt der App (440 pt Breite), umgerechnet über die Containerbreite. */

.screen {
  container-type: inline-size;
  aspect-ratio: 1320 / 2868;
  border-radius: calc(var(--pw) * .127);
  background: var(--paper);
  overflow: hidden;
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.screen > * { --u: calc(100cqw / 440); }
.screen img { -webkit-user-drag: none; }

.scr-status {
  height: calc(var(--u) * 58);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--u) * 6) calc(var(--u) * 40) 0 calc(var(--u) * 58);
  font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  font-size: calc(var(--u) * 17);
  letter-spacing: 0;
}
.scr-status b { font-weight: 600; }
.scr-sys { display: flex; align-items: flex-end; gap: calc(var(--u) * 2); }
.scr-sys i { width: calc(var(--u) * 3.5); background: var(--ink); border-radius: 1px; }
.scr-sys i:nth-child(1) { height: calc(var(--u) * 4); }
.scr-sys i:nth-child(2) { height: calc(var(--u) * 6.5); }
.scr-sys i:nth-child(3) { height: calc(var(--u) * 9); }
.scr-sys i:nth-child(4) { height: calc(var(--u) * 11.5); }
.scr-sys em {
  width: calc(var(--u) * 26); height: calc(var(--u) * 12.5);
  margin-left: calc(var(--u) * 8);
  border-radius: calc(var(--u) * 4);
  background: var(--ink);
  box-shadow: 0 0 0 calc(var(--u) * 1.2) var(--paper), 0 0 0 calc(var(--u) * 2.4) rgba(26, 23, 20, .4);
}

.scr-meta, .scr-top, .scr-queue, .scr-stage, .scr-hint, .scr-bins { margin-inline: calc(var(--u) * 20); }

.scr-meta {
  flex: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: calc(var(--u) * 40);
  margin-top: calc(var(--u) * 6);
}
.scr-title { font-size: calc(var(--u) * 13); letter-spacing: .3em; text-transform: uppercase; }
.scr-tipp {
  justify-self: end;
  display: flex; align-items: center; gap: calc(var(--u) * 6);
  height: calc(var(--u) * 40);
  padding: 0 calc(var(--u) * 12);
  border: 1px solid var(--ink);
  background: none;
  font: inherit;
  font-size: calc(var(--u) * 12);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}
.scr-tipp svg { width: calc(var(--u) * 15); height: calc(var(--u) * 15); }
.scr-tipp.spent { border-color: var(--rule); color: var(--dim); }
#how-screen .scr-tipp { cursor: default; }

.scr-top {
  flex: none;
  display: flex; align-items: center; justify-content: space-between;
  height: calc(var(--u) * 28);
  margin-top: calc(var(--u) * 12);
}
.scr-dots { display: flex; align-items: center; gap: calc(var(--u) * 6); }
.scr-dots i {
  width: calc(var(--u) * 9); height: calc(var(--u) * 9);
  border-radius: 50%;
  border: 1px solid var(--ink);
}
.scr-dots i.on { background: var(--ink); }
.scr-serie { margin-left: calc(var(--u) * 8); font-size: calc(var(--u) * 10.5); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.scr-crosses { display: flex; gap: calc(var(--u) * 4); color: var(--terra); }
.scr-crosses svg { width: calc(var(--u) * 16); height: calc(var(--u) * 16); }

.scr-queue {
  flex: none;
  display: flex; align-items: center; gap: calc(var(--u) * 12);
  margin-top: calc(var(--u) * 10);
  padding: calc(var(--u) * 8) 0;
  border-block: 1px solid var(--rule);
}
.scr-queue > span { width: calc(var(--u) * 52); font-size: calc(var(--u) * 8.5); line-height: 1.4; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.scr-slots { flex: 1; display: flex; justify-content: space-between; }
.scr-slots span {
  width: calc(var(--u) * 46); height: calc(var(--u) * 46);
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  background: var(--paper-card);
  opacity: .6;
}
.scr-slots span.next { border-color: var(--ink); background: var(--blind); opacity: 1; }
.scr-slots img { width: calc(var(--u) * 34); height: calc(var(--u) * 34); object-fit: contain; }

.scr-stage { flex: 1; position: relative; display: grid; place-items: center; min-height: 0; }
.scr-guide {
  position: absolute; bottom: 0; left: 50%;
  width: 0; height: calc(var(--u) * 54);
  border-left: calc(var(--u) * 1.5) dashed var(--dim);
  opacity: .8;
}
.scr-item {
  position: relative;
  z-index: 5;
  display: flex; flex-direction: column; align-items: center;
  touch-action: none;
  cursor: grab;
  transform-origin: 50% calc(var(--u) * 95);
  transition: transform .32s cubic-bezier(.3, 1.3, .5, 1);
}
.scr-item[hidden] { display: none; }
.scr-item img {
  width: calc(var(--u) * 190); height: calc(var(--u) * 190);
  object-fit: contain;
  filter: drop-shadow(0 calc(var(--u) * 2.5) calc(var(--u) * 2.5) rgba(14, 10, 6, .34));
  pointer-events: none;
}
.scr-name {
  margin-top: calc(var(--u) * 18);
  font-size: calc(var(--u) * 15);
  letter-spacing: .26em;
  text-transform: uppercase;
  transition: opacity .15s;
}
.scr-item.lifted { transition: none; cursor: grabbing; }
.scr-item.lifted.snap { transition: transform .22s cubic-bezier(.3, 1.2, .5, 1); }
.scr-item.lifted .scr-name, .scr-item.flying .scr-name, .scr-item.docked .scr-name { opacity: 0; }
.scr-item.flying { transition: transform .32s cubic-bezier(.4, 0, .6, 1); }
.scr-item.flying img, .scr-item.lifted.snap img { filter: drop-shadow(0 1px 1px rgba(14, 10, 6, .3)); }
.scr-item.enter { animation: enter .26s ease-out; }
@keyframes enter { from { opacity: 0; transform: scale(.92); } }

/* die Aufforderung: der Gegenstand deutet den Zug selbst an */
.scr-item.demo-ja { animation: demo-ja 2.6s cubic-bezier(.45, 0, .3, 1); }
.scr-item.demo-nein { animation: demo-nein 2.6s cubic-bezier(.45, 0, .3, 1); }
@keyframes demo-ja {
  0%, 12% { transform: none; }
  22% { transform: scale(1.06); }
  55%, 64% { transform: translate(-16cqw, 52cqw) scale(.62); }
  92%, 100% { transform: none; }
}
@keyframes demo-nein {
  0%, 12% { transform: none; }
  22% { transform: scale(1.06); }
  55%, 64% { transform: translate(16cqw, 52cqw) scale(.62); }
  92%, 100% { transform: none; }
}
.scr-item.demo-ja .scr-name, .scr-item.demo-nein .scr-name { animation: name-out 2.6s; }
@keyframes name-out { 0%, 15% { opacity: 1; } 25%, 80% { opacity: 0; } 100% { opacity: 1; } }

.scr-flash {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
  opacity: 0;
  z-index: 6;
}
.scr-flash svg { width: calc(var(--u) * 150); height: calc(var(--u) * 150); }
.scr-flash.right { color: var(--green); }
.scr-flash.wrong { color: var(--terra); }
.scr-flash.go { animation: flash .6s ease-out; }
@keyframes flash {
  0% { opacity: 0; transform: scale(.7); }
  25% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1); }
}
#how-screen .scr-flash.go { animation: flash-hold .7s ease-out forwards; }
@keyframes flash-hold {
  0% { opacity: 0; transform: scale(.7); }
  40% { opacity: 1; transform: scale(1.08); }
  100% { opacity: .9; transform: scale(1); }
}

.scr-hint {
  flex: none;
  min-height: calc(var(--u) * 40);
  margin-block: calc(var(--u) * 10);
  display: grid; place-items: center;
  font-size: calc(var(--u) * 16);
  line-height: 1.35;
  color: #4a4238;
  text-align: center;
}
.scr-hint.lamp {
  padding: calc(var(--u) * 6) calc(var(--u) * 12);
  border: 1px solid var(--ink);
  background: var(--blind);
  color: var(--ink);
}

.scr-bins {
  flex: none;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: calc(var(--u) * 12);
  margin-bottom: calc(var(--u) * 42);
}
.scr-bin { cursor: pointer; }
.scr-box {
  height: calc(var(--u) * 78);
  border: calc(var(--u) * 1.5) solid;
  border-bottom: 0;
  padding: calc(var(--u) * 6);
  display: flex; flex-wrap: wrap; align-content: center; justify-content: center;
  row-gap: calc(var(--u) * 2);
  position: relative;
}
.scr-box img {
  width: 25%; height: calc(var(--u) * 30);
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(14, 10, 6, .3));
}
.scr-box img[hidden] { display: none; }
.scr-cell { width: 25%; height: calc(var(--u) * 30); }
/* der gerade gelegte Gegenstand, in der Farbe des Urteils umrandet */
.scr-box img.landed { width: calc(var(--u) * 30); margin-inline: calc((25% - var(--u) * 30) / 2); border-radius: 50%; box-shadow: 0 0 0 calc(var(--u) * 2) var(--paper-card), 0 0 0 calc(var(--u) * 3.5) var(--green); background: var(--paper-card); }
.scr-box img.landed.wrong { box-shadow: 0 0 0 calc(var(--u) * 2) var(--paper-card), 0 0 0 calc(var(--u) * 3.5) var(--terra); }
.scr-more { position: absolute; right: calc(var(--u) * 5); top: calc(var(--u) * 3); font-weight: 400; font-size: calc(var(--u) * 9.5); }
.scr-bin.ja .scr-box { border-color: var(--green); background: rgba(30, 70, 50, .08); color: var(--green); }
.scr-bin.nein .scr-box { border-color: var(--terra); background: rgba(194, 85, 47, .08); color: var(--terra); }
.scr-bin.ja.hover .scr-box { background: rgba(30, 70, 50, .16); box-shadow: inset 0 0 0 calc(var(--u) * 1.5) var(--green); }
.scr-bin.nein.hover .scr-box { background: rgba(194, 85, 47, .16); box-shadow: inset 0 0 0 calc(var(--u) * 1.5) var(--terra); }
.scr-foot {
  height: calc(var(--u) * 58);
  display: grid; place-items: center;
  color: var(--paper);
  font-size: calc(var(--u) * 22);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.scr-bin.ja .scr-foot { background: var(--green); }
.scr-bin.nein .scr-foot { background: var(--terra); }

/* die Aufdeckkarte */
.scr-card {
  position: absolute;
  inset: auto calc(var(--u) * 20);
  top: 50%;
  translate: 0 -50%;
  z-index: 8;
  background: var(--paper-card);
  border: 1px solid var(--ink);
  box-shadow: 0 calc(var(--u) * 10) calc(var(--u) * 30) rgba(14, 10, 6, .28), var(--shadow-plate);
  padding: calc(var(--u) * 34) calc(var(--u) * 24) calc(var(--u) * 28);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  animation: card-in .45s cubic-bezier(.2, 1.2, .4, 1);
}
.scr-card[hidden] { display: none; }
@keyframes card-in { from { opacity: 0; transform: translateY(8%) scale(.96); } }
.scr-card-head { font-size: calc(var(--u) * 11); letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }
.scr-card-rule { width: 50%; height: 1px; background: var(--ink); margin: calc(var(--u) * 14) 0 calc(var(--u) * 16); position: relative; }
.scr-card-rule::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: calc(var(--u) * 7); height: calc(var(--u) * 7);
  background: var(--ink);
  transform: translate(-50%, -50%) rotate(45deg);
}
.scr-card strong { font-weight: 400; font-size: calc(var(--u) * 38); line-height: 1.1; color: var(--green); }
.scr-card.failed strong { color: var(--terra); }
.scr-card-stat { margin-top: calc(var(--u) * 10); font-size: calc(var(--u) * 11); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.scr-card-stat:empty, .scr-card-note:empty { display: none; }
.scr-card-note { margin-top: calc(var(--u) * 14); font-size: calc(var(--u) * 15); line-height: 1.45; color: #4a4238; }
.scr-card-btn {
  margin-top: calc(var(--u) * 22);
  padding: calc(var(--u) * 12) calc(var(--u) * 26);
  border: 0;
  background: var(--green);
  color: var(--paper);
  font: inherit;
  font-size: calc(var(--u) * 12);
  letter-spacing: .24em;
  text-transform: uppercase;
  cursor: pointer;
}
.scr-card-btn[hidden] { display: none; }

/* Hero: der Aufruf neben dem Handy, bis jemand anfasst */
.hero-cue {
  position: absolute;
  left: calc(100% + 18px);
  top: 36%;
  width: max-content;
  font-style: italic;
  font-size: 20px;
  color: var(--green);
  transition: opacity .4s;
}
.hero-cue::before {
  content: '';
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  width: 34px;
  border-top: 1.5px dashed var(--green);
}
.hero-phone.touched .hero-cue { opacity: 0; }
@media (max-width: 1240px) {
  .hero-cue { left: auto; right: 0; top: auto; bottom: calc(100% + 6px); }
  .hero-cue::before { display: none; }
}
@media (max-width: 980px) {
  .hero-cue { display: none; }
}

/* ---------- So geht's: Bilderfolge beim Scrollen ---------- */

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
}
.how-phone {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: calc(50vh - var(--ph) / 2 + 30px);
  align-self: start;
  justify-self: center;
  --ph: min(680px, calc(100vh - 140px));
}
.how-phone .phone { --pw: calc(var(--ph) / 2.12); }
.how-steps { grid-column: 1; grid-row: 1; list-style: none; padding: 10vh 0 20vh; }
.how-step { min-height: 72vh; display: flex; align-items: center; }
/* links eine Schiene mit den fünf Serienpunkten aus dem Spiel, ein Punkt je Bild */
.how-steps { position: relative; }
.how-steps::before { content: ''; position: absolute; left: 7px; top: 10vh; bottom: 20vh; border-left: 1px solid var(--rule); }
.how-step { position: relative; padding-left: 44px; }
.how-card { max-width: 30em; opacity: .28; transition: opacity .3s; }
.how-step.active .how-card { opacity: 1; }
.how-card h3 { position: relative; font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 12px; }
.how-card h3::before {
  content: '';
  position: absolute;
  left: -44px; top: .42em;
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--paper-card);
}
.how-step.active h3::before, .how-step.done h3::before { background: var(--ink); }
.how-card p { color: var(--dim); font-size: 19px; }

/* was gerade gemeint ist, bekommt einen feinen Rahmen */
#how-screen[data-focus] .scr-item img,
#how-screen .scr-dots, #how-screen .scr-crosses, #how-screen .scr-bins { transition: outline-color .3s; outline: 2px solid transparent; outline-offset: calc(100cqw / 440 * 6); }
#how-screen[data-focus='dots'] .scr-dots,
#how-screen[data-focus='crosses'] .scr-crosses,
#how-screen[data-focus='boxes'] .scr-bins { outline-color: rgba(30, 70, 50, .55); }
#how-screen .scr-item { transition: transform .5s cubic-bezier(.3, 1.1, .5, 1); cursor: default; }
.scr-item.still { transition: none; }
#how-screen .scr-item.docked { transform: translate(-23cqw, 58cqw) scale(.42); }
/* der Finger, der den Gegenstand hält */
#how-screen .scr-item.docked::after {
  content: '';
  position: absolute;
  left: 50%; top: 32%;
  width: 60cqw; height: 60cqw;
  translate: -50% -50%;
  border-radius: 50%;
  background: rgba(26, 23, 20, .14);
  box-shadow: 0 0 0 1.2cqw rgba(26, 23, 20, .1);
}
#how-screen .scr-bin { cursor: default; }

@media (max-width: 860px) {
  .how-grid { grid-template-columns: 1fr; gap: 0; }
  .how-phone {
    grid-column: 1;
    top: 84px;
    --ph: min(540px, calc(100svh - 360px));
    z-index: 1;
  }
  .how-steps { grid-column: 1; padding: 0; position: relative; z-index: 2; }
  .how-step { min-height: 100svh; align-items: flex-end; padding-bottom: 5svh; }
  .how-step:first-child { min-height: calc(100svh - 40px); }
  .how-card {
    opacity: 1;
    background: var(--paper);
    border: 1px solid var(--rule);
    padding: 18px 20px 20px;
    box-shadow: var(--shadow-plate);
  }
  .how-card { padding: 14px 18px 16px; }
  .how-steps::before { display: none; }
  .how-step { padding-left: 0; }
  .how-card h3::before { display: none; }
  .how-card h3 { font-size: 21px; margin-bottom: 4px; }
  .how-card p { font-size: 15.5px; line-height: 1.5; }
}

/* ---------- Tafel II: Die Regeln (Features) ---------- */

/* Exponate: jedes Merkmal zeigt ein Stück echtes Spiel, abwechselnd links und rechts */
.exhibits { display: grid; gap: 96px; }
.exhibit {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 22px;
  align-items: center;
}
.ex-text { grid-column: 1 / span 5; grid-row: 1; }
.ex-art { grid-column: 7 / span 6; grid-row: 1; justify-self: center; }
.exhibit:nth-child(even) .ex-text { grid-column: 8 / span 5; }
.exhibit:nth-child(even) .ex-art { grid-column: 1 / span 6; }
.ex-text h3 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 12px; }
.ex-text p { color: #5f574b; font-size: 18px; }

.ex-bins { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: min(100%, 420px); }
.ex-bins > div > div {
  height: 96px;
  display: flex; align-items: center; justify-content: space-evenly;
  border: 2px solid; border-bottom: 0;
  padding: 0 8px;
}
.ex-bins img { width: 30%; height: 54px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(14, 10, 6, .3)); }
.ex-bins span { display: grid; place-items: center; height: 46px; color: var(--paper); font-size: 19px; letter-spacing: .2em; text-transform: uppercase; }
.ex-bins .ja > div { border-color: var(--green); background: rgba(30, 70, 50, .08); }
.ex-bins .nein > div { border-color: var(--terra); background: rgba(194, 85, 47, .08); }
.ex-bins .ja span { background: var(--green); }
.ex-bins .nein span { background: var(--terra); }

.ex-test { display: flex; align-items: center; gap: 40px; }
.ex-guess { display: grid; gap: 10px; font-style: italic; font-size: 26px; }
.ex-guess s { color: var(--dim); text-decoration-color: var(--terra); text-decoration-thickness: 2px; }
.ex-test figure { position: relative; width: 150px; height: 150px; margin: 0; }
.ex-test img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(14, 10, 6, .3)); }
.ex-test svg { position: absolute; right: -22px; top: -14px; width: 64px; height: 64px; color: var(--terra); }

.ex-card {
  width: 260px;
  padding: 26px 22px 24px;
  background: var(--paper-card);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-plate);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  rotate: -2deg;
}
.ex-card img { width: 84px; height: 84px; object-fit: contain; margin-bottom: 12px; filter: drop-shadow(0 3px 2px rgba(14, 10, 6, .25)); }
.ex-card small { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.ex-card i { position: relative; width: 50%; height: 1px; margin: 12px 0 14px; background: var(--ink); }
.ex-card i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; background: var(--ink); transform: translate(-50%, -50%) rotate(45deg); }
.ex-card strong { font-weight: 400; font-size: 32px; line-height: 1.1; color: var(--green); margin-bottom: 8px; }

.ex-share { padding: 22px 26px; border-left: 3px solid var(--ink); background: var(--paper-card); }
.ex-share p { font-size: 18px; margin-bottom: 12px; }
.ex-share div { display: flex; gap: 6px; }
.ex-share b { width: 30px; height: 30px; background: var(--green); }
.ex-share b.x { background: var(--terra); }

@media (max-width: 860px) {
  .exhibits { gap: 64px; }
  .exhibit { grid-template-columns: 1fr; row-gap: 26px; }
  .exhibit .ex-text, .exhibit:nth-child(even) .ex-text { grid-column: 1; grid-row: 1; }
  .exhibit .ex-art, .exhibit:nth-child(even) .ex-art { grid-column: 1; grid-row: 2; }
  .ex-text p { font-size: 17px; }
  .ex-test { gap: 26px; }
  .ex-test figure { width: 110px; height: 110px; }
  .ex-share b { width: 26px; height: 26px; }
}

/* ---------- Tafel III: Einblicke ---------- */

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: start; }
.shots figure:nth-child(2) { margin-top: 40px; }
.shots figure:nth-child(4) { margin-top: 40px; }
.shots img {
  border-radius: 18px;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-plate);
  width: 100%;
  height: auto;
  aspect-ratio: 1320 / 2868;
  object-fit: cover;
  object-position: top;
  background: var(--paper-card);
}
.shots figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}
@media (max-width: 980px) {
  .shots { grid-template-columns: repeat(2, 1fr); }
  .shots figure:nth-child(n) { margin-top: 0; }
}

/* ---------- Tafel IV: Fragen ---------- */

.faq { max-width: 760px; margin-inline: auto; }
#fragen .section-head { text-align: center; margin-inline: auto; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 24px 4px;
  font-size: 22px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 28px;
  color: var(--dim);
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 4px 26px; color: var(--dim); max-width: 62em; }

/* ---------- Abschluss-CTA ---------- */

.cta-panel {
  background: var(--seal);
  color: var(--paper);
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}
.cta-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(52% 62% at 50% 8%, rgba(30, 70, 50, .55), transparent 70%);
}
.cta-panel .inner { position: relative; text-align: center; max-width: 720px; }
.cta-panel .drule { color: rgba(242, 238, 227, .5); max-width: 320px; margin: 0 auto 28px; }
.cta-panel h2 { font-size: clamp(34px, 4.4vw, 56px); margin-bottom: 18px; }
.cta-panel h2 em { font-style: italic; }
.cta-panel p { color: rgba(242, 238, 227, .75); font-size: 19px; margin-bottom: 38px; }
.cta-panel .store-row { justify-content: center; }

/* ---------- Fuß ---------- */

.footer { padding: 56px 0 64px; }
.footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  padding-top: 40px;
}
.footer .brand { font-size: 15px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer nav a {
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
}
.footer nav a:hover { color: var(--ink); }
.footer .fine { width: 100%; color: var(--dim); font-size: 14px; }

/* ---------- Rechtsseiten ---------- */

.legal-wrap { padding: 168px 0 96px; }
.legal-main { max-width: 780px; margin: 0 auto; }
.legal-main h1 { font-size: clamp(38px, 4.6vw, 56px); margin: 16px 0 8px; }
.legal-main .stand { color: var(--dim); font-size: 16px; font-style: italic; margin-bottom: 44px; }
.legal-section { margin-bottom: 34px; }
.legal-section h2 { font-size: 25px; margin-bottom: 10px; }
.legal-section p, .legal-section li { color: #4A443B; font-size: 17px; }
.legal-section ul { padding-left: 22px; margin-top: 8px; }
.legal-section li { margin-bottom: 6px; }
.legal-section a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-top { display: inline-block; margin-top: 26px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); text-decoration: none; }
.legal-top:hover { color: var(--ink); }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero { padding-top: 150px; }
  .hero .inner { grid-template-columns: 1fr; gap: 0; }
  /* Handy direkt unter die Überschrift, die Store-Knöpfe danach */
  .hero .inner:first-child > div:first-child { display: contents; }
  .hero h1 { order: 1; margin-top: 0; }
  .hero .copy { order: 2; }
  .hero-phone { order: 3; justify-self: center; margin: 20px 0 48px; }
  .hero .store-row { order: 4; }
  .hero .hint { order: 5; }
  .section { padding: 80px 0; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .hero { padding-top: 128px; }
  .hero-facts { grid-template-columns: 1fr; gap: 18px; }
  .store-row .store { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scr-item, .scr-card, .scr-flash { animation: none !important; }
  .button, .store { transition: none; }
}
