/* ── werk.css — gemeinsame Formensprache der GameZone-Tools (Vorgabe für alle Tools, Micha 26.10.) ──────────────────────
   WAS:   Grundgerüst für jedes Tool: Farbtokens hell/dunkel, Schriften, Kopf, Tafeln, Eingabefelder,
          Chips, Segment-Schalter, Werte-Kacheln mit Kopier-Knopf, Meldungen, Wissen-Bereich, Toast.
   WARUM: Michas Befund am Bestand: „funktioniert, aber umständlich und unschön“ — monoton blau, winzige
          Beschriftungen in großen leeren Kacheln. Hier: große lesbare Schrift, dichte Kacheln, Akzente je Tool.
   WIE ÄNDERN:
     - Liegt EINMAL für alle Tools in gamezone/tools/_werk/ (seit 26.10., vorher Zwilling je Tool). Jedes Tool bindet
       sie per ../_werk/werk.css ein — eine Änderung hier wirkt auf alle Tools, danach alle kurz ansehen.
       Bauplan: ~/neo/entwurf/nachtlauf-2610/tools-2/bauplan.md.
     - Charakter je Tool NUR über die Akzent-Tokens --a1/--a2/--a3 (+ --a1-tinte) in css/tool.css setzen.
     - Thema: folgt prefers-color-scheme; Knopf im Kopf setzt <html data-thema="hell|dunkel"> (js/werk.js).
   Schriften aus dem zentralen Archiv https://fonts.hirsing.eu/ (absolut, auch lokal; vorher vhc/global-media/fonts, Umzug 27.10.2026) (keine externen Abrufe). */

@font-face { font-family: "Plex Sans"; src: url("https://fonts.hirsing.eu/ibm-plex-sans-v23-latin/ibm-plex-sans-v23-latin-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("https://fonts.hirsing.eu/ibm-plex-sans-v23-latin/ibm-plex-sans-v23-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("https://fonts.hirsing.eu/ibm-plex-mono-v20-latin/ibm-plex-mono-v20-latin-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("https://fonts.hirsing.eu/ibm-plex-mono-v20-latin/ibm-plex-mono-v20-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("https://fonts.hirsing.eu/ibm-plex-mono-v20-latin/ibm-plex-mono-v20-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Grotesk"; src: url("https://fonts.hirsing.eu/space-grotesk-v22-latin/space-grotesk-v22-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ── Tokens: dunkel ist Grundzustand, hell per Medienabfrage oder data-thema ── */
:root {
  color-scheme: dark;
  --schrift: "Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --titel: "Grotesk", "Plex Sans", system-ui, sans-serif;
  --grund: #0d0f13; --flaeche: #161a21; --flaeche-2: #1d222b; --flaeche-3: #262c37;
  --linie: rgba(255, 255, 255, 0.08); --linie-stark: rgba(255, 255, 255, 0.16);
  --text: #eef0f4; --leise: #a3abb8; --sehr-leise: #6f7887;
  --fehler: #ff6b6b; --fehler-grund: rgba(255, 107, 107, 0.12); --ok: #4ade80; --hinweis: #fbbf24;
  --schatten: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 50px -20px rgba(0, 0, 0, 0.6);
  --fokus: 0 0 0 3px color-mix(in srgb, var(--a1) 55%, transparent);
  --r-gross: 22px; --r: 14px; --r-klein: 10px;
  --rand: max(16px, env(safe-area-inset-left));
  --dauer: 0.42s; --kurve: cubic-bezier(0.22, 1, 0.36, 1);
  /* Akzente — überschreibt css/tool.css */
  --a1: #7c9cff; --a2: #ff8a5c; --a3: #f472b6; --a1-tinte: #0d0f13;
}
@media (prefers-color-scheme: light) {
  :root:not([data-thema="dunkel"]) {
    color-scheme: light;
    --grund: #f3f1ec; --flaeche: #ffffff; --flaeche-2: #f6f4f0; --flaeche-3: #ebe8e2;
    --linie: rgba(22, 24, 30, 0.09); --linie-stark: rgba(22, 24, 30, 0.18);
    --text: #15171c; --leise: #555d6b; --sehr-leise: #8a919c;
    --fehler: #d63c3c; --fehler-grund: rgba(214, 60, 60, 0.08); --ok: #16a34a; --hinweis: #b7791f;
    --schatten: 0 1px 2px rgba(20, 20, 30, 0.05), 0 18px 40px -24px rgba(20, 20, 40, 0.28);
  }
}
:root[data-thema="hell"] {
  color-scheme: light;
  --grund: #f3f1ec; --flaeche: #ffffff; --flaeche-2: #f6f4f0; --flaeche-3: #ebe8e2;
  --linie: rgba(22, 24, 30, 0.09); --linie-stark: rgba(22, 24, 30, 0.18);
  --text: #15171c; --leise: #555d6b; --sehr-leise: #8a919c;
  --fehler: #d63c3c; --fehler-grund: rgba(214, 60, 60, 0.08); --ok: #16a34a; --hinweis: #b7791f;
  --schatten: 0 1px 2px rgba(20, 20, 30, 0.05), 0 18px 40px -24px rgba(20, 20, 40, 0.28);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--grund); color: var(--text);
  font: 400 17px/1.5 var(--schrift); -webkit-tap-highlight-color: transparent;
  background-image:
    radial-gradient(900px 420px at 8% -8%, color-mix(in srgb, var(--a1) 16%, transparent), transparent 70%),
    radial-gradient(700px 380px at 100% 0%, color-mix(in srgb, var(--a2) 11%, transparent), transparent 70%);
  background-repeat: no-repeat;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--fokus); }
