/* ==========================================================================
   Digital Creations – Stylesheet
   Look: Street-Art-Wand, Poster mit dicker Kontur, Herz-Rot. Mit Augenzwinkern.
   ========================================================================== */

@font-face {
  font-family: "Alfa Slab One";
  src: url("../fonts/alfa-slab-one.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Permanent Marker";
  src: url("../fonts/permanent-marker.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #ece5cf;
  --paper-2: #e2dabd;
  --cream: #f8f3e2;
  --ink: #161311;
  --ink-soft: #3a342d;
  --brick: #c23b33;
  --brick-dark: #8e2a24;
  --mustard: #f2b84b;

  --display: "Alfa Slab One", "Rockwell Extra Bold", Georgia, "Times New Roman", serif;
  --marker: "Permanent Marker", "Segoe Print", "Comic Sans MS", cursive;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 8px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-lg: 9px 9px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper) url("../img/brick.webp") 0 0 / 240px 120px;
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(16px, 1.05vw, 17.5px);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
main { overflow-x: clip; } /* Klecks, Lauftext und Sticker ragen bewusst über den Rand, ohne seitliches Scrollen */

body::before { /* Vignette: Wand wird zu den Rändern leicht dunkler */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(60, 40, 20, .22));
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .06;
  mix-blend-mode: multiply;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--brick-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-thickness: 3px; }
::selection { background: var(--brick); color: var(--cream); }
:focus-visible { outline: 3px solid var(--brick-dark); outline-offset: 3px; border-radius: 6px; }
/* Auf dunklen Flächen heller Fokus (Kontrast ≥ 3:1) */
.contact :focus-visible, .footer :focus-visible, .stat :focus-visible { outline-color: var(--mustard); }
main:focus { outline: none; }

/* ---------- Barrierefreiheit ---------- */
.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 100;
  padding: .7em 1.1em;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--mustard);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

/* Pause-Knopf: hält alle Dauer-Animationen an (WCAG 2.2.2) */
.motion-off *, .motion-off *::before, .motion-off *::after { animation-play-state: paused !important; }
.motion-off .burst, .motion-off .spray-dot { display: none; }

/* ---------- Schwebende Navigation (nach oben / weiter) ---------- */
.float-nav {
  position: fixed;
  right: clamp(12px, 2.4vw, 28px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
}
.float-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .3s var(--pop), box-shadow .2s, opacity .3s, visibility .3s;
}
.float-btn img { width: 42px; height: auto; transition: transform .4s var(--pop); }
.float-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.float-btn:hover img { transform: rotate(-12deg) scale(1.1); }
.float-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.float-arrow {
  position: absolute;
  right: -7px; bottom: -6px;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--brick);
  color: var(--cream);
  font: 700 .95rem/1 var(--font);
}
#to-top .float-arrow { top: -6px; bottom: auto; }
.float-btn.is-off { opacity: 0; visibility: hidden; transform: scale(.6); pointer-events: none; }
.float-motion { width: 40px; height: 40px; box-shadow: 3px 3px 0 var(--ink); }
.motion-icon { width: 12px; height: 14px; border-inline: 4px solid var(--ink); }
.float-motion[aria-pressed="true"] { background: var(--mustard); }
.float-motion[aria-pressed="true"] .motion-icon { width: 0; height: 0; border-inline: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--ink); margin-left: 3px; }
body.menu-open .float-nav, body.modal-open .float-nav { visibility: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

h1, h2, h3 { margin: 0; line-height: 1.1; font-family: var(--display); font-weight: 400; letter-spacing: .005em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .8em 1.35em;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--brick);
  color: var(--cream);
  font: 700 1rem/1.1 var(--font);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .2s;
}
.btn:hover { color: var(--cream); background: var(--brick-dark); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-amazon { background: var(--mustard); color: var(--ink); }
.btn-amazon:hover { background: #ffc965; color: var(--ink); }
.btn-ghost { background: var(--cream); color: var(--ink); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: .55em 1em; font-size: .9rem; box-shadow: 3px 3px 0 var(--ink); }
.btn-block { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px var(--gutter);
  border-bottom: 3px solid transparent;
  transition: background .3s, padding .3s, border-color .3s;
}
.nav.is-scrolled { padding-top: 8px; padding-bottom: 8px; background: rgba(236, 229, 207, .94); border-bottom-color: var(--ink); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; }
.logo img { height: 42px; width: auto; }
.logo-text { font-family: var(--display); font-size: 1.1rem; white-space: nowrap; }
.logo-text span { color: var(--brick); }
.logo:hover { color: var(--ink); }

.menu { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.menu-head, .menu-foot { display: none; }
.menu > a:not(.btn) {
  position: relative;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.menu > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; bottom: -3px;
  height: 4px;
  border-radius: 2px;
  background: var(--brick);
  transform: scaleX(0) rotate(-1deg);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.menu > a:not(.btn):hover::after, .menu > a.is-current::after { transform: scaleX(1) rotate(-1deg); }

.burger {
  display: none;
  width: 46px; height: 46px;
  padding: 11px;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  position: relative;
  z-index: 60;
}
.burger span { display: block; height: 3px; margin: 4px 0; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  max-width: var(--max);
  margin: 0 auto;
  padding: 110px var(--gutter) 80px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin: 0 0 1.3rem;
  padding: .4em .9em;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  font: 700 .85rem/1.2 var(--font);
  box-shadow: 3px 3px 0 var(--ink);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brick); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(194, 59, 51, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(194, 59, 51, 0); } }

h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); line-height: 1.06; text-shadow: 3px 3px 0 rgba(248, 243, 226, .8); }
.heart-word {
  color: var(--brick);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--ink);
}
button.heart-word { display: inline; padding: 0; border: 0; background: none; font: inherit; line-height: inherit; letter-spacing: inherit; cursor: pointer; }
button.heart-word:hover, button.heart-word.is-beating { animation: heartbeat 1.1s ease-in-out; display: inline-block; }

