/* Zap Zup – Design der ganzen Seite

   Mobile first: Alle Grundregeln gelten fürs Handy. Dort gibt es
   - einen schmalen Kopf in einer Zeile (Logo + Suche),
   - das Blatt über die ganze Breite,
   - unten eine feste Leiste mit den wichtigsten Seiten und dem Menü (Sprache, Hell/Dunkel, alle Seiten).
   Ab 761 px Breite (Tablet, Computer) kommt im Block „Großer Bildschirm“ der große Kopf mit Reitern
   und das gerahmte Blatt dazu. */

/* Pixel-Schrift liegt im eigenen Ordner, nichts wird von fremden Servern geladen */
@font-face { font-family: "Pixelify Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/pixelify-sans-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Pixelify Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/pixelify-sans-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Pixelify Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/pixelify-sans-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Pixelify Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/pixelify-sans-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


/* ================================================================ Farben und Maße */
:root {
  /* Weltall-Dunkel außen, hellgrünes Papier innen. Bewusst nur ein Look. */
  color-scheme: light;
  --all: #0a110a;
  --all-2: #142114;
  --stern: #d6efb4;
  --glow: #8fd14f;
  --alien: #79b043;
  --alien-tief: #35541f;
  --rand: #233d17;
  --rand-hell: #8fb565;
  --blatt: #f2f7e6;
  --blatt-2: #e4eed0;
  --blatt-3: #cfe0b2;
  --tinte: #1c2814;
  --grau: #55644a;
  --link: #2c6610;
  --tab: #1d3016;
  --tab-hell: #3f6029;
  --warn: #9a3a10;
  --einband: #3e6a29;
  --einband-kante: #1a3010;
  --einband-hell: #6e9c46;
  --seite: #eef6da;
  --seite-linie: #c8dca8;
  --seite-tinte: #2a391e;
  --seite-blass: #7f9668;
  --seite-hell: #dbeabf;
  --knopf-hell: #f1f7e6;
  --knopf: #cddcb6;
  --knopf-dunkel: #6f8757;
  --f-pixel: "Pixelify Sans", "Courier New", monospace;
  --f-text: Verdana, "DejaVu Sans", Geneva, Tahoma, sans-serif;
  /* Seitenabstand links/rechts (beachtet die Kerbe bei iPhones im Querformat) und das Gegenstück,
     mit dem Bereiche bis an den Bildschirmrand reichen */
  --rand-l: max(16px, env(safe-area-inset-left, 0px));
  --rand-r: max(16px, env(safe-area-inset-right, 0px));
  --bleed-l: calc(-1 * var(--rand-l));
  --bleed-r: calc(-1 * var(--rand-r));
  --leiste-h: 60px;
  --pixelkreis: polygon(30% 0, 70% 0, 70% 5%, 80% 5%, 80% 10%, 90% 10%, 90% 20%, 95% 20%, 95% 30%, 100% 30%, 100% 70%, 95% 70%, 95% 80%, 90% 80%, 90% 90%, 80% 90%, 80% 95%, 70% 95%, 70% 100%, 30% 100%, 30% 95%, 20% 95%, 20% 90%, 10% 90%, 10% 80%, 5% 80%, 5% 70%, 0 70%, 0 30%, 5% 30%, 5% 20%, 10% 20%, 10% 10%, 20% 10%, 20% 5%, 30% 5%);
  --sterne: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' shape-rendering='crispEdges'%3E%3Cg fill='%23d6efb4'%3E%3Crect x='14' y='22' width='2' height='2' opacity='.6'/%3E%3Crect x='60' y='92' width='2' height='2' opacity='.35'/%3E%3Crect x='101' y='35' width='3' height='3' opacity='.8'/%3E%3Crect x='180' y='12' width='2' height='2' opacity='.45'/%3E%3Crect x='222' y='70' width='2' height='2' opacity='.6'/%3E%3Crect x='150' y='142' width='2' height='2' opacity='.4'/%3E%3Crect x='30' y='170' width='3' height='3' opacity='.55'/%3E%3Crect x='90' y='206' width='2' height='2' opacity='.5'/%3E%3Crect x='204' y='190' width='2' height='2' opacity='.35'/%3E%3Crect x='126' y='228' width='2' height='2' opacity='.6'/%3E%3Crect x='171' y='96' width='2' height='8' opacity='.7'/%3E%3Crect x='168' y='99' width='8' height='2' opacity='.7'/%3E%3C/g%3E%3Crect x='64' y='134' width='2' height='2' fill='%238fd14f' opacity='.8'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; --blatt: #151d12; --blatt-2: #1c2718; --blatt-3: #2e3f25; --tinte: #e2edd3; --grau: #a3b392; --link: #a6dc6e; --alien-tief: #b9e08c; --rand: #3a5a28; --knopf-hell: #3d5532; --knopf: #2b3d24; --knopf-dunkel: #172414; --seite: #1b2716; --seite-linie: #34492a; --seite-tinte: #dcebc6; --seite-blass: #8ea37a; --seite-hell: #2a3a22; --warn: #ff9e70; }
}
:root[data-theme="dark"] { color-scheme: dark; --blatt: #151d12; --blatt-2: #1c2718; --blatt-3: #2e3f25; --tinte: #e2edd3; --grau: #a3b392; --link: #a6dc6e; --alien-tief: #b9e08c; --rand: #3a5a28; --knopf-hell: #3d5532; --knopf: #2b3d24; --knopf-dunkel: #172414; --seite: #1b2716; --seite-linie: #34492a; --seite-tinte: #dcebc6; --seite-blass: #8ea37a; --seite-hell: #2a3a22; --warn: #ff9e70; }


/* ================================================================ Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: var(--all) var(--sterne); color: var(--tinte);
  font: 15px/1.65 var(--f-text); }
/* Pixelify Sans hat eine eigene fi-Ligatur, die wie ein A aussieht („Anden“ statt „finden“): deshalb aus.
   Mit !important für jedes Element, denn jede font-Kurzschreibweise (font: …) schaltet sie sonst wieder ein. */
*, *::before, *::after { font-variant-ligatures: none !important; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Antippen: kein grauer Kasten vom Browser, dafür eigene :active-Zustände. Kein Doppeltipp-Zoom auf Knöpfen. */
a, button, select, label, summary { -webkit-tap-highlight-color: transparent; }
a, button, select, input, textarea { touch-action: manipulation; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: var(--link); text-decoration: underline dotted; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }
.al { font-weight: 700; color: var(--alien-tief); }
a.al { color: var(--link); }
.px-haut { fill: var(--alien); }
.px-auge { fill: var(--all); }
.hilfe { font-size: 13px; color: var(--grau); }
.laden { color: var(--stern); text-align: center; padding: 60px 16px; font: 400 20px/1.4 var(--f-pixel); }
.laden.fehler { color: #ffb08a; }
.nur-gross { display: none !important; }

/* Zum Inhalt springen: unsichtbar, bis man mit der Tastatur darauf kommt */
.sprung { position: absolute; left: 12px; top: -60px; z-index: 40; background: var(--glow); color: var(--all); padding: 10px 14px; font: 400 16px/1 var(--f-pixel); text-decoration: none; }
.sprung:focus { top: 12px; }
#inhalt:focus { outline: none; }


/* ================================================================ Kopf (Handy: eine Zeile mit Logo und Suche) */
.kopf { border-bottom: 4px solid var(--rand); background: linear-gradient(color-mix(in srgb, var(--all-2) 85%, transparent), color-mix(in srgb, var(--all) 70%, transparent)); }
.kopf-in, .rahmen, .fuss-in { max-width: 1120px; margin: 0 auto; }
.kopf-in, .fuss-in { padding-left: var(--rand-l); padding-right: var(--rand-r); }
.kopf-in { position: relative; display: flex; align-items: center; gap: 10px; padding-block: 10px; }
.marke { display: flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; flex: none; }
.portal-glow { flex: none; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--glow) 55%, transparent)); }
.portal { display: grid; place-items: center; width: 44px; height: 44px; background: var(--glow); clip-path: var(--pixelkreis); }
.portal img { width: 38px; height: 38px; object-fit: cover; display: block; clip-path: var(--pixelkreis); }
.titel { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.titel .name { font: 600 24px/1 var(--f-pixel); color: var(--glow); letter-spacing: .04em; text-shadow: 2px 2px 0 var(--rand); white-space: nowrap; }
.titel .claim { display: none; color: var(--stern); font-size: 12px; line-height: 1.3; }
/* Seiten ohne Suche (Impressum, 404, Sprachauswahl): Platz für den Untertitel */
.kopf-in:not(:has(.suche)) .claim { display: block; }
.kopf-rechts { display: flex; flex: 1; min-width: 0; }
.suche { display: flex; gap: 6px; flex: 1; min-width: 0; }
.suche input { flex: 1; min-width: 0; text-overflow: ellipsis; }
#suche-knopf { width: 44px; padding: 0; flex: none; }
.lupe { display: block; width: 18px; height: 18px; fill: currentColor; }
#suche-knopf .knopf-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.steuer { display: none; }
.steuer select { font: 400 16px/1 var(--f-pixel); color: var(--stern); background: var(--tab); border: 0; padding: 9px 10px; box-shadow: inset 0 0 0 2px var(--tab-hell); width: auto; min-height: 0; }
.steuer select:focus { outline: 3px solid var(--glow); outline-offset: 2px; }
/* Vorschläge: auf dem Handy über die ganze Breite unter dem Kopf */
.vorschlaege-liste { position: absolute; top: calc(100% + 6px); left: var(--rand-l); right: var(--rand-r); z-index: 30; list-style: none; margin: 0; padding: 4px; background: var(--blatt);
  box-shadow: 0 -3px 0 0 var(--rand), 0 3px 0 0 var(--rand), -3px 0 0 0 var(--rand), 3px 0 0 0 var(--rand), 0 12px 24px rgba(0, 0, 0, .45); }
.vorschlaege-liste a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 10px; color: var(--tinte); text-decoration: none; font-size: 16px; }
.vorschlaege-liste a:active { background: var(--blatt-2); }
.vorschlaege-liste .de { color: var(--grau); text-align: right; font-size: 14px; }
.vorschlaege-liste .leer { padding: 11px 10px; color: var(--grau); }


/* ================================================================ Leiste unten und Menü (nur Handy) */
.app { padding-bottom: calc(var(--leiste-h) + env(safe-area-inset-bottom, 0px)); }
.leiste { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--all-2); border-top: 3px solid var(--rand);
  padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.leiste:empty { display: none; }
.leiste a, .leiste button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px;
  min-height: var(--leiste-h); padding: 9px 2px 6px; font: 400 12px/1.1 var(--f-pixel); color: var(--rand-hell); text-align: center;
  text-decoration: none; background: none; border: 0; cursor: pointer; overflow-wrap: anywhere; }
