/* ============================================================
   Bomberbude Wiki – Stylesheet
   Schriften: Systemstack. Wer eigene Schriften will, legt WOFF2-
   Dateien in /assets/fonts und ergänzt @font-face unten.
   Keine externen CDNs – hält die Seite DSGVO-freundlich.
   ============================================================ */

:root {
  --anzeige: "Bricolage Grotesque", "Segoe UI Variable Display", "Helvetica Neue", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;

  --laterne: #f0a93b;
  --laterne-tief: #b9711a;
  --kupfer: #3e8c77;
  --redstone: #c4453b;

  --radius: 4px;
  --radius-gross: 8px;
  --breite-nav: 264px;
  --breite-inhalt: 1080px;
  --tempo: 140ms;
}

html[data-schema="dunkel"] {
  --grund: #14181d;
  --flaeche: #1b212a;
  --flaeche-hoch: #222a34;
  --kante: #2c3641;
  --schrift: #e4e8ec;
  --schrift-leise: #93a0ae;
  --akzent: var(--laterne);
  --akzent-schrift: #14181d;
  --code-grund: #10151a;
  --schatten: 0 10px 30px rgba(0, 0, 0, .45);
}

html[data-schema="hell"] {
  --grund: #f1f2ee;
  --flaeche: #ffffff;
  --flaeche-hoch: #f7f8f4;
  --kante: #dcdfd6;
  --schrift: #1a1d21;
  --schrift-leise: #5f6b78;
  --akzent: var(--laterne-tief);
  --akzent-schrift: #fffdf7;
  --code-grund: #f2f3ee;
  --schatten: 0 8px 24px rgba(20, 24, 29, .12);
}

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

body {
  margin: 0;
  background: var(--grund);
  color: var(--schrift);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--akzent); text-decoration-color: color-mix(in srgb, var(--akzent) 45%, transparent); }
a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 2px;
  border-radius: 2px;
}

.ueberspringen {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--akzent); color: var(--akzent-schrift); padding: .6rem 1rem;
}
.ueberspringen:focus { left: 0; }

/* ---------------------------------------------------------- Kopfzeile */

.kopf {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 1rem;
  padding: .6rem clamp(.7rem, 2vw, 1.4rem);
  background: color-mix(in srgb, var(--flaeche) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--kante);
}

.marke { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: inherit; flex: 0 0 auto; }

.marke__zeichen {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  font: 700 13px/1 var(--anzeige); letter-spacing: .02em;
  color: var(--akzent-schrift);
  background: var(--akzent);
  border-radius: 3px;
  transform: rotate(-4deg);
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--akzent) 35%, transparent);
}

.marke__text { display: flex; flex-direction: column; line-height: 1.15; }
.marke__text strong { font: 600 1.02rem/1.1 var(--anzeige); letter-spacing: -.01em; }
.marke__text small { color: var(--schrift-leise); font-size: .74rem; }

.suchfeld { position: relative; flex: 1 1 auto; max-width: 460px; margin-left: auto; }
.suchfeld input {
  width: 100%; padding: .5rem 2.2rem .5rem .8rem;
  background: var(--grund); color: inherit;
  border: 1px solid var(--kante); border-radius: var(--radius);
  font: inherit; font-size: .92rem;
}
.suchfeld input::placeholder { color: var(--schrift-leise); }
.suchfeld kbd {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  padding: .05rem .35rem; font: 600 .72rem var(--mono);
  color: var(--schrift-leise); border: 1px solid var(--kante); border-radius: 3px;
  pointer-events: none;
}

.kopf__rechts { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; }
.kopf__menue { display: none; }

