/* ═══════════════════════════════════════════════════════════════════
   HENK.DOES.THINGS — Landing (Replika-Basis: bttrprojects.com Hero)
   Hintergrund: eigener Nachbau nach vermessenen Farbwerten des
   Originals (Grain-Gradient), kein fremdes Asset.
   Font: Figtree (OFL), self-hosted — nächste freie Entsprechung
   zu Articulat CF.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Font ─────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-ext.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Press Start 2P";
  src: url("fonts/pressstart2p-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ───────────────────────────────────────────────────────── */
:root {
  /* Typografie */
  --font-main: "Figtree", sans-serif;
  --font-pixel: "Press Start 2P", monospace;
  --fw-medium: 500;   /* Navigation */
  --fw-demi: 600;     /* Kicker (HENK’s THINGS) */
  --fw-black: 800;    /* Hero-Ticker, Logo */

  --fs-nav: 16px;
  --fs-kicker: 18px;
  --fs-hero: 3.5em;   /* 56px */
  --lh-ticker: 70px;  /* Fensterhöhe + Zeilenhöhe des Tickers */
  --drum-r: 85px; /* Walzenradius — bewusst enger als das geometrische
                     Apothem (130.6px bei 12 Flächen): Wörter liegen
                     dichter, die Rundung wirkt kompakter */

  /* Farben — vermessen am Original-Hintergrund */
  --c-white: #ffffff;
  --c-ink: #000000;          /* Tiefschwarz — gilt für alle schwarzen Elemente */
  --c-navy-deep: #051c33;    /* linkes Band, Start */
  --c-navy: #06305b;         /* linkes Band, Verlauf */
  --c-navy-soft: #073b6a;    /* linkes Band, Auslauf */
  --c-navy-abyss: #041526;   /* Ecke unten links */
  --c-navy-tr: #063a66;      /* Ecke oben rechts */
  --c-royal: #084c97;        /* Grundfläche */
  --c-azure: #0c81c4;        /* Azur-Fläche */
  --c-azure-hot: #0d9ade;    /* helles Azur */
  --c-azure-core: #2fa3e2;   /* hellster Kern rechts der Mitte */
  --c-teal: #3fa9c9;         /* Teal-Zone oben links der Mitte */
  --c-teal-soft: #1e9acb;    /* zweite Teal-Zone */
  --c-rust-core: #7a2010;    /* Blob oben Mitte, Kern */
  --c-rust: #9b4829;         /* Blob oben Mitte, Saum */
  --c-ember: #90280e;        /* Ecke unten rechts */
  --c-sky: #63c1ee;          /* Verlauf Sektion 2, hell */
  --c-sky-bright: #9fe0ff;   /* Verlauf Sektion 2, hellster Punkt */
  --c-arrow: #6bf673;        /* Neon-Grün der Scribble-Pfeile */
  --heart-pink: #f478d2;     /* Pixel-Herz Füllung */
  --heart-deep: #ea3aa6;     /* Pixel-Herz Rand */
}

/* ── Basis ────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

/* Das hidden-Attribut muss jede display-Regel schlagen — ohne !important
   gewinnt jede Klasse mit display (z. B. .cart-count) gegen den
   Browser-Default und versteckte Elemente wären trotzdem sichtbar. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--c-ink);
  overflow-x: clip; /* clip statt hidden: hidden würde position:sticky brechen */
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--c-white);
  outline-offset: 4px;
}

/* In den weißen Pixel-Fenstern wäre ein weißer Rahmen unsichtbar */
.shop-window a:focus-visible,
.shop-window button:focus-visible,
.cart-window a:focus-visible,
.cart-window button:focus-visible {
  outline: 3px solid var(--c-ink);
  outline-offset: 3px;
}

/* ── Header ───────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  z-index: 202;
  width: 100vw;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  padding-left: 5vw;
  font-family: var(--font-main);
  font-weight: var(--fw-black);
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--c-white);
  text-decoration: none;
}

.menu {
  padding-right: 5vw;
}

.menu a {
  font-family: var(--font-main);
  font-weight: var(--fw-medium);
  font-size: var(--fs-nav);
  color: var(--c-white);
  text-decoration: none;
  padding-left: 33px;
  transition: opacity 0.2s;
}

.menu a:hover {
  opacity: 0.65;
}

.burger {
  display: none;
  margin-right: 5vw;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-white);
  cursor: pointer;
}

.burger svg {
  width: 30px;
  height: 30px;
}

/* ── Mobile-Menü (nur unter 768px gerendert) ─────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -110vw;
  height: 100svh;
  width: 100%;
  background-color: var(--c-ink);
  z-index: 203;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  transition: right 0.3s;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu a {
  font-family: var(--font-main);
  font-weight: var(--fw-medium);
  font-size: 18px;
  color: var(--c-white);
  text-decoration: none;
}

.mobile-close {
  position: absolute;
  top: 30px;
  right: 30px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-white);
  cursor: pointer;
}

.mobile-close svg {
  width: 30px;
  height: 30px;
}

/* ── Henk-Hintergrund: Nachbau des Original-Gradients (Messraster 7×7):
      Navy-Band links → Royal-Fläche → heißes Azur rechts der Mitte,
      Rost-Blob oben mittig-rechts, Glut-Ecke unten rechts.
      Geteilt von Hero (Landing) und Unterseiten (.page-canvas). ────── */
