/* Zwergengeschichten: Bastelkarton mit Punktraster. Darauf Notizzettel, eine Steckbrief Spielkarte,
   Haftzettel und Polaroids. Ein Zwerg schaut vom Rand zu. Schriften liegen in /fonts. */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url(/fonts/figtree-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url(/fonts/figtree-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url(/fonts/figtree-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Shantell Sans"; font-weight: 400; font-display: swap; src: url(/fonts/shantell-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Shantell Sans"; font-weight: 600; font-display: swap; src: url(/fonts/shantell-sans-latin-600-normal.woff2) format("woff2"); }

:root {
  --accent: #e2673a;
  --karton: #e6d6b8;
  --karton-hell: #ecdec3;
  --karton-dunkel: #dcc8a4;
  --punkt: rgba(90, 60, 30, 0.22);
  --papier: #fffaf0;
  --papier-2: #f6ecd9;
  --tinte: #2a211b;
  --tinte-weich: #6b5a4b;
  --auf-karton: #2a211b;
  --auf-karton-weich: #6b5a4b;
  --muetze: #d4412c;
  --muetze-dunkel: #b8321f;
  --sonne: #f2b632;
  --haftzettel: #ffe680;
  --linien: rgba(60, 110, 170, 0.14);
  --klebeband: rgba(255, 255, 255, 0.6);
  --schatten: 0 1px 1px rgba(60, 35, 10, 0.16), 0 8px 18px rgba(60, 35, 10, 0.18);
  --schrift-titel: "Bricolage Grotesque", "Arial Rounded MT Bold", system-ui, sans-serif;
  --schrift-text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --schrift-hand: "Shantell Sans", "Chalkboard SE", "Marker Felt", "Segoe Print", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --karton: #4a3d2c;
    --karton-hell: #4d3f2d;
    --karton-dunkel: #3a2f22;
    --punkt: rgba(255, 240, 210, 0.14);
    --papier: #f3e8d4;
    --papier-2: #e6d7bc;
    --tinte: #241c16;
    --tinte-weich: #5d4d40;
    --auf-karton: #f3e8d4;
    --auf-karton-weich: #d9c9ad;
    --haftzettel: #f1d667;
    --klebeband: rgba(255, 255, 255, 0.35);
    --schatten: 0 1px 1px rgba(0, 0, 0, 0.4), 0 10px 22px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  color: var(--tinte);
  font: 17px/1.55 var(--schrift-text);
  background-color: var(--karton);
  background-image: radial-gradient(var(--punkt) 1.2px, transparent 1.6px), linear-gradient(180deg, var(--karton-hell), var(--karton-dunkel));
  background-size: 22px 22px, 100% 100%;
  min-height: 100vh;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--schrift-titel); line-height: 1.05; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--sonne); outline-offset: 3px; }
.hand { font-family: var(--schrift-hand); }
.akzent { color: var(--accent); font-weight: 600; }