/* Konto-Klappmenü */
.konto { position: relative; }
.konto summary {
  display: flex; align-items: center; gap: .5rem;
  padding: .25rem .5rem .25rem .25rem;
  border: 1px solid var(--kante); border-radius: 999px;
  cursor: pointer; list-style: none;
}
.konto summary::-webkit-details-marker { display: none; }
.konto__kuerzel {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--kupfer); color: #fff; font: 700 .72rem var(--sans);
}
.konto__name { font-size: .88rem; }
.konto__klappe {
  position: absolute; right: 0; top: calc(100% + .4rem); min-width: 190px; z-index: 50;
  display: flex; flex-direction: column;
  background: var(--flaeche); border: 1px solid var(--kante);
  border-radius: var(--radius-gross); box-shadow: var(--schatten); overflow: hidden;
}
.konto__klappe a, .konto__klappe button {
  padding: .55rem .8rem; text-align: left; background: none; border: 0;
  color: inherit; font: inherit; text-decoration: none; cursor: pointer;
}
.konto__klappe a:hover, .konto__klappe button:hover { background: var(--flaeche-hoch); }
.konto__rolle {
  padding: .45rem .8rem; font: 600 .7rem var(--mono); text-transform: uppercase;
  letter-spacing: .08em; color: var(--schrift-leise); border-bottom: 1px solid var(--kante);
}

/* ---------------------------------------------------------- Knöpfe */