.henk-bg {
  background-color: var(--c-royal);
  background-image:
    /* linke dunkle Randzone */
    linear-gradient(90deg,
      var(--c-navy-deep) 0%,
      color-mix(in srgb, var(--c-navy) 94%, transparent) 12%,
      color-mix(in srgb, var(--c-navy-soft) 60%, transparent) 28%,
      transparent 46%),
    /* Rost-Blob oben, Mitte bis rechts der Mitte */
    radial-gradient(ellipse 30% 36% at 58% -8%,
      var(--c-rust-core) 0%,
      var(--c-rust) 40%,
      transparent 78%),
    /* Glut-Ecke unten rechts */
    radial-gradient(ellipse 34% 42% at 103% 102%,
      var(--c-ember) 0%,
      color-mix(in srgb, var(--c-ember) 90%, transparent) 44%,
      transparent 76%),
    /* großes helles Azur rechts der Mitte, leuchtender Kern */
    radial-gradient(ellipse 52% 58% at 70% 60%,
      var(--c-azure-core) 0%,
      var(--c-azure-hot) 28%,
      var(--c-azure) 52%,
      transparent 78%),
    /* helle Teal-Zone oben links der Mitte */
    radial-gradient(ellipse 26% 22% at 30% 8%,
      color-mix(in srgb, var(--c-teal) 95%, transparent) 0%,
      transparent 70%),
    radial-gradient(ellipse 32% 26% at 36% 28%,
      color-mix(in srgb, var(--c-teal-soft) 85%, transparent) 0%,
      transparent 70%),
    /* Ecke unten links tief abdunkeln */
    radial-gradient(ellipse 34% 40% at -2% 104%,
      color-mix(in srgb, var(--c-navy-abyss) 95%, transparent) 0%,
      transparent 68%),
    /* Ecke oben rechts leicht abdunkeln */
    radial-gradient(ellipse 22% 24% at 102% -2%,
      color-mix(in srgb, var(--c-navy-tr) 80%, transparent) 0%,
      transparent 65%);
}

/* ── Hero (Landing): scrollt normal, gepinnt ist nichts ───────────── */
#hero {
  position: relative;
  height: 100vh;   /* Fallback */
  height: 100svh;  /* Mobile: sichtbarer Viewport, Ticker bleibt optisch mittig */
  z-index: 99;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
}

/* ── Blanko-Unterseite (z.B. MY SHIRTS): gleicher Hintergrund,
      wächst mit Inhalt, keine Striche ──────────────────────────────── */
.page-canvas {
  position: relative;
  min-height: 300vh;
  min-height: 300svh; /* drei Screens Platz — Verlauf skaliert proportional mit */
  overflow: hidden;
}

/* ── Freie Wörter (MY SHIRTS): einzeln schieb-, dreh- und skalierbar ─ */
.free-word {
  position: absolute;
  z-index: 2;
  margin: 0;
  font-family: var(--font-main);
  font-weight: var(--fw-black);
  font-size: 56px; /* Startgröße — per Eckgriff änderbar */
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--c-white);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transform-origin: center center;
}

.free-word:active {
  cursor: grabbing;
}

/* Markiert (Klick/Tab): Pfeiltasten bewegen 1px, mit Shift 10px */
.free-word:focus,
.pen-shot:focus,
.free-arrow:focus,
.free-tee:focus,
.free-text:focus {
  outline: 2px dashed rgba(255, 255, 255, 0.75);
  outline-offset: 8px;
}

/* Startpositionen (per Drag frei verschiebbar) */
#w-your     { left: 14vw; top: 24vh; }
#w-favorite { left: 30vw; top: 40vh; }
#w-new      { left: 22vw; top: 57vh; }
#w-shirt    { left: 48vw; top: 70vh; }

/* Walzen-Drehung wie auf der Landing: Kippen um die horizontale Achse
   mit Perspektive. FAVORITE rollt vorwärts, NEW + SHIRT rückwärts.
   Zwei Flächen (vorn/hinten) → nach jeder halben Drehung wieder lesbar.
   Läuft auf einem inneren Layer — Griffe/Grundwinkel bleiben unabhängig. */
.free-word {
  perspective: 600px;
}

.fw-spin {
  display: inline-block; /* Pflicht: auf inline wirken Transforms nicht */
  position: relative;
  transform-style: preserve-3d;
  transform-origin: center center;
}

.fw-face {
  display: inline-block;
  backface-visibility: hidden;
}

.fw-face--back {
  position: absolute;
  inset: 0;
  transform: rotateX(180deg);
}

/* Nur FAVORITE rollt (Walzen-Kippen wie auf der Landing),
   YOUR, NEW und SHIRT stehen starr */
#w-favorite .fw-spin {
  animation: word-roll-fwd 6s infinite;
}

/* Halbe Drehung alle 3s, mit Ruhephasen — Kadenz wie die Hero-Walze */
@keyframes word-roll-fwd {
  0%, 35%  { transform: rotateX(0deg); }
  50%, 85% { transform: rotateX(180deg); }
  100%     { transform: rotateX(360deg); }
}

/* ── Scribble-Pfeile (frei platzierbar, dreh- und skalierbar) ─────── */
.free-arrow {
  position: absolute;
  z-index: 2;
  color: var(--c-arrow);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transform-origin: center center;
}

.free-arrow:active {
  cursor: grabbing;
}

.free-arrow svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Startpositionen und -größen (per Griffe frei änderbar) */
#arrow-1 { left: 32vw; top: 18vh; width: 90px; }
#arrow-2 { left: 44vw; top: 26vh; width: 150px; }
#arrow-3 { left: 52vw; top: 44vh; width: 170px; }