.leiste .symbol { width: 22px; height: 22px; flex: none; fill: currentColor; }
.leiste a:active, .leiste button:active { background: var(--tab); }
.leiste [aria-current="page"], .leiste .aktiv { color: var(--glow); }
.leiste [aria-current="page"]::before, .leiste .aktiv::before { content: ""; position: absolute; top: -3px; left: 24%; right: 24%; height: 3px; background: var(--glow); }
/* Beim Tippen ist die Tastatur offen: dann stört die Leiste nur */
.app:has(input:focus, textarea:focus) .leiste { display: none; }

.menue { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; max-height: 88vh; max-height: 88dvh; padding: 0; border: 0; overflow: auto; overscroll-behavior: contain;
  background: var(--blatt); color: var(--tinte); box-shadow: 0 -4px 0 0 var(--rand); }
.menue[open] { animation: hoch .18s ease-out; }
@keyframes hoch { from { transform: translateY(32px); opacity: 0; } }
.menue::backdrop { background: rgba(5, 10, 5, .72); }
.menue-in { padding: 14px var(--rand-r) calc(20px + env(safe-area-inset-bottom, 0px)) var(--rand-l); }
.menue-kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.menue-kopf b { flex: 1; font: 600 24px/1 var(--f-pixel); color: var(--alien-tief); }
.menue-zu { width: 44px; padding: 0 !important; font-size: 24px !important; }
/* Sprache als Dropdown im Menü */
.menue-sprache { flex: none; width: auto; max-width: 150px; min-height: 44px; padding: 0 8px; font: 400 16px/1 var(--f-pixel); }
/* Hell/Dunkel als Pixel-Sonne bzw. Pixel-Mond */
#thema.knopf, .knopf.thema-knopf { width: 44px; min-width: 44px; padding: 0; }
#thema .symbol, .thema-knopf .symbol { width: 20px; height: 20px; fill: currentColor; }
#thema.sonne .symbol, .thema-knopf.sonne .symbol { fill: #f0b429; }
.menue-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.menue-links a { display: flex; align-items: center; min-height: 48px; padding: 10px 12px; font: 400 17px/1.15 var(--f-pixel); color: var(--tinte);
  background: var(--blatt-2); text-decoration: none; box-shadow: inset 0 0 0 2px var(--blatt-3); overflow-wrap: anywhere; }