/* Herz-Effekte: feste Ebene für Herz-Stöße, Graffiti-Herzen an der Wand, Sprüche */
.heart-layer { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; }
.wall-heart {
  position: absolute;
  z-index: 1;
  width: var(--w, 60px);
  height: auto;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  animation: wall-spray .45s ease-out both, wall-fade 4s ease-in 9s forwards;
}
.wall-heart path { fill: var(--brick); }
@keyframes wall-spray {
  from { opacity: 0; filter: blur(6px); transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(.4); }
  to { opacity: .9; filter: blur(0); transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1); }
}
@keyframes wall-fade { to { opacity: 0; } }
.wall-toast {
  position: fixed;
  left: 50%; bottom: 26px;
  z-index: 80;
  padding: .6em 1.1em;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--mustard);
  color: var(--ink);
  font: 1.15rem/1.2 var(--marker);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-50%, 140%) rotate(-2deg);
  transition: transform .4s var(--pop);
  pointer-events: none;
}
.wall-toast.is-on { transform: translate(-50%, 0) rotate(-2deg); }

.marker {
  font-family: var(--marker);
  background: linear-gradient(transparent 58%, var(--mustard) 58% 92%, transparent 92%);
  padding: 0 .12em;
  text-shadow: none;
}

.lead { margin: 1.4rem 0 0; max-width: 32em; color: var(--ink-soft); font-size: 1.12em; font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

.hero-art { position: relative; display: grid; place-items: center; min-height: 320px; }
.splat { position: absolute; left: -14%; top: -12%; width: 128%; height: 124%; fill: var(--brick); opacity: .92; transform: rotate(-6deg); }
/* backwards statt both: nach dem Einblenden darf der Hover-Effekt den Klecks wieder bewegen */
.js .hero-art.is-visible .splat { animation: splat .9s var(--pop) backwards; transition: transform .6s var(--pop); }
@keyframes splat { from { transform: rotate(-6deg) scale(.4); opacity: 0; } }
.js .hero-art.is-visible:hover .splat { animation: splat-wobble 2.6s ease-in-out infinite; }
@keyframes splat-wobble {
  0%, 100% { transform: rotate(-6deg) scale(1.02); }
  50% { transform: rotate(3deg) scale(1.12); }
}

.logo-btn {
  --tx: 0deg; --ty: 0deg; --sx: 0px; --sy: 16px;
  position: relative;
  z-index: 2;
  width: min(100%, 500px);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  perspective: 900px;
  -webkit-tap-highlight-color: transparent;
}
.logo-tilt {
  display: block;
  transform: rotateX(var(--ty)) rotateY(var(--tx));
  transition: transform .18s ease-out;
}
.logo-btn img {
  display: block;
  width: 100%;
  height: auto;
  /* Schatten wandert gegen die Neigung: wirkt, als hänge das Logo vor der Wand */
  filter: drop-shadow(var(--sx) var(--sy) 18px rgba(0, 0, 0, .38));
  transition: filter .18s ease-out;
}
.hero-art:hover .logo-btn img { animation: heartbeat 1.25s ease-in-out infinite; }
@keyframes heartbeat {
  0%, 40%, 100% { transform: scale(1); }
  12% { transform: scale(1.06); }
  24% { transform: scale(1.01); }
  32% { transform: scale(1.045); }
}
.logo-btn:active .logo-tilt { transform: rotateX(var(--ty)) rotateY(var(--tx)) scale(.95); }
.hero-art:hover .tape-badge { animation: wiggle .5s ease-in-out 2; }
@keyframes wiggle {
  0%, 100% { transform: rotate(5deg); }
  25% { transform: rotate(9deg) scale(1.05); }
  75% { transform: rotate(1deg) scale(1.05); }
}

/* Sprühnebel, der dem Mauszeiger folgt */
.spray-dot {
  position: absolute;
  z-index: 3;
  width: var(--d, 5px);
  height: var(--d, 5px);
  border-radius: 50%;
  background: var(--brick);
  pointer-events: none;
  animation: spray .9s ease-out forwards;
}
@keyframes spray {
  from { opacity: .85; transform: scale(.3); }
  60% { opacity: .7; }
  to { opacity: 0; transform: translateY(var(--drip, 10px)) scale(1); }
}

.burst {
  position: absolute;
  z-index: 3;
  color: var(--brick);
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
  font-size: var(--s, 2rem);
  line-height: 1;
  pointer-events: none;
  animation: rise 1.3s ease-out forwards;
}
@keyframes rise {
  from { transform: translate(0, 0) scale(.3) rotate(0); opacity: 1; }
  to { transform: translate(var(--dx), -150px) scale(1.1) rotate(var(--rot)); opacity: 0; }
}

.spray-note { position: relative; z-index: 2; margin: .6rem 0 0; font: 1.1rem/1.2 var(--marker); text-align: center; color: var(--ink); }
.tape-badge {
  position: absolute;
  z-index: 3;
  right: 0; bottom: 12%;
  max-width: 11em;
  padding: .45em .8em;
  border: 3px solid var(--ink);
  background: var(--mustard);
  font: .95rem/1.15 var(--marker);
  text-align: center;
  transform: rotate(5deg);
  box-shadow: 3px 3px 0 var(--ink);
}

.scroll-hint {
  position: absolute;
  left: 50%; bottom: 20px;
  width: 26px; height: 42px;
  margin-left: -13px;
  border: 3px solid var(--ink);
  border-radius: 14px;
}
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--brick); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Lauftext ---------- */
.marquee {
  overflow: hidden;
  width: 104%;
  margin: 0 -2%;
  padding: .9rem 0;
  border-block: 4px solid var(--ink);
  background: var(--ink);
  transform: rotate(-1.2deg);
}
.marquee-track { display: flex; width: max-content; gap: 1.6rem; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font: clamp(1.1rem, 2.4vw, 1.6rem) var(--display); color: var(--cream); text-transform: uppercase; white-space: nowrap; }
.marquee span::after { content: "♥"; margin-left: 1.6rem; color: var(--brick); }
@keyframes marquee { to { transform: translateX(calc(-50% - .8rem)); } }