.versteckt { display: none !important; }
.nur-leser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.werk { position: relative; width: min(1240px, 100%); margin: 0 auto; padding: 18px var(--rand) 40px; }

/* ── Kopf: Glyphe, Titel, Unterzeile, Aktionen ── */
.kopf { display: flex; align-items: center; gap: 16px; margin: 4px 0 18px; }
.kopf-glyphe { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--a1), var(--a2)); color: var(--a1-tinte); box-shadow: 0 10px 30px -10px var(--a1); }
.kopf-glyphe svg { width: 30px; height: 30px; }
/* Original-Icon (img/icon.png) im Kopf: groß, in eigener Form, ohne Plakette (Micha 29.10.2026: „winzig, ohne Rahmen besser“).
   Bewusst höhere Spezifität (.kopf > …), damit es die älteren Einzelregeln in tools/<slug>/css/tool.css (.kopf-glyphe
   mit Grund/Schatten, .kopf-glyphe img 40 px usw.) für ALLE Tools an einer Stelle überstimmt — die dürfen beim nächsten
   Anfassen eines Tools raus. Gilt nur, wenn die Glyphe ein img trägt (:has), die SVG-Plakette bleibt unberührt. */
/* Höhe fest am img (--kopf-icon-h), nicht als 100 % — im Grid ohne feste Zeile würde die Prozenthöhe zu „auto“ */
.kopf > .kopf-glyphe:has(img) { --kopf-icon-h: 76px; width: auto; height: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.kopf > .kopf-glyphe img { display: block; width: auto; height: var(--kopf-icon-h); max-width: 130px; max-height: none; object-fit: contain;
  filter: drop-shadow(0 8px 22px color-mix(in srgb, var(--a1) 35%, transparent)); }
.kopf-text { min-width: 0; flex: 1; }
.kopf-marke { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--leise); }
.kopf h1 { margin: 0; font: 700 clamp(28px, 3.6vw, 44px)/1.05 var(--titel); letter-spacing: -0.02em; }
.kopf-unterzeile { margin: 4px 0 0; color: var(--leise); font-size: 16px; }
.kopf-aktionen { display: flex; gap: 6px; flex: none; }
.ikon-knopf { display: inline-flex; align-items: center; gap: 7px; height: 42px; min-width: 42px; padding: 0 12px; justify-content: center;
  border-radius: 12px; border: 1px solid var(--linie); background: var(--flaeche); color: var(--text); font-size: 15px; font-weight: 700;
  transition: background 0.15s, border-color 0.15s, transform 0.15s; }
