/* DeFALT – Gestaltung
   Ruhig, gut lesbar, zeitlos. Systemschriften (keine Downloads von fremden Servern). */

:root {
  --papier: #faf8f3;
  --flaeche: #ffffff;
  --tinte: #23211d;
  --leise: #6b655b;
  --linie: #e4ded1;
  --gold: #d6ae01;
  --gold-tief: #876800;
  --rot: #ab273c;
  --fuss: #23211d;
  --fuss-text: #e9e4d8;

  --akzent: var(--gold-tief);
  --akzent-kraeftig: var(--gold);
  --akzent-flaeche: #fbf4d4;

  --schrift-text: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --schrift-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --breite: 74rem;
  --text-breite: 43rem;
  --radius: 8px;
  color-scheme: light;
}

.farbe-gelb    { --akzent: #876800; --akzent-kraeftig: #d6ae01; --akzent-flaeche: #fbf4d4; }
.farbe-gruen   { --akzent: #0a6a51; --akzent-kraeftig: #25b386; --akzent-flaeche: #e2f4ed; }
.farbe-violett { --akzent: #7f2465; --akzent-kraeftig: #d457ae; --akzent-flaeche: #f9e7f3; }
.farbe-blau    { --akzent: #1f5b8f; --akzent-kraeftig: #4a95d6; --akzent-flaeche: #e5f0fa; }
.farbe-rot     { --akzent: #a1283a; --akzent-kraeftig: #d9485c; --akzent-flaeche: #fbe9eb; }

@media (prefers-color-scheme: dark) {
  :root {
    --papier: #161513;
    --flaeche: #1f1d1a;
    --tinte: #ece7dc;
    --leise: #a8a194;
    --linie: #36322c;
    --gold-tief: #e2bf35;
    --rot: #e0566b;
    --fuss: #0e0d0c;
    --fuss-text: #d9d3c6;
    --akzent-flaeche: #2a2516;
    color-scheme: dark;
  }
  .farbe-gelb    { --akzent: #e2bf35; --akzent-flaeche: #2a2516; }
  .farbe-gruen   { --akzent: #4fd1a5; --akzent-flaeche: #13281f; }
  .farbe-violett { --akzent: #ec8fcf; --akzent-flaeche: #2c1626; }
  .farbe-blau    { --akzent: #7db8ec; --akzent-flaeche: #142231; }
  .farbe-rot     { --akzent: #f08594; --akzent-flaeche: #2e1619; }
}

/* ---------- Grundlagen ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--schrift-ui);
  font-size: 1rem;
  line-height: 1.55;
}

a { color: var(--akzent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--akzent-kraeftig); outline-offset: 2px; border-radius: 3px; }

img { max-width: 100%; height: auto; }
.icon { width: 1.25em; height: 1.25em; vertical-align: -.25em; flex: none; }

.sprung { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--flaeche); padding: .6rem 1rem; }
.sprung:focus { left: 1rem; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

mark { background: var(--akzent-flaeche); color: inherit; padding: 0 .1em; border-radius: 2px; box-shadow: inset 0 -2px 0 var(--akzent-kraeftig); }

/* ---------- Wortmarke ---------- */

.wortmarke {
  font-family: var(--schrift-ui);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
}
.wortmarke .e {
  display: inline-block;
  color: var(--rot);
  transform: rotate(-24deg) translateY(-.04em);
  margin: 0 .02em;
  font-style: italic;
}

/* ---------- Kopf ---------- */

.kopf {
  position: relative;
  z-index: 20;
  background: color-mix(in srgb, var(--papier) 92%, transparent);
  background: var(--papier);
  border-bottom: 1px solid var(--linie);
}
.kopf-innen {
  position: relative;
  max-width: var(--breite);
  margin: 0 auto;
  padding: .6rem 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "marke werkzeuge" "menue menue";
  align-items: center;
  gap: .4rem 1rem;
}
.kopf-leiste { height: 4px; background: linear-gradient(90deg, var(--gold) 0 60%, var(--akzent-kraeftig) 100%); }

.marke { grid-area: marke; display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--tinte); }
.marke img { width: 44px; height: 44px; }
.marke .wortmarke { font-size: 1.55rem; }

.kopf-werkzeuge { grid-area: werkzeuge; display: flex; align-items: center; justify-content: flex-end; gap: .4rem; }
.suchfeld { display: flex; align-items: center; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 999px; padding: 0 .2rem 0 .8rem; }
.suchfeld input { border: 0; background: transparent; color: var(--tinte); font: inherit; width: 7.5rem; padding: .45rem 0; outline: none; transition: width .2s; }
.suchfeld input:focus { width: 11rem; }
.suchfeld:focus-within { border-color: var(--akzent-kraeftig); }
.suchfeld button, .werkzeug {
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  width: 2.3rem; height: 2.3rem; border: 0; border-radius: 999px; background: transparent; color: var(--leise); cursor: pointer;
}
.werkzeug { border: 1px solid var(--linie); background: var(--flaeche); }
.suchfeld button:hover, .werkzeug:hover { color: var(--akzent); }
.merk-zahl {
  position: absolute; top: -4px; right: -4px; min-width: 1.15rem; height: 1.15rem; padding: 0 .25rem;
  border-radius: 999px; background: var(--rot); color: #fff; font-size: .7rem; font-weight: 700; line-height: 1.15rem; text-align: center;
}

.hauptmenue { grid-area: menue; display: flex; gap: .35rem; }
.menue-punkt { position: static; flex: 1; }
.menue-punkt > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: center; gap: .35rem;
  padding: .5rem .8rem; border-radius: 999px;
  font-weight: 600; color: var(--tinte);
  border: 1px solid var(--linie); background: var(--flaeche);
}
.menue-punkt > summary::-webkit-details-marker { display: none; }
.menue-punkt > summary::before {
  content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--akzent-kraeftig);
}
.menue-punkt > summary::after {
  content: ""; width: .4rem; height: .4rem; border: solid var(--leise); border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-2px); margin-left: .15rem;
}
.menue-punkt[open] > summary, .menue-punkt.aktiv > summary { background: var(--akzent-flaeche); border-color: var(--akzent-kraeftig); }
.menue-liste {
  position: absolute; left: 16px; right: 16px; top: calc(100% + .2rem);
  display: grid; gap: .1rem;
  background: var(--flaeche); border: 1px solid var(--linie); border-top: 4px solid var(--akzent-kraeftig);
  border-radius: var(--radius); padding: .5rem; box-shadow: 0 12px 32px rgb(0 0 0 / .14);
}
.menue-liste a { padding: .55rem .75rem; border-radius: 6px; color: var(--tinte); text-decoration: none; }
.menue-liste a:hover, .menue-liste a[aria-current] { background: var(--akzent-flaeche); color: var(--akzent); }
.menue-liste .menue-uebersicht { font-weight: 700; color: var(--akzent); border-bottom: 1px solid var(--linie); border-radius: 6px 6px 0 0; margin-bottom: .2rem; }

@media (max-width: 899px) {
  .kopf-innen { grid-template-columns: auto minmax(0, 1fr); }
  .kopf-werkzeuge { min-width: 0; }
  .suchfeld { min-width: 0; }
  .suchfeld input { width: 100%; min-width: 3rem; max-width: 9rem; }
  .suchfeld input:focus { width: 100%; }
  .hauptmenue { gap: .3rem; }
  .menue-punkt { min-width: 0; }
  .menue-punkt > summary { padding: .45rem .4rem; font-size: .92rem; gap: .3rem; min-width: 0; }
  .menue-punkt > summary::after { display: none; }
}
@media (max-width: 380px) {
  .marke .wortmarke { font-size: 1.3rem; }
  .marke img { width: 36px; height: 36px; }
  .menue-punkt > summary::before { display: none; }
}
html, body { overflow-x: clip; }

@media (min-width: 900px) {
  .kopf { position: sticky; top: 0; }
  .kopf-innen { grid-template-columns: auto 1fr auto; grid-template-areas: "marke menue werkzeuge"; padding-block: .7rem; }
  .hauptmenue { justify-content: center; }
  .menue-punkt { position: relative; flex: none; }
  .menue-punkt > summary { border-color: transparent; background: transparent; }
  .menue-punkt > summary:hover { background: var(--akzent-flaeche); }
  .menue-liste { left: 50%; right: auto; transform: translateX(-50%); width: 17rem; top: calc(100% + .45rem); }
}

/* ---------- Startseite ---------- */

.buehne {
  background:
    radial-gradient(circle at 85% 20%, rgb(214 174 1 / .28), transparent 45%),
    var(--akzent-flaeche);
  border-bottom: 1px solid var(--linie);
}
.ist-start .buehne { --akzent-flaeche: #fbf4d4; }
@media (prefers-color-scheme: dark) { .ist-start .buehne { --akzent-flaeche: #2a2516; } }
.buehne-innen { max-width: var(--breite); margin: 0 auto; padding: 3.2rem 16px 3.6rem; }
.buehne-marke { margin: 0 0 .6rem; font-size: clamp(2.6rem, 9vw, 4.6rem); }
.buehne-marke { font-family: var(--schrift-ui); font-weight: 800; letter-spacing: .04em; line-height: 1; }
.buehne-marke .e { display: inline-block; color: var(--rot); transform: rotate(-24deg); font-style: italic; }
.buehne h1 { font-family: var(--schrift-text); font-weight: 400; font-size: clamp(1.6rem, 4.2vw, 2.5rem); line-height: 1.2; margin: 0 0 .6rem; max-width: 30ch; }
.buehne-text { color: var(--leise); font-size: 1.15rem; margin: 0; }

.bereiche-karten {
  max-width: var(--breite); margin: -1.8rem auto 0; padding: 0 16px;
  display: grid; gap: 1rem; grid-template-columns: 1fr;
}
@media (min-width: 760px) { .bereiche-karten { grid-template-columns: repeat(3, 1fr); } }
.karte {
  background: var(--flaeche); border: 1px solid var(--linie); border-top: 5px solid var(--akzent-kraeftig);
  border-radius: var(--radius); padding: 1.2rem 1.3rem 1.1rem; box-shadow: 0 6px 18px rgb(0 0 0 / .05);
}
.karte h2 { margin: 0 0 .4rem; font-size: 1.35rem; }
.karte h2 a { color: var(--tinte); text-decoration: none; }
.karte h2 a:hover { color: var(--akzent); }
.karte > p { margin: 0 0 .8rem; color: var(--leise); font-size: .95rem; }
.karte ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.karte li a { display: block; padding: .42rem 0; border-bottom: 1px solid var(--linie); text-decoration: none; color: var(--tinte); }
.karte li a::before { content: "›"; color: var(--akzent-kraeftig); font-weight: 700; margin-right: .5rem; }
.karte li a:hover { color: var(--akzent); }
.seite-start { padding-top: 2rem; }

/* ---------- Inhaltsseiten ---------- */

.haupt { min-height: 60vh; }
.seite { max-width: var(--breite); margin: 0 auto; padding: 2rem 16px 3rem; }
.seiten-kopf { max-width: var(--text-breite); margin-bottom: 1.6rem; }
.rubrik { margin: 0 0 .5rem; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.rubrik a { text-decoration: none; color: var(--akzent); }
.rubrik a::before { content: ""; display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--akzent-kraeftig); margin-right: .45rem; }
.seiten-kopf h1 { font-family: var(--schrift-text); font-weight: 400; font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.15; margin: 0 0 .5rem; }
.seiten-unter { color: var(--leise); font-size: 1.1rem; margin: 0 0 .6rem; }
.seiten-info { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; color: var(--leise); font-size: .9rem; margin: 0; }
.merken-knopf {
  display: inline-flex; align-items: center; gap: .35rem; font: inherit; color: var(--leise); cursor: pointer;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 999px; padding: .25rem .75rem;
}
.merken-knopf:hover { color: var(--akzent); border-color: var(--akzent-kraeftig); }
.merken-knopf.gemerkt { color: var(--akzent); background: var(--akzent-flaeche); border-color: var(--akzent-kraeftig); }
.merken-knopf.gemerkt .icon { fill: currentColor; }
.entwurf { font-family: var(--schrift-ui); font-size: .7em; font-style: normal; background: var(--rot); color: #fff; padding: .1em .5em; border-radius: 4px; vertical-align: middle; }

/* Inhaltsverzeichnis */
.toc { max-width: var(--text-breite); margin: 0 0 2rem; font-size: .95rem; }
.toc details { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: .2rem 1rem; }
.toc summary { cursor: pointer; font-weight: 700; padding: .6rem 0; }
.toc ol { list-style: none; margin: 0 0 .8rem; padding: 0; }
.toc li a { display: flex; gap: .5rem; padding: .3rem .5rem; color: var(--tinte); text-decoration: none; border-radius: 5px; border-left: 2px solid transparent; }
.toc li a:hover { color: var(--akzent); background: var(--akzent-flaeche); }
.toc li a.aktuell { color: var(--akzent); border-left-color: var(--akzent-kraeftig); background: var(--akzent-flaeche); font-weight: 600; }
.toc .toc-2 a { padding-left: 1.4rem; font-size: .92em; }
.toc .toc-3 a { padding-left: 2.4rem; font-size: .88em; }
.toc .nr { color: var(--leise); min-width: 1.6rem; font-variant-numeric: tabular-nums; }

@media (min-width: 1100px) {
  .mit-toc {
    display: grid;
    grid-template-columns: 16rem minmax(0, var(--text-breite));
    grid-template-areas: "kopf kopf" "toc text" "toc blaettern";
    column-gap: 3.5rem; align-items: start;
  }
  .mit-toc .seiten-kopf { grid-area: kopf; margin-left: calc(16rem + 3.5rem); }
  .mit-toc .toc { grid-area: toc; position: sticky; top: 6.5rem; max-height: calc(100vh - 8rem); overflow: auto; margin: 0; }
  .mit-toc .toc details { background: transparent; border: 0; padding: 0; }
  .mit-toc .toc summary { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--leise); pointer-events: none; list-style: none; }
  .mit-toc .toc summary::-webkit-details-marker { display: none; }
  .mit-toc .text { grid-area: text; }
  .mit-toc .blaettern { grid-area: blaettern; }
}

/* ---------- Fließtext ---------- */

.text { max-width: var(--text-breite); font-family: var(--schrift-text); font-size: 1.125rem; line-height: 1.72; overflow-wrap: break-word; }
.text::after { content: ""; display: block; clear: both; }
.text p { margin: 0 0 1.1em; hyphens: auto; }
.text h2, .text h3, .text h4 { font-family: var(--schrift-ui); line-height: 1.25; clear: both; }
.text h2 { font-size: 1.55rem; margin: 2.6rem 0 .9rem; padding-top: 1.4rem; border-top: 1px solid var(--linie); }
.text > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.text h3 { font-size: 1.22rem; margin: 2rem 0 .6rem; }
.text h4 { font-size: 1.05rem; margin: 1.6rem 0 .5rem; }
.text .nr { color: var(--akzent); font-weight: 700; margin-right: .35rem; font-variant-numeric: tabular-nums; }
.text ul, .text ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.text li { margin: .25em 0; }
.text li::marker { color: var(--akzent); }
.text ul ul, .text ol ol, .text ul ol, .text ol ul { margin: .25em 0; }
.text hr { border: 0; border-top: 1px solid var(--linie); margin: 2.2rem 0; clear: both; }
.text blockquote { margin: 1.4em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--akzent-kraeftig); color: var(--leise); font-style: italic; }
.text code { font-family: ui-monospace, Consolas, monospace; font-size: .88em; background: var(--akzent-flaeche); padding: .1em .35em; border-radius: 4px; }

/* Bilder */
.bild { margin: 0 0 1.2rem; font-family: var(--schrift-ui); }
.bild a { display: block; }
.bild img { display: block; width: 100%; border-radius: 6px; background: var(--linie); }
.bild figcaption { font-size: .85rem; color: var(--leise); line-height: 1.4; margin-top: .4rem; }
.bild-einzeln { max-width: 26rem; }
@media (min-width: 640px) {
  .bild-einzeln { float: right; width: min(40%, 17rem); margin: .35rem 0 1rem 1.6rem; }
}
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1rem; margin: 1.2rem 0 1.6rem; clear: both; }
.galerie .bild { margin: 0; }
.galerie .bild img { aspect-ratio: 4 / 3; object-fit: cover; }
.anzeige { display: inline-block; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--leise); border: 1px solid var(--linie); border-radius: 3px; padding: 0 .3em; margin-left: .2em; vertical-align: .08em; }
.zoom { cursor: zoom-in; }

/* Kästen */
.kasten { clear: both; margin: 1.6rem 0; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--akzent-flaeche); border-left: 4px solid var(--akzent-kraeftig); font-size: 1.02rem; }
.kasten p { margin: 0; }
.kasten-titel { display: block; font-family: var(--schrift-ui); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .3rem; color: var(--akzent); }
.kasten-warnung { --akzent-kraeftig: var(--rot); --akzent: var(--rot); background: color-mix(in srgb, var(--rot) 8%, var(--flaeche)); }
.kasten-tipp { --akzent-kraeftig: #25b386; --akzent: #0a6a51; background: #e2f4ed; }
@media (prefers-color-scheme: dark) { .kasten-tipp { --akzent: #4fd1a5; background: #13281f; } }
.kasten-werbung { background: var(--flaeche); border: 1px dashed var(--linie); border-left: 4px solid var(--leise); }

/* Tabellen */
.tabelle { overflow-x: auto; margin: 1.4rem 0; clear: both; font-family: var(--schrift-ui); font-size: .95rem; }
.tabelle table { border-collapse: collapse; width: 100%; }
.tabelle th, .tabelle td { text-align: left; vertical-align: top; padding: .5rem .7rem; border-bottom: 1px solid var(--linie); }
.tabelle th { background: var(--akzent-flaeche); font-weight: 700; }

/* Videos (erst nach Klick laden) */
.video { clear: both; position: relative; aspect-ratio: 16 / 9; margin: 1.6rem 0; background: #1b1a18; color: #eee; border-radius: var(--radius); display: grid; place-content: center; text-align: center; padding: 1rem; font-family: var(--schrift-ui); overflow: hidden; }
.video-hoch { aspect-ratio: 9 / 16; max-width: 20rem; }
.video-start { font: inherit; font-weight: 700; font-size: 1.05rem; color: #1b1a18; background: var(--gold); border: 0; border-radius: 999px; padding: .75rem 1.4rem; cursor: pointer; justify-self: center; }
.video-start:hover { filter: brightness(1.08); }
.video-info { font-size: .82rem; color: #bbb; max-width: 26rem; margin: .9rem auto 0; line-height: 1.45; }
.video-info a { color: #f1d56a; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Blättern */
.blaettern { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: var(--text-breite); margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--linie); }
.blaettern a { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); color: var(--tinte); text-decoration: none; font-weight: 600; }
.blaettern a:hover { border-color: var(--akzent-kraeftig); color: var(--akzent); }
.blaettern small { display: flex; align-items: center; gap: .2rem; color: var(--leise); font-weight: 400; }
.blaettern .weiter { text-align: right; align-items: flex-end; grid-column: 2; }

/* Übersichten, Suche, Merkliste */
.seitenliste { list-style: none; margin: 0; padding: 0; max-width: var(--text-breite); counter-reset: s; }
.seitenliste > li { counter-increment: s; border-bottom: 1px solid var(--linie); }
.seitenliste > li > a { display: grid; grid-template-columns: 2.2rem 1fr; column-gap: .4rem; padding: 1rem .2rem; text-decoration: none; color: var(--tinte); }
.seitenliste > li > a::before { content: counter(s, decimal-leading-zero); grid-row: span 2; color: var(--akzent); font-weight: 700; font-variant-numeric: tabular-nums; }
.seitenliste strong { font-size: 1.15rem; }
.seitenliste span { color: var(--leise); font-family: var(--schrift-text); }
.seitenliste > li > a:hover strong { color: var(--akzent); }
.merkliste .leer { padding: 1rem 0; color: var(--leise); border: 0; }
.merkliste .entfernen { font: inherit; font-size: .85rem; background: none; border: 0; color: var(--leise); cursor: pointer; text-decoration: underline; padding: 0 0 1rem 2.6rem; }

.suchergebnisse { list-style: none; padding: 0; max-width: var(--text-breite); }
.suchergebnisse li { padding: 1rem 0; border-bottom: 1px solid var(--linie); }
.suchergebnisse h2 { font-size: 1.2rem; margin: 0 0 .4rem; }
.suchergebnisse p { margin: .3rem 0; font-family: var(--schrift-text); color: var(--leise); }
.suchergebnisse .kapitel { font-family: var(--schrift-ui); font-weight: 600; font-size: .9rem; margin-right: .4rem; }

/* ---------- Fuß ---------- */

.fuss { background: var(--fuss); color: var(--fuss-text); margin-top: 3rem; border-top: 4px solid var(--gold); }
.fuss-innen { max-width: var(--breite); margin: 0 auto; padding: 2.2rem 16px 2rem; display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .fuss-innen { grid-template-columns: 1.4fr 1fr 1fr; } }
.fuss .wortmarke { font-size: 1.6rem; color: #fff; }
.fuss .wortmarke .e { color: #ff7a8e; }
.fuss-marke p { margin: .5rem 0 0; opacity: .8; }
.fuss nav { display: flex; flex-direction: column; gap: .35rem; }
.fuss a { color: var(--fuss-text); text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss-hinweis { grid-column: 1 / -1; margin: 0; padding-top: 1.2rem; border-top: 1px solid rgb(255 255 255 / .12); font-size: .85rem; opacity: .75; }
.fuss-bearbeiten { grid-column: 1 / -1; margin: 0; }
.fuss-bearbeiten a { display: inline-flex; gap: .4rem; align-items: center; background: var(--gold); color: #1b1a18; padding: .45rem .9rem; border-radius: 999px; font-weight: 700; }

.nach-oben {
  position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 2.8rem; height: 2.8rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--flaeche); color: var(--tinte); border: 1px solid var(--linie);
  box-shadow: 0 4px 14px rgb(0 0 0 / .15); opacity: 0; pointer-events: none; transition: opacity .2s;
}
.nach-oben.sichtbar { opacity: 1; pointer-events: auto; }

.zoom-dialog { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.zoom-dialog::backdrop { background: rgb(0 0 0 / .85); }
.zoom-dialog img { display: block; max-width: 96vw; max-height: 94vh; border-radius: 6px; }
.zoom-zu { position: fixed; top: 12px; right: 16px; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; background: #fff; color: #000; }

/* ---------- Druck ---------- */

@media print {
  .kopf, .fuss, .toc, .blaettern, .nach-oben, .merken-knopf, .video, .sprung { display: none !important; }
  body { background: #fff; color: #000; }
  .seite { padding: 0; }
  .mit-toc .seiten-kopf { margin-left: 0; }
  .text { max-width: none; font-size: 11pt; }
  .bild-einzeln { width: 30%; }
  a { color: #000; }
}