/* ---------- Abschnitte ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(70px, 10vw, 120px) var(--gutter) 0; }
.sec-head { max-width: 44rem; margin-bottom: clamp(1.6rem, 3.5vw, 2.6rem); }
.sec-tag { margin: 0 0 .7rem; font: 1.15rem/1 var(--marker); color: var(--brick-dark); }
.poster {
  display: inline-block;
  padding: .3em .6em .35em;
  border: 3px solid var(--ink);
  background: var(--cream);
  box-shadow: 6px 6px 0 var(--ink);
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  transform: rotate(-1deg);
}
.sec-sub { margin: 1.1rem 0 0; font-weight: 500; color: var(--ink-soft); }

/* ---------- Werkzeugleiste ---------- */
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-bottom: 2.2rem; }
.search {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 1 1 260px;
  max-width: 26rem;
  padding: 3px 1.1rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  box-shadow: 3px 3px 0 var(--ink);
}
.search:focus-within { border-color: var(--brick); }
.hs-icon { color: var(--brick); font-size: 1.3rem; line-height: 1; }
.search input { flex: 1; min-width: 0; padding: .55em 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; }
.search input::placeholder { color: #5f574d; }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip {
  padding: .5em 1em;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font: 700 .9rem/1 var(--font);
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .2s;
}
.chip:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.chip.is-active { background: var(--brick); color: var(--cream); }
.count { margin: 0 0 0 auto; font: 1.05rem/1 var(--marker); color: var(--ink-soft); }

/* ---------- Bücher-Karten ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 2.2rem 1.7rem; align-items: stretch; }

.card {
  --r: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow);
  transform: rotate(var(--r));
  transition: transform .35s var(--pop), box-shadow .3s var(--ease);
}
.card:nth-child(3n + 1) { --r: -1deg; }
.card:nth-child(3n + 2) { --r: .8deg; }
.card:nth-child(3n) { --r: -.4deg; }
.card:hover { transform: rotate(0) translateY(-6px); box-shadow: var(--shadow-lg); z-index: 2; }
.card.is-hidden { display: none; }
.card.is-target { animation: target 1.6s var(--ease); }
@keyframes target { 0%, 40% { box-shadow: 0 0 0 5px var(--brick), var(--shadow-lg); } }

.card-cover {
  position: relative;
  aspect-ratio: 1 / 1.38;
  margin: 12px 12px 0;
  padding: 18px 18px 0;
  border-radius: 4px 4px 0 0;
  background: var(--paper-2);
  background-image: radial-gradient(rgba(22, 19, 17, .08) 1px, transparent 1.5px);
  background-size: 9px 9px;
}
.cover-link { position: relative; display: block; height: 100%; cursor: pointer; }
.card-cover img {
  display: block;
  width: 100%;
  height: calc(100% - 4px);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(3px 4px 0 rgba(22, 19, 17, .28));
  transition: transform .35s var(--pop), filter .3s;
}
.cover-link:hover img, .cover-link:focus-visible img { transform: scale(1.04) rotate(-1.2deg); filter: drop-shadow(5px 7px 0 rgba(22, 19, 17, .3)); }
.cover-link::after { /* Hinweis beim Darüberfahren */
  content: "Auf Amazon ↗";
  position: absolute;
  left: 50%; bottom: 12px;
  padding: .3em .7em;
  border: 2px solid var(--ink);
  background: var(--mustard);
  font: .95rem/1.1 var(--marker);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 8px) rotate(-3deg);
  transition: opacity .25s, transform .3s var(--pop);
  pointer-events: none;
}
.cover-link:hover::after, .cover-link:focus-visible::after { opacity: 1; transform: translate(-50%, 0) rotate(-3deg); }
.modal-cover .cover-link { height: auto; }
.tape {
  position: absolute;
  top: -10px; left: 50%;
  z-index: 2;
  width: 92px; height: 24px;
  margin-left: -46px;
  background: rgba(242, 184, 75, .82);
  border: 1px solid rgba(22, 19, 17, .25);
  transform: rotate(-3deg);
}
.sticker {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  font-family: var(--marker);
  text-align: center;
  line-height: 1.05;
}
.sticker-new { top: 14px; right: -12px; width: 62px; height: 62px; border-radius: 50%; background: var(--brick); color: var(--cream); font-size: 1.05rem; transform: rotate(12deg); animation: wobble 3.2s ease-in-out infinite; }
.sticker-season { left: -10px; bottom: 14px; padding: .35em .7em; background: var(--mustard); color: var(--ink); font-size: .95rem; transform: rotate(-5deg); box-shadow: 3px 3px 0 var(--ink); }
@keyframes wobble { 0%, 100% { transform: rotate(12deg) scale(1); } 50% { transform: rotate(8deg) scale(1.08); } }