.menue-links a:active { box-shadow: inset 0 0 0 3px var(--alien); }
.menue-links a[aria-current="page"] { background: var(--alien-tief); color: var(--blatt); box-shadow: none; }
/* Spenden-Kachel (Pixel-Pizza) im Handy-Menü: über die ganze Breite und leuchtend */
.pixelbild { display: block; flex: none; }
.menue-links a.menue-pizza { grid-column: 1 / -1; justify-content: center; gap: 10px; }
.knopf .pixelbild { margin: -4px 2px -4px 0; }
.menue-links a.menue-pizza:not([aria-current]) { background: var(--glow); color: var(--all); box-shadow: inset 0 0 0 2px #35541f; }


/* ================================================================ Blatt (Handy: über die ganze Breite) */
.reiter { display: none; }
.blatt-seite { display: block; background: var(--blatt); color: var(--tinte); margin: 0; padding: 20px var(--rand-r) 28px var(--rand-l); min-height: 50vh;
  box-shadow: 0 4px 0 0 var(--rand); }
.blatt-seite::after { content: ""; display: block; clear: both; }

/* Typografie im Blatt */
h1 { font: 600 28px/1.15 var(--f-pixel); color: var(--alien-tief); margin: 0; padding-bottom: 8px; border-bottom: 3px dashed var(--blatt-3); overflow-wrap: break-word; hyphens: auto; text-wrap: balance; }
h1.h1-wort { font: 700 28px/1.2 var(--f-text); }
.untertitel { margin: 8px 0 18px; font-size: 13px; color: var(--grau); }
.blatt-seite h2 { display: flex; align-items: center; gap: 10px; font: 600 21px/1.2 var(--f-pixel); color: var(--tinte); margin: 28px 0 12px; }
.blatt-seite h2::after { content: ""; flex: 1; min-width: 20px; height: 3px; background: repeating-linear-gradient(90deg, var(--blatt-3) 0 6px, transparent 6px 10px); }
.blatt-seite h3 { font: 700 15px/1.4 var(--f-text); margin: 18px 0 6px; }
.blatt-seite p { margin: 0 0 12px; max-width: 76ch; }
.blatt-seite ul, .blatt-seite ol { margin: 0 0 12px; padding-left: 22px; max-width: 76ch; }
.blatt-seite li { margin-bottom: 7px; }


/* ================================================================ Tabellen, Steckbrief, Inhalt, Kategorien */
.tab-wrap { overflow-x: auto; margin: 0 0 16px; max-width: 100%; -webkit-overflow-scrolling: touch; }
/* Breite Tabellen dürfen auf dem Handy bis an den Rand wischen */
.blatt-seite > .tab-wrap { max-width: none; margin-inline: var(--bleed-l) var(--bleed-r); padding-inline: var(--rand-l) var(--rand-r); }
table.wiki { border-collapse: collapse; font-size: 14px; background: var(--blatt); }
table.wiki th, table.wiki td { border: 2px solid var(--blatt-3); padding: 7px 10px; text-align: left; vertical-align: top; }
table.wiki thead th { background: var(--alien-tief); color: var(--blatt); border-color: var(--alien-tief); font: 400 16px/1.2 var(--f-pixel); }
table.wiki tbody th { background: var(--blatt-2); }
table.wiki.breit { width: 100%; }
table.glosse td { text-align: center; }
table.glosse tr:first-child td { font-weight: 700; color: var(--alien-tief); }
table.glosse tr:last-child td { color: var(--grau); font-size: 13px; }
table.glosse td.fehlt { color: var(--warn); font-style: italic; }
.pixelrand { box-shadow: 0 -3px 0 0 var(--rand), 0 3px 0 0 var(--rand), -3px 0 0 0 var(--rand), 3px 0 0 0 var(--rand); }

.steckbrief { margin: 3px 3px 18px; background: var(--blatt-2); font-size: 14px; }
.sb-kopf { background: var(--alien-tief); color: var(--blatt); padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.sb-label { font: 400 14px/1 var(--f-pixel); color: var(--blatt); opacity: .75; letter-spacing: .06em; }
.sb-wort { font: 700 24px/1.2 var(--f-text); overflow-wrap: anywhere; }
.steckbrief table { width: 100%; border-collapse: collapse; }
.steckbrief th, .steckbrief td { padding: 7px 12px; text-align: left; vertical-align: middle; border-top: 2px dotted var(--blatt-3); }
.steckbrief th { width: 42%; font-weight: 700; }

.inhaltsbox { display: block; background: var(--blatt-2); padding: 10px 16px 10px; margin: 4px 3px 16px; font-size: 15px; }
.inhaltsbox b { display: block; font: 400 17px/1.2 var(--f-pixel); margin-bottom: 4px; }
.blatt-seite .inhaltsbox ol { margin: 0; padding-left: 22px; }
.blatt-seite .inhaltsbox li { margin: 0; }
.inhaltsbox button { font: inherit; color: var(--link); background: none; border: 0; padding: 7px 0; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; text-align: left; }

.katbox { clear: both; margin: 30px 3px 0; padding: 10px 12px; background: var(--blatt-2); font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.katbox b { font: 400 16px/1 var(--f-pixel); margin-right: 4px; }
.etikett { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; background: var(--blatt); color: var(--link); text-decoration: none; white-space: nowrap; font-size: 14px;
  box-shadow: inset 0 0 0 2px var(--blatt-3); }
.etikett:active { box-shadow: inset 0 0 0 3px var(--alien); }
.etiketten { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
/* Lange Etikettenlisten: auf dem Handy zwei Zeilen zum Wischen statt einer langen Wand */
.blatt-seite > .etiketten:has(> :nth-child(9)) { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: max-content; justify-content: start;
  overflow-x: auto; margin-inline: var(--bleed-l) var(--bleed-r); padding: 3px var(--rand-r) 8px var(--rand-l); scroll-padding-inline: var(--rand-l); scrollbar-width: none; }
.blatt-seite > .etiketten::-webkit-scrollbar { display: none; }
.hinweisbox { background: var(--blatt-2); padding: 10px 14px; margin: 3px 3px 18px; max-width: 76ch; border-left: 8px solid var(--alien); }
.hinweisbox p:last-child { margin-bottom: 0; }
.spalten { columns: 3 210px; column-gap: 28px; font-size: 14px; }
.spalten > div { break-inside: avoid; }
.spalten h3 { margin-top: 0; font: 400 20px/1.2 var(--f-pixel); }


/* ================================================================ Knöpfe und Felder */
input[type="text"], input[type="search"], textarea {
  font: 16px/1.4 var(--f-text); color: var(--tinte); background: var(--blatt); border: 0; padding: 10px 12px; min-height: 44px; box-sizing: border-box;
  box-shadow: inset 0 0 0 2px var(--grau); border-radius: 0; -webkit-appearance: none; appearance: none;
}
input:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 3px var(--alien); }
textarea { width: 100%; min-height: 110px; resize: vertical; font-size: 17px; }
select { font: 16px/1.4 var(--f-text); color: var(--tinte); background: var(--blatt); border: 0; border-radius: 0; padding: 10px; min-height: 44px; width: 100%; max-width: 100%;
  box-shadow: inset 0 0 0 2px var(--grau); }
select:focus { outline: none; box-shadow: inset 0 0 0 3px var(--alien); }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; font: 400 16px/1.1 var(--f-pixel); color: var(--tinte); background: var(--knopf);
  border: 0; padding: 10px 14px; cursor: pointer; text-align: center; text-decoration: none;
  box-shadow: inset -3px -3px 0 var(--knopf-dunkel), inset 3px 3px 0 var(--knopf-hell), 0 0 0 2px var(--rand); }
.knopf:active { box-shadow: inset 3px 3px 0 var(--knopf-dunkel), 0 0 0 2px var(--rand); }
.knopf:disabled { opacity: .5; cursor: not-allowed; }
.knopf.aus { opacity: .6; cursor: default; }
/* Hauptknopf und „Teilen“: leuchtend grün, damit man sie sofort findet */
.knopf.haupt, .knopf.teilen { background: var(--glow); color: var(--all); box-shadow: inset -3px -3px 0 #35541f, inset 3px 3px 0 #c9f09b, 0 0 0 2px var(--rand); }
.knopf.haupt:active, .knopf.teilen:active { box-shadow: inset 3px 3px 0 #35541f, 0 0 0 2px var(--rand); }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 14px; }
/* Auf dem Handy füllen Knöpfe die Reihe: zwei nebeneinander, ein einzelner über die ganze Breite */
.knopfreihe > .knopf { flex: 1 1 40%; }
.ergebnis .knopf.teilen { flex-basis: 100%; order: -1; }
.ergebnis .knopfreihe, .verbreiten .knopfreihe { margin: 0; }
.feld { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; max-width: 520px; }
.feld.breit { max-width: 76ch; }
.feld label { font-weight: 700; font-size: 14px; }
.spruch-wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 0 12px; max-width: 820px; }
.wahl { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; background: var(--blatt-2); }
.wahl button { font: 400 16px/1.1 var(--f-pixel); color: var(--tinte); background: transparent; border: 0; padding: 8px 12px; min-height: 40px; cursor: pointer; }
.wahl button[aria-pressed="true"] { background: var(--alien-tief); color: var(--blatt); }
/* Übersetzer: Richtung über die ganze Breite, Dialekt daneben bzw. darunter */
.ue-wahl { gap: 8px; }
.ue-wahl > .wahl:first-child { display: flex; flex: 1 1 100%; }
.ue-wahl > .wahl:first-child button { flex: 1; }
.ergebnis { background: var(--blatt-2); padding: 14px 14px 16px; margin: 3px 3px 16px; max-width: 76ch; }
.ergebnis .gross { font: 700 24px/1.3 var(--f-text); color: var(--alien-tief); margin: 4px 0 12px; overflow-wrap: anywhere; }
.ergebnis .gross.de { color: var(--tinte); }
.ergebnis .gross.leer { color: var(--grau); font-weight: 400; font-size: 18px; }
.ergebnis .label, .label { font: 400 15px/1 var(--f-pixel); color: var(--grau); }
.link-knopf { font: inherit; color: var(--link); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.kopie-feld { width: 100%; max-width: 520px; }
/* Beispielsätze im Übersetzer: Chips zum Antippen, auf dem Handy in einer Reihe zum Wischen */
.beispiele { margin: 0 0 16px; }
.beispiele .label { display: block; margin-bottom: 6px; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin-inline: var(--bleed-l) var(--bleed-r); padding: 3px var(--rand-r) 8px var(--rand-l); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; font: 14px/1.2 var(--f-text); color: var(--link); background: var(--blatt); border: 0; padding: 9px 12px; min-height: 40px; cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 0 0 2px var(--blatt-3); }
.chip:active { box-shadow: inset 0 0 0 3px var(--alien); }
.themen-titel { text-align: center; max-width: none !important; margin: 14px 0 8px !important; }


/* ================================================================ Hauptseite */
/* Begrüßung: auf dem Handy direkt unter dem Kopf, von Rand zu Rand */
.empfang { display: flex; justify-content: center; background: var(--all-2) var(--sterne); color: var(--stern); }
.blatt-seite .empfang { margin: -20px var(--bleed-r) 26px var(--bleed-l); padding: 18px var(--rand-r) 24px var(--rand-l); box-shadow: 0 4px 0 0 var(--rand); }
.empfang-alien { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; width: min(100%, 440px); }
.blase { position: relative; align-self: stretch; background: var(--blatt); color: var(--tinte); padding: 10px 14px; min-height: 64px; display: flex; flex-direction: column; justify-content: center; }
.blase::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 20px; height: 10px; background: var(--blatt); clip-path: polygon(0 0, 100% 0, 50% 100%); transform: translateX(-50%); }
.blase .al { font-size: 19px; }
.blase .de { font-size: 13px; color: var(--grau); }
.alien-knopf { padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 0 22px color-mix(in srgb, var(--glow) 45%, transparent)); }
.alien-knopf .portal { width: 150px; height: 150px; }
.alien-knopf .portal img { width: 136px; height: 136px; transition: transform .2s; }
.alien-knopf:active img { transform: scale(.95); }
.empfang-text { margin: 4px 0 0 !important; text-align: center; color: var(--stern); max-width: 46ch !important; font-size: 15px; }
.empfang-knoepfe { flex-direction: column; align-self: stretch; align-items: stretch; margin: 2px 0 0; }
.empfang-knoepfe .knopf { flex: none; }
.kaesten { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 28px; }
.kasten { background: var(--blatt-2); display: flex; flex-direction: column; min-width: 0; }
.blatt-seite .kasten > h2 { margin: 0; padding: 8px 12px; background: var(--alien-tief); color: var(--blatt); font-size: 20px; }
.blatt-seite .kasten > h2::after { display: none; }
.kasten .rumpf { padding: 12px 14px 14px; }
.kasten .rumpf > :last-child { margin-bottom: 0; }
.wdt-wort { font: 700 30px/1.15 var(--f-text) !important; color: var(--alien-tief); margin: 2px 0 4px !important; overflow-wrap: anywhere; }
.liste-kompakt { list-style: none; padding: 0 !important; columns: 2 150px; column-gap: 20px; }
.liste-kompakt li { break-inside: avoid; }
.verbreiten { margin: 26px 3px 0; background: var(--alien); color: var(--all); padding: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.verbreiten > div { flex: 1 1 100%; }
.verbreiten p { margin: 0 !important; color: var(--all); }
.verbreiten b.titel-v { font: 600 22px/1.2 var(--f-pixel); display: block; }
.verbreiten .knopf { flex: 1 1 100%; }
.spenden { margin: 26px 3px 0; background: var(--blatt-2); padding: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.spenden > div { flex: 1 1 100%; min-width: 0; }
.spenden > div:last-child .knopf { width: 100%; }
.blatt-seite .spenden h2 { margin: 0 0 6px; font-size: 22px; }
.blatt-seite .spenden h2::after { display: none; }
.blatt-seite .spenden p { margin: 0 0 6px; }
/* Spendenformular von Ko-fi (lädt erst nach einem Tipp auf „Pizza spendieren“) */
.kofi-panel { margin: 10px 3px 0; max-width: 76ch; scroll-margin-top: 12px; }
.blatt-seite .kofi-panel p { margin: 0; }
.kofi-panel.offen { margin-top: 20px; background: #f9f9f9; }
.kofi-frame { display: block; width: 100%; height: 712px; border: 0; background: #f9f9f9; }


/* ================================================================ Das Buch */
.buch-bereich { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 6px 0 4px; }
.buch-bereich > .knopf { align-self: stretch; }
.buch {
  width: 100%; max-width: 880px; box-sizing: border-box; background: var(--einband); padding: 8px;
  box-shadow: 0 -6px 0 0 var(--einband-kante), 0 6px 0 0 var(--einband-kante), -6px 0 0 0 var(--einband-kante), 6px 0 0 0 var(--einband-kante), inset 0 0 0 3px var(--einband-hell);
  margin-block: 6px;
}
.buch-seiten { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--seite-linie); }
.ruecken { height: 8px; background: linear-gradient(90deg, var(--seite-blass), var(--seite-linie) 45%, var(--seite-blass)); }
.bseite { position: relative; background: var(--seite); color: var(--seite-tinte); padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; box-sizing: border-box; }
.bseite::before { content: ""; position: absolute; inset: 7px; border: 2px solid var(--seite-linie); pointer-events: none; }
.bseite > * { position: relative; }
.bseite-kopf { margin: 0 !important; text-align: center; font: 400 21px/1.2 var(--f-pixel); color: var(--seite-blass); }
.buch-suche { width: 100%; background: transparent !important; box-shadow: none !important; border-bottom: 2px dashed var(--seite-linie) !important; font-size: 16px !important; padding: 8px 4px !important; color: var(--seite-tinte) !important; }
.buch-suche:focus { border-bottom-color: var(--alien) !important; }
.blatt-seite .buch-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; flex: 1; }
.blatt-seite .buch-liste li { margin: 0; }
.buch-zeile { width: 100%; display: flex; align-items: baseline; gap: 6px; font: 15px/1.4 var(--f-text); color: var(--seite-tinte); background: transparent; border: 0; padding: 9px 6px; cursor: pointer; text-align: left; }
.buch-zeile:active, .buch-zeile[aria-pressed="true"] { background: var(--seite-hell); }
.bz-al { font-weight: 700; white-space: nowrap; }
.bz-punkte { flex: 1; min-width: 12px; border-bottom: 2px dotted var(--seite-linie); transform: translateY(-4px); }
.bz-de { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.buch-leer { margin: 0 !important; font-size: 14px; }
.buch-eintrag { display: flex; flex-direction: column; gap: 8px; }
.bseite-fuss { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; min-height: 40px; }
.bseite-fuss .mitte { flex: 1; display: flex; justify-content: center; }
.bseite-fuss .platz { width: 48px; }
.pfeil { font: 600 22px/1 var(--f-pixel); color: var(--seite-tinte); background: var(--seite-hell); border: 0; width: 48px; height: 40px; cursor: pointer; box-shadow: inset -2px -2px 0 var(--seite-linie), inset 2px 2px 0 var(--seite); }
.pfeil:active { background: var(--seite-linie); }
.pfeil:disabled { visibility: hidden; }
.be-al { margin: 4px 0 0 !important; font: 700 30px/1.15 var(--f-text); color: var(--alien-tief); overflow-wrap: anywhere; }
.be-var, .be-meta { margin: 0 !important; font-size: 13px; color: var(--seite-blass); }
.be-bed { margin: 0 !important; font-size: 19px; }
.be-bed ol { margin: 0 !important; padding-left: 22px !important; font-size: 16px; }
.be-merk { margin: 0 !important; font-style: italic; font-size: 14px; }
.be-bsp { margin: 4px 0 0 !important; padding-top: 8px; border-top: 2px dashed var(--seite-linie); font-size: 14px; }
.be-aktionen { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }


/* ================================================================ Wörterbuch: Filter bleibt beim Scrollen oben */
.wb-leiste { position: sticky; top: 0; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; background: var(--blatt);
  margin: 6px var(--bleed-r) 12px var(--bleed-l); padding: 10px var(--rand-r) 10px var(--rand-l); box-shadow: 0 3px 0 var(--blatt-3); }
.wb-leiste label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wb-leiste input { flex: 1 1 100%; width: 100%; }
.buchstaben { display: flex; gap: 6px; }
.buchstaben button { min-width: 42px; min-height: 40px; font: 600 18px/1 var(--f-pixel); color: var(--link); background: var(--blatt-2); border: 0; cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--blatt-3); }
.buchstaben button:active { box-shadow: inset 0 0 0 3px var(--alien); }
.wb-leiste .hilfe { margin-left: auto; font-size: 12px; text-align: right; }
.wb-tabelle tr[id] { scroll-margin-top: 152px; }
.wb-tabelle th:nth-child(4), .wb-tabelle td:nth-child(4) { display: none; }
.wb-tabelle td:nth-child(3) { color: var(--grau); font-size: 13px; }
.wb-tabelle td { padding-block: 9px; }


/* ================================================================ Alien-Test */
.frage { font: 400 20px/1.4 var(--f-text); margin: 6px 0 14px !important; }
.optionen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 640px; margin: 0 3px 14px; }
.option { font: 16px/1.3 var(--f-text); text-align: left; padding: 12px 14px; min-height: 52px; background: var(--knopf); color: var(--tinte); border: 0; cursor: pointer; overflow-wrap: anywhere;
  box-shadow: inset -3px -3px 0 var(--knopf-dunkel), inset 3px 3px 0 var(--knopf-hell), 0 0 0 2px var(--rand); }
.option:active:not(:disabled) { box-shadow: inset 3px 3px 0 var(--knopf-dunkel), 0 0 0 2px var(--rand); }
.option:disabled { cursor: default; }
.option.richtig { background: var(--alien); color: var(--all); font-weight: 700; }
.option.falsch { background: var(--blatt); color: var(--warn); box-shadow: 0 0 0 2px var(--warn); }
.optionen ~ .knopf { width: calc(100% - 6px); margin-inline: 3px; }
.balken { height: 12px; max-width: 640px; background: var(--blatt-2); margin: 0 3px 10px; box-shadow: 0 0 0 2px var(--rand); }
.balken span { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--alien) 0 10px, var(--glow) 10px 12px); }
.balken span[data-stand="0"] { width: 0.0%; }
.balken span[data-stand="1"] { width: 16.67%; }
.balken span[data-stand="2"] { width: 33.33%; }
.balken span[data-stand="3"] { width: 50.0%; }
.balken span[data-stand="4"] { width: 66.67%; }
.balken span[data-stand="5"] { width: 83.33%; }
.balken span[data-stand="6"] { width: 100.0%; }


/* ================================================================ Fuß */
.fuss { margin-top: 28px; border-top: 4px solid var(--rand); background: color-mix(in srgb, var(--all-2) 85%, transparent); color: var(--stern); font-size: 14px; }
.fuss-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; padding-block: 22px 8px; }
.fuss-in > :first-child { grid-column: 1 / -1; }
.fuss p { margin: 0 0 8px; }
.fuss-name { font: 600 26px/1 var(--f-pixel); color: var(--glow); }
.fuss-titel { font: 400 17px/1 var(--f-pixel); color: var(--rand-hell); }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li a { display: inline-block; padding: 5px 0; }
.fuss a { color: var(--stern); }
/* Social Media mit Pixel-Symbolen (im Fuß und im Handy-Menü). Handy: gleich breite Kacheln, Symbol über dem Namen */
.sozial { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 64px; padding: 10px 2px; font: 400 13px/1 var(--f-pixel); text-decoration: none; }
.fuss-social, .menue-sozial { display: flex; flex-wrap: wrap; gap: 8px; }
.sozial .pixelbild { height: 24px; }   /* flache Symbole (YouTube) mittig in derselben Höhe, damit die Namen auf einer Linie stehen */
.fuss-social { margin-top: 14px; }
.fuss-social p { flex-basis: 100%; margin: 0 !important; font: 400 15px/1 var(--f-pixel); color: var(--rand-hell); }
.fuss .sozial { color: var(--stern); box-shadow: inset 0 0 0 2px var(--rand); }
.menue-sozial { margin-top: 8px; }
.menue-sozial .sozial { color: var(--tinte); background: var(--blatt-2); box-shadow: inset 0 0 0 2px var(--blatt-3); }
.menue-sozial .sozial:active { box-shadow: inset 0 0 0 3px var(--alien); }
.fuss-gruss { text-align: center; padding-block: 8px 20px; font: 400 15px/1 var(--f-pixel); color: var(--rand-hell); }
/* Sprachwahl ganz unten auf jeder Seite: unauffällig, aber immer erreichbar */
.fuss-sprachen { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 14px; max-width: 1120px; margin: 0 auto;
  padding: 0 var(--rand-r) 16px var(--rand-l); font-size: 13px; }