.knopf {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .8rem;
  font: 500 .88rem/1.2 var(--sans);
  border: 1px solid var(--kante); border-radius: var(--radius);
  background: var(--flaeche); color: inherit; text-decoration: none; cursor: pointer;
  transition: background var(--tempo), border-color var(--tempo), transform var(--tempo);
}
.knopf:hover { background: var(--flaeche-hoch); border-color: color-mix(in srgb, var(--akzent) 50%, var(--kante)); }
.knopf:active { transform: translateY(1px); }
.knopf--haupt { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-schrift); font-weight: 600; }
.knopf--haupt:hover { background: color-mix(in srgb, var(--akzent) 85%, #fff); color: var(--akzent-schrift); }
.knopf--gefahr { color: var(--redstone); border-color: color-mix(in srgb, var(--redstone) 40%, var(--kante)); }
.knopf--gefahr:hover { background: color-mix(in srgb, var(--redstone) 12%, transparent); }
.knopf--still { background: transparent; }
.knopf--klein { padding: .28rem .55rem; font-size: .8rem; }

/* ---------------------------------------------------------- Grundraster */

.rahmen {
  display: grid;
  grid-template-columns: var(--breite-nav) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  max-width: 1500px; margin: 0 auto;
  padding: 1.6rem clamp(.9rem, 2.5vw, 2rem) 4rem;
}

.inhalt { min-width: 0; max-width: var(--breite-inhalt); animation: auftauchen .25s ease-out; }

@keyframes auftauchen { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------- Navigation */

.navigation {
  position: sticky; top: 68px; align-self: start;
  max-height: calc(100vh - 90px); overflow-y: auto;
  padding-right: .4rem;
  font-size: .9rem;
  scrollbar-width: thin;
}
.navigation ul { list-style: none; margin: 0; padding: 0; }
.navigation a { display: block; padding: .28rem .55rem; border-radius: var(--radius); color: var(--schrift); text-decoration: none; }
.navigation a:hover { background: var(--flaeche); }
.navigation a.ist-aktiv {
  background: color-mix(in srgb, var(--akzent) 15%, transparent);
  color: var(--akzent);
  box-shadow: inset 2px 0 0 var(--akzent);
  font-weight: 600;
}
.navigation__schnell { padding-bottom: .8rem; margin-bottom: .8rem; border-bottom: 1px solid var(--kante); }
.navigation__gruppe { margin-bottom: 1.1rem; }
.navigation__titel {
  font: 600 .74rem/1.4 var(--mono) !important;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--schrift-leise) !important;
  padding-left: .55rem !important;
}
.navigation__gruppe ul a { padding-left: 1.1rem; color: var(--schrift-leise); }
.navigation__gruppe ul a:hover { color: var(--schrift); }
.navigation__leer { padding: .2rem 1.1rem; color: var(--schrift-leise); font-size: .8rem; font-style: italic; }
.navigation__anlegen { display: block; margin-top: .5rem; color: var(--akzent) !important; font-weight: 600; }
.stift { color: var(--akzent); }
.navigation__schatten { display: none; }

/* ---------------------------------------------------------- Meldungen */

.meldung {
  margin-bottom: 1.2rem; padding: .7rem 1rem;
  border: 1px solid var(--kante); border-left: 3px solid var(--schrift-leise);
  border-radius: var(--radius); background: var(--flaeche); font-size: .93rem;
}
.meldung--erfolg { border-left-color: var(--kupfer); }
.meldung--fehler { border-left-color: var(--redstone); }
.meldung--hinweis { border-left-color: var(--akzent); }

/* ---------------------------------------------------------- Seitenkopf */

.seitenkopf { margin-bottom: 1.8rem; }
.krume { font: .8rem/1.4 var(--sans); color: var(--schrift-leise); margin-bottom: .5rem; }
.krume a { color: inherit; }
h1 { font: 700 clamp(1.7rem, 3.4vw, 2.4rem)/1.15 var(--anzeige); letter-spacing: -.02em; margin: 0 0 .4rem; }
.seitenkopf__unterzeile { color: var(--schrift-leise); font-size: .95rem; }
.seitenkopf__leiste { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: 1rem; }

/* Etiketten */
.etikett {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .12rem .5rem;
  font: 600 .7rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .06em;
  border: 1px solid var(--kante); border-radius: 999px; color: var(--schrift-leise);
}
.etikett--funktion { color: var(--kupfer); border-color: color-mix(in srgb, var(--kupfer) 45%, var(--kante)); }
.etikett--tutorial { color: var(--akzent); border-color: color-mix(in srgb, var(--akzent) 45%, var(--kante)); }
.etikett--entwurf { color: var(--redstone); border-color: color-mix(in srgb, var(--redstone) 45%, var(--kante)); }
.etikett--intern { color: var(--redstone); }

/* Pack-Marken */
.packs { display: inline-flex; flex-wrap: wrap; gap: .25rem; }
.pack {
  display: inline-block; padding: .1rem .45rem;
  font: 700 .68rem/1.7 var(--mono); letter-spacing: .04em;
  border-radius: 3px; color: #12161b;
}

/* ---------------------------------------------------------- Steckbrief */

.steckbrief {
  display: grid; gap: .1rem;
  margin: 0 0 2rem;
  border: 1px solid var(--kante);
  border-left: 4px solid var(--akzent);
  border-radius: var(--radius-gross);
  background: var(--flaeche);
  overflow: hidden;
}
.steckbrief__befehl {
  padding: 1rem 1.2rem;
  background: var(--code-grund);
  border-bottom: 1px solid var(--kante);
  font: 600 clamp(1rem, 2.2vw, 1.35rem)/1.4 var(--mono);
  color: var(--akzent);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  word-break: break-word;
}
.steckbrief__zeilen { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.steckbrief__zelle { padding: .8rem 1.2rem; border-top: 1px solid var(--kante); }
.steckbrief__zelle:not(:last-child) { border-right: 1px solid var(--kante); }
.steckbrief__marke {
  display: block; font: 600 .68rem/1.6 var(--mono);
  text-transform: uppercase; letter-spacing: .1em; color: var(--schrift-leise);
}
.steckbrief__wert { font-size: .95rem; }

/* ---------------------------------------------------------- Artikel */

.artikel { font-family: var(--serif); font-size: 1.06rem; line-height: 1.72; }
.artikel > *:first-child { margin-top: 0; }
.artikel p { margin: 0 0 1.1rem; }
.artikel h2 {
  font: 700 1.5rem/1.25 var(--anzeige); letter-spacing: -.01em;
  margin: 2.4rem 0 .8rem; padding-bottom: .35rem;
  border-bottom: 1px solid var(--kante);
}
.artikel h3 { font: 600 1.18rem/1.3 var(--anzeige); margin: 1.8rem 0 .6rem; }
.artikel h4 { font: 600 1rem/1.3 var(--sans); margin: 1.4rem 0 .5rem; color: var(--schrift-leise); }
.artikel ul, .artikel ol { margin: 0 0 1.1rem; padding-left: 1.4rem; }
.artikel li { margin-bottom: .35rem; }
.artikel li::marker { color: var(--akzent); }
.artikel blockquote {
  margin: 1.2rem 0; padding: .1rem 1rem;
  border-left: 3px solid var(--kante); color: var(--schrift-leise); font-style: italic;
}
.artikel hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--kante); }
.artikel img { max-width: 100%; height: auto; border-radius: var(--radius); }
.artikel figure { margin: 1.4rem 0; }
.artikel figcaption { margin-top: .4rem; font: .82rem var(--sans); color: var(--schrift-leise); }
.artikel mark { background: color-mix(in srgb, var(--akzent) 35%, transparent); color: inherit; padding: 0 .2em; }

.artikel .anker {
  margin-left: .4rem; opacity: 0; text-decoration: none; font-size: .7em;
  transition: opacity var(--tempo);
}
.artikel h2:hover .anker, .artikel h3:hover .anker { opacity: .6; }

.artikel code {
  padding: .1rem .35rem; font: .86em var(--mono);
  background: var(--code-grund); border: 1px solid var(--kante); border-radius: 3px;
}
.artikel code.befehl { color: var(--akzent); font-weight: 600; }
.artikel pre.code {
  position: relative;
  margin: 1.2rem 0; padding: .9rem 1rem;
  background: var(--code-grund); border: 1px solid var(--kante); border-radius: var(--radius);
  overflow-x: auto;
}
.artikel pre.code code { padding: 0; background: none; border: 0; font-size: .88rem; line-height: 1.55; }
.kopieren {
  position: absolute; top: .45rem; right: .45rem;
  padding: .15rem .45rem; font: 600 .7rem var(--mono);
  background: var(--flaeche); border: 1px solid var(--kante); border-radius: 3px;
  color: var(--schrift-leise); cursor: pointer; opacity: 0; transition: opacity var(--tempo);
}
pre.code:hover .kopieren, .kopieren:focus { opacity: 1; }

.wiki-link--fehlt { color: var(--redstone); text-decoration-style: dotted; }

.tabelle-rahmen { overflow-x: auto; margin: 1.3rem 0; }
.artikel table { width: 100%; border-collapse: collapse; font: .93rem var(--sans); }
.artikel th, .artikel td { padding: .5rem .7rem; border: 1px solid var(--kante); text-align: left; vertical-align: top; }
.artikel th { background: var(--flaeche-hoch); font-weight: 600; }
.artikel tbody tr:nth-child(even) { background: color-mix(in srgb, var(--flaeche) 55%, transparent); }

.aufgabe { list-style: none; margin-left: -1.1rem; }
.aufgabe--fertig { color: var(--schrift-leise); text-decoration: line-through; }

/* Hinweiskästen */
.box {
  margin: 1.3rem 0; padding: .9rem 1.1rem;
  border: 1px solid var(--kante); border-left: 3px solid var(--schrift-leise);
  border-radius: var(--radius); background: var(--flaeche);
  font-family: var(--sans); font-size: .96rem;
}
.box > *:last-child { margin-bottom: 0; }
.box__titel { font: 600 .78rem/1.5 var(--mono) !important; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .4rem !important; }
.box--hinweis { border-left-color: var(--kupfer); }
.box--hinweis .box__titel { color: var(--kupfer); }
.box--warnung { border-left-color: var(--redstone); background: color-mix(in srgb, var(--redstone) 7%, var(--flaeche)); }
.box--warnung .box__titel { color: var(--redstone); }
.box--tipp { border-left-color: var(--akzent); }
.box--tipp .box__titel { color: var(--akzent); }
.box--regel { border-left-color: var(--schrift); }
.box--befehl { border-left-color: var(--akzent); background: var(--code-grund); font-family: var(--mono); font-size: .9rem; }

/* Inhaltsverzeichnis */
.artikel-raster { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 2.5rem; align-items: start; }
.verzeichnis {
  position: sticky; top: 88px;
  font-size: .85rem; border-left: 1px solid var(--kante); padding-left: .9rem;
}
.verzeichnis strong {
  display: block; font: 600 .7rem/1.6 var(--mono); text-transform: uppercase;
  letter-spacing: .1em; color: var(--schrift-leise); margin-bottom: .4rem;
}
.verzeichnis a { display: block; padding: .18rem 0; color: var(--schrift-leise); text-decoration: none; }
.verzeichnis a:hover, .verzeichnis a.ist-aktiv { color: var(--akzent); }
.verzeichnis .stufe-3 { padding-left: .8rem; font-size: .8rem; }

/* Fußleiste des Artikels */
.artikel-fuss {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--kante);
  font-size: .85rem; color: var(--schrift-leise);
}
.artikel-fuss__aktionen { display: flex; gap: .4rem; flex-wrap: wrap; }