.vorschau-band { background: var(--sonne); color: #3a2a00; text-align: center; font-weight: 700; padding: 6px; font-size: 14px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; padding-block: 18px 90px; }

/* Klebeband auf Zetteln */
.klebeband { position: relative; }
.klebeband::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 24px; transform: translateX(-50%) rotate(-3deg);
  background: var(--klebeband); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Kopf */
.kopf {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding-block: 8px 10px;
}
.wortmarke { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--auf-karton); }
.wortmarke-logo { width: auto; height: 46px; display: block; }
.wortmarke span { font-family: var(--schrift-titel); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.kopf-nav { display: flex; gap: 22px; }
.kopf-nav a { color: var(--auf-karton); font-weight: 600; font-size: 0.95rem; text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
.kopf-nav a:hover { border-bottom-color: var(--muetze); }

/* Knöpfe */
.knoepfe { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; align-items: center; }
.knopf {
  display: inline-flex; align-items: center; gap: 10px; background: var(--tinte); color: var(--papier); font-weight: 700; padding: 11px 18px;
  border-radius: 999px; text-decoration: none;
}
.knopf.hohl { background: transparent; color: var(--tinte); box-shadow: inset 0 0 0 2px var(--tinte); }
.wuerfel { width: 30px; height: 30px; }
.knopf:hover .wuerfel { animation: wuerfeln 0.7s cubic-bezier(0.3, 0.7, 0.4, 1); }
@keyframes wuerfeln { 40% { transform: rotate(320deg) scale(1.25); } 100% { transform: rotate(720deg) scale(1); } }

/* Startseite */
.hallo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 34px; }
.hallo-zettel {
  background: var(--papier); padding: 34px 32px 30px; box-shadow: var(--schatten); transform: rotate(-0.8deg);
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, var(--linien) 31px 32px); background-position: 0 14px;
}
.hallo-zettel h1 { font-size: clamp(2.2rem, 5.5vw, 3.9rem); font-weight: 800; }
.hallo-zettel h1 span { color: var(--muetze); }
.hallo-zettel p { margin-top: 14px; max-width: 46ch; color: var(--tinte-weich); }
.hallo-zettel .hand { color: var(--tinte); font-size: 1.05rem; }
.streu { position: relative; height: 340px; }
.streu-bild { position: absolute; background: #fff; padding: 8px 8px 26px; box-shadow: var(--schatten); width: 46%; }
.streu-bild img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.streu-1 { left: 4%; top: 2%; transform: rotate(-7deg); }
.streu-2 { right: 2%; top: 22%; transform: rotate(6deg); }
.streu-3 { left: 26%; bottom: 0; transform: rotate(-2deg); }
.streu-wuerfel { position: absolute; width: 42px; height: 42px; filter: drop-shadow(0 4px 5px rgba(60, 35, 10, 0.3)); }
.streu-wuerfel.w1 { right: 10%; top: 0; transform: rotate(18deg); }
.streu-wuerfel.w2 { left: 0; bottom: 14%; transform: rotate(-24deg); }

.abschnitt { margin-top: 64px; }
.ueberschrift { font-size: 2rem; font-weight: 800; color: var(--auf-karton); }
.ueberschrift-zeile { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ueberschrift-zeile .hand { color: var(--auf-karton-weich); }

/* Filter als Spielchips */
.filter { display: grid; gap: 12px; margin-top: 18px; }
.filter-gruppe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-name { font-family: var(--schrift-hand); font-weight: 600; min-width: 74px; color: var(--auf-karton-weich); }
.chip {
  border: 0; cursor: pointer; padding: 7px 14px; border-radius: 999px; background: var(--papier); font: inherit; font-weight: 600; font-size: 0.92rem;
  color: var(--tinte); box-shadow: 0 3px 0 rgba(60, 35, 10, 0.2);
}
.chip[aria-pressed="true"] { background: var(--sonne); transform: translateY(2px); box-shadow: 0 1px 0 rgba(60, 35, 10, 0.2); }
.anzahl { color: var(--auf-karton-weich); margin-top: 14px; }
.leer { text-align: center; padding: 30px; color: var(--auf-karton-weich); font-family: var(--schrift-hand); }
.notizen .leer { color: var(--tinte-weich); }
.link { background: none; border: 0; color: inherit; font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }

/* Spielkarten */
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 34px 26px; margin-top: 26px; }
.raster { justify-items: center; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 34px 22px; }
/* Auf der Startseite etwas kleiner und fast gerade, wie ordentlich hingelegt */
.raster .karte-link { zoom: 0.84; }
.raster .karte-link:nth-child(3n + 1) { --neigung: -0.6deg; }
.raster .karte-link:nth-child(3n + 2) { --neigung: 0.4deg; }
.raster .karte-link:nth-child(3n) { --neigung: -0.2deg; }
/* Sammelkarte als Link in Listen: liegt leicht schräg, beim Darüberfahren hebt sie sich nur ein Stück */
.steckkarte.karte-link { position: relative; top: auto; display: block; text-decoration: none; color: inherit; transform: rotate(var(--neigung, -1.5deg)); transition: transform 0.2s ease; }
.karte-link:nth-child(3n + 1) { --neigung: -1.6deg; }
.karte-link:nth-child(3n + 2) { --neigung: 1.2deg; }
.karte-link:nth-child(3n) { --neigung: -0.4deg; }
.steckkarte.karte-link:hover, .steckkarte.karte-link:focus-visible { transform: rotate(var(--neigung)) translateY(-6px); }
.karte-link .tcg-leiste dd { text-decoration: none; }

/* Spielseite */
.zurueck { display: inline-block; margin-top: 26px; font-weight: 600; text-decoration: none; color: var(--auf-karton); }
.spiel-kopf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: center; margin-top: 18px; }
.schachtel {
  position: relative; aspect-ratio: 1; max-width: 100%; background: var(--accent); border-radius: 14px; overflow: hidden; display: grid; place-items: center;
  box-shadow: var(--schatten), inset 0 0 0 10px rgba(255, 255, 255, 0.12); transform: rotate(-2.5deg);
}
.schachtel img { width: 100%; height: 100%; object-fit: cover; }
.schachtel-name { color: #fff; font-family: var(--schrift-titel); font-weight: 800; font-size: clamp(2rem, 5vw, 3.2rem); padding: 20px; text-align: center; }
.sticker {
  position: absolute; right: 16px; bottom: 16px; width: 64px; height: 64px; border-radius: 50%; background: var(--papier); display: grid; place-items: center;
  font-size: 2rem; box-shadow: var(--schatten); transform: rotate(10deg);
}
.aufmacher { font-family: var(--schrift-titel); font-size: 1.35rem; font-weight: 700; margin-top: 12px; line-height: 1.25; }

.spielfeld { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 34px; margin-top: 56px; align-items: start; }
/* Steckbrief als Sammelkarte: ohne Außenrand, Rahmen in der Akzentfarbe, Name mit Wert oben,
   Bildfenster mit Goldrand, Fähigkeiten, kursiver Satz, Leiste und Kartennummer. Holo Glanz beim Darüberfahren. */
.steckkarte {
  --gold: #d6b25e;
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); width: 300px; height: 438px; flex: none;
  border-radius: 14px; padding: 0; background: transparent; box-shadow: var(--schatten), 0 14px 30px rgba(40, 25, 10, 0.25);
  transform: rotate(-1.5deg); overflow: hidden; isolation: isolate;
}
.tcg-rahmen {
  height: 100%; border-radius: 14px; padding: 8px; gap: 6px;
  /* Festes Raster: jedes Feld hat auf jeder Karte dieselbe Höhe, egal was drinsteht */
  display: grid; grid-template-rows: 46px 140px 18px 1fr 44px 14px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 70%, #fff) 0%, var(--accent) 45%, color-mix(in srgb, var(--accent) 75%, #000) 100%);
}
/* Glitzer ab Kids-Spaß 90: Regenbogen auf dem Bild, Lichtstreif über der Karte. Ohne Bewegung bei reduzierter Animation (siehe unten). */
.glanz .tcg-bild { position: relative; }
.glanz .tcg-bild::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .6;
  background: linear-gradient(115deg, transparent 15%, #ff6ec4 28%, #ffd36e 38%, #7dffb0 48%, #6ec9ff 58%, #c48bff 68%, transparent 80%);
  background-size: 250% 250%; animation: holo 4s ease-in-out infinite;
}
@keyframes holo { 0% { background-position: 100% 0; } 50% { background-position: 0 100%; } 100% { background-position: 100% 0; } }
.glanz .tcg-rahmen { position: relative; }
.glanz .tcg-rahmen::after {
  content: ""; position: absolute; inset: 0; border-radius: 14px; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .75) 50%, transparent 60%);
  background-size: 300% 100%; animation: streif 3.5s ease-in-out infinite;
}
@keyframes streif { 0%, 55% { background-position: 120% 0; } 100% { background-position: -40% 0; } }
.tcg-kopf { display: flex; align-items: center; gap: 6px; background: var(--papier); border-radius: 8px 8px 4px 4px; padding: 4px 8px 4px 5px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08); }
.karten-typ { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-size: 0.95rem; flex: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); }
.karten-name { flex: 1; min-width: 0; font-size: 1rem; font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; text-wrap: balance; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.karten-wert { min-width: 44px; justify-content: flex-end; font-family: var(--schrift-titel); font-weight: 800; font-size: 1.45rem; color: var(--muetze); line-height: 1; display: flex; align-items: baseline; gap: 1px; white-space: nowrap; }
.karten-wert small { font-size: 0.55rem; font-weight: 700; color: var(--tinte-weich); text-transform: uppercase; letter-spacing: 0.04em; }
.tcg-bild { min-height: 0; border-radius: 3px; overflow: hidden; display: grid; place-items: center; background: var(--accent); box-shadow: 0 0 0 3px var(--gold), 0 0 0 4px rgba(0, 0, 0, 0.25), 0 3px 6px rgba(0, 0, 0, 0.3); margin: 3px 3px 0; }
.tcg-bild img { width: 100%; height: 100%; object-fit: cover; }
.tcg-bild span { color: #fff; font-family: var(--schrift-titel); font-weight: 800; font-size: 1.2rem; text-align: center; padding: 8px; }
.tcg-zeile { margin: 2px 0 0; text-align: center; font-size: 0.68rem; font-style: italic; font-weight: 600; color: var(--tinte); background: var(--gold); border-radius: 3px; padding: 2px 6px; line-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcg-text { min-height: 0; overflow: hidden; background: var(--papier); border-radius: 4px; padding: 2px 8px 4px; display: flex; flex-direction: column; gap: 3px; }
.faehigkeiten { display: grid; }
.faehigkeit { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; height: 27px; border-bottom: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.faehigkeit:last-child { border-bottom: 0; }
.kosten { display: inline-flex; gap: 2px; align-items: center; }
.kosten .karte-icon { width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: var(--accent); stroke: #fff; }
.faehigkeit-name { font-weight: 700; font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ka { font-family: var(--schrift-text); font-size: 0.75rem; font-weight: 700; color: var(--tinte-weich); }
.faehigkeit-wert { font-family: var(--schrift-titel); font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.faehigkeit-wert small { font-size: 0.6rem; margin-left: 2px; }
.flavor { font-family: var(--schrift-hand); font-size: 0.8rem; line-height: 1.3; color: var(--tinte-weich); text-align: center; border-top: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); padding-top: 3px; height: calc(2 * 1.3em + 3px); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.tcg-leiste { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; min-height: 0; }
.tcg-leiste > div { background: color-mix(in srgb, var(--papier) 88%, var(--accent)); border-radius: 3px; padding: 3px 4px; text-align: center; min-width: 0; overflow: hidden; }
.tcg-leiste dt { font-size: 0.55rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tinte-weich); }
.tcg-leiste dd { margin: 0; font-size: 0.72rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.tcg-leiste dd small { white-space: nowrap; }
.tcg-leiste dd small { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 0.55rem; font-weight: 600; color: var(--tinte-weich); }
.tcg-leiste a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 2px; }
.tcg-leiste a:hover { color: var(--accent); }
.tcg-fuss { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #fff; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0 2px; }
.tcg-fuss span { display: inline-flex; align-items: center; gap: 4px; }
.karten-nummer { font-variant-numeric: tabular-nums; }
.fuss-logo { width: auto; height: 14px; display: block; }
.karte-icon { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tcg .figuren i { width: 9px; height: 13px; }
.figuren { display: inline-flex; gap: 3px; }
.figuren i { width: 12px; height: 16px; border-radius: 6px 6px 3px 3px; background: color-mix(in srgb, var(--accent) 18%, var(--papier)); }
.figuren i.geht { background: var(--accent); opacity: 0.45; }
.figuren i.beste { background: var(--accent); }

.notizen { display: grid; gap: 34px; min-width: 0; }
.notiz { background: var(--papier); padding: 24px 26px 22px; box-shadow: var(--schatten); max-width: 66ch; }
.notiz:nth-child(odd) { transform: rotate(-0.6deg); }
.notiz:nth-child(even) { transform: rotate(0.5deg); margin-left: 18px; }
.notiz h2 { font-size: 1.45rem; font-weight: 800; display: flex; gap: 10px; align-items: center; }
.notiz .marke { width: 28px; height: 28px; flex: none; }
.notiz p { margin-top: 10px; }
.notiz img { margin: 14px 0 4px; background: #fff; padding: 8px 8px 22px; box-shadow: var(--schatten); transform: rotate(-1.5deg); max-width: min(100%, 420px); }
.notiz a { color: var(--accent); font-weight: 600; }
.haftzettel { background: var(--haftzettel); max-width: 440px; padding-top: 28px; }
.notizen .haftzettel { transform: rotate(2deg); }
.haftzettel h2 { font-family: var(--schrift-hand); font-weight: 600; font-size: 1.35rem; }

.polaroids { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 26px; }
.polaroid { background: #fff; padding: 10px 10px 34px; box-shadow: var(--schatten); width: 240px; max-width: 100%; }
.polaroid img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.polaroid:nth-child(3n + 1) { transform: rotate(-4deg); }
.polaroid:nth-child(3n + 2) { transform: rotate(3deg) translateY(12px); }
.polaroid:nth-child(3n) { transform: rotate(-1.5deg); }
.polaroid:hover { transform: rotate(0) scale(1.03); }

.reel {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; margin-top: 64px; background: var(--papier);
  padding: 18px; border-radius: 14px; box-shadow: var(--schatten); max-width: 560px; transform: rotate(-0.6deg); text-decoration: none;
}
.handy { position: relative; width: 96px; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: var(--accent); box-shadow: inset 0 0 0 5px var(--tinte); display: grid; place-items: center; }
.handy img { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); object-fit: cover; border-radius: 11px; filter: brightness(0.75); }
.abspielen { position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--papier); display: grid; place-items: center; color: var(--accent); padding-left: 3px; }
.reel-titel { display: block; font-family: var(--schrift-titel); font-weight: 800; font-size: 1.3rem; }
.reel-hinweis { display: block; color: var(--tinte-weich); font-size: 0.92rem; margin-top: 4px; }

/* Textseiten */
.textseite, .mittig { max-width: 720px; margin: 34px auto 0; transform: rotate(-0.4deg); }
.textseite h1, .mittig h1 { font-size: 2.2rem; margin-bottom: 8px; }
.textseite h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); overflow-wrap: break-word; }
.textseite h2 { font-size: 1.2rem; margin-top: 22px; }
.mittig { text-align: center; }

/* Zwerg */
.zwerg { position: fixed; right: 18px; bottom: 4px; width: 100px; z-index: 5; }
.zwerg img { width: 100%; height: auto; display: block; cursor: pointer; filter: drop-shadow(0 3px 4px rgba(60, 35, 10, 0.25)); }
.sprechblase {
  position: fixed; right: 126px; bottom: 56px; z-index: 6; max-width: 240px; background: var(--papier); padding: 10px 14px;
  border-radius: 14px; font-family: var(--schrift-hand); font-size: 0.95rem; box-shadow: var(--schatten);
}
.sprechblase::after { content: ""; position: absolute; right: -9px; bottom: 16px; border: 9px solid transparent; border-left-color: var(--papier); border-right: 0; }

.fuss { margin-top: 90px; color: var(--auf-karton-weich); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.9rem; }
.fuss nav { display: flex; gap: 16px; }

@media (max-width: 820px) {
  body { font-size: 16px; }
  .hallo, .spiel-kopf, .spielfeld { grid-template-columns: minmax(0, 1fr); }
  .streu { height: 230px; }
  .steckkarte { position: static; }
  .notiz:nth-child(even) { margin-left: 0; }
  .zwerg { width: 64px; right: 6px; }
  .sprechblase { display: none; }
  .filter-name { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
[hidden] { display: none !important; }

/* Galerie für Fotos */
.galerie {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: transparent;
  display: none; align-items: center; justify-content: center; gap: 12px;
}
.galerie[open] { display: flex; }
.galerie::backdrop { background: rgba(30, 20, 12, 0.88); }
.galerie-bild { margin: 0; background: #fff; padding: 12px 12px 40px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); transform: rotate(-1deg); position: relative; max-width: min(1100px, calc(100vw - 140px)); }
.galerie-bild img { display: block; max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.galerie-zahl { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-family: var(--schrift-hand); color: #3a3029; font-size: 0.95rem; }
.galerie-pfeil, .galerie-zu {
  border: 0; cursor: pointer; background: var(--papier); color: var(--tinte); width: 52px; height: 52px; border-radius: 50%;
  font-size: 2rem; line-height: 1; display: grid; place-items: center; box-shadow: var(--schatten); flex: none;
}
.galerie-pfeil:hover, .galerie-zu:hover { background: var(--sonne); }
.galerie-zu { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 16px); right: 16px; font-size: 1.3rem; }
.polaroid { cursor: zoom-in; }
@media (max-width: 820px) {
  .galerie { gap: 0; }
  .galerie-bild { max-width: calc(100vw - 24px); }
  .galerie-pfeil { position: fixed; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); width: 48px; height: 48px; }
  .zurueck-pfeil { left: calc(50% - 60px); }
  .vor-pfeil { right: calc(50% - 60px); }
}

/* ===== Spielseite als aufgebautes Spiel ===== */
:root { --pappe-rand: #c9b48f; }

/* Spielschachtel mit leicht verschobenem Deckel */
.schachtel { background: none; box-shadow: none; overflow: visible; transform: none; display: block; position: relative; aspect-ratio: 1; max-width: 100%; }
.schachtel-boden {
  position: absolute; inset: 6% 0 -4% 6%; border-radius: 10px; transform: rotate(4deg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 60%, #000), color-mix(in srgb, var(--accent) 80%, #000));
  box-shadow: var(--schatten);
}
.schachtel-deckel {
  position: relative; width: 100%; height: 100%; border-radius: 10px; overflow: hidden; background: var(--accent); transform: rotate(-3deg);
  box-shadow: var(--schatten), inset 0 0 0 8px rgba(255, 255, 255, 0.14), 0 0 0 3px color-mix(in srgb, var(--accent) 70%, #000);
  display: grid; place-items: center;
}
.schachtel-deckel img { width: 100%; height: 100%; object-fit: cover; }

/* Titel wie die Seite einer Spielschachtel: Farbe des Spiels, großer Name, Piktogramme */
.schachtel-seite {
  position: relative; border-radius: 12px; padding: 26px 28px 24px; color: #fff; transform: rotate(1deg);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent) 55%, color-mix(in srgb, var(--accent) 80%, #000));
  box-shadow: var(--schatten), inset 0 0 0 6px rgba(255, 255, 255, 0.14), 0 6px 0 color-mix(in srgb, var(--accent) 60%, #000);
}
.schachtel-seite-oben { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.schachtel-seite h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; margin-top: 6px; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.18); }
.schachtel-seite .aufmacher { margin-top: 10px; color: #fff; }
.piktogramme { list-style: none; margin: 20px 0 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.piktogramme li {
  display: grid; justify-items: center; align-content: center; gap: 2px; min-width: 72px; height: 72px; padding: 6px 8px; border-radius: 50%;
  background: #fff; color: var(--accent); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2); text-align: center;
}
.piktogramme li b { font-family: var(--schrift-titel); font-weight: 800; font-size: 1.4rem; line-height: 1; }
.piktogramme li span { font-size: 0.7rem; font-weight: 800; color: var(--tinte); white-space: nowrap; }
.piktogramme .karte-icon { width: 22px; height: 22px; }
/* Anleitung als Kreis zum Anklicken: Pfeilplakette, unterstrichenes Label, hebt sich beim Zeigen */
.piktogramme li.zur-anleitung { padding: 0; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.zur-anleitung a {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; width: 100%; height: 100%; border-radius: 50%;
  color: inherit; text-decoration: none;
}
.piktogramme li.zur-anleitung:hover, .piktogramme li.zur-anleitung:focus-within { transform: translateY(-3px) rotate(-3deg); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.22), 0 0 0 3px #d6b25e; }
.piktogramme li.zur-anleitung:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2); }
.zur-anleitung a:focus-visible { outline: none; }
.piktogramme .zur-anleitung span:not(.pfeil) { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.piktogramme .zur-anleitung .pfeil {
  position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tinte); color: #fff; font-size: 0.85rem; line-height: 1; text-decoration: none; box-shadow: 0 0 0 2px #fff;
}

/* Spaßbarometer wie auf der Fazitkarte im Reel */
.barometer { margin: 8px auto 12px; max-width: 560px; color: var(--tinte); border: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 12px; padding: 10px 18px 6px; }
.barometer-titel { font-family: var(--schrift-titel); font-size: 1.05rem; font-weight: 800; color: var(--tinte); text-align: center; }
.barometer-skala { position: relative; padding: 44px 0 44px; margin: 0 10px; }
.barometer-balken {
  display: flex; justify-content: space-between; align-items: center; height: 26px; padding: 0 8px; border-radius: 13px;
  background: linear-gradient(90deg, #2e8bc0, #3fc1c9 20%, #6dd3a8 40%, #f4e04d 60%, #f4b942 80%, #ff6f59);
  color: #fff; font-size: 1rem; line-height: 1; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}
.pin { position: absolute; left: var(--wert); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.pin::after { content: ""; width: 3px; height: 10px; background: var(--tinte); }
.pin-kopf { border-color: var(--papier) !important; }
.pin-kids { top: 0; }
.pin-eltern { bottom: 0; flex-direction: column-reverse; }
.pin-kopf {
  min-width: 52px; height: 34px; padding: 0 10px; border-radius: 17px; display: grid; place-items: center;
  font-size: 0.78rem; font-weight: 800; color: #fff; border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}
.pin-kids .pin-kopf { background: #ff6f59; }
.pin-eltern .pin-kopf { background: #0097b2; }

/* Regelheft mit allen Abschnitten */
.spielfeld { margin-top: 56px; }
.regelheft {
  position: relative; padding: 18px 30px 14px; border-radius: 4px; transform: rotate(-0.4deg); min-width: 0;
  background: linear-gradient(90deg, transparent calc(50% - 16px), rgba(0, 0, 0, 0.08) 50%, transparent calc(50% + 16px)), var(--papier);
  box-shadow: var(--schatten), 4px 4px 0 -1px var(--papier-2), 8px 8px 0 -2px color-mix(in srgb, var(--papier-2) 80%, #000);
}
.regelheft-kopf { display: flex; justify-content: space-between; gap: 12px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 6px; margin-bottom: 14px; }
.regelheft-text { column-count: 2; column-gap: 60px; }
.kapitel { break-inside: avoid; margin-bottom: 18px; }
.kapitel h2, .achtung h2 { font-size: 1.15rem; font-weight: 800; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.kapitel-nr { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 0.9rem; flex: none; }
.kapitel p, .achtung p { margin-top: 6px; font-size: 0.96rem; }
.kapitel p:first-of-type, .achtung p:first-of-type { margin-top: 0; }
.kapitel a { color: var(--accent); font-weight: 600; }
.kapitel img { margin: 10px 0 0; border-radius: 4px; max-width: 100%; }
.achtung { break-inside: avoid; border: 2px solid var(--accent); border-radius: 8px; padding: 12px 14px; background: color-mix(in srgb, var(--accent) 8%, var(--papier)); margin-bottom: 18px; }
.achtung-zeichen { width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent; border-bottom: 26px solid var(--sonne); position: relative; flex: none; display: grid; place-items: center; font-size: 0; }
.achtung-zeichen::after { content: "!"; position: absolute; top: 7px; left: -3px; font-size: 0.9rem; font-weight: 800; color: var(--tinte); }
.regelheft-fuss { display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; color: var(--tinte-weich); margin-top: 6px; font-variant-numeric: tabular-nums; }
.regelheft-fuss span { display: inline-flex; gap: 4px; align-items: center; }

/* Fotos vom Spieltisch: ruhiges Raster, erstes Foto groß */
.fotos { display: grid; gap: 14px; margin-top: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fotos-1 { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.fotos-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fotos-3 .plaettchen:first-child, .fotos-4 .plaettchen:first-child { grid-column: span 2; grid-row: span 2; }
.plaettchen {
  display: block; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: #fff; padding: 6px;
  box-shadow: var(--schatten); transition: transform 0.2s ease;
}
.plaettchen img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.plaettchen:hover { transform: translateY(-3px); }

/* Würfel für das Reel */
.reel { margin-top: 56px; }
.spielwuerfel {
  width: 88px; height: 88px; border-radius: 18px; display: grid; place-items: center; flex: none;
  background: linear-gradient(145deg, #fff, var(--papier-2)); transform: rotate(-8deg);
  box-shadow: 0 6px 0 var(--pappe-rand), 0 12px 18px rgba(60, 35, 10, 0.3), inset 0 0 0 3px color-mix(in srgb, var(--accent) 50%, transparent);
}
.spielwuerfel .abspielen { width: 44px; height: 44px; background: var(--accent); color: #fff; font-size: 1.1rem; }

/* Kartenstapel der ähnlichen Spiele */
.kartenstapel { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 26px; }
.kartenstapel .karte-link { width: 300px; max-width: 100%; }
.kartenstapel .karte-link:nth-child(odd) { --neigung: -3deg; }
.kartenstapel .karte-link:nth-child(even) { --neigung: 2.5deg; }

@media (max-width: 820px) {
  .spiel-kopf { gap: 48px; }
  .schachtel { width: min(100%, 440px); margin: 8px auto 0; }
  .schachtel-seite { transform: rotate(0.6deg); }
  .spielfeld { justify-items: center; gap: 44px; }
  .spielfeld .regelheft { justify-self: stretch; }
  .regelheft-text { column-count: 1; }
  .regelheft { background: var(--papier); padding: 16px 18px 12px; }
  .fotos, .fotos-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fotos.fotos-1 { grid-template-columns: minmax(0, 1fr); }
  .fotos-3 .plaettchen:first-child, .fotos-4 .plaettchen:first-child { grid-column: 1 / -1; grid-row: auto; }
  .kartenstapel { justify-content: center; }
  .piktogramme li { min-width: 64px; height: 64px; }
}

/* ===== Admin */
.admin-kopf { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.admin-kopf h1 { margin: 0; color: var(--auf-karton); overflow-wrap: anywhere; }
.admin-kopf-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.tabelle-rahmen { overflow-x: auto; background: var(--papier); border-radius: 12px; box-shadow: var(--schatten); color: var(--tinte); }
.admin-tabelle { width: 100%; border-collapse: collapse; min-width: 320px; }
.admin-tabelle th, .admin-tabelle td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--karton-dunkel); vertical-align: middle; }
.admin-tabelle th { font-size: 0.85rem; color: var(--tinte-weich); font-weight: 700; }
.admin-tabelle tr:last-child td { border-bottom: 0; }
.admin-tabelle a { color: var(--tinte); font-weight: 700; }
.nur-lesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.status { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; background: var(--haftzettel); color: var(--tinte); }
.status-veroeffentlicht { background: #bfe3c8; }
.status-papierkorb { background: #e3d6cc; }
/* Massenimport: eine Karte pro Spiel mit Zustand */
.marke-neu { background: #bfe3c8; }
.marke-aktualisiert { background: var(--haftzettel); }
.marke-veroeffentlicht { background: #d9dde3; }
.marke-fehler { background: #f6c9bf; }
.massen-summe { font-weight: 700; color: var(--auf-karton); }
.massen-liste { list-style: none; margin: 12px 0 18px; padding: 0; display: grid; gap: 10px; }
.massen-eintrag { padding: 12px 16px; border-radius: 12px; background: var(--papier); color: var(--tinte); box-shadow: var(--schatten); }
.massen-eintrag > p { margin: 0; }
.massen-kopf { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.massen-name { font-weight: 800; }
.massen-werte { margin-top: 4px; color: var(--tinte-weich); font-size: 0.9rem; }
.massen-hinweise { margin: 8px 0 0; padding-left: 20px; font-size: 0.9rem; }
.massen-fehler .massen-hinweise { color: #8a2f20; font-weight: 600; }
.massen-details { margin-top: 8px; }
.massen-details summary { cursor: pointer; font-weight: 700; }
.massen-details .tabelle-rahmen { margin-top: 8px; box-shadow: none; }
/* Zerstörerische Knöpfe: Papierkorb und endgültig löschen */
.knopf.gefahr { background: #a8402e; color: #fff; }
.knopf.gefahr.hohl { background: transparent; color: #a8402e; box-shadow: inset 0 0 0 2px #a8402e; }
button.knopf.gefahr { border: 0; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px; }
.papierkorb-form { margin: 28px 0 0; padding-top: 18px; border-top: 1px dashed var(--karton-dunkel); }
.loeschen-frage { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 18px; }
.meldung.mit-knopf { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.meldung.mit-knopf form { margin: 0; }
.meldung.mit-knopf button.knopf, .spiele-knoepfe button.knopf, .papierkorb-form button.knopf, .wiederherstellen-form button.knopf { border: 0; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px; }
.spiele-knoepfe form { margin: 0; }
.status-leiste { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 4px 0 18px; }
.status-leiste form { margin: 0; }
.status-leiste a { color: var(--auf-karton); }
.meldung { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; font-weight: 600; color: var(--tinte); box-shadow: var(--schatten); }
.meldung.erfolg { background: #bfe3c8; }
.meldung.warnung { background: var(--haftzettel); }
.meldung.fehler { background: #f6c9bf; }

.admin-formular { display: grid; gap: 20px; max-width: 760px; }
.admin-formular fieldset { margin: 0; padding: 16px 18px 6px; border: 0; border-radius: 12px; background: var(--papier); color: var(--tinte); box-shadow: var(--schatten); min-width: 0; }
.admin-formular legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; font-family: var(--schrift-titel); font-weight: 800; font-size: 1.15rem; }
.admin-formular legend + * { clear: both; }
.admin-formular .feld { margin-bottom: 16px; }
.admin-formular label { display: block; font-weight: 700; margin-bottom: 4px; }
.admin-formular input[type=text], .admin-formular input[type=url], .admin-formular input[type=number],
.admin-formular input[type=date], .admin-formular select, .admin-formular textarea {
  width: 100%; max-width: 100%; box-sizing: border-box; font: inherit; color: var(--tinte); background: #fff;
  border: 2px solid var(--karton-dunkel); border-radius: 8px; padding: 10px 12px; min-height: 44px;
}
.admin-formular textarea { resize: vertical; line-height: 1.5; }
.admin-formular input:focus-visible, .admin-formular select:focus-visible, .admin-formular textarea:focus-visible,
.admin-formular button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.admin-formular [aria-invalid=true] { border-color: var(--muetze); }
.admin-formular input[type=color] { width: 64px; height: 44px; padding: 2px; border: 2px solid var(--karton-dunkel); border-radius: 8px; background: #fff; }
.admin-formular .hinweis { margin: 4px 0 0; font-size: 0.85rem; color: var(--tinte-weich); }
.admin-formular .feldfehler { margin: 6px 0 0; font-size: 0.9rem; font-weight: 700; color: var(--muetze-dunkel); }
.admin-formular .regler-zeile { display: flex; align-items: center; gap: 14px; }
.admin-formular input[type=range] { flex: 1; min-width: 0; min-height: 44px; accent-color: var(--accent); }
.admin-formular .regler-zahl { min-width: 5.5em; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.admin-formular .haken { display: flex; align-items: center; gap: 10px; font-weight: 600; min-height: 44px; margin: 0; }
.admin-formular .haken input { width: 22px; height: 22px; flex: none; accent-color: var(--accent); }
.admin-formular .marke { color: var(--tinte-weich); font-weight: 400; }
.aehnlich-liste { list-style: none; margin: 0 0 10px; padding: 0; columns: 2 220px; }
.admin-formular .knoepfe { margin: 0 0 24px; }
.admin-formular button.knopf { border: 0; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px; }
.status-leiste button.knopf { border: 0; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px; }
@media (max-width: 480px) {
  .admin-formular fieldset { padding: 14px 14px 4px; }
  .admin-tabelle th, .admin-tabelle td { padding: 10px; }
}

/* Admin: MD Import */
.md-import { max-width: 760px; }
.admin-formular textarea.md-text { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9rem; line-height: 1.45; }
.vorlage-ansicht { padding: 12px 16px; border-radius: 12px; background: var(--papier); color: var(--tinte); box-shadow: var(--schatten); }
.vorlage-ansicht summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.vorlage-ansicht summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.import-vorschau { margin-top: 32px; }
.import-vorschau h2 { color: var(--auf-karton); }
.import-tabelle th[scope=row] { width: 28%; white-space: nowrap; }
.import-tabelle td { width: 36%; }
.import-wert { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.import-tabelle .leer { color: var(--tinte-weich); font-style: italic; }
.import-tabelle .feldfehler { margin: 6px 0 0; font-size: 0.9rem; font-weight: 700; color: var(--muetze-dunkel); }
.import-vorschau > .hinweis { margin: 10px 0 0; color: var(--auf-karton); }
.import-aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.import-aktionen .admin-formular { display: block; }
@media (max-width: 480px) {
  .import-tabelle th[scope=row] { white-space: normal; }
}

/* Admin: Bilderverwaltung */
.bilder-verwaltung { max-width: 760px; margin: 32px 0 24px; }
.bilder-formular { display: grid; gap: 12px; justify-items: start; margin-bottom: 16px; }
.bilder-ablage { display: block; width: 100%; box-sizing: border-box; padding: 24px 16px; text-align: center; font-weight: 700; color: var(--tinte); background: var(--papier); border: 3px dashed var(--karton-dunkel); border-radius: 12px; cursor: pointer; }
.bilder-ablage.ueber { border-color: var(--accent); background: var(--haftzettel); }
.bilder-ablage input { display: block; margin: 10px auto 0; max-width: 100%; }
.bilder-formular .hinweis { margin: 0; font-size: 0.85rem; }
.bilder-formular button.knopf, .bilder-knoepfe button.knopf { border: 0; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px; }
.bilder-fortschritt { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.bilder-fortschritt li { padding: 8px 12px; border-radius: 8px; background: var(--papier); color: var(--tinte); font-size: 0.9rem; }
.bilder-fortschritt li.fehler { background: #f6c9bf; font-weight: 700; }
.bilder-fortschritt progress { width: 100%; }
.bilder-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.bilder-karte { position: relative; display: grid; gap: 8px; padding: 8px; background: var(--papier); color: var(--tinte); border-radius: 12px; box-shadow: var(--schatten); }
.bilder-karte img { display: block; width: 100%; height: auto; border-radius: 8px; }
.bilder-karte:focus-visible, .bilder-knoepfe button:focus-visible, .bilder-ablage:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.bilder-karte.zieht { opacity: 0.4; }
.bilder-karte.ziel { outline: 3px dashed var(--accent); outline-offset: 2px; }
.bilder-marke { display: none; position: absolute; top: 14px; left: 14px; padding: 3px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; background: var(--haftzettel); color: var(--tinte); }
.bilder-karte.ist-titel .bilder-marke { display: inline-block; }
.bilder-karte.ist-titel .als-titel { display: none; }
.bilder-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; }
.bilder-knoepfe[hidden] { display: none; }
.bilder-karte[draggable=true] { cursor: grab; }
.bilder-fortschritt li.warnung { background: var(--haftzettel); font-weight: 700; }

/* Admin: Schritte */
.schrittleiste { margin: 0 0 18px; }
.schritt-zaehler { margin: 0 0 8px; font-weight: 700; color: var(--auf-karton-weich); }
.schrittleiste ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.schrittleiste button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 8px; border: 0; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 0.92rem; cursor: pointer; background: var(--papier); color: var(--tinte); box-shadow: 0 3px 0 rgba(60, 35, 10, 0.2);
}
.schrittleiste button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.schritt-nr { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--papier-2); color: var(--tinte); box-shadow: inset 0 0 0 2px var(--karton-dunkel); font-size: 0.85rem; }
.schrittleiste .davor .schritt-nr { background: #bfe3c8; }
.schrittleiste .aktuell button { background: var(--tinte); color: var(--papier); }
.schrittleiste .aktuell .schritt-nr { background: var(--accent); color: #fff; box-shadow: none; }
.schrittleiste .davor .schritt-nr { box-shadow: none; }
.schritt-titel { margin: 0 0 14px; font-size: 1.6rem; color: var(--auf-karton); }
.schritt-spalten { display: block; }
.schritt-inhalt { min-width: 0; max-width: 760px; }
.schritt-inhalt .bilder-verwaltung { margin-top: 0; }
.schritt-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 24px; max-width: 760px; }
.schritt-knoepfe button.knopf { border: 0; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px; }
.schritt-knoepfe .knopf { justify-content: center; }
.schritt-knoepfe .knopf:last-child:not(:first-child) { margin-left: auto; }
.admin-formular .feld-gruppe legend { margin-bottom: 8px; }
.karten-vorschau.live { display: none; }
.karten-vorschau .steckkarte { position: static; transform: none; margin-inline: auto; }
.karten-vorschau-inhalt { display: grid; justify-items: center; }
.pruefen .karten-vorschau { display: grid; justify-items: center; margin: 8px 0 18px; padding: 24px 0; background: var(--papier-2); border-radius: 12px; box-shadow: var(--schatten); }
.veroeffentlichen { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0 8px; }
.veroeffentlichen form { margin: 0; }
.knopf.gross { font-size: 1.25rem; padding: 16px 28px; min-height: 56px; border: 0; cursor: pointer; font-family: inherit; justify-content: center; }
.knopf.gross.hohl { border: 0; }
@media (min-width: 900px) {
  .schritt-spalten.mit-vorschau { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
  .karten-vorschau.live { display: block; position: sticky; top: 16px; }
}

/* Admin: Formular als Papierblatt auf dem Karton */
.schritt-inhalt > .admin-formular { padding: 22px 24px 8px; border-radius: 14px; background: var(--papier); color: var(--tinte); box-shadow: var(--schatten); }
.schritt-inhalt > .admin-formular:empty, .schritt-inhalt > .admin-formular:not(:has(*:not(input[type=hidden]))) { display: none; }
.schritt-inhalt > .admin-formular fieldset { padding: 0; background: transparent; box-shadow: none; }
.schritt-inhalt > .admin-formular fieldset + fieldset { border-top: 2px dashed var(--karton-dunkel); padding-top: 16px; border-radius: 0; }
.schritt-inhalt > .admin-formular + * { margin-top: 20px; }
.schritt-knoepfe .knopf.hohl, .admin-kopf .knopf.hohl, .knopf.gross.hohl { color: var(--auf-karton); box-shadow: inset 0 0 0 2px var(--auf-karton); }
.kopf-nav { align-items: center; color: var(--auf-karton-weich); font-weight: 600; }
.kopf-nav form { margin: 0; }
.kopf-nav button {
  font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer; min-height: 40px; padding: 6px 16px; border: 0; border-radius: 999px;
  background: transparent; color: var(--auf-karton); box-shadow: inset 0 0 0 2px var(--auf-karton-weich);
}
.kopf-nav button:hover { box-shadow: inset 0 0 0 2px var(--auf-karton); }
.kopf-nav button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.schritt-knoepfe .knopf:not(.hohl), .veroeffentlichen .knopf:not(.hohl), .admin-kopf .knopf:not(.hohl) { background: var(--muetze); color: #fff; }
.pruefen > p a, .pruefen > a { color: var(--auf-karton); font-weight: 700; }
@media (max-width: 480px) { .schritt-inhalt > .admin-formular { padding: 16px 14px 4px; } }

/* Admin: Liste */
.spiele-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.spiele-eintrag { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 10px 14px; background: var(--papier); color: var(--tinte); border-radius: 12px; box-shadow: var(--schatten); }
.spiele-bild { height: 64px; width: 96px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: var(--karton-dunkel); font-weight: 800; color: var(--tinte-weich); }
.spiele-bild img { height: 64px; width: 96px; object-fit: cover; display: block; }
.spiele-name { margin: 0; font-family: var(--schrift-titel); font-weight: 800; font-size: 1.15rem; overflow-wrap: anywhere; }
.spiele-meta { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 0.9rem; color: var(--tinte-weich); }
.spiele-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.spiele-knoepfe .knopf { min-height: 44px; justify-content: center; padding-block: 8px; }
@media (max-width: 640px) {
  .spiele-eintrag { grid-template-columns: 96px minmax(0, 1fr); }
  .spiele-knoepfe { grid-column: 1 / -1; }
  .spiele-knoepfe .knopf { flex: 1; }
}
@media (max-width: 480px) {
  .schrittleiste .schritt-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .schrittleiste .aktuell .schritt-name { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
  .schrittleiste li { position: relative; }
  .schrittleiste button { padding-right: 8px; }
  .schrittleiste .aktuell button { padding-right: 14px; }
  .schritt-knoepfe .knopf { flex: 1; }
}

/* Admin: BGG Finder */
.bgg-hinzufuegen, .bgg-filter, .bgg-karte, .bgg-fortschritt, .bgg-leer { background: var(--papier); color: var(--tinte); border-radius: 12px; box-shadow: var(--schatten); color-scheme: light; }
.bgg-hinzufuegen { margin: 0 0 18px; }
.bgg-hinzufuegen summary { cursor: pointer; padding: 14px 18px; min-height: 44px; font-family: var(--schrift-titel); font-weight: 800; font-size: 1.2rem; }
.bgg-hinzufuegen summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
.bgg-wege { display: grid; gap: 0 28px; padding: 0 18px 8px; }
.bgg-weg { padding: 14px 0; border-top: 2px dashed var(--karton-dunkel); min-width: 0; }
.bgg-weg h2 { font-size: 1.05rem; margin: 0 0 8px; }
.bgg-hinweis { font-size: 0.9rem; color: var(--tinte-weich); margin: 0 0 10px; }
.bgg-hinweis a { color: var(--tinte); font-weight: 700; }
.bgg-zeile { display: flex; flex-wrap: wrap; gap: 8px; }
.bgg-zeile input { flex: 1 1 200px; min-width: 0; }
.bgg-rangliste { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; align-items: center; }
.bgg-rangliste label { font-weight: 700; font-size: 0.92rem; }
.bgg-rangliste button { grid-column: 1 / -1; justify-self: start; }
.bgg-rangliste input[type=file] { font: inherit; font-size: 0.9rem; min-width: 0; max-width: 100%; }
.bgg-finder input[type=search], .bgg-wege input[type=search], .bgg-wege input[type=text], .bgg-finder select, .bgg-wege select {
  font: inherit; color: var(--tinte); background: #fff; border: 2px solid var(--karton-dunkel); border-radius: 8px; padding: 8px 12px; min-height: 44px; max-width: 100%;
}
.bgg-hinzufuegen button.knopf, .bgg-finder button.knopf, .bgg-stand button.knopf { border: 0; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px; justify-content: center; }
.bgg-finder button.knopf.hohl, .bgg-hinzufuegen button.knopf.hohl { background: transparent; }
.knopf.klein { min-height: 40px; padding: 6px 14px; font-size: 0.9rem; }
.bgg-finder :is(input, select, button, a):focus-visible, .bgg-wege :is(input, select, button, a):focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.bgg-treffer { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.bgg-treffer li { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--karton-dunkel); }
.bgg-treffer li:last-child { border-bottom: 0; }
.bgg-treffer li.meldung { border-bottom: 0; padding: 10px 14px; box-shadow: none; }
.bgg-treffer small { color: var(--tinte-weich); }
.bgg-stand:empty { display: none; }
.bgg-stand { margin: 0 0 18px; }
.bgg-stand .meldung { margin: 0; }
.bgg-stand .meldung a { color: var(--tinte); }
.bgg-fortschritt { padding: 12px 16px; font-weight: 600; display: grid; gap: 6px; }
.bgg-fortschritt progress { width: 100%; height: 12px; accent-color: var(--accent); }
.bgg-filter-knopf { display: none; }
.bgg-finder .bgg-filter-knopf { color: var(--auf-karton); box-shadow: inset 0 0 0 2px var(--auf-karton); }
.bgg-filter { padding: 16px 18px; display: grid; gap: 14px; align-content: start; }
.bgg-feld { display: grid; gap: 6px; }
.bgg-feld > label:not(.bgg-haken), .bgg-feldname { font-weight: 700; font-size: 0.95rem; }
.bgg-feld input[type=range] { width: 100%; min-height: 32px; accent-color: var(--accent); margin: 0; }
.bgg-wahl { display: flex; flex-wrap: wrap; gap: 6px; }
.bgg-wahl button {
  border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 0.9rem; min-height: 40px; min-width: 40px; padding: 6px 12px; border-radius: 999px;
  background: var(--papier-2); color: var(--tinte); box-shadow: inset 0 0 0 2px var(--karton-dunkel);
}
.bgg-wahl button[aria-pressed=true] { background: var(--tinte); color: var(--papier); box-shadow: none; }
.bgg-haken { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; min-height: 36px; cursor: pointer; }
.bgg-haken input { width: 20px; height: 20px; flex: none; accent-color: var(--accent); margin: 0; }
.bgg-filter select { width: 100%; }
.bgg-ergebnis { min-width: 0; }
.bgg-anzahl { margin: 0 0 10px; font-weight: 700; color: var(--auf-karton); }
.bgg-karten { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.bgg-karte { display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.bgg-karte[hidden] { display: none; }
.bgg-bild { height: 150px; display: grid; place-items: center; background: var(--papier-2); font-family: var(--schrift-titel); font-size: 2rem; font-weight: 800; color: var(--tinte-weich); }
.bgg-bild img { max-height: 150px; width: 100%; height: 150px; object-fit: contain; }
.bgg-text { padding: 12px 14px 4px; flex: 1; }
.bgg-name { font-size: 1.15rem; overflow-wrap: anywhere; }
.bgg-name small { font-family: var(--schrift-text); font-weight: 600; font-size: 0.85rem; color: var(--tinte-weich); }
.bgg-rang { margin: 6px 0 0; display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: var(--haftzettel); color: var(--tinte); }
.bgg-fakten { margin: 10px 0 0; display: grid; gap: 2px; font-size: 0.92rem; }
.bgg-fakten div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 8px; }
.bgg-fakten dt { color: var(--tinte-weich); font-weight: 600; }
.bgg-fakten dd { margin: 0; font-weight: 700; }
.bgg-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px 14px; }
.bgg-knoepfe form { margin: 0; display: flex; flex: 1 1 100%; }
.bgg-knoepfe .knopf, .bgg-finder .bgg-knoepfe button.knopf { justify-content: center; min-height: 44px; padding: 8px 14px; font-size: 0.92rem; flex: 1 1 auto; }
.bgg-knoepfe form .knopf, .bgg-knoepfe .bgg-vorgestellt { flex: 1 1 100%; }
.bgg-vorgestellt { background: #bfe3c8; color: var(--tinte); }
.bgg-leer { padding: 18px 20px; display: grid; gap: 12px; justify-items: start; font-weight: 600; }
.bgg-leer[hidden] { display: none; }
.bgg-fuss { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.9rem; color: var(--auf-karton-weich); }
.bgg-fuss a { color: var(--auf-karton); font-weight: 700; }
@media (min-width: 640px) { .bgg-wege { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .bgg-finder { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
  .bgg-filter { position: sticky; top: 16px; }
}
@media (max-width: 899px) {
  .bgg-filter-knopf { display: inline-flex; margin: 0 0 12px; }
  .bgg-filter { display: none; margin: 0 0 16px; }
  .bgg-filter.offen { display: grid; }
}