.fuss-sprachen span { font: 400 14px/1 var(--f-pixel); color: var(--rand-hell); }
.fuss-sprachen a { display: inline-block; padding: 6px 0; color: var(--stern); opacity: .8; }
.fuss-sprachen a[aria-current] { color: var(--glow); opacity: 1; font-weight: 700; text-decoration: none; }
.fuss-recht { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; padding-block: 4px 14px; font-size: 13px; }
.fuss-recht a { display: inline-block; padding: 6px 0; }


/* ================================================================ Story-Bild: Vorschau mit Teilen und Speichern */
.karte-dialog { border: 0; padding: 16px; max-width: min(92vw, 420px); background: var(--blatt); color: var(--tinte);
  box-shadow: 0 -4px 0 0 var(--rand), 0 4px 0 0 var(--rand), -4px 0 0 0 var(--rand), 4px 0 0 0 var(--rand); }
.karte-dialog::backdrop { background: rgba(5, 10, 5, 0.78); }
.karte-dialog .laden { padding: 40px 10px; color: var(--grau); }
.karte-bild { display: block; width: 100%; height: auto; max-height: 58vh; object-fit: contain; margin: 0 auto 10px; background: var(--all); }
.karte-dialog .hilfe { margin: 0 0 12px; text-align: center; }
.karte-dialog .knopfreihe { justify-content: center; margin: 0; }