/* ── Kreis mit umlaufender Schrift (frei platzierbar) ─────────────── */
.free-ring {
  position: absolute;
  z-index: 2;
  left: 55vw;
  top: 30vh;
  width: clamp(260px, 34vw, 480px);
  color: var(--c-ink);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.free-ring:active {
  cursor: grabbing;
}

.free-ring:focus {
  outline: 2px dashed rgba(255, 255, 255, 0.75);
  outline-offset: 8px;
}

.free-ring svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.ring-text {
  font-family: var(--font-main);
  font-weight: var(--fw-demi);
  font-size: 19px;
  letter-spacing: 2px;
  text-transform: uppercase;
  fill: currentColor;
}

.ring-spin {
  transform-origin: 200px 200px;
  animation: ring-rotate 30s linear infinite;
}

/* ── Shirt-Skizzen: frei platzierbar wie die Pfeile ───────────────── */
.free-tee {
  position: absolute;
  z-index: 2;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transform-origin: center center;
}

.free-tee:active {
  cursor: grabbing;
}

.free-tee img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

#tee-front-1 { left: 12vw; top: 22vh; width: 260px; }
#tee-front-2 { left: 30vw; top: 48vh; width: 260px; }
#tee-front-3 { left: 60vw; top: 60vh; width: 260px; }
#smiley-el   { left: 74vw; top: 16vh; width: 140px; }
#story-el    { left: 16vw; top: 68vh; width: 440px; }

/* ── Brand-Story-Textblock (frei platzierbar) ─────────────────────── */
.free-text {
  position: absolute;
  z-index: 2;
  width: min(620px, 80vw);
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-ink); /* Tiefschwarz */
  cursor: grab;
  touch-action: none;
  user-select: none;
  transform-origin: center center;
}

.free-text:active {
  cursor: grabbing;
}

.free-text p {
  margin: 0 0 1.2em;
}

.free-text .lead {
  font-size: 20px;
  font-weight: var(--fw-demi);
  line-height: 1.5;
}

.free-text .caption {
  font-size: 13px;
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

.free-text .signoff {
  font-weight: var(--fw-demi);
}

#story-text { left: 10vw; top: 108vh; }

/* ── Pixel-Herzen: fliegen von unten nach oben durch die Seite ────── */
.hearts-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1; /* über dem Verlauf, unter den platzierbaren Elementen */
}

.heart {
  position: absolute;
  top: 100%;
  will-change: transform;
  animation: heart-fly linear infinite;
}

.heart img {
  display: block;
  width: 100%;
  height: auto;
}

.heart-spin {
  animation: heart-turn linear infinite; /* dreht flach um die eigene Achse */
}

.heart-flip {
  animation: heart-coin linear infinite; /* 3D-Münzdreher */
}

@keyframes heart-fly {
  to { transform: translateY(calc(-300svh - 140px)); }
}

@keyframes heart-turn {
  to { transform: rotate(360deg); }
}

@keyframes heart-coin {
  to { transform: rotateY(360deg); }
}

@keyframes ring-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.fw-chip {
  position: absolute;
  left: 50%;
  bottom: -30px;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--c-white);
  font-size: 11px;
  font-weight: var(--fw-medium);
  text-transform: none;
  white-space: nowrap;
  pointer-events: none;
}

/* Korn-Textur über dem Gradient (Hero + Folgesektionen) */
.grainy::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.55;
}

/* ── Sektion 2: Verlauf ins hellste Blau, gleiche Körnung ────────── */
#things {
  position: relative;
  z-index: 100; /* über #hero (99), damit der Strich die Naht überdeckt */
  height: 100svh;

  /* Naht oben nimmt die Hero-Unterkante auf (Navy links, Glut rechts)
     und läuft nach unten ins hellste Blau aus */
  background-color: var(--c-azure);
  background-image:
    /* Ecke oben links: dunkles Navy aus dem Hero weiterführen */
    radial-gradient(ellipse 34% 30% at -2% -4%,
      color-mix(in srgb, var(--c-navy-abyss) 95%, transparent) 0%,
      transparent 68%),
    /* Ecke oben rechts: Glut aus dem Hero weiterführen */
    radial-gradient(ellipse 30% 26% at 102% -2%,
      var(--c-ember) 0%,
      color-mix(in srgb, var(--c-ember) 85%, transparent) 40%,
      transparent 72%),
    /* heller Kern unten Mitte */
    radial-gradient(ellipse 60% 45% at 50% 96%,
      color-mix(in srgb, var(--c-sky-bright) 90%, transparent) 0%,
      transparent 75%),
    /* Grundverlauf: Royal → Azur → helles Azur → Sky */
    linear-gradient(180deg,
      var(--c-royal) 0%,
      var(--c-azure) 24%,
      var(--c-azure-hot) 48%,
      var(--c-azure-core) 68%,
      var(--c-sky) 84%,
      var(--c-sky-bright) 100%);
}

/* ── Foto im Stiftrahmen: frei verschiebbar (Drag) ────────────────── */
.pen-shot {
  position: absolute;
  z-index: 3;               /* über dem Marker-Strich */
  left: 10vw;               /* Startposition — per Drag frei verschiebbar */
  top: 90px;
  width: clamp(220px, 24vw, 340px);
  margin: 0;
  cursor: grab;
  touch-action: none;       /* Drag auch auf Touch */
  user-select: none;
  transform-origin: center center; /* Drehung um die Bildmitte */
}

/* Griffe: Drehen (oben) + Größe (Ecke) — sichtbar bei Hover/Interaktion */
.handle {
  position: absolute;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: var(--c-white);
  font-size: 15px;
  line-height: 28px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.15s;
  touch-action: none;
}