.card-body { display: flex; flex: 1; flex-direction: column; padding: 1.1rem 1.2rem 1.3rem; }
.card-meta { margin: 0 0 .4rem; font: 700 .72rem/1.3 var(--font); letter-spacing: .09em; text-transform: uppercase; color: var(--brick-dark); }
.card-title { font-size: 1.28rem; line-height: 1.15; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--brick); text-decoration: underline; text-decoration-thickness: 3px; }
.page-link { margin: 1.3rem 0 0; font: 1.05rem/1.2 var(--marker); }
.card-kurz { margin: .6rem 0 1rem; color: var(--ink-soft); font-size: .96rem; }
.card-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; }

.empty { grid-column: 1 / -1; padding: 2rem; border: 3px dashed var(--ink); border-radius: var(--radius); background: var(--cream); text-align: center; }
.affil-note { max-width: 44rem; margin: 2.6rem 0 0; font-size: .86rem; color: var(--ink-soft); }

/* ---------- Detail-Ansicht ---------- */
.modal {
  width: min(920px, calc(100vw - 24px));
  max-height: calc(100svh - 24px);
  padding: 0;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  overflow: auto;
}
.modal[open] { animation: pop .35s var(--pop); }
@keyframes pop { from { transform: scale(.9) rotate(-1.5deg); opacity: 0; } }
.modal::backdrop { background: rgba(22, 19, 17, .72); backdrop-filter: blur(3px); }
.modal-close-wrap { position: sticky; top: 0; z-index: 3; height: 0; margin: 0; text-align: right; }
.modal-close {
  position: relative;
  top: 10px; right: 10px;
  width: 44px; height: 44px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--brick);
  color: var(--cream);
  font: 700 1.6rem/1 var(--font);
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}
.modal-close:hover { background: var(--brick-dark); }
.modal-grid { display: grid; grid-template-columns: minmax(200px, 330px) 1fr; }
.modal-cover {
  display: grid;
  place-items: center;
  padding: 2rem 1.4rem;
  background: var(--paper-2);
  background-image: radial-gradient(rgba(22, 19, 17, .08) 1px, transparent 1.5px);
  background-size: 9px 9px;
  border-right: 4px solid var(--ink);
}
.modal-cover img { display: block; width: 100%; height: auto; max-height: 70svh; object-fit: contain; border: 1px solid var(--ink); box-shadow: 5px 6px 0 rgba(22, 19, 17, .3); }
.modal-body { padding: clamp(1.4rem, 3vw, 2.2rem); }
.modal-title { margin: 0 0 .5rem; font-size: clamp(1.5rem, 3.2vw, 2.1rem); padding-right: 2.4rem; }
.modal-body .card-sub { margin: 0 0 1rem; font-weight: 600; color: var(--ink-soft); }
.modal-text { margin: 0 0 1rem; }
.punkte { margin: 0 0 1rem; padding-left: 1.2rem; }
.punkte li { margin-bottom: .3rem; }
.punkte li::marker { color: var(--brick); content: "♥  "; }
.age { margin: 0 0 1.2rem; font: 1.05rem/1.2 var(--marker); color: var(--brick-dark); }
.buy { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }

/* ---------- Häufige Fragen ---------- */
.faq { display: grid; gap: 1rem; max-width: 54rem; }
.faq-item {
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  font: 1.12rem/1.25 var(--display);
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--mustard);
  font: 700 1.2rem/1 var(--font);
  transition: transform .3s var(--pop), background .2s;
}
.faq-item[open] summary::after { transform: rotate(135deg); background: var(--brick); color: var(--cream); }
.faq-item summary:hover { color: var(--brick-dark); }
.faq-body { padding: 0 1.2rem 1.1rem; color: var(--ink-soft); }
.faq-body p { margin: 0 0 .7rem; }
.faq-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-weight: 700; color: var(--ink); }
.faq-links a { padding: .2em .7em; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: .9rem; text-decoration: none; }
.faq-links a:hover { background: var(--mustard); }