/* ================================================================ Startseite ohne Sprache: Sprachauswahl */
.sprachwahl { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px 18px; max-width: none !important; }
.sprachwahl li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 0; }
.sprachwahl .knopf { min-width: 150px; }


/* ================================================================ Sehr schmale Handys */
@media (max-width: 360px) {
  .marke { gap: 6px; }
  .portal { width: 38px; height: 38px; }
  .portal img { width: 32px; height: 32px; }
  .titel .name { font-size: 20px; }
  .leiste a, .leiste button { font-size: 11px; }
  .buchstaben button { min-width: 38px; }
}

/* Etwas breitere Handys und Querformat */
@media (min-width: 521px) {
  .optionen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .empfang-knoepfe { flex-direction: row; justify-content: center; align-self: center; align-items: center; }
  .verbreiten .knopf { flex: 1 1 auto; }
}


/* ================================================================ Großer Bildschirm (Tablet, Computer) */
@media (min-width: 761px) {
  .nur-gross { display: revert !important; }
  .nur-handy { display: none !important; }
  .app { padding-bottom: 0; }
  .leiste { display: none; }
  .menue { inset: 0; margin: auto; max-width: 480px; max-height: 80vh; box-shadow: 0 -4px 0 0 var(--rand), 0 4px 0 0 var(--rand), -4px 0 0 0 var(--rand), 4px 0 0 0 var(--rand); }

  /* Kopf: großes Pixel-Portal, Titel mit Untertitel, rechts Suche, Sprache und Hell/Dunkel */
  .kopf-in { flex-wrap: wrap; justify-content: space-between; gap: 16px 28px; padding-block: 22px 18px; }
  .marke { gap: 18px; flex: 0 1 auto; }
  .portal-glow { filter: drop-shadow(0 0 16px color-mix(in srgb, var(--glow) 55%, transparent)); }
  .portal { width: 104px; height: 104px; }
  .portal img { width: 92px; height: 92px; }
  .titel { gap: 4px; }
  .titel .name { font-size: 48px; text-shadow: 4px 4px 0 var(--rand); }
  .titel .claim, .kopf-in:not(:has(.suche)) .claim { display: block; font-size: 15px; line-height: 1.65; }
  .kopf-rechts { flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; flex: 1 1 440px; }
  .suche { position: relative; flex: 1 1 240px; }
  .suche input { min-height: 0; padding: 8px 10px; }
  #suche-knopf { width: auto; padding: 9px 14px 10px; }
  #suche-knopf .lupe { display: none; }
  #suche-knopf .knopf-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .steuer { display: flex; gap: 8px; align-items: center; }
  #thema.knopf { width: 40px; min-width: 40px; height: 36px; padding: 0; }
  .vorschlaege-liste { left: 0; right: 0; box-shadow: 0 -3px 0 0 var(--rand), 0 3px 0 0 var(--rand), -3px 0 0 0 var(--rand), 3px 0 0 0 var(--rand); }
  .vorschlaege-liste a { padding: 5px 8px; font-size: 15px; }
  .vorschlaege-liste .leer { padding: 6px 8px; }

  /* Pixel-Reiter und das gerahmte Blatt */
  .rahmen { padding: 22px var(--rand-r) 0 var(--rand-l); }
  .reiter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; padding-inline: 4px; position: relative; z-index: 1; }
  .reiter a { font: 400 16px/1 var(--f-pixel); color: var(--stern); background: var(--tab); padding: 10px 11px 9px; text-decoration: none; box-shadow: inset 0 3px 0 var(--tab-hell), inset 3px 0 0 var(--tab-hell); }
  .reiter a[aria-current="page"] { background: var(--blatt); color: var(--tinte); padding-bottom: 13px; margin-bottom: -4px; box-shadow: inset 0 3px 0 var(--alien); }
  .blatt-seite { margin: 4px 4px 0; padding: 28px 34px 32px; min-height: 60vh;
    box-shadow: 0 -4px 0 0 var(--rand), 0 4px 0 0 var(--rand), -4px 0 0 0 var(--rand), 4px 0 0 0 var(--rand), inset 0 0 0 3px var(--blatt-3); }

  h1 { font-size: 36px; }
  h1.h1-wort { font-size: 34px; }
  .untertitel { margin-bottom: 20px; }
  .blatt-seite h2 { font-size: 25px; margin-top: 32px; }
  .blatt-seite ul, .blatt-seite ol { padding-left: 24px; }
  .blatt-seite li { margin-bottom: 3px; }

  .blatt-seite > .tab-wrap { max-width: 100%; margin-inline: 0; padding-inline: 0; }
  table.wiki th, table.wiki td { padding: 6px 11px; }
  .steckbrief { float: right; width: 300px; margin: 4px 3px 18px 28px; }
  .steckbrief th, .steckbrief td { padding: 6px 11px; vertical-align: top; }
  .inhaltsbox { display: inline-block; padding: 10px 18px 12px; font-size: 14px; }
  .inhaltsbox b { margin-bottom: 6px; }
  .blatt-seite .inhaltsbox li { margin-bottom: 3px; }
  .inhaltsbox button { padding: 0; }
  .katbox { margin-top: 34px; padding: 9px 12px; gap: 6px 8px; }
  .etikett { min-height: 0; padding: 3px 8px; font-size: inherit; white-space: normal; }
  .etiketten { gap: 6px; }
  .blatt-seite > .etiketten:has(> :nth-child(9)) { display: flex; flex-wrap: wrap; overflow: visible; margin-inline: 0; padding: 0; }
  .themen-titel + .etiketten { justify-content: center; }

  input[type="text"], input[type="search"], textarea { padding: 8px 10px; min-height: 0; }
  textarea { min-height: 100px; }
  select { padding: 8px 10px; min-height: 0; width: auto; }
  .feld select { width: 100%; }
  .knopf { min-height: 0; font-size: 16px; line-height: 1; padding: 9px 14px 10px; white-space: nowrap; }
  .knopfreihe > .knopf { flex: none; }
  .ergebnis .knopf.teilen { flex-basis: auto; order: 0; }
  .spruch-wahl { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 0 14px; }
  .wahl button { min-height: 0; padding: 8px 12px; }
  .ue-wahl { gap: 10px; }
  .ue-wahl > .wahl:first-child { display: inline-flex; flex: none; }
  .ue-wahl > .wahl:first-child button { flex: none; }
  .ergebnis { padding: 14px 18px; }
  .ergebnis .gross { font-size: 26px; }
  .chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding: 0; }
  .chip { min-height: 0; padding: 5px 10px; }

  .blatt-seite .empfang { margin: 3px 3px 30px; padding: 28px 28px 30px;
    box-shadow: 0 -3px 0 0 var(--rand), 0 3px 0 0 var(--rand), -3px 0 0 0 var(--rand), 3px 0 0 0 var(--rand); }
  .alien-knopf .portal { width: 170px; height: 170px; }
  .alien-knopf .portal img { width: 154px; height: 154px; }
  .kaesten { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
  .kasten .rumpf { padding: 12px 16px 14px; }
  .wdt-wort { font-size: 32px !important; }
  .liste-kompakt { columns: 2 160px; }
  .verbreiten, .spenden { padding: 18px 22px; }
  .verbreiten > div { flex: 0 1 auto; }
  .verbreiten .knopf { flex: none; }
  .spenden > div { flex: 0 0 auto; }
  .spenden > div:first-child { flex: 1 1 320px; }
  .spenden > div:last-child .knopf { width: auto; }
  .reiter a.reiter-pizza { display: inline-flex; align-items: center; padding: 4px 11px 7px; }
  .reiter a.reiter-pizza[aria-current="page"] { padding-bottom: 11px; }

  .buch-bereich > .knopf { align-self: center; }
  .buch { padding: 12px; }
  .buch-seiten { grid-template-columns: minmax(0, 1fr) 10px minmax(0, 1fr); }
  .ruecken { height: auto; }
  .bseite { padding: 16px 24px 14px; min-height: 410px; }
  .buch-zeile { font-size: 14px; line-height: 1.5; padding: 3px 6px; }
  .bseite-fuss { min-height: 34px; }
  .bseite-fuss .platz { width: 34px; }
  .pfeil { width: 34px; height: 30px; }
  .be-al { font-size: 32px; }

  .wb-leiste { margin-inline: 0; padding-inline: 0; }
  .wb-leiste label { position: static; width: auto; height: auto; overflow: visible; clip: auto; flex: 1 1 100%; font-weight: 700; font-size: 14px; }
  .wb-leiste input { flex: 1 1 320px; width: auto; max-width: 520px; }
  .wb-leiste .hilfe { margin-left: 0; }
  .wb-tabelle tr[id] { scroll-margin-top: 110px; }
  .wb-tabelle th:nth-child(4), .wb-tabelle td:nth-child(4) { display: table-cell; }
  .wb-tabelle td:nth-child(3) { color: inherit; font-size: inherit; }
  .wb-tabelle td { padding-block: 6px; }

  .frage { font-size: 22px; }
  .option { font-size: 15px; padding: 11px 13px; min-height: 0; }
  .optionen ~ .knopf { width: auto; }

  .fuss { margin-top: 44px; }
  .fuss-in { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px 32px; padding-block: 26px 10px; }
  .fuss-in > :first-child { grid-column: auto; }
  .fuss .sozial { flex: 1 1 40%; flex-direction: row; justify-content: flex-start; gap: 8px; min-height: 44px; padding: 8px 12px; font-size: 16px; }   /* zwei pro Reihe */
  .fuss li { margin-bottom: 4px; }
  .fuss li a { padding: 0; }
  .fuss-gruss { padding-block: 8px 30px; }
  .fuss-recht { gap: 6px 18px; padding-block: 4px 6px; }
  .fuss-recht a { padding: 0; }

  .karte-dialog { padding: 18px; }
  .karte-bild { max-height: 62vh; }
}