.pen-shot:hover .handle,
.free-word:hover .handle,
.free-arrow:hover .handle,
.free-tee:hover .handle,
.free-text:hover .handle,
.handle:focus-visible {
  opacity: 1;
}

@media (hover: none) {
  .handle { opacity: 0.85; } /* Touch: Griffe immer sichtbar */
}

.handle-rotate {
  top: -48px;
  left: 50%;
  transform: translateX(-50%);
  cursor: grab;
}

.handle-resize {
  right: -16px;
  bottom: -16px;
  cursor: nwse-resize;
}

.pen-shot:active {
  cursor: grabbing;
}

.pen-shot img {
  display: block;
  width: 100%;
  pointer-events: none;
}

.pen-frame {
  position: absolute;
  inset: -3%;
  width: 106%;
  height: 106%;
  overflow: visible;        /* Überstände der Ecken sichtbar lassen */
  color: var(--c-ink);
  pointer-events: none;
}

.pen-shot-pos {
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%);
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--c-white);
  font-size: 12px;
  white-space: nowrap;
}

/* Marker-Strich auf der Naht */
.scribble {
  position: absolute;
  z-index: 2; /* über der Körnung — gleiches Tiefschwarz wie der Fotorahmen */
  top: -48px;
  left: 0;
  width: 100%;
  height: 96px;
  display: block;
  color: var(--c-ink);
  pointer-events: none;
}

.kicker {
  position: relative;
  top: -35px;  /* kompakt über der Walze, ohne dass Wörter hineinragen */
  z-index: 2;  /* über den (ausgeblendeten) Walzen-Wörtern */
  margin: 0;
  font-family: var(--font-main);
  font-weight: var(--fw-demi);
  font-size: var(--fs-kicker);
  color: var(--c-white);
}

/* ── Hero-Ticker als 3D-Walze (Wörter rollen von unten herein) ───── */
.hero-ticker {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-40%, 30%);
  margin: 0;
  padding: 0 40px;
  height: var(--lh-ticker);
  font-family: var(--font-main);
  font-weight: var(--fw-black);
  font-size: var(--fs-hero);
  line-height: var(--lh-ticker);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--c-white);
  perspective: 600px; /* Tiefe der Walze */
}

.drum-line {
  display: block;
  transform-style: preserve-3d;
}

.drum-wrap {
  display: inline-block;
  vertical-align: top;
  height: var(--lh-ticker);
  transform: translateZ(calc(var(--drum-r) * -1)); /* Frontfläche auf Z=0 → keine Größenverzerrung */
  transform-style: preserve-3d;
}

/* Unsichtbarer Breitengeber: längstes Wort hält die Blockbreite,
   damit translate(-40%) wie im Original rechnet */
.drum-wrap::after {
  content: "coding stuff";
  visibility: hidden;
  display: inline-block;
  line-height: var(--lh-ticker);
}

.drum {
  display: block; /* Pflicht: auf inline-Spans wirken Transforms nicht */
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  animation: roll 24s infinite;
}

.face {
  position: absolute;
  top: 0;
  left: 0;
  line-height: var(--lh-ticker);
  backface-visibility: hidden;
  animation: face-fade 24s infinite;
}

/* 12 Flächen à 30° → echte Zylinderrundung. Die 3 Wörter liegen
   viermal auf dem Umfang → nahtloser 360°-Loop. Jede Fläche blendet
   winkelsynchron aus (face-fade), bevor sie den Kicker erreicht. */
.face:nth-child(1)  { transform: rotateX(0deg)    translateZ(var(--drum-r)); }
.face:nth-child(2)  { transform: rotateX(-30deg)  translateZ(var(--drum-r)); }
.face:nth-child(3)  { transform: rotateX(-60deg)  translateZ(var(--drum-r)); }
.face:nth-child(4)  { transform: rotateX(-90deg)  translateZ(var(--drum-r)); }
.face:nth-child(5)  { transform: rotateX(-120deg) translateZ(var(--drum-r)); }
.face:nth-child(6)  { transform: rotateX(-150deg) translateZ(var(--drum-r)); }
.face:nth-child(7)  { transform: rotateX(-180deg) translateZ(var(--drum-r)); }
.face:nth-child(8)  { transform: rotateX(-210deg) translateZ(var(--drum-r)); }
.face:nth-child(9)  { transform: rotateX(-240deg) translateZ(var(--drum-r)); }
.face:nth-child(10) { transform: rotateX(-270deg) translateZ(var(--drum-r)); }
.face:nth-child(11) { transform: rotateX(-300deg) translateZ(var(--drum-r)); }
.face:nth-child(12) { transform: rotateX(-330deg) translateZ(var(--drum-r)); }

/* Phasenversatz: Fläche n ist bei t = (n−1)·2s frontal */
.face:nth-child(1)  { animation-delay: -24s; }
.face:nth-child(2)  { animation-delay: -22s; }
.face:nth-child(3)  { animation-delay: -20s; }
.face:nth-child(4)  { animation-delay: -18s; }
.face:nth-child(5)  { animation-delay: -16s; }
.face:nth-child(6)  { animation-delay: -14s; }
.face:nth-child(7)  { animation-delay: -12s; }
.face:nth-child(8)  { animation-delay: -10s; }
.face:nth-child(9)  { animation-delay: -8s; }
.face:nth-child(10) { animation-delay: -6s; }
.face:nth-child(11) { animation-delay: -4s; }
.face:nth-child(12) { animation-delay: -2s; }