/* ---------------------------------------------------------- Karten */

.karten { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.karte {
  display: flex; flex-direction: column; gap: .35rem;
  padding: .9rem 1rem;
  background: var(--flaeche); border: 1px solid var(--kante); border-radius: var(--radius-gross);
  text-decoration: none; color: inherit;
  transition: border-color var(--tempo), transform var(--tempo);
}
.karte:hover { border-color: var(--akzent); transform: translateY(-2px); }
.karte__titel { font: 600 1.02rem/1.3 var(--anzeige); }
.karte__text { font-size: .87rem; color: var(--schrift-leise); }
.karte__fuss { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-top: auto; padding-top: .5rem; }
.karte__befehl { font: .8rem var(--mono); color: var(--akzent); }

.abschnitt { margin: 2.5rem 0; }
.abschnitt__kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.abschnitt h2 { font: 600 1.15rem/1.3 var(--anzeige); margin: 0; }
.abschnitt__kopf a { font-size: .85rem; }

/* Startseite */
.bau {
  padding: clamp(1.2rem, 3vw, 2rem);
  background: var(--flaeche); border: 1px solid var(--kante); border-radius: var(--radius-gross);
  border-top: 3px solid var(--akzent);
  margin-bottom: 2rem;
}
.bau h1 { margin-bottom: .6rem; }
.bau p { max-width: 62ch; color: var(--schrift-leise); margin: 0 0 1.2rem; }
.bau__zahlen { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.bau__zahl strong { display: block; font: 700 1.6rem/1 var(--anzeige); }
.bau__zahl span { font: .74rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--schrift-leise); }

.serverleiste { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.serverleiste__eintrag {
  display: flex; flex-direction: column; gap: .1rem;
  padding: .45rem .7rem; border: 1px solid var(--kante); border-radius: var(--radius);
  border-bottom-width: 3px; background: var(--grund);
}
.serverleiste__eintrag strong { font-size: .85rem; }
.serverleiste__eintrag span { font: .72rem var(--mono); color: var(--schrift-leise); }

/* Listen/Tabellen außerhalb von Artikeln */
.liste { border: 1px solid var(--kante); border-radius: var(--radius-gross); overflow: hidden; background: var(--flaeche); }
.liste__zeile {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
  padding: .7rem 1rem; border-bottom: 1px solid var(--kante); text-decoration: none; color: inherit;
}
.liste__zeile:last-child { border-bottom: 0; }
.liste__zeile:hover { background: var(--flaeche-hoch); }
.liste__haupt { flex: 1 1 260px; min-width: 0; }
.liste__titel { font-weight: 600; }
.liste__neben { font-size: .82rem; color: var(--schrift-leise); }

/* ---------------------------------------------------------- Formulare */

.formular { display: grid; gap: 1rem; max-width: 560px; }
.formular--breit { max-width: none; }
.feld { display: grid; gap: .3rem; }
.feld > label { font: 600 .8rem/1.4 var(--sans); }
.feld__hilfe { font-size: .78rem; color: var(--schrift-leise); }
input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="number"], input[type="url"], select, textarea {
  width: 100%; padding: .5rem .65rem;
  background: var(--grund); color: inherit;
  border: 1px solid var(--kante); border-radius: var(--radius);
  font: inherit; font-size: .93rem;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
select { cursor: pointer; }
.feld--schalter { display: flex; align-items: flex-start; gap: .5rem; }
.feld--schalter input { margin-top: .3rem; }
.feld--schalter label { font-weight: 500; }
.feldreihe { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.formular__aktionen { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

.kasten {
  padding: 1.2rem; background: var(--flaeche);
  border: 1px solid var(--kante); border-radius: var(--radius-gross);
}
.kasten--schmal { max-width: 420px; margin: 2rem auto; }
.kasten h2 { font: 600 1.2rem var(--anzeige); margin: 0 0 1rem; }

.hinweis-text { font-size: .87rem; color: var(--schrift-leise); }

/* ---------------------------------------------------------- Editor */

.editor { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.editor__haupt { display: grid; gap: .8rem; }
.editor__seite {
  display: grid; gap: 1rem; position: sticky; top: 88px;
  padding: 1rem; background: var(--flaeche); border: 1px solid var(--kante); border-radius: var(--radius-gross);
}
.werkzeuge {
  display: flex; flex-wrap: wrap; gap: .25rem;
  padding: .4rem; background: var(--flaeche); border: 1px solid var(--kante);
  border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0;
}
.werkzeuge button {
  padding: .25rem .5rem; font: 600 .78rem var(--mono);
  background: transparent; border: 1px solid transparent; border-radius: 3px;
  color: var(--schrift-leise); cursor: pointer;
}
.werkzeuge button:hover { background: var(--flaeche-hoch); color: var(--schrift); border-color: var(--kante); }
.werkzeuge__trenner { width: 1px; margin: .1rem .3rem; background: var(--kante); }
#inhalt-feld {
  border-radius: 0 0 var(--radius) var(--radius);
  min-height: 460px; font: .92rem/1.6 var(--mono);
}
.vorschau {
  padding: 1.2rem; border: 1px dashed var(--kante); border-radius: var(--radius);
  background: var(--flaeche);
}
.editor__ablegen { border-color: var(--akzent) !important; }
.editor__zustand { font: .78rem var(--mono); color: var(--schrift-leise); }

/* ---------------------------------------------------------- Verlauf */

.diff { font: .85rem/1.5 var(--mono); border: 1px solid var(--kante); border-radius: var(--radius); overflow: hidden; }
.diff div { padding: .1rem .6rem; white-space: pre-wrap; word-break: break-word; }
.diff .gleich { color: var(--schrift-leise); }
.diff .neu { background: color-mix(in srgb, var(--kupfer) 18%, transparent); }
.diff .weg { background: color-mix(in srgb, var(--redstone) 18%, transparent); text-decoration: line-through; }

/* ---------------------------------------------------------- Verwaltung */

.adminleiste { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.6rem; padding-bottom: .8rem; border-bottom: 1px solid var(--kante); }
.adminleiste a {
  padding: .35rem .7rem; border-radius: var(--radius); text-decoration: none;
  color: var(--schrift-leise); font-size: .88rem;
}
.adminleiste a:hover { background: var(--flaeche); color: var(--schrift); }
.adminleiste a.ist-aktiv { background: var(--flaeche); color: var(--akzent); font-weight: 600; }

.datentabelle { width: 100%; border-collapse: collapse; font-size: .88rem; background: var(--flaeche); }
.datentabelle th, .datentabelle td { padding: .55rem .7rem; border-bottom: 1px solid var(--kante); text-align: left; vertical-align: middle; }
.datentabelle th { font: 600 .72rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--schrift-leise); }
.datentabelle tr:hover td { background: var(--flaeche-hoch); }
.datentabelle select, .datentabelle input { padding: .25rem .4rem; font-size: .82rem; }
.tabellenrahmen { overflow-x: auto; border: 1px solid var(--kante); border-radius: var(--radius-gross); }

.kacheln { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-bottom: 2rem; }
.kachel { padding: .9rem 1rem; background: var(--flaeche); border: 1px solid var(--kante); border-radius: var(--radius-gross); }
.kachel strong { display: block; font: 700 1.5rem/1.1 var(--anzeige); }
.kachel span { font: .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--schrift-leise); }
.kachel--warnt { border-color: color-mix(in srgb, var(--redstone) 50%, var(--kante)); }
.kachel--warnt strong { color: var(--redstone); }

.bilderraster { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.bilderraster figure { margin: 0; border: 1px solid var(--kante); border-radius: var(--radius); overflow: hidden; background: var(--flaeche); }
.bilderraster img { display: block; width: 100%; height: 110px; object-fit: cover; }
.bilderraster figcaption { padding: .4rem .5rem; font-size: .72rem; color: var(--schrift-leise); word-break: break-all; }

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

.fuss {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  max-width: 1500px; margin: 0 auto; padding: 1.4rem clamp(.9rem, 2.5vw, 2rem) 2.4rem;
  border-top: 1px solid var(--kante);
  font-size: .84rem; color: var(--schrift-leise);
}
.fuss code { font-family: var(--mono); color: var(--akzent); }
.fuss__links { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------------------------------------------------------- Fehlerseite */

.fehlerseite { text-align: center; padding: 4rem 1rem; }
.fehlerseite strong { display: block; font: 700 4rem/1 var(--anzeige); color: var(--akzent); }
.fehlerseite p { color: var(--schrift-leise); max-width: 48ch; margin: 1rem auto 2rem; }

/* ---------------------------------------------------------- Schmale Fenster */

@media (max-width: 1180px) {
  .artikel-raster { grid-template-columns: minmax(0, 1fr); }
  .verzeichnis { position: static; border-left: 0; border-top: 1px solid var(--kante); padding: .8rem 0 0; }
  .editor { grid-template-columns: minmax(0, 1fr); }
  .editor__seite { position: static; }
}

@media (max-width: 860px) {
  .kopf { flex-wrap: wrap; gap: .6rem; }
  .kopf__menue {
    display: grid; gap: 4px; place-content: center;
    width: 38px; height: 38px; padding: 0;
    background: transparent; border: 1px solid var(--kante); border-radius: var(--radius); cursor: pointer;
  }
  .kopf__menue span { display: block; width: 18px; height: 2px; background: var(--schrift); }
  .marke__text small { display: none; }
  .suchfeld { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
  .suchfeld kbd { display: none; }
  .kopf__neu, .konto__name { display: none; }

  .rahmen { grid-template-columns: minmax(0, 1fr); padding-top: 1.1rem; }
  .navigation {
    position: fixed; inset: 0 auto 0 0; z-index: 60;
    width: min(300px, 84vw); max-height: none;
    padding: 1rem; background: var(--flaeche); border-right: 1px solid var(--kante);
    transform: translateX(-102%); transition: transform 180ms ease;
    overflow-y: auto;
  }
  .navigation.ist-offen { transform: none; box-shadow: var(--schatten); }
  .navigation__schatten { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .5); }
  .navigation__schatten[hidden] { display: none; }
  .steckbrief__zelle:not(:last-child) { border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .kopf, .navigation, .fuss, .artikel-fuss__aktionen, .verzeichnis { display: none !important; }
  .rahmen { display: block; padding: 0; }
  body { background: #fff; color: #000; }
}