/* ---------- Buchseiten ---------- */
.book-page { max-width: var(--max); margin: 0 auto; padding: 110px var(--gutter) 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.4rem; font-size: .9rem; font-weight: 600; }
.crumbs a { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-soft); }
.book-grid {
  display: grid;
  grid-template-columns: minmax(240px, 400px) 1fr;
  gap: clamp(1.6rem, 5vw, 3.4rem);
  align-items: start;
  padding: clamp(1.2rem, 4vw, 2.6rem);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow-lg);
}
.book-cover {
  position: relative;
  padding: 22px;
  border-radius: 4px;
  background: var(--paper-2);
  background-image: radial-gradient(rgba(22, 19, 17, .08) 1px, transparent 1.5px);
  background-size: 9px 9px;
  transform: rotate(-1.2deg);
}
.book-cover img { display: block; width: 100%; height: auto; filter: drop-shadow(5px 6px 0 rgba(22, 19, 17, .3)); transition: transform .35s var(--pop); }
.book-cover .cover-link:hover img { transform: scale(1.03) rotate(1deg); }
.book-info h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); text-shadow: none; }
.book-sub { margin: .7rem 0 1rem; font-weight: 600; color: var(--ink-soft); }
.book-kurz { margin: 0 0 1rem; font: 1.3rem/1.3 var(--marker); color: var(--brick); }
.book-info > p { color: var(--ink-soft); }
.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .35rem 1.2rem;
  margin: 1.8rem 0 0;
  padding-top: 1.2rem;
  border-top: 3px dashed var(--ink);
  font-size: .95rem;
}
.facts div { display: contents; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--ink-soft); }
.related { margin-top: clamp(3rem, 7vw, 5rem); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1.2rem; margin-top: 1.8rem; }
.rel-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .8rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .25s var(--pop), box-shadow .25s;
}
.rel-card:hover { color: var(--ink); transform: translate(-2px, -3px) rotate(-.6deg); box-shadow: 7px 7px 0 var(--ink); }
.rel-card img { width: 64px; height: auto; flex-shrink: 0; border: 1px solid var(--ink); }
.rel-card strong { display: block; font: 1rem/1.2 var(--display); }
.rel-card .card-meta { margin-bottom: .2rem; }

/* ---------- Unterseiten: Druckvorlagen & Presse ---------- */
.sub-page { max-width: var(--max); margin: 0 auto; padding: 110px var(--gutter) 0; }
.sub-head { max-width: 46rem; margin-bottom: 2rem; }
.sub-head h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); text-shadow: 3px 3px 0 rgba(248, 243, 226, .8); }
.sub-head .lead { margin-top: 1rem; }
.freebie-box { margin: 1.3rem 0 0; }
.freebie-box a, .share-box code { font-family: var(--font); }
.freebie-box a {
  display: inline-block;
  padding: .5em .95em;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--mustard);
  color: var(--ink);
  font: 1.05rem/1.2 var(--marker);
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-1deg);
}
.freebie-box a:hover { transform: rotate(0) translateY(-2px); }

.free-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.4rem; }
.free-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .3s var(--pop), box-shadow .25s;
}
.free-card:hover { color: var(--ink); transform: translate(-2px, -3px) rotate(-.6deg); box-shadow: var(--shadow-lg); }
.free-card img { width: 74px; height: auto; flex-shrink: 0; border: 2px solid var(--ink); }
.free-card strong { display: block; margin: .15rem 0 .3rem; font: 1.15rem/1.2 var(--display); }
.free-card > span > span:last-child { color: var(--ink-soft); font-size: .93rem; }
.free-icon { display: grid; place-items: center; flex-shrink: 0; width: 74px; height: 74px; border: 3px solid var(--ink); border-radius: 50%; background: var(--brick); color: var(--cream); font-size: 2.2rem; }

.share-box { margin-top: 2.4rem; padding: 1.2rem 1.4rem; border: 3px dashed var(--ink); border-radius: var(--radius); background: var(--paper); }
.share-box p { margin: 0 0 .6rem; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 !important; }
.share-box code { padding: .45em .7em; border: 2px solid var(--ink); border-radius: 8px; background: var(--cream); font-size: .9rem; word-break: break-all; }
.btn.is-ok { background: var(--mustard); }

.promo-box {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 2.4rem;
  padding: 1.2rem 1.4rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow);
}
.promo-box img { width: 120px; height: auto; flex-shrink: 0; border: 2px solid var(--ink); }
.promo-box h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.promo-box p { margin: .5rem 0 0; color: var(--ink-soft); }