/* Walze: pro Schritt 30° nach oben, 24s / 12 Schritte = 2s pro Wort */
@keyframes roll {
  0%      { transform: rotateX(0deg); }
  8.33%   { transform: rotateX(30deg); }
  16.66%  { transform: rotateX(60deg); }
  25%     { transform: rotateX(90deg); }
  33.33%  { transform: rotateX(120deg); }
  41.66%  { transform: rotateX(150deg); }
  50%     { transform: rotateX(180deg); }
  58.33%  { transform: rotateX(210deg); }
  66.66%  { transform: rotateX(240deg); }
  75%     { transform: rotateX(270deg); }
  83.33%  { transform: rotateX(300deg); }
  91.66%  { transform: rotateX(330deg); }
  100%    { transform: rotateX(360deg); }
}

/* Ausblendkurve, synchron zu den Drehschritten:
   frontal voll, ±30° gedimmt, ab ±40° komplett weg
   (damit nichts in den Kicker hineinragt) */
@keyframes face-fade {
  0%      { opacity: 1; }
  8.33%   { opacity: 0.35; }
  11.1%   { opacity: 0; }
  88.9%   { opacity: 0; }
  91.66%  { opacity: 0.35; }
  100%    { opacity: 1; }
}

/* ── Retro-Verkaufsfenster (Pixel-Stil wie die Herzen) ────────────── */
.shop-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 16, 34, 0.72);
}

.shop-overlay.open {
  display: flex;
}

.shop-window {
  width: min(880px, 94vw);
  max-height: 90vh;
  overflow: auto;
  background: #ffffff;
  color: var(--c-ink);
  border: 4px solid var(--c-ink);
  box-shadow: 0 0 0 4px var(--heart-pink), 14px 14px 0 rgba(0, 0, 0, 0.55);
}

.shop-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--heart-pink);
  border-bottom: 4px solid var(--c-ink);
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.shop-close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 3px solid var(--c-ink);
  background: var(--heart-deep);
  color: #ffffff;
  font-family: var(--font-pixel);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}

.shop-close:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.shop-body {
  padding: 16px;
}

.shop-slider {
  position: relative;
  border: 3px solid var(--c-ink);
  background: #f4f2ec;
}

.shop-slider img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: contain;
  image-rendering: auto;
}

.shop-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  padding: 0;
  border: 3px solid var(--c-ink);
  background: #ffffff;
  font-family: var(--font-pixel);
  font-size: 12px;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
}

.shop-prev { left: 8px; }
.shop-next { right: 8px; }

.shop-nav:active {
  transform: translateY(-50%) translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
}

.shop-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.shop-dot {
  width: 10px;
  height: 10px;
  border: 2px solid var(--c-ink);
  background: #ffffff;
}

.shop-dot.active {
  background: var(--heart-deep);
}

.shop-toolrow {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.shop-upload {
  padding: 8px 10px;
  border: 3px solid var(--c-ink);
  background: #ffffff;
  font-family: var(--font-pixel);
  font-size: 8px;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
}

.shop-upload:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
}

.shop-name {
  margin-top: 16px;
  font-family: var(--font-pixel);
  font-size: 12px;
  line-height: 1.6;
}

.shop-sub {
  margin-top: 4px;
  font-family: var(--font-main);
  font-size: 15px;
  font-style: italic;
  opacity: 0.7;
}

.shop-specs {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.shop-spec {
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.4;
}

/* Stoffzeilen sitzen unter dem Kaufknopf */
.shop-specs--stoff {
  margin-top: 12px;
  gap: 4px;
}

/* Herstellerangabe (GPSR) unterm Foto */
.shop-maker {
  margin: 12px 0 0;
  font-family: var(--font-main);
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.55;
}

.shop-spec b {
  font-family: var(--font-pixel);
  font-weight: normal;
  font-size: 8px;
  letter-spacing: 0.05em;
  margin-right: 6px;
  color: var(--heart-deep);
}

.shop-price {
  margin-top: 8px;
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--heart-deep);
}

.shop-desc {
  margin: 12px 0 0;
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.55;
}

.shop-label {
  margin-top: 12px;
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.shop-sizes {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.size-chip {
  min-width: 44px;
  padding: 10px 12px;
  border: 3px solid var(--c-ink);
  background: #ffffff;
  font-family: var(--font-pixel);
  font-size: 10px;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
}

.size-chip.active {
  background: var(--c-ink);
  color: #ffffff;
}

.shop-qty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.qty-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 3px solid var(--c-ink);
  background: #ffffff;
  font-family: var(--font-pixel);
  font-size: 12px;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
}

.qty-btn:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
}

.qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

#qty-num {
  font-family: var(--font-pixel);
  font-size: 13px;
  min-width: 28px;
  text-align: center;
}

.shop-cart-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 16px;
  border: 4px solid var(--c-ink);
  background: var(--heart-deep);
  color: #ffffff;
  font-family: var(--font-pixel);
  font-size: 12px;
  cursor: pointer;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
}

.shop-cart-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.shop-note {
  margin-top: 10px;
  font-family: var(--font-main);
  font-size: 12px;
  opacity: 0.65;
}

/* Ab 760px: Fotos links, Kaufinfos rechts — alles ohne Scrollen sichtbar */
@media (min-width: 760px) {
  .shop-body {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 20px;
    padding: 20px;
  }

  .shop-slider img {
    height: 400px;
  }

  .shop-name {
    margin-top: 0;
  }
}

/* klickbare Tees */
.free-tee[data-product] {
  cursor: pointer;
}

/* Kauf-Fahne an den Produkt-Shirts: zeigt, dass die Skizze ein Produkt
   ist. Hängt im Element und wandert beim Verschieben/Drehen mit. */
