/* Die Mod-Seite smp.winku.de/mod (web/seiten/modseite.js, 27.09.2026 — die ganze Mod, Bereich Start).
   Baut auf smp.css auf (Himmel, Schichten, Knöpfe, Inventar, Truhen, Befehle, Schaltung). Pixelschrift nur in Vielfachen
   von 10 px, Item-Bilder (16 px) nur in ganzen Vielfachen. Kein style= im HTML (CSP): alles über Klassen.
   Fehlermuster (Memory winku-wiederkehrende-ui-fehler): Kacheln im Raster Kopf oben (27), keine Fläche mit Alpha über
   Inhalt (32), nichts breiter als das Telefon (18), Tooltip über js/seite.js (fixed) statt Kästen über Nachbarn (11). */

/* Farbe je Säule — --mf ist die Leuchtfarbe, --mf-tief der Grund dahinter */
.mf-f-rot { --mf: #ff5555; --mf-tief: #3a0c0c; }
.mf-f-lila { --mf: #c98bff; --mf-tief: #26103d; }
.mf-f-aqua { --mf: #55ffff; --mf-tief: #0a2e33; }
.mf-f-gold { --mf: #ffc53d; --mf-tief: #3a2806; }
.mf-f-gruen { --mf: #6dff6d; --mf-tief: #0d2e10; }
.mf-f-orange { --mf: #ff9f43; --mf-tief: #3a1d06; }
.mf-f-pink { --mf: #ff79d2; --mf-tief: #3a0c2c; }

/* ── Held ──────────────────────────────────────────────────────────────────────────────────────────────────────── */
.mf-held { grid-template-rows: 1fr auto auto; }
.mf-held-zeile { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 8px 20px; }
.mf-held-text { display: grid; gap: 16px; justify-items: start; padding: 22px 26px; background: rgb(6 10 26 / max(.8, calc((1 - var(--glanz)) * .8))); box-shadow: 0 0 0 2px rgb(0 0 0 / .5); }
.mf-held-text .brotkrumen { margin: 0; }
.mf-ueber { margin: 0; font: 400 20px/24px var(--mc-schrift); color: #d9b8ff; text-shadow: 2px 2px 0 #2a1044; letter-spacing: 1px; }
.mf-held h1 { margin: 0; font: 400 60px/66px var(--mc-schrift); color: #fff; text-shadow: 6px 6px 0 var(--mc-schatten), 0 0 40px rgb(138 63 214 / .35); }
.mf-held h1 .farbe { display: block; color: var(--mc-gelb); text-shadow: 6px 6px 0 #3f3f15, 0 0 40px rgb(255 255 85 / .25); }
.mf-held .unter { margin: 0; max-inline-size: 40rem; color: #dfe4f5; font-size: 1.1rem; line-height: 1.65; text-shadow: 0 2px 10px #000; }
.mf-held .knopfreihe .mc-knopf { min-block-size: 52px; padding-inline: 16px; }
.mf-pillen { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mf-pillen li { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 6px; background: rgb(0 0 0 / .6); border: 2px solid #000;
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / .07); font: 400 20px/24px var(--mc-schrift); color: #fff; text-shadow: 2px 2px 0 var(--mc-schatten); }
.mf-pillen img { inline-size: 16px; block-size: 16px; }

/* Das Zeichen mit den Bereichen im Kreis darum — der Kreis dreht sich langsam, die Symbole bleiben aufrecht */
.mf-held-bild { display: grid; place-items: center; min-block-size: 400px; }
.mf-orbit { position: relative; inline-size: 400px; block-size: 400px; display: grid; place-items: center; --r: 168px; }
.mf-orbit::before { content: ""; position: absolute; inset: 20px; border: 2px dashed rgb(255 255 255 / .16); border-radius: 50%; }
.mf-orbit::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(closest-side, rgb(138 63 214 / .55), transparent); filter: blur(8px); z-index: -1; }
.mf-logo { inline-size: 192px; block-size: 192px; image-rendering: auto; filter: drop-shadow(0 18px 0 rgb(0 0 0 / .25)) drop-shadow(0 0 50px rgb(138 63 214 / .6)); }
.mf-ring { position: absolute; inset: 0; }
.mf-orbit-platz { position: absolute; inset: 50% auto auto 50%; inline-size: 64px; block-size: 64px; margin: -32px 0 0 -32px; display: grid; place-items: center;
  background: #8b8b8b; border: 2px solid #000; box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #fff; }
.mf-orbit-platz img { inline-size: 48px; block-size: 48px; image-rendering: pixelated; }
/* Sieben Plätze auf dem Kreis (ein Platz je Bereich) — translate schiebt hinaus, der Ring dreht, das Bild dreht zurück */
.mf-orbit-platz:nth-child(1) { translate: 0 calc(var(--r) * -1); }
.mf-orbit-platz:nth-child(2) { translate: calc(var(--r) * .7818) calc(var(--r) * -.6235); }
.mf-orbit-platz:nth-child(3) { translate: calc(var(--r) * .9749) calc(var(--r) * .2225); }
.mf-orbit-platz:nth-child(4) { translate: calc(var(--r) * .4339) calc(var(--r) * .9010); }
.mf-orbit-platz:nth-child(5) { translate: calc(var(--r) * -.4339) calc(var(--r) * .9010); }
.mf-orbit-platz:nth-child(6) { translate: calc(var(--r) * -.9749) calc(var(--r) * .2225); }
.mf-orbit-platz:nth-child(7) { translate: calc(var(--r) * -.7818) calc(var(--r) * -.6235); }
.mf-orbit-platz:nth-child(n+8) { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .mf-ring { animation: mf-drehen 60s linear infinite; }
  .mf-orbit-platz { animation: mf-drehen 60s linear infinite reverse; }
  .mf-logo { animation: mf-schweben 4s ease-in-out infinite alternate; }
}
@keyframes mf-drehen { to { rotate: 360deg; } }
@keyframes mf-schweben { from { translate: 0 -6px; } to { translate: 0 6px; } }

/* Live-Zahlen als Anzeigetafel am Fuß des Himmels */
.mf-zahlen-streifen { padding-block: 24px; image-rendering: pixelated; background: linear-gradient(rgb(20 12 6 / .8), rgb(20 12 6 / .86)), url("img/tex/erde.png") 0 0 / 64px 64px; }
.mf-zahlen { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; position: relative; z-index: 1; }
.mf-zahlen li { display: grid; gap: 4px; justify-items: center; padding: 12px 10px; text-align: center; background: #0b0f19; border: 2px solid #000;
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / .08), 0 12px 30px -12px #000; }
.mf-zahlen b { font: 400 40px/44px var(--mc-schrift); color: var(--mc-gelb); text-shadow: 4px 4px 0 #3f3f15; }
.mf-zahlen span { font: 400 20px/24px var(--mc-schrift); color: #cfd3dc; text-shadow: 2px 2px 0 #000; }
.mf-zahlen li[data-live] b { color: var(--mc-gruen); text-shadow: 4px 4px 0 #0f3f0f; }
.mf-zahlen li[data-live] span::before { content: ""; display: inline-block; inline-size: 10px; block-size: 10px; margin-inline-end: 8px; background: var(--mc-gruen); box-shadow: 0 0 10px var(--mc-gruen); vertical-align: 2px; }
@media (prefers-reduced-motion: no-preference) { .mf-zahlen li[data-live] span::before { animation: mf-blinken 1.2s steps(2) infinite; } }
@keyframes mf-blinken { 50% { opacity: .25; } }

@media (max-width: 900px) {
  .mf-held-zeile { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .mf-held-bild { min-block-size: 0; }
  .mf-orbit { inline-size: 240px; block-size: 240px; --r: 98px; }
  .mf-logo { inline-size: 128px; block-size: 128px; }
  .mf-orbit-platz { inline-size: 44px; block-size: 44px; margin: -22px 0 0 -22px; }
  .mf-orbit-platz img { inline-size: 32px; block-size: 32px; }
  .mf-held h1 { font-size: 40px; line-height: 48px; text-shadow: 4px 4px 0 var(--mc-schatten); }
  .mf-held h1 .farbe { text-shadow: 4px 4px 0 #3f3f15; }
}
@media (max-width: 460px) {
  .mf-held-text { padding: 16px; }
  .mf-held h1 { font-size: 30px; line-height: 36px; text-shadow: 3px 3px 0 var(--mc-schatten); }
  .mf-held .knopfreihe, .mf-held .knopfreihe .mc-knopf { inline-size: 100%; }
  .mf-zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mf-zahlen b { font-size: 30px; line-height: 36px; }
  .mf-zahlen span { font-size: 10px; line-height: 12px; }
}

/* ── Laufband ──────────────────────────────────────────────────────────────────────────────────────────────────── */
.mf-band { overflow: hidden; background: #1b0d16; border-block: 2px solid #000; box-shadow: inset 0 2px 0 rgb(138 63 214 / .5), inset 0 -2px 0 rgb(138 63 214 / .5); }
.mf-band-spur { display: flex; inline-size: max-content; }
.mf-band-reihe { list-style: none; margin: 0; padding: 10px 0; display: flex; flex: none; }
.mf-band-reihe li { display: inline-flex; align-items: center; gap: 10px; padding-inline: 18px; white-space: nowrap; font: 400 20px/24px var(--mc-schrift); color: #e8dcff; text-shadow: 2px 2px 0 #000; }
.mf-band-reihe li::after { content: "◆"; margin-inline-start: 18px; color: #8a3fd6; }
.mf-band-reihe img { inline-size: 32px; block-size: 32px; }
@media (prefers-reduced-motion: no-preference) { .mf-band-spur { animation: mf-laufen 120s linear infinite; } .mf-band:hover .mf-band-spur { animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) { .mf-band-reihe[aria-hidden] { display: none; } .mf-band { overflow-x: auto; } }
@keyframes mf-laufen { to { translate: -50% 0; } }

/* ── Säulen ────────────────────────────────────────────────────────────────────────────────────────────────────── */
.mf-saeulen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.mf-saeulen > li { display: flex; }
.mf-saeule { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; inline-size: 100%; padding: 18px; color: #fff; text-decoration: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--mf-tief) 92%, #000), #0b0f19); border: 2px solid #000;
  box-shadow: inset 0 3px 0 var(--mf), inset 0 0 0 2px rgb(255 255 255 / .06), 0 16px 30px -18px #000;
  transition: translate .18s, box-shadow .18s; }
.mf-saeule:is(:hover, :focus-visible) { translate: 0 -4px; outline: none; box-shadow: inset 0 3px 0 var(--mf), inset 0 0 0 2px var(--mf), 0 22px 40px -16px color-mix(in srgb, var(--mf) 45%, #000); }
.mf-saeule-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mf-saeule-kopf img { inline-size: 48px; block-size: 48px; image-rendering: pixelated; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--mf) 55%, transparent)); }
.mf-saeule b { font: 400 30px/36px var(--mc-schrift); font-weight: 400; color: var(--mf); text-shadow: 3px 3px 0 #000; }
.mf-saeule-text { color: #cfd3dc; line-height: 1.55; font-size: .95rem; }
.mf-saeule-fuss { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-block-start: 10px; border-block-start: 2px solid rgb(255 255 255 / .08); }
.mf-saeule-items { display: flex; gap: 4px; }
.mf-saeule-items img { inline-size: 16px; block-size: 16px; }
.mf-saeule-zahl { font: 400 20px/24px var(--mc-schrift); color: #fff; text-shadow: 2px 2px 0 #000; }
.mf-admin { margin-block-start: 24px; }
.mf-admin a { white-space: nowrap; }

/* ── Bereiche mit Kacheln ──────────────────────────────────────────────────────────────────────────────────────── */
.mf-bereich::after { content: ""; position: absolute; inset: 0 0 auto; block-size: 4px; background: var(--mf); box-shadow: 0 0 24px 2px color-mix(in srgb, var(--mf) 50%, transparent); z-index: 0; }
.mf-bereich-kopf { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; margin-block-end: 32px; }
.mf-bereich-bild { display: grid; place-items: center; inline-size: 96px; block-size: 96px; background: #8b8b8b; border: 2px solid #000;
  box-shadow: inset 4px 4px 0 #373737, inset -4px -4px 0 #fff, 0 0 40px -4px color-mix(in srgb, var(--mf) 60%, transparent); }
.mf-bereich-bild img { inline-size: 64px; block-size: 64px; image-rendering: pixelated; }
.mf-bereich-kopf .ueber { font: 400 20px/24px var(--mc-schrift); color: var(--mf); text-shadow: 2px 2px 0 #000; }
.mf-bereich-kopf h2 { margin: 4px 0 6px; font: 400 40px/48px var(--mc-schrift); color: #fff; text-shadow: 4px 4px 0 var(--mc-schatten); }
.mf-bereich-kopf p { margin: 0; color: #cfd3dc; font-size: 1.02rem; line-height: 1.6; max-inline-size: 44rem; }
@media (max-width: 600px) {
  .mf-bereich-kopf { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .mf-bereich-bild { inline-size: 72px; block-size: 72px; }
  .mf-bereich-bild img { inline-size: 48px; block-size: 48px; }
  .mf-bereich-kopf h2 { font-size: 30px; line-height: 36px; }
}

.mf-kacheln { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.mf-kachel { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px; cursor: help;
  background: linear-gradient(135deg, color-mix(in srgb, var(--mf-tief) 60%, #10131c), #10131c 55%); border: 2px solid #000; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .06);
  transition: background-color .15s, box-shadow .15s, translate .15s; }
.mf-kachel:is(:hover, :focus-visible) { outline: none; background: color-mix(in srgb, var(--mf-tief) 70%, #10131c); box-shadow: inset 0 0 0 2px var(--mf), 0 10px 26px -14px color-mix(in srgb, var(--mf) 70%, #000); }
.mf-kachel .mc-slot { flex: none; }
.mf-kachel:is(:hover, :focus-visible) .mc-slot img { scale: 1.1; }
.mf-kachel .mc-slot img { transition: scale .15s; }
.mf-kachel-text { display: grid; gap: 6px; min-inline-size: 0; }
.mf-kachel-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.mf-kachel b { font: 400 20px/24px var(--mc-schrift); color: #fff; text-shadow: 2px 2px 0 #000; overflow-wrap: anywhere; }
.mf-kurz { color: #c9cedb; font-size: .92rem; line-height: 1.5; }
.mf-mehr { color: #aab0c0; font-size: .88rem; line-height: 1.5; }
.mf-mehr em { font-style: normal; color: var(--mf); }
/* Mit Maus: die Einzelheiten stehen im Tooltip (js/seite.js, data-tip) — für Vorleser bleiben sie im Text */
@media (hover: hover) and (pointer: fine) {
  .mf-mehr { position: absolute !important; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (hover: none), (pointer: coarse) { .mf-kachel { cursor: default; } }

/* Marken an Kacheln: NEU, Bald, Plus, Taste */
.mf-marken { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mf-marke { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; font: 400 10px/12px var(--mc-schrift); letter-spacing: 1px; color: #000; background: var(--mc-gelb); border: 2px solid #000; }
.mf-marke.neu { background: var(--mc-gelb); box-shadow: 0 0 12px rgb(255 255 85 / .6); }
.mf-marke.bald { background: #a8a8a8; }
.mf-marke.plus { color: #fff; background: #55238f; }
.mf-marke.plus img { inline-size: 16px; block-size: 16px; }
.mf-marke.plusbeta { color: #c9fbf6; background: #13504d; }   /* 27.09.2026 Plus-Beta (lib/modi.js) */
@media (prefers-reduced-motion: no-preference) { .mf-marke.neu { animation: mf-leuchten 1.4s ease-in-out infinite alternate; } }
@keyframes mf-leuchten { from { box-shadow: 0 0 4px rgb(255 255 85 / .3); } to { box-shadow: 0 0 16px rgb(255 255 85 / .9); } }
.mf-taste { display: inline-grid; place-items: center; min-inline-size: 24px; block-size: 24px; padding: 0 6px; font: 400 20px/1 var(--mc-schrift); color: #fff;
  background: #6f6f6f; border: 2px solid #000; box-shadow: inset 2px 2px 0 #aaa, inset -2px -4px 0 #3c3c3c; text-shadow: 2px 2px 0 #3c3c3c; }
.mf-taste.gross { min-inline-size: 56px; block-size: 56px; font-size: 30px; box-shadow: inset 4px 4px 0 #aaa, inset -4px -6px 0 #3c3c3c; }

/* ── Einrichten: Tastatur ─────────────────────────────────────────────────────────────────────────────────────── */
.mf-tastatur { display: grid; gap: 16px; justify-items: center; text-align: center; }
.mf-tastatur-titel { margin: 0; font: 400 30px/36px var(--mc-schrift); color: #fff; text-shadow: 3px 3px 0 var(--mc-schatten); }
.mf-tastatur ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.mf-tastatur li { display: grid; justify-items: center; gap: 8px; }
.mf-tastatur li span { font: 400 20px/24px var(--mc-schrift); color: #ffe6a0; text-shadow: 2px 2px 0 #000; }
.mf-tastatur .leise { margin: 0; max-inline-size: 44rem; color: #e8dcc8; line-height: 1.6; }

/* ── Holen ─────────────────────────────────────────────────────────────────────────────────────────────────────── */
.mf-holen-schicht .discord-streifen { margin-block-start: 24px; }
/* 07.10.2026 Direkt-Download: was ausgeliefert wird (Loader · Minecraft · Version · Größe) — im Himmel unter dem Knopf */
.mf-dl-info { margin: 0; font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; }
.mf-held .mf-dl-info { color: #ffe6a0; text-shadow: 0 2px 6px #000; }
.mf-dl-wahl-link { margin: 2px 0 0; font-size: .95rem; line-height: 1.5; }
.mf-dl-wahl-link a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-shadow: 0 2px 6px #000; }
.mf-dl-wahl-link a:hover, .mf-dl-wahl-link a:focus-visible { color: var(--knopf-hover); }

/* 16.10.2026 HOLEN MIT AUSWAHL (Faddi: „das sieht voll schlecht aus … dass man die Auswahl da besser hat“; seiten/modseite.js auswahl()):
   Kopf → 1. Minecraft-Version (Knöpfe je Gruppe) → 2. Loader → EINE Karte mit genau der Datei → Anleitung + Nebenknöpfe → weitersagen.
   Ohne Skript: Optionsknöpfe + Geschwister-Wähler. .mf-mc ist display: contents, damit Knopf (Reihenfolge 0) und Karten (order 9)
   im selben Flex-Raster liegen: die Knöpfe fließen oben, die Karten der gewählten Version stehen darunter über die volle Breite. */
.mf-holen { display: grid; gap: 20px; padding: 20px 22px 22px; box-shadow: 0 0 0 4px #000, 0 30px 80px -20px rgb(138 63 214 / .6); }
.mf-holen-kopf { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.mf-holen-kopf .marke-logo { inline-size: 96px; block-size: 96px; }
.mf-holen-kopf h3 { margin: 0; font: 400 30px/36px var(--mc-schrift); color: #2b2b2b; }
.mf-holen-unter { margin: 6px 0 0; color: #2b2b2b; line-height: 1.5; max-inline-size: 46rem; }

.mf-wahl { position: relative; padding: 16px; background: #b4b4b4; box-shadow: inset 2px 2px 0 var(--gui-dunkel), inset -2px -2px 0 var(--gui-hell); }
.mf-wahl-radio { position: absolute; inset: 0 auto auto 0; inline-size: 1px; block-size: 1px; margin: 0; opacity: 0; pointer-events: none; }
.mf-wahl-raster { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mf-mc { display: contents; }
.mf-wahl-titel { flex: 1 0 100%; display: flex; align-items: center; gap: 10px; margin: 0; font: 400 20px/24px var(--mc-schrift); color: #2b2b2b; }
.mf-wahl-nr { display: inline-grid; place-items: center; inline-size: 28px; block-size: 28px; flex: none; padding-block-end: 2px; box-sizing: border-box;
  background: var(--slot); color: #fff; text-shadow: 2px 2px 0 #000; box-shadow: inset 2px 2px 0 var(--slot-dunkel), inset -2px -2px 0 var(--gui-hell); }
.mf-wahl-gruppe { flex: 1 0 100%; margin: 6px 0 -2px; font: 400 16px/20px var(--mc-schrift); color: #4a4a4a; }
/* Knöpfe der Auswahl: Hausknopf (.mc-knopf, 20-px-Pixelschrift — .klein würde sie auf .86rem verkleinern), am Finger 44 px hoch
   (Muster 47); gewählt = grün wie die Hauptaktion */
.mf-wahl .mf-chip, .mf-wahl .mf-lader { min-block-size: 44px; min-inline-size: 92px; gap: 6px; padding-inline: 12px; }
.mf-wahl .mf-lader { min-inline-size: 140px; }
.mf-chip-marke { color: #ffd76a; font-size: 16px; line-height: 1; }
.mf-wahl-radio:checked + .mf-chip,
#mf-lader-fabric:checked ~ .mf-wahl-raster .mf-lader[for="mf-lader-fabric"],
#mf-lader-neoforge:checked ~ .mf-wahl-raster .mf-lader[for="mf-lader-neoforge"] {
  background: linear-gradient(rgb(46 125 50 / .88), rgb(46 125 50 / .88)), url("img/tex/stein.png") 0 0 / 32px 32px; box-shadow: inset 2px 2px 0 #7bd17f, inset -2px -4px 0 #1b4d1e; color: #fff;
}
.mf-wahl-radio:focus-visible + .mf-chip,
#mf-lader-fabric:focus-visible ~ .mf-wahl-raster .mf-lader[for="mf-lader-fabric"],
#mf-lader-neoforge:focus-visible ~ .mf-wahl-raster .mf-lader[for="mf-lader-neoforge"] { border-color: #fff; color: var(--knopf-hover); outline: 2px dashed #1b1b1b; outline-offset: 2px; }
.mf-wahl-tipp { flex: 1 0 100%; margin: 2px 0 0; color: #333; font-size: .9rem; line-height: 1.5; }
.mf-wahl-lader { order: 5; flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-block-start: 12px; }
.mf-lader-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.mf-wahl-lader .mf-wahl-tipp { flex: 1 1 220px; margin: 0; }

/* Die Karte der gewählten Datei: deckend dunkel (Muster 10/12), Knopf rechts, am Telefon darunter über die volle Breite */
.mf-dl-paar { order: 9; flex: 1 0 100%; display: none; margin-block-start: 14px; }
.mf-wahl > .mf-dl-paar, .mf-wahl-radio:checked + .mf-chip + .mf-dl-paar { display: block; }
#mf-lader-fabric:checked ~ .mf-wahl-raster .mf-dl-karte[data-loader="neoforge"],
#mf-lader-neoforge:checked ~ .mf-wahl-raster .mf-dl-karte[data-loader="fabric"] { display: none; }
.mf-dl-karte + .mf-dl-karte { margin-block-start: 10px; }
.mf-wahl.mit-lader .mf-dl-karte + .mf-dl-karte { margin-block-start: 0; }
.mf-dl-karte { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px;
  background: #16161c; color: #e0e0e0; border: 2px solid #000; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .08), inset 4px 0 0 #5fbf63; }
.mf-dl-text { display: grid; gap: 4px; min-inline-size: 0; }
.mf-dl-text p { margin: 0; }
.mf-dl-titel { font: 400 30px/36px var(--mc-schrift); color: #fff; text-shadow: 3px 3px 0 var(--mc-schatten); }
.mf-dl-fuer { font-weight: 700; line-height: 1.5; }
.mf-dl-beliebt { display: inline-block; margin-inline-start: 6px; padding: 0 8px 2px; font: 400 16px/20px var(--mc-schrift); color: #1b1b1b; background: #ffd76a; border: 2px solid #000; vertical-align: 1px; }
.mf-dl-beliebt::before { content: "★ "; }
.mf-dl-datei { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: .88rem; color: #b8b8b8; }
.mf-dl-datei code { overflow-wrap: anywhere; color: #d8d8d8; }
.mf-dl-pruef { font-size: .85rem; color: #b8b8b8; }
.mf-dl-pruef summary { cursor: pointer; inline-size: max-content; max-inline-size: 100%; color: #cfe3ff; text-decoration: underline; text-underline-offset: 3px; }
.mf-dl-pruef code { display: block; margin-block-start: 6px; padding: 6px 8px; background: #000; color: #9be89e; font-size: .78rem; line-height: 1.45; word-break: break-all; }
.mf-dl-karte > .mc-knopf { min-block-size: 52px; padding-inline: 22px; }
.mf-dl-fehlt { grid-template-columns: minmax(0, 1fr); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .08), inset 4px 0 0 #8b8b8b; }
.mf-dl-fehlt p { margin: 0; line-height: 1.5; }

/* Fuß: Kurzanleitung links, Nebenknöpfe rechts; darunter die Kurzadresse zum Weitersagen */
.mf-holen-fuss { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; }
.mf-holen-fuss .knopfreihe { flex-direction: column; align-items: stretch; min-inline-size: 220px; }
.mf-holen-fuss .knopfreihe:empty { display: none; }
.mf-anleitung { margin: 0; padding-inline-start: 1.4em; color: #3f3f3f; line-height: 1.6; }
.mf-anleitung li + li { margin-block-start: 4px; }
.mf-anleitung a { color: #1d4ed8; text-decoration: underline; }
.mf-weitersagen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; padding-block-start: 14px; border-block-start: 2px solid #9a9a9a; color: #2b2b2b; font-weight: 700; }
.mf-weitersagen code { padding: 2px 8px 4px; font: 400 20px/24px var(--mc-schrift); color: #2b2b2b; background: #fff; border: 2px solid #000; }
@media (max-width: 800px) {
  .mf-holen-fuss { grid-template-columns: minmax(0, 1fr); }
  .mf-holen-fuss .knopfreihe { min-inline-size: 0; }
}
@media (max-width: 640px) {
  .mf-holen { padding: 16px 14px 18px; }
  .mf-wahl { padding: 12px; }
  .mf-holen-kopf .marke-logo { inline-size: 64px; block-size: 64px; }
  .mf-holen-kopf h3 { font-size: 24px; line-height: 30px; }
  /* Telefon: drei Versionen je Reihe in gleicher Breite (nicht gestreckt — sonst ist die letzte Reihe breiter als die anderen) */
  .mf-wahl .mf-chip { min-inline-size: 0; flex: 0 0 calc((100% - 16px) / 3); padding-inline: 4px; }
  .mf-wahl .mf-lader { flex: 1 0 120px; min-inline-size: 0; }
  .mf-lader-knoepfe { flex: 1 0 100%; }
  /* Karte am Telefon: ohne Truhen-Feld (gäbe dem Dateinamen 70 px weniger), Knopf über die volle Breite */
  .mf-dl-karte { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mf-dl-karte > .mc-slot { display: none; }
  .mf-dl-karte > .mc-knopf { inline-size: 100%; }
  .mf-dl-titel { font-size: 24px; line-height: 30px; }
}
/* Sehr schmale Telefone (320 px): „1.21.11 ★“ passt in 20 px nicht in ein Drittel — kleinere Pixelschrift statt Überlauf */
@media (max-width: 360px) { .mf-wahl .mf-chip { font-size: 16px; gap: 3px; } .mf-chip-marke { font-size: 12px; } }
/* Der gelbe Spruch steht rechts neben der kurzen letzten Zeile („Mit einer Mod.“) — nicht auf dem Kreis der Bereiche,
   nicht im Text; am Telefon darunter, mit Platz davor */
.mf-held .logo-mit-spruch { inline-size: 100%; }
.mf-held .logo-mit-spruch .spruch { inset: auto 0 16px auto; font-size: 20px; }
@media (max-width: 560px) { .mf-held .logo-mit-spruch { margin-block-end: 50px; } .mf-held .logo-mit-spruch .spruch { inset: auto 0 -38px auto; } }

/* ── Die Kategorien: Orte (Oberkategorie) mit ihren Vergehen (Unterkategorie), 27.09.2026 ───────────────────────────
   Raster mit Kopf oben (Muster 27), Karten einer Reihe gleich hoch (Muster 22); Farbe des Vergehens = seine Kategorie. */
.mf-orte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; align-items: stretch; }
.mf-ort { display: grid; gap: 12px; align-content: start; padding: 14px 16px 16px; background: #0b0f19; border: 2px solid #000; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .07); min-inline-size: 0; }
.mf-ort-kopf { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.mf-ort-kopf h4 { margin: 2px 0 4px; font: 400 20px/24px var(--mc-schrift); color: #fff; text-shadow: 2px 2px 0 var(--mc-schatten); }
.mf-ort-kopf p { margin: 0; color: #c9cedb; font-size: .88rem; line-height: 1.45; }
.mf-vergehen { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mf-vergehen li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 6px 10px 6px 12px; min-inline-size: 0;
  background: #161b27; border-inline-start: 6px solid var(--wolle, #6b6b6b); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .05); }
.mf-vg-name { flex: 1 1 10rem; min-inline-size: 0; color: #f1f3fa; line-height: 1.35; overflow-wrap: anywhere; }
.mf-vergehen small { color: color-mix(in srgb, var(--wolle, #6b6b6b) 45%, #fff); font: 400 16px/20px var(--mc-schrift); text-shadow: 1px 1px 0 #000; white-space: nowrap; }
.mf-kat-legende { margin-block-start: 20px; padding: 14px 16px; background: #0b0f19; border: 2px solid #000; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .07); }
.mf-kat-legende-titel { margin: 0 0 12px; color: #e6e9f5; line-height: 1.5; }
.mf-kat-legende ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px 18px; }
.mf-kat-legende li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-inline-size: 0; }
.mf-kat-wirkung { display: flex; flex-wrap: wrap; gap: 4px 10px; color: #dfe3ee; font-size: .88rem; }
.mf-kat-wirkung > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.mf-kat-wirkung img { inline-size: 16px; block-size: 16px; image-rendering: pixelated; }
.mf-kat-wirkung .leise { color: #a9afbf; }

/* ── Befehle: zugeklappt und klein unter den Fragen (Faddi 27.09.2026: „nicht so präsent") ───────────────────────── */
.mf-befehle { background: #0b0f19; border: 2px solid #000; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .07); }
.mf-befehle > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 14px; cursor: pointer; list-style: none;
  font: 400 20px/24px var(--mc-schrift); color: #e6e9f5; text-shadow: 2px 2px 0 #000; }
.mf-befehle > summary::-webkit-details-marker { display: none; }
.mf-befehle > summary::after { content: "+"; margin-inline-start: auto; color: var(--mc-gelb); }
.mf-befehle[open] > summary::after { content: "–"; }
.mf-befehle > summary img { inline-size: 16px; block-size: 16px; image-rendering: pixelated; }
.mf-befehle > summary small { font: 400 .85rem/1.3 system-ui, sans-serif; color: #a9afbf; text-shadow: none; }
.mf-befehle > summary:focus-visible { outline: 3px solid var(--mc-aqua, #55ffff); outline-offset: 2px; }
.mf-befehle-liste { list-style: none; margin: 0; padding: 0 14px; display: grid; gap: 0; }
.mf-befehle-liste li { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 6px 0; border-block-start: 1px solid rgb(255 255 255 / .07); }
.mf-befehle-liste code { font: 400 16px/20px var(--mc-schrift); color: var(--mc-aqua); overflow-wrap: anywhere; }
.mf-befehle-liste li > span { color: #c9cedb; font-size: .85rem; line-height: 1.4; }
.mf-befehle-liste .kopieren-mc { min-inline-size: 0; }
.mf-befehle > .leise { margin: 0; padding: 10px 14px 14px; font-size: .85rem; line-height: 1.5; }
@media (max-width: 640px) { .mf-befehle-liste li { grid-template-columns: minmax(0, 1fr) auto; } .mf-befehle-liste li > span { grid-column: 1 / -1; grid-row: 2; } }