/* Checkout-Tabelle */
.print-sheet { padding: clamp(1rem, 3vw, 1.8rem); border: 3px solid var(--ink); border-radius: var(--radius); background: var(--cream); box-shadow: var(--shadow-lg); }
.print-title { font-size: 1.5rem; margin-bottom: .6rem; }
.co-legend { margin: 0 0 1rem; font-size: .9rem; color: var(--ink-soft); }
.co-key { display: inline-block; padding: .1em .5em; border: 2px solid var(--ink); border-radius: 6px; font-weight: 700; color: var(--ink); }
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .4rem; }
.co { display: flex; align-items: baseline; gap: .5rem; padding: .3em .55em; border: 2px solid var(--ink); border-radius: 6px; font-size: .9rem; break-inside: avoid; }
.co b { min-width: 2.2em; font: 1rem/1.2 var(--display); }
.co-1, .co-key.co-1 { background: var(--mustard); }
.co-2, .co-key.co-2 { background: #fff; }
.co-3, .co-key.co-3 { background: var(--paper-2); }
.co-none { background: repeating-linear-gradient(45deg, #ddd5bb 0 6px, #eae3cb 6px 12px); color: var(--ink-soft); }

/* Lese-Ritter-Urkunde */
.urkunde {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(1.6rem, 5vw, 3.4rem) clamp(1.2rem, 5vw, 3.6rem);
  border: 12px double var(--ink);
  border-radius: 10px;
  background: var(--cream);
  background-image: radial-gradient(rgba(194, 59, 51, .06) 1px, transparent 1.5px);
  background-size: 14px 14px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.ur-shield { width: 84px; height: auto; margin-bottom: .4rem; }
.ur-kicker { margin: 0; font: clamp(2.2rem, 6vw, 3.6rem)/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--brick-dark); }
.ur-line { margin: .9rem 0 .4rem; font-size: 1.15rem; color: var(--ink-soft); }
.ur-title { margin: .2rem 0; font: clamp(2.6rem, 8vw, 4.6rem)/1.05 var(--marker); color: var(--brick); text-shadow: 3px 3px 0 rgba(22, 19, 17, .15); }
.ur-input { width: min(560px, 92%); padding: .2em .3em; border: 0; border-bottom: 3px dotted var(--ink); background: transparent; color: var(--ink); font: clamp(1.5rem, 4vw, 2.2rem)/1.2 var(--display); text-align: center; }
.ur-input:focus { outline: 3px solid var(--brick-dark); outline-offset: 4px; }
.ur-input::placeholder { color: #8a8174; }
.ur-date { margin: 1.4rem 0 0; font-size: 1.1rem; }
.ur-date .ur-input { width: auto; font: 1.1rem/1.2 var(--font); }
.ur-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.ur-sign p { display: flex; flex-direction: column; margin: 0; }
.ur-hand { font: 1.8rem/1.1 var(--marker); color: var(--ink); }
.ur-sign p > span:last-child { margin-top: .2rem; padding-top: .3rem; border-top: 2px solid var(--ink); font-size: .9rem; color: var(--ink-soft); }

/* Presse */
.press-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.2rem; }
.press-tile { padding: 1.2rem 1.3rem; border: 3px solid var(--ink); border-radius: var(--radius); background: var(--cream); box-shadow: var(--shadow); }
.press-tile h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.press-tile p { margin: 0; color: var(--ink-soft); }
.press-section { margin-top: clamp(2.6rem, 6vw, 4rem); }
.press-section > .poster { margin-bottom: 1.6rem; }
.press-facts { max-width: 46rem; padding: 1.2rem 1.4rem; border: 3px solid var(--ink); border-radius: var(--radius); background: var(--cream); }
.press-brand { max-width: 46rem; margin-top: 1rem; }
.press-text { margin: .4rem 0; color: var(--ink-soft); }
.press-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 0; }
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 470px), 1fr)); gap: 1.3rem; }
.press-card { display: flex; gap: 1.1rem; padding: 1rem; border: 3px solid var(--ink); border-radius: var(--radius); background: var(--cream); box-shadow: var(--shadow); }
.press-card img { width: 104px; height: auto; align-self: flex-start; flex-shrink: 0; border: 2px solid var(--ink); }
.press-card h3 { font-size: 1.15rem; }
.press-isbn { margin: .3rem 0 0; font-size: .82rem; color: var(--ink-soft); }
.press-more summary { cursor: pointer; font-weight: 700; font-size: .9rem; }

/* Ausmalbilder */
.coloring-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1.6rem; }
.coloring-card { margin: 0; padding: 1rem; border: 3px solid var(--ink); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.coloring-card:nth-child(odd) { transform: rotate(-.6deg); }
.coloring-card:nth-child(even) { transform: rotate(.5deg); }
.coloring-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; }
.coloring-card figcaption { margin-top: .8rem; padding-top: .8rem; border-top: 2px dashed var(--ink); }
.coloring-card strong { display: block; font: 1.1rem/1.2 var(--display); }

.print-only { display: none; }