.buy-flag {
  position: absolute;
  right: -16px;
  bottom: 6%;
  z-index: 2;
  padding: 8px 10px;
  border: 3px solid var(--c-ink);
  background: var(--heart-pink);
  color: var(--c-ink);
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
  transform: rotate(-4deg);
  transform-origin: 8% 90%;   /* unten links "angenagelt", das freie Ende wippt */
  animation: flag-wave 2.6s ease-in-out infinite alternate;
  cursor: pointer;
  touch-action: none;   /* Ziehen auf Touch nicht als Scrollen deuten */
}

/* leicht versetzte Takte, damit die drei nicht synchron wippen */
#tee-front-2 .buy-flag { animation-duration: 3.1s; animation-delay: -1.2s; }
#tee-front-3 .buy-flag { animation-duration: 2.3s; animation-delay: -0.7s; }

@keyframes flag-wave {
  from { transform: rotate(-7deg); }
  to   { transform: rotate(-1deg); }
}

.buy-flag:focus-visible {
  outline: 3px solid var(--c-white);
  outline-offset: 3px;
}

/* Wert-Chip der Fahne unterhalb ausrichten */
.buy-flag .fw-chip {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
}

.free-tee[data-product]:hover .buy-flag,
.free-tee[data-product]:focus .buy-flag {
  background: var(--heart-deep);
  color: var(--c-white);
}

/* Versandzeile unter dem Preis im Verkaufsfenster */
.shop-ship {
  margin: 6px 0 0;
  font-family: var(--font-main);
  font-size: 13px;
  opacity: 0.7;
}

/* Lager-Hinweise im Verkaufsfenster */
.size-chip:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.shop-stock {
  margin: 10px 0 0;
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 0.05em;
  color: var(--heart-deep);
}

/* Button-Rückmeldung nach dem Hinzufügen */
.shop-cart-btn.is-added {
  background: var(--c-arrow);
  color: var(--c-ink);
}

.shop-cart-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Warenkorb im Header ──────────────────────────────────────────── */
.cart-count {
  display: inline-block;
  min-width: 21px;
  margin-left: 7px;
  padding: 3px 4px 2px;
  border: 2px solid var(--c-ink);
  background: var(--heart-deep);
  color: var(--c-white);
  font-family: var(--font-pixel);
  font-size: 9px;
  line-height: 1;
  text-align: center;
  vertical-align: 2px;
}

/* ── Warenkorb-Seite (Pixel-Fenster über die ganze Seite) ─────────── */
.cart-page {
  position: relative;   /* sonst legt sich .grainy::after über den Inhalt */
  min-height: 100svh;
  padding: 118px 20px 70px;
}

.cart-window {
  width: min(940px, 100%);
  margin: 0 auto;
  background: var(--c-white);
  color: var(--c-ink);
  border: 4px solid var(--c-ink);
  box-shadow: 0 0 0 4px var(--heart-pink), 14px 14px 0 rgba(0, 0, 0, 0.55);
}

.cart-body {
  padding: 20px;
}

.cart-head {
  margin: 0 0 20px;
  font-family: var(--font-pixel);
  font-weight: normal;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-top: 3px solid var(--c-ink);
}

.cart-thumb {
  border: 3px solid var(--c-ink);
  background: #f4f2ec;
}

.cart-thumb img {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: contain;
}

.cart-item-name {
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1.7;
}

.cart-item-variant {
  margin-top: 7px;
  font-family: var(--font-main);
  font-size: 14px;
  opacity: 0.7;
}

.cart-item-price {
  margin-top: 7px;
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--heart-deep);
}

.cart-item-each {
  margin-left: 8px;
  font-family: var(--font-main);
  font-size: 13px;
  color: var(--c-ink);
  opacity: 0.55;
}

/* ✕ in der Titelleiste ist hier ein Link — gleiche Optik wie der Button */
a.shop-close {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.cart-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.cart-actions .shop-qty {
  margin-top: 0;
}

.cart-qty-num {
  min-width: 28px;
  font-family: var(--font-pixel);
  font-size: 13px;
  text-align: center;
}

.cart-remove {
  padding: 7px 9px;
  border: 3px solid var(--c-ink);
  background: var(--c-white);
  font-family: var(--font-pixel);
  font-size: 8px;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
}

.cart-remove:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
}

.cart-summary {
  margin-top: 4px;
  padding-top: 18px;
  border-top: 4px solid var(--c-ink);
}

.cart-sumrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 10px;
  font-family: var(--font-pixel);
  font-size: 10px;
}

.cart-sumrow--total {
  font-size: 14px;
}

.cart-sumrow--total span:last-child {
  color: var(--heart-deep);
}

.cart-sumrow--note {
  font-family: var(--font-main);
  font-size: 13px;
  opacity: 0.65;
}

.cart-empty {
  padding: 30px 0 20px;
  text-align: center;
  border-top: 3px solid var(--c-ink);
}

.cart-empty p {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 12px;
  line-height: 1.8;
}

.cart-empty-btn {
  display: inline-block;
  margin-top: 22px;
  padding: 15px 20px;
  border: 4px solid var(--c-ink);
  background: var(--heart-deep);
  color: var(--c-white);
  font-family: var(--font-pixel);
  font-size: 11px;
  text-decoration: none;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
}

.cart-empty-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

/* Nur für Screenreader: sichtbar für Vorleseprogramme, nicht am Schirm */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── Rechtsseiten: Impressum, Datenschutz, AGB, Versand, Widerruf ─── */
.doc-page {
  position: relative;   /* sonst legt sich .grainy::after über den Inhalt */
  min-height: 100svh;
  padding: 118px 20px 60px;
}