.ikon-knopf:hover { border-color: var(--linie-stark); background: var(--flaeche-2); }
.ikon-knopf:active { transform: translateY(1px); }
.ikon-knopf svg { width: 19px; height: 19px; flex: none; }
.ikon-knopf .knopf-text { white-space: nowrap; }

/* ── Tafel: die eine Fläche, auf der alles sitzt ── */
.tafel { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-gross); padding: 20px; box-shadow: var(--schatten); min-width: 0; }
.tafel-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.tafel-titel { margin: 0; font: 700 15px/1.2 var(--schrift); letter-spacing: 0.08em; text-transform: uppercase; color: var(--leise); display: flex; align-items: center; gap: 9px; }
.tafel-titel::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--a1); }
.tafel-titel.a2::before { background: var(--a2); }
.tafel-titel.a3::before { background: var(--a3); }

/* ── Eingabefeld: groß, Mono, Einheit rechts ── */
.feld { display: block; min-width: 0; }
.feld-label { display: block; font-size: 14px; font-weight: 700; color: var(--leise); margin: 0 0 6px; letter-spacing: 0.02em; }
.feld-rahmen { position: relative; display: flex; align-items: center; background: var(--flaeche-2); border: 1.5px solid var(--linie-stark);
  border-radius: var(--r); transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.feld-rahmen:focus-within { border-color: var(--a1); box-shadow: var(--fokus); background: var(--flaeche); }
/* Der Rahmen zeigt den Fokus (abgerundet) — das Feld darin nicht noch einmal, sonst schimmern eckige Ecken durch (Micha 26.10.) */
.feld-rahmen input:focus-visible, .feld-rahmen textarea:focus-visible, .feld-rahmen select:focus-visible { box-shadow: none; }
.feld-rahmen.fehlerhaft { border-color: var(--fehler); background: var(--fehler-grund); }
.feld-rahmen input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; outline: none; padding: 12px 14px;
  font: 500 24px/1.2 var(--mono); letter-spacing: -0.01em; }
.feld-rahmen input::placeholder { color: var(--sehr-leise); }
.feld-einheit { padding: 0 14px 0 0; color: var(--sehr-leise); font: 500 16px var(--mono); pointer-events: none; }
.feld-rahmen.gross input { font-size: clamp(22px, 3vw, 30px); padding: 14px 16px; }

/* ── Meldung unter einem Feld: freundlich, präzise, mit markierter Stelle ── */
.meldung { min-height: 0; margin: 8px 0 0; font-size: 15px; line-height: 1.45; color: var(--leise); }
.meldung:empty { display: none; }
.meldung.fehler { color: var(--fehler); }
.meldung.hinweis { color: var(--hinweis); }
.meldung mark { background: var(--fehler-grund); color: var(--fehler); border-radius: 4px; padding: 0 3px; font: 700 0.95em var(--mono); outline: 1px solid color-mix(in srgb, var(--fehler) 40%, transparent); }
.meldung code { font-family: var(--mono); font-size: 0.95em; }
.meldung button { border: 0; background: none; padding: 0; color: var(--a1); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ── Chips (Vorlagen, Schnellwahl) ── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 7px 13px; border-radius: 12px; border: 1px solid var(--linie);
  background: var(--flaeche-2); font-size: 15px; font-weight: 700; transition: background 0.15s, border-color 0.15s, transform 0.15s, color 0.15s; }
.chip:hover { border-color: var(--linie-stark); }
.chip:active { transform: scale(0.97); }
.chip.an { background: color-mix(in srgb, var(--a1) 18%, var(--flaeche)); border-color: var(--a1); }
.chip small { font-weight: 400; color: var(--leise); font-size: 13.5px; }

/* ── Segment-Schalter (eine aus n) ── */
.segment { display: inline-flex; padding: 4px; gap: 4px; border-radius: 13px; background: var(--flaeche-2); border: 1px solid var(--linie); }
.segment button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font-size: 15px; font-weight: 700; color: var(--leise); min-height: 38px; transition: background 0.15s, color 0.15s; }
.segment button[aria-pressed="true"] { background: var(--flaeche); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18), inset 0 0 0 1px var(--linie-stark); }