/* ---------- Zahlen ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.stat {
  padding: 1.7rem 1.2rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  box-shadow: 5px 5px 0 var(--brick);
  transition: transform .3s var(--pop);
}
.stat:nth-child(odd) { transform: rotate(-1deg); }
.stat:nth-child(even) { transform: rotate(.8deg); }
.stat:hover { transform: rotate(0) translateY(-4px); }
.stat-num { display: block; font: clamp(2.2rem, 4.4vw, 3.3rem)/1 var(--display); color: var(--mustard); white-space: nowrap; }
.stat-label { display: block; margin-top: .6rem; font-size: .93rem; color: rgba(248, 243, 226, .85); }

/* ---------- Über mich ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: clamp(1.6rem, 5vw, 3.4rem);
  align-items: center;
  padding: clamp(1.4rem, 4vw, 3rem);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow-lg);
}
.about-photo { position: relative; transform: rotate(-2deg); }
.about-photo img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border: 4px solid var(--ink);
  border-radius: 6px;
  box-shadow: 8px 8px 0 var(--brick);
}
/* Foto: 8-Bit-Version beim Darüberfahren, Aufbau aus Blöcken (Canvas, per JS) */
.about-photo .about-pixel { position: absolute; inset: 0; opacity: 0; transition: opacity .45s var(--ease); }
.about-photo:hover .about-pixel { opacity: 1; }
.about-badge {
  position: absolute;
  right: 12px; bottom: 12px;
  z-index: 3;
  padding: .25em .6em;
  border: 2px solid var(--ink);
  background: var(--mustard);
  font: .85rem/1 var(--marker);
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s, transform .3s var(--ease);
}
.about-photo:hover .about-badge { opacity: 1; transform: none; }
.about-photo.is-building .about-real,
.about-photo.is-building .about-pixel { opacity: 0; transition: none; }
.about-canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border-radius: 6px; transition: opacity .5s var(--ease); }
.about-canvas.is-done { opacity: 0; }
.about-text h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.about-role { margin: .6rem 0 1.1rem; font: 1.15rem/1.2 var(--marker); color: var(--brick); }
.about-text p:not(.sec-tag):not(.about-role):not(.social) { color: var(--ink-soft); }
.social { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.social a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45em .95em;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .18s var(--ease), background .2s;
}
.social a:hover { background: var(--mustard); color: var(--ink); transform: translate(-1px, -2px); }

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.8rem, 5vw, 3.6rem);
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--cream);
  box-shadow: 9px 9px 0 var(--brick);
}
.contact h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.contact .sec-tag { color: var(--mustard); }
.contact-text p:not(.sec-tag) { margin: 1rem 0 1.4rem; color: rgba(248, 243, 226, .85); }
.mail-link { display: block; margin-bottom: .8rem; color: var(--mustard); font: 700 clamp(1rem, 2vw, 1.2rem)/1.3 var(--font); word-break: break-all; }
.mail-link:hover { color: #ffd88a; }

.form { display: grid; gap: 1rem; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 1.35rem 1rem .55rem;
  border: 3px solid var(--cream);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  resize: vertical;
  transition: border-color .25s, box-shadow .25s;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23161311' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--mustard); box-shadow: 0 0 0 3px rgba(242, 184, 75, .35); }
.field label { position: absolute; left: 1.1rem; top: 1rem; color: #5f574d; pointer-events: none; transform-origin: left top; transition: transform .25s var(--ease), color .25s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-.62rem) scale(.75); color: var(--brick-dark); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--brick); }
.form-note { margin: 0; font-size: .82rem; color: rgba(248, 243, 226, .75); }
.form-note.is-ok { color: var(--mustard); }
.contact .copy-mail.is-ok { background: var(--mustard); }

/* ---------- Footer ---------- */
.footer {
  margin-top: clamp(80px, 10vw, 120px);
  padding: 1.6rem var(--gutter) 1.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 4px solid var(--brick);
  background: var(--ink);
  color: rgba(248, 243, 226, .85);
  font-size: .9rem;
}
.foot-brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); color: var(--cream); }
.foot-brand img { height: 34px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.foot-links a { color: rgba(248, 243, 226, .85); text-decoration: none; }
.foot-links a:hover { color: var(--mustard); text-decoration: underline; }

/* ---------- Scroll-Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .card.reveal { transform: translateY(26px) rotate(var(--r)); }
.js .card.reveal.is-visible { transform: rotate(var(--r)); }
.js .card.reveal.is-visible:hover { transform: rotate(0) translateY(-6px); }
.js .stat.reveal { transform: translateY(26px); }
.js .stat.reveal.is-visible:nth-child(odd) { transform: rotate(-1deg); }
.js .stat.reveal.is-visible:nth-child(even) { transform: rotate(.8deg); }
.js .stat.reveal.is-visible:hover { transform: rotate(0) translateY(-4px); }

/* ---------- Unterseiten (Impressum, 404) ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 130px var(--gutter) 0; }
.page h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 1.6rem; text-shadow: none; }
.page h2 { margin: 2.4rem 0 .8rem; font-size: 1.35rem; color: var(--brick-dark); }
.page p, .page li { color: var(--ink-soft); }
.page { background: var(--cream); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); margin-top: 110px; padding: clamp(1.4rem, 4vw, 3rem); }
.notfound { text-align: center; }
.notfound .lead { margin-inline: auto; }
.notfound .hero-cta { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 100px; min-height: auto; gap: 1rem; }
  .hero-art { max-width: 460px; margin: 0 auto; }
  .scroll-hint { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .burger { display: block; }
  /* backdrop-filter würde das fixierte Vollbild-Menü an die Leiste binden, deshalb hier deckend */
  .nav.is-scrolled { background: rgba(236, 229, 207, .97); backdrop-filter: none; -webkit-backdrop-filter: none; }

  .menu {
    position: fixed;
    inset: 0;
    z-index: 55;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
    padding: 84px 26px 28px;
    overflow-y: auto;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cpath fill='%23c23b33' d='M200 28c40-8 62 22 92 30 38 10 78 6 84 50 6 44-30 54-26 92 4 40 38 62 14 100-22 34-62 20-96 40-30 18-44 56-84 54-44-2-48-44-80-62-34-20-84-12-96-56-12-44 34-62 36-98 2-34-34-58-14-92 22-38 62-24 94-44 26-16 38-9 76-14z'/%3E%3C/svg%3E") 112% -16% / 112vw no-repeat,
      var(--paper) url("../img/brick.webp") 0 0 / 240px 120px;
    clip-path: circle(0 at calc(100% - 42px) 38px);
    transition: clip-path .65s var(--ease);
    visibility: hidden;
  }
  .menu.is-open { clip-path: circle(150% at calc(100% - 42px) 38px); visibility: visible; }

  .menu-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .6rem; }
  .menu-head img { width: 84px; height: auto; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .3)); }
  .menu-head p { margin: 0; font: 1.35rem/1.15 var(--marker); color: var(--ink); }

  .menu > a:not(.btn) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .55em .9em .6em;
    border: 3px solid var(--ink);
    border-radius: 8px;
    background: var(--cream);
    font: 1.8rem/1.1 var(--display);
    box-shadow: 6px 6px 0 var(--ink);
  }
  .menu > a:not(.btn)::after { /* statt Unterstreichung: Pfeil */
    position: static;
    height: auto;
    background: none;
    content: "→";
    font-family: var(--font);
    font-weight: 700;
    color: var(--brick);
    transform: none;
    transition: transform .25s var(--pop);
  }
  .menu > a:not(.btn):hover::after, .menu > a.is-current::after { transform: translateX(4px); }
  .menu > a.is-current { background: var(--mustard); }
  .menu .btn { padding: .8em 1.2em; font-size: 1.15rem; background: var(--mustard); color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
  .menu .btn:hover { background: #ffc965; color: var(--ink); }

  .menu-foot { display: flex; flex-wrap: wrap; gap: .6rem; margin: .8rem 0 0; }
  .menu-mini {
    padding: .4em .85em;
    border: 3px solid var(--ink);
    border-radius: 999px;
    background: var(--cream);
    color: var(--ink);
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    box-shadow: 3px 3px 0 var(--ink);
  }

  /* Einblenden nacheinander, jedes Poster mit eigener Neigung */
  .menu-head, .menu > a, .menu-foot { opacity: 0; transform: translateX(-60px) rotate(-3deg); transition: opacity .4s var(--ease), transform .55s var(--pop); }
  .menu.is-open .menu-head, .menu.is-open > a, .menu.is-open .menu-foot { opacity: 1; transform: rotate(var(--mr, 0deg)); }
  .menu > a:nth-of-type(1) { --mr: -1.5deg; }
  .menu > a:nth-of-type(2) { --mr: 1deg; }
  .menu > a:nth-of-type(3) { --mr: -.8deg; }
  .menu > a:nth-of-type(4) { --mr: 1.2deg; }
  .menu.is-open .menu-head { transition-delay: .15s; }
  .menu.is-open > a:nth-of-type(1) { transition-delay: .22s; }
  .menu.is-open > a:nth-of-type(2) { transition-delay: .3s; }
  .menu.is-open > a:nth-of-type(3) { transition-delay: .38s; }
  .menu.is-open > a:nth-of-type(4) { transition-delay: .46s; }
  .menu.is-open .menu-foot { transition-delay: .56s; }
  .burger[aria-expanded="true"] { background: var(--brick); }
  .burger[aria-expanded="true"] span { background: var(--cream); }
  body.menu-open { overflow: hidden; }

  .count { margin-left: 0; width: 100%; }
  .search { max-width: none; }
  .filters { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding: 0 24px 6px 0; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }

  .logo-text { font-size: .98rem; }
  .footer { flex-direction: column; text-align: center; }
  .foot-links { justify-content: center; }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 240px; margin-inline: auto; }
  .book-grid { grid-template-columns: 1fr; }
  .book-cover { max-width: 300px; margin-inline: auto; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-cover { border-right: 0; border-bottom: 4px solid var(--ink); padding: 1.4rem 1.2rem; }
  .modal-cover img { max-height: 40svh; width: auto; max-width: 100%; }
  .tape-badge { right: -2%; bottom: 2%; font-size: .85rem; }
}

@media (max-width: 480px) {
  .float-btn { width: 50px; height: 50px; }
  .float-btn img { width: 34px; }
  .float-motion { width: 36px; height: 36px; }
  .cards { gap: 2rem 1rem; }
  .stats { grid-template-columns: 1fr; }
  .btn { width: auto; }
  .hero-cta .btn { flex: 1 1 100%; }
}

@media (hover: none) {
  .card:hover { transform: rotate(var(--r)); box-shadow: var(--shadow); }
}

@media (max-width: 560px) {
  .promo-box, .press-card { flex-direction: column; }
  .ur-sign { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------- Drucken ---------- */
@page { margin: 12mm; }
@page urkunde { size: A4 landscape; margin: 8mm; }
@media print {
  body { background: #fff !important; font-size: 11pt; }
  body::before, .noise, .nav, .footer, .float-nav, .skip-link, .no-print, .crumbs, .share-box, .promo-box, .sub-head { display: none !important; }
  main { overflow: visible; }
  .sub-page { padding: 0; max-width: none; }
  .print-only { display: block; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .print-sheet { border: 0; box-shadow: none; padding: 0; background: #fff; }
  .co-grid { grid-template-columns: repeat(6, 1fr); gap: 2px; }
  .co { padding: 1px 4px; border-width: 1px; font-size: 7.5pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .co b { font-size: 8.5pt; }
  .print-foot { margin-top: 6px; font-size: 8pt; text-align: center; }
  .urkunde { page: urkunde; max-width: none; height: 190mm; box-shadow: none; display: flex; flex-direction: column; justify-content: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ur-input::placeholder { color: transparent; }
  /* Ausmalbilder: ein Motiv pro Seite; „Dieses Bild drucken“ blendet die anderen aus */
  .coloring-grid { display: block; }
  .coloring-card { transform: none !important; border: 0; box-shadow: none; padding: 0; break-after: page; text-align: center; }
  .coloring-card:last-child { break-after: auto; }
  .coloring-card img { width: auto; max-width: 100%; height: 240mm; margin: 0 auto; }
  .coloring-card figcaption { border: 0; padding: 0; margin-top: 4mm; }
  .coloring-card figcaption strong::after { content: " · Gratis-Ausmalbild · digitalcreations.at"; font: 9pt var(--font); }
  body.printing-one .coloring-card:not(.print-this) { display: none; }
  .ur-foot { margin-top: 1rem; font-size: 8pt; color: var(--ink-soft); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