.doc-window {
  width: min(820px, 100%);
  margin: 0 auto;
  background: var(--c-white);
  color: var(--c-ink);
  border: 4px solid var(--c-ink);
  box-shadow: 0 0 0 4px var(--heart-pink), 14px 14px 0 rgba(0, 0, 0, 0.55);
}

.doc-body {
  padding: 26px 26px 34px;
}

.doc-body h1 {
  margin: 0 0 8px;
  font-family: var(--font-pixel);
  font-weight: normal;
  font-size: 16px;
  line-height: 1.5;
}

.doc-updated {
  margin: 0 0 26px;
  font-family: var(--font-pixel);
  font-size: 8px;
  line-height: 1.8;
  opacity: 0.6;
}

.doc-body h2 {
  margin: 30px 0 10px;
  font-family: var(--font-pixel);
  font-weight: normal;
  font-size: 11px;
  line-height: 1.6;
  color: var(--heart-deep);
}

.doc-body p,
.doc-body li {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.65;
}

.doc-body ul {
  padding-left: 22px;
}

.doc-body li {
  margin-bottom: 7px;
}

.doc-body a {
  color: var(--heart-deep);
}

/* Adressblock */
.doc-adr {
  margin: 12px 0;
  padding: 15px 17px;
  border: 3px solid var(--c-ink);
  background: color-mix(in srgb, var(--heart-pink) 14%, transparent);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
}

/* Muster-Widerrufsformular zum Abschreiben */
.doc-form {
  margin: 14px 0;
  padding: 18px;
  border: 3px dashed var(--c-ink);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 2;
}

.doc-note {
  margin-top: 28px;
  padding: 15px 17px;
  border-left: 6px solid var(--heart-deep);
  background: #f4f2ec;
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.6;
}

/* ── Bücher-Seite: Retro-Fenster mit Cover-Raster ─────────────────── */
.books-page {
  position: relative;   /* sonst legt sich .grainy::after über den Inhalt */
  min-height: 100svh;
  padding: 118px 20px 70px;
}

.book-window {
  width: min(1080px, 100%);
  margin: 0 auto 34px;
  background: var(--c-white);
  color: var(--c-ink);
  border: 4px solid var(--c-ink);
  box-shadow: 0 0 0 4px var(--heart-pink), 14px 14px 0 rgba(0, 0, 0, 0.55);
}

.books-body {
  padding: 22px;
}

.books-intro {
  margin: 0 0 20px;
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.75;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 26px 22px;
}

/* für Reihen mit wenigen, quadratischen Covern */
.book-grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.book-card {
  display: flex;
  flex-direction: column;
}

.book-cover {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--c-ink);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.45);
}

.book-card:hover .book-cover {
  box-shadow: 5px 5px 0 var(--heart-deep);
}

.book-title {
  margin: 14px 0 0;
  font-family: var(--font-pixel);
  font-weight: normal;
  font-size: 8px;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.book-sub {
  margin: 6px 0 0;
  font-family: var(--font-main);
  font-size: 13px;
  opacity: 0.7;
}

.book-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.lang-chip {
  padding: 7px 9px;
  border: 3px solid var(--c-ink);
  background: var(--c-white);
  color: var(--c-ink);
  font-family: var(--font-pixel);
  font-size: 8px;
  text-decoration: none;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
}

.lang-chip:hover {
  background: var(--heart-deep);
  color: var(--c-white);
}

.lang-chip:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
}

.lang-chip--soon {
  background: var(--heart-pink);
  cursor: default;
}

.lang-chip--soon:hover {
  background: var(--heart-pink);
  color: var(--c-ink);
}

/* Schreib-mir-Knopf auf der Kontaktseite.
   Selektor bewusst mit .doc-body, sonst gewinnt die allgemeine
   Link-Regel (.doc-body a) und die Schrift wäre pink auf pink. */
.doc-body a.contact-btn {
  display: inline-block;
  margin-top: 4px;
  padding: 15px 22px;
  border: 4px solid var(--c-ink);
  background: var(--heart-deep);
  color: var(--c-white);
  font-family: var(--font-pixel);
  font-size: 11px;
  text-decoration: none;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
}

.doc-body a.contact-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

/* Sprach-Schalter im Dashi-Fenster */
.dashi-switch {
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
}

/* Eingeklappt zeigt das Fenster nur Titel und Untertitel als Teaser,
   der Rest kommt erst nach dem Klick auf OPEN HERE */
.dashi-body.collapsed [data-dashi-lang] > :not(h1):not(.doc-updated) {
  display: none;
}

.dashi-body.collapsed .doc-updated {
  margin-bottom: 4px;
}

/* Projekt-Kicker auf der Coding-Seite */
.code-tag {
  margin: 0 0 12px;
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--heart-deep);
}

.books-note {
  margin: 24px 0 0;
  font-family: var(--font-main);
  font-size: 13px;
  opacity: 0.65;
}

@media (max-width: 620px) {
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 14px;
  }

  .book-grid--wide {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Footer mit den Rechtslinks, auf jeder Seite ───────────────────── */
.site-footer {
  position: relative;
  z-index: 210;
  padding: 22px 5vw 20px;
  background: var(--c-ink);
  color: var(--c-white);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--font-main);
  font-weight: var(--fw-black);
  font-size: 15px;
  letter-spacing: 0.01em;
}