/* ── Schieber ── */
.schieber { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; margin: 0; }
.schieber::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--a1) var(--anteil, 50%), var(--flaeche-3) var(--anteil, 50%)); }
.schieber::-moz-range-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--a1) var(--anteil, 50%), var(--flaeche-3) var(--anteil, 50%)); }
.schieber::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: var(--flaeche); border: 3px solid var(--a1); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); }
.schieber::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--flaeche); border: 3px solid var(--a1); }
.schieber:focus-visible { box-shadow: none; }
.schieber:focus-visible::-webkit-slider-thumb { box-shadow: var(--fokus); }

/* ── Werte-Kacheln: Label klein-fett, Wert groß-mono, Kopier-Knopf rechts — dicht, ohne Leerfläche ── */
.werte { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.wert { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; align-content: start; gap: 2px 10px; padding: 12px 12px 12px 16px;
  background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: var(--r); min-width: 0; transition: border-color 0.2s; }
.wert-label { grid-column: 1; font-size: 14px; font-weight: 700; color: var(--leise); letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wert-zahl { grid-column: 1; font: 500 22px/1.25 var(--mono); letter-spacing: -0.01em; overflow-wrap: anywhere; min-width: 0; }
.wert-zusatz { grid-column: 1; font-size: 14px; color: var(--leise); }
.wert-zusatz:empty { display: none; }
.wert .kopier { grid-column: 2; grid-row: 1 / span 3; }
/* .wert.haupt { background: color-mix(in srgb, var(--a1) 12%, var(--flaeche)); border-color: color-mix(in srgb, var(--a1) 45%, transparent); } */
/* Hauptwert nur über die Schriftgröße hervorheben — die getönte Fläche wirkte wie ein „ausgewählter Knopf“ (Micha 26.10., QR „Version“) */
.wert.haupt { border-color: var(--linie-stark); }
.wert.haupt .wert-zahl { font-size: 28px; font-weight: 700; }
/* marke = Status-Wert (exakt/≈, privat/öffentlich …): nur der Wert trägt die Statusfarbe, die Kachel bleibt neutral */
.wert.marke .wert-zahl { color: var(--farbe, var(--text)); font-weight: 700; }
.wert.neu { animation: wert-blink 0.7s var(--kurve); }
@keyframes wert-blink { from { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a1) 55%, transparent); } }   /* dezentes Aufleuchten bei geändertem Wert */

/* ── Kopier-Knopf: Symbol → Haken, kurz grün ── */
.kopier { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--linie); background: var(--flaeche); color: var(--leise);
  display: grid; place-items: center; padding: 0; transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.15s; }
.kopier:hover { color: var(--text); border-color: var(--linie-stark); }
.kopier svg { width: 18px; height: 18px; grid-area: 1 / 1; transition: transform 0.25s var(--kurve), opacity 0.2s; }
.kopier .ik-ok { opacity: 0; transform: scale(0.4); }
.kopier.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, transparent); background: color-mix(in srgb, var(--ok) 12%, var(--flaeche)); }
.kopier.ok .ik-kopie { opacity: 0; transform: scale(0.4); }
.kopier.ok .ik-ok { opacity: 1; transform: scale(1); }
.kopier.breit { width: auto; display: inline-flex; gap: 8px; padding: 0 14px; font-size: 15px; font-weight: 700; }
.kopier.breit svg { grid-area: auto; }
.kopier.breit .ik-ok { display: none; }
.kopier.breit.ok .ik-ok { display: block; }
.kopier.breit.ok .ik-kopie { display: none; }

/* ── Wissen: integrierte Erklärung, aufklappbar ── */
.wissen { margin-top: 18px; }
.wissen-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; align-items: start; }
.wissen details { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); padding: 0 16px; }
.wissen summary { list-style: none; cursor: pointer; padding: 14px 0; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.wissen summary::-webkit-details-marker { display: none; }
.wissen summary::after { content: "+"; margin-left: auto; font: 500 22px/1 var(--mono); color: var(--sehr-leise); transition: transform 0.25s var(--kurve); }
.wissen details[open] summary::after { transform: rotate(45deg); }
.wissen details p { margin: 0 0 14px; color: var(--leise); line-height: 1.55; }
.wissen kbd, .tasten kbd { font: 500 13px var(--mono); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--linie-stark); background: var(--flaeche-2); color: var(--text); }
.tasten { font-size: 14px; color: var(--leise); margin: 12px 0 0; line-height: 1.9; }