/* Maus: Hover-Effekte nur dort, wo es einen Mauszeiger gibt (auf dem Handy bleiben sie sonst „hängen“) */
@media (hover: hover) {
  a:hover { text-decoration-style: solid; }
  .vorschlaege-liste a:hover { background: var(--blatt-2); }
  .reiter a:hover { background: var(--tab-hell); }
  .reiter a[aria-current="page"]:hover { background: var(--blatt); }
  .etikett:hover, .chip:hover, .buchstaben button:hover { box-shadow: inset 0 0 0 2px var(--alien); }
  .knopf:hover { background: var(--knopf-hell); }
  .knopf.haupt:hover, .knopf.teilen:hover { background: #a6e06a; }
  .alien-knopf:hover img { transform: scale(1.05); }
  .buch-zeile:hover { background: var(--seite-hell); }
  .pfeil:hover { background: var(--seite-linie); }
  .option:hover:not(:disabled) { background: var(--knopf-hell); }
  .menue-links a:hover { box-shadow: inset 0 0 0 2px var(--alien); }
  .sozial:hover { box-shadow: inset 0 0 0 2px var(--alien) !important; }
  .fuss-sprachen a:hover { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Drucken: nur der Inhalt, ohne Menü und Knöpfe */
@media print {
  .kopf, .reiter, .leiste, .menue, .fuss, .sprung, .knopf, .knopfreihe, .inhaltsbox, .verbreiten, .spenden, .katbox, .wb-leiste, .chips { display: none !important; }
  body, .app { background: #fff !important; color: #000; font-size: 12pt; padding: 0; }
  .rahmen { padding: 0; max-width: none; }
  .blatt-seite { box-shadow: none !important; margin: 0; padding: 0; background: #fff; min-height: 0; }
  .pixelrand { box-shadow: none !important; border: 1px solid #999; break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  .blatt-seite h2::after { display: none; }
}