.footer-brand span {
  display: block;
  margin-top: 5px;
  font-weight: var(--fw-medium);
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.6;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-legal a {
  font-family: var(--font-main);
  font-weight: var(--fw-medium);
  font-size: 14px;
  color: var(--c-white);
  text-decoration: none;
  opacity: 0.8;
}

.footer-legal a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ── LUCKY SHOT: Begrüßungsspiel auf der Startseite ───────────────── */
.lucky-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 16, 34, 0.82);
}

.lucky-window {
  width: min(520px, 94vw);
  background: var(--c-white);
  color: var(--c-ink);
  border: 4px solid var(--c-ink);
  box-shadow: 0 0 0 4px var(--heart-pink), 14px 14px 0 rgba(0, 0, 0, 0.55);
}

.lucky-body {
  padding: 18px;
}

.lucky-head {
  margin: 0 0 14px;
  font-family: var(--font-pixel);
  font-size: 11px;
  line-height: 1.7;
}

.lucky-field {
  position: relative;
  height: 300px;
  overflow: hidden;
  border: 3px solid var(--c-ink);
  background: radial-gradient(120% 90% at 50% 100%,
      var(--c-azure) 0%,
      var(--c-royal) 40%,
      var(--c-navy) 72%,
      var(--c-navy-deep) 100%);
  cursor: crosshair;
  touch-action: none;
}

/* Spielanleitung nur für Screenreader */
.lucky-a11y {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

.lucky-heart {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lucky-heart img {
  display: block;
  width: 100%;
  height: 100%;
}

.lucky-heart span {
  position: absolute;
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--c-white);
  text-shadow: 1px 1px 0 var(--c-ink), -1px -1px 0 var(--c-ink),
    1px -1px 0 var(--c-ink), -1px 1px 0 var(--c-ink);
  pointer-events: none;
}

.lucky-arrow {
  position: absolute;
  left: 0;
  top: 0;
  width: 9px;
  height: 24px;
}

.lucky-bow {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
}

.lucky-bow svg {
  width: 100%;
  height: 100%;
}

.lucky-aim {
  position: absolute;
  left: 0;
  top: 0;
  width: 88px;
  height: 3px;
  transform-origin: 0 50%;
  background: repeating-linear-gradient(to right,
      var(--c-arrow) 0 5px, transparent 5px 11px);
  pointer-events: none;
}

.lucky-burst {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--heart-pink);
  border: 2px solid var(--c-ink);
  animation: lucky-burst 0.55s linear forwards;
}

@keyframes lucky-burst {
  to {
    transform: translate(var(--bx), var(--by)) scale(0.2);
    opacity: 0;
  }
}

.lucky-hint {
  margin: 12px 0 0;
  font-family: var(--font-pixel);
  font-size: 8px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.lucky-win {
  padding: 8px 0 4px;
  text-align: center;
}

.lucky-win-big {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 26px;
  line-height: 1.3;
  color: var(--heart-deep);
}

.lucky-win-sub {
  margin: 14px 0 10px;
  font-family: var(--font-pixel);
  font-size: 8px;
  opacity: 0.7;
}

.lucky-code-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: stretch;
}

.lucky-code {
  padding: 13px 16px;
  border: 3px dashed var(--c-ink);
  background: color-mix(in srgb, var(--heart-pink) 22%, transparent);
  font-family: var(--font-pixel);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.lucky-copy {
  padding: 0 14px;
  border: 3px solid var(--c-ink);
  background: var(--c-white);
  font-family: var(--font-pixel);
  font-size: 9px;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
}

.lucky-copy:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
}

.lucky-shop {
  display: inline-block;
  margin-top: 18px;
  padding: 15px 22px;
  border: 4px solid var(--c-ink);
  background: var(--heart-deep);
  color: var(--c-white);
  font-family: var(--font-pixel);
  font-size: 11px;
  text-decoration: none;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
}

.lucky-shop:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.lucky-window a:focus-visible,
.lucky-window button:focus-visible {
  outline: 3px solid var(--c-ink);
  outline-offset: 3px;
}

/* Das Spielfeld ist dunkel, hier muss der Rahmen hell sein */
.lucky-field:focus-visible {
  outline: 3px solid var(--c-arrow);
  outline-offset: -3px;
}

@media (max-width: 620px) {
  .lucky-field {
    height: 240px;
  }

  .lucky-win-big {
    font-size: 20px;
  }

  .cart-item {
    grid-template-columns: 72px 1fr;
  }

  .cart-thumb img {
    height: 72px;
  }

  .cart-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .buy-flag {
    animation: none;
  }
  .drum {
    animation: none;
  }
  .fw-spin {
    animation: none;
  }
  .ring-spin {
    animation: none;
  }
  .hearts-layer {
    display: none; /* rein dekorativ */
  }
  .face {
    animation: none;
    opacity: 0; /* nur das erste Wort statisch zeigen */
  }
  .face:first-child {
    opacity: 1;
  }
  .mobile-menu {
    transition: none;
  }
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Auf dem Handy bleibt der Warenkorb sichtbar, der Rest wandert
     ins Burger-Menü. Ohne das gäbe es unterwegs keinen Zugang zum Korb. */
  .menu { display: flex; padding-right: 12px; }
  .menu a:not(.cart-link) { display: none; }
  .cart-link { padding-left: 0; }
  .burger { display: block; }
  .mobile-menu { display: flex; }

  .hero-ticker {
    font-size: 2em;
    padding: 0;
    left: 43%;
    width: 90%;
  }

  .kicker {
    margin-bottom: 25px;
  }

  .scribble {
    top: -32px;
    height: 64px;
  }
}

@media (max-width: 400px) {
  .hero-ticker {
    font-size: 1.8em;
    left: 45%;
  }
}