/* ── Toast (Bestätigung) ── */
.toast { position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--grund); padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.5); transition: opacity 0.2s, transform 0.3s var(--kurve); z-index: 50; }
.toast.zeigen { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: var(--ok); }

.fuss { margin-top: 26px; color: var(--sehr-leise); font-size: 13px; text-align: center; }

/* ── Handy ── */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .werk { padding-top: 12px; }
  .kopf { flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
  .kopf-glyphe { width: 46px; height: 46px; border-radius: 14px; }
  .kopf-glyphe svg { width: 26px; height: 26px; }
  .kopf > .kopf-glyphe:has(img) { --kopf-icon-h: 60px; width: auto; height: auto; }
  .kopf > .kopf-glyphe img { max-width: 104px; }
  .kopf-unterzeile { font-size: 14.5px; line-height: 1.35; }
  .kopf-aktionen { position: absolute; top: max(12px, env(safe-area-inset-top)); right: var(--rand); }
  .kopf { padding-top: 44px; }
  .kopf-marke { position: absolute; top: max(23px, calc(env(safe-area-inset-top) + 11px)); left: var(--rand); font-size: 12px; }
  .ikon-knopf { height: 38px; min-width: 38px; padding: 0 9px; }
  .ikon-knopf .knopf-text { display: none; }
  .ikon-knopf.mit-text .knopf-text { display: inline; font-size: 14px; }
  .tafel { padding: 16px; border-radius: 18px; }
  .werte { grid-template-columns: 1fr 1fr; gap: 8px; }
  .wert { padding: 10px 8px 10px 12px; gap: 2px 6px; }
  .wert .kopier { width: 34px; height: 34px; }
  .wert-label { font-size: 13px; white-space: normal; line-height: 1.25; }
  .wert-zahl { font-size: 18px; }
  .wert.haupt .wert-zahl { font-size: 22px; }
  .wert.breit-mobil { grid-column: 1 / -1; }
  .wissen-raster { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ── Kästen aufklappen + (?)-Hilfe — zentral seit 27.10. (Logik: werk.js kaesten()). Muster aus colors/emoji-picker/qr-generator;
   deren tool.css tragen noch eine wortgleiche Kopie (unschädlich, beim nächsten Anfassen dort entfernen). ── */
.fb-kopf { position: relative; justify-content: flex-start; }
.fb-kopf .tafel-titel { min-width: 0; }
.fb-zu > .fb-kopf { margin-bottom: 0; }
.fb-auf { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 2px; border: 0; background: none; color: inherit;
  font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left; cursor: pointer; }
.fb-auf::after { content: ""; flex: none; width: 8px; height: 8px; margin: -3px 0 0 2px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.2s var(--kurve); }
.fb-auf[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 3px; }
.fb-auf:hover { color: var(--text); }
/* (?)-Knopf Variante C (Micha 26.10., gilt für alle Tools): blaues „?“ im Kreis-Umriss, offen = gefüllt; Blau unabhängig vom Tool-Akzent.
   Warnvariante .fb-warn (rot, „!“) für Sicherheits-/Grenzenhinweise. */
.fb-info { --ib: #60a5fa; --ib-tinte: #0d0f13; flex: none; width: 32px; height: 32px; padding: 0; border: 0; background: none; display: grid; place-items: center; color: var(--ib); cursor: pointer; }
@media (prefers-color-scheme: light) { :root:not([data-thema="dunkel"]) .fb-info { --ib: #2563eb; --ib-tinte: #ffffff; } }
:root[data-thema="hell"] .fb-info { --ib: #2563eb; --ib-tinte: #ffffff; }
.fb-info span { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ib); background: transparent; color: var(--ib); display: grid; place-items: center;
  font: 700 14px/1 var(--schrift); font-style: normal; text-transform: none; letter-spacing: 0; transition: background 0.15s, color 0.15s; }
.fb-info:hover span { background: color-mix(in srgb, var(--ib) 14%, transparent); }
.fb-info[aria-expanded="true"] span { background: var(--ib); color: var(--ib-tinte); }
.fb-info.fb-warn { --ib: #f87171; --ib-tinte: #1a0d0d; }
@media (prefers-color-scheme: light) { :root:not([data-thema="dunkel"]) .fb-info.fb-warn { --ib: #dc2626; --ib-tinte: #ffffff; } }
:root[data-thema="hell"] .fb-info.fb-warn { --ib: #dc2626; --ib-tinte: #ffffff; }
.fb-hilfe-fenster { position: absolute; z-index: 30; left: 0; top: calc(100% + 6px); width: min(440px, 100%); padding: 14px 16px; border-radius: var(--r);
  background: var(--flaeche-2); border: 1.5px solid var(--a1); color: var(--text); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55);
  font: 400 15px/1.5 var(--schrift); letter-spacing: normal; text-transform: none; white-space: pre-line; overflow-wrap: anywhere; }
.fb-hilfe-fenster[hidden], .fb-inhalt[hidden] { display: none; }   /* Autorenregeln mit display schlagen sonst das UA-hidden */
@media (max-width: 640px) {
  .fb-info { width: 40px; height: 40px; }
  .fb-info span { width: 26px; height: 26px; font-size: 16px; }
  .fb-hilfe-fenster { width: 100%; font-size: 14.5px; padding: 12px 14px; }
}

/* Erster Versuch 27.10. (Lichtspuren, Micha: „gääähn“) — ersetzt durch die Werkstatt unten:
/* ── Hintergrundbild aller Tools (Micha 27.10.: „ohne Hintergrund etwas nackig“) ──
 * Lichtspuren aus ../../_rahmen/hg/{dunkel,hell}.webp (SwarmUI, FLUX.2 klein 4B, 27.10.2026; Rohbilder
 * ~/neo/entwurf/gamezone-design/hg/), je Thema; leicht mit der Grundfarbe überdeckt, damit Karten und Text ruhig bleiben.
 * Gilt einmal für alle Tools (werk.css), Thema-Regeln wie oben (Medienabfrage + data-thema). * /
:root { --hg-bild: url('../../_rahmen/hg/dunkel.webp'); --hg-schleier: rgba(13, 15, 19, 0.35); }
@media (prefers-color-scheme: light) { :root:not([data-thema="dunkel"]) { --hg-bild: url('../../_rahmen/hg/hell.webp'); --hg-schleier: rgba(243, 241, 236, 0.25); } }
:root[data-thema="hell"] { --hg-bild: url('../../_rahmen/hg/hell.webp'); --hg-schleier: rgba(243, 241, 236, 0.25); }
body { background-image: linear-gradient(var(--hg-schleier), var(--hg-schleier)), var(--hg-bild); background-size: cover; background-position: center; background-attachment: fixed; }
*/

/* ── Hintergrund aller Tools: digitale Werkstatt (Micha 27.10.: Wow statt Lichtstreifen) ──
 * ../../_rahmen/hg/tools-{dunkel,hell}.webp — Werkbank mit Hologramm-Bildschirmen, Zahnrädern, QR-Codes, Farbpaletten;
 * dunkel bei Nacht, hell bei Tag (SwarmUI, FLUX.2 klein 4B, 27.10.2026; Rohbilder ~/neo/entwurf/gamezone-design/hg/
 * tools-3.png, tools-hell-2.png). Schleier in der Grundfarbe hält Karten und Text ruhig. Gilt einmal für alle Tools. */
:root { --hg-bild: url('../../_rahmen/hg/tools-dunkel.webp'); --hg-schleier: rgba(13, 15, 19, 0.5); }
@media (prefers-color-scheme: light) { :root:not([data-thema="dunkel"]) { --hg-bild: url('../../_rahmen/hg/tools-hell.webp'); --hg-schleier: rgba(243, 241, 236, 0.55); } }
:root[data-thema="hell"] { --hg-bild: url('../../_rahmen/hg/tools-hell.webp'); --hg-schleier: rgba(243, 241, 236, 0.55); }
body { background-image: linear-gradient(var(--hg-schleier), var(--hg-schleier)), var(--hg-bild); background-size: cover; background-position: center; background-attachment: fixed; }
