/* ==========================================================================
   Terranigma PC-Port — das Stylesheet

   Die Idee in einem Satz: moderne, ruhige Typografie (Inter) auf einem
   Nachthimmel aus echten Pixeln, mit Fensterrahmen, wie sie Rollenspiele
   von 1995 um ihre Texte legten. Die Pixel sind der Akzent, nicht das Thema.

   Aufbau: 1 Schriften · 2 Token · 3 Grundlagen · 4 Kopf · 5 Leiste ·
   6 Seitenaufbau · 7 Bausteine · 8 Fuß · 9 Bewegung, Kontrast, Druck
   ========================================================================== */

/* 1 · Schriften — selbst gehostet (keine Anfrage an fremde Server), Lizenzen daneben */

@font-face {
  font-family: "Inter";
  src: url(../schriften/inter-latin.2c295d99e2.woff2) format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pixelify Sans";
  src: url(../schriften/pixelify-sans-latin.4a5633a0c9.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

/* Nur die vier Zeichen des Originaltitels: 天 地 創 造 */
@font-face {
  font-family: "DotGothic16";
  src: url(../schriften/dotgothic16-tenchi.1ea879d144.woff2) format("woff2");
  font-display: swap;
  unicode-range: U+5929, U+5730, U+5275, U+9020;
}

/* 2 · Token */

:root {
  color-scheme: dark;

  /* Farben: Nacht über Krysta */
  --nacht: #0b0b26;
  --nacht-tief: #04041a;
  --flaeche: #131845;
  --flaeche-hell: #1a2056;
  --flaeche-hoch: #232a6a;
  --linie: #2a3175;
  --text: #eceaf8;
  --text-leise: #b8bce0;
  --text-still: #9296c4;
  --gold: #f2c35b;
  --gold-hell: #ffe3a1;
  --kristall: #7fdbff;
  --kristall-hell: #c4f1ff;
  --violett: #b9a4ff;
  --gruen: #8ce8b0;
  --grau: #b3b6d6;
  --warnung: #ffbe6b;

  /* Fensterrahmen: drei Pixelringe (dunkel, hell, mittel) mit abgestuften Ecken */
  --rahmen-fenster: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath fill='%2303030f' d='M2 0h3v1H2zM1 1h1v1H1zM5 1h1v1H5zM0 2h1v3H0zM6 2h1v3H6zM1 5h1v1H1zM5 5h1v1H5zM2 6h3v1H2z'/%3E%3Cpath fill='%23aeb7f5' d='M2 1h3v1H2zM1 2h1v3H1zM5 2h1v3H5zM2 5h3v1H2z'/%3E%3Cpath fill='%23434c9a' d='M2 2h3v1H2zM2 4h3v1H2zM2 3h1v1H2zM4 3h1v1H4z'/%3E%3C/svg%3E");
  --rahmen-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath fill='%23241503' d='M2 0h3v1H2zM1 1h1v1H1zM5 1h1v1H5zM0 2h1v3H0zM6 2h1v3H6zM1 5h1v1H1zM5 5h1v1H5zM2 6h3v1H2z'/%3E%3Cpath fill='%23fff0c4' d='M2 1h3v1H2zM1 2h1v3H1zM5 2h1v3H5zM2 5h3v1H2z'/%3E%3Cpath fill='%23c98f2c' d='M2 2h3v1H2zM2 4h3v1H2zM2 3h1v1H2zM4 3h1v1H4z'/%3E%3C/svg%3E");
  --rahmen-kristall: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath fill='%2303030f' d='M2 0h3v1H2zM1 1h1v1H1zM5 1h1v1H5zM0 2h1v3H0zM6 2h1v3H6zM1 5h1v1H1zM5 5h1v1H5zM2 6h3v1H2z'/%3E%3Cpath fill='%23c4f1ff' d='M2 1h3v1H2zM1 2h1v3H1zM5 2h1v3H5zM2 5h3v1H2z'/%3E%3Cpath fill='%233a8fc4' d='M2 2h3v1H2zM2 4h3v1H2zM2 3h1v1H2zM4 3h1v1H4z'/%3E%3C/svg%3E");

  /* Schrift */
  --schrift: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --schrift-pixel: "Pixelify Sans", var(--schrift);
  --schrift-jp: "DotGothic16", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  --schrift-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;

  /* Maße */
  --s: 2;             /* ein Spielpixel der Kopfszene = --s CSS-Pixel, immer ganzzahlig */
  --px: 2px;          /* ein Pixel der Rahmen */
  --rinne: clamp(1rem, 4vw, 2.5rem);
  --breite: 76rem;
  --mass: 44rem;      /* Zeilenlänge für Fließtext, rund 70 Zeichen */
  --abstand: clamp(2.75rem, 6vw, 5.5rem);
  --leiste: 3.75rem;
}

/* Die Kopfszene wächst in ganzen Stufen: nur so bleiben ihre Pixel gleich groß. */
@media (min-width: 80em) and (min-height: 48em) { :root { --s: 3; } }
@media (min-width: 120em) and (min-height: 62em) { :root { --s: 4; } }
@media (min-width: 160em) and (min-height: 80em) { :root { --s: 5; } }
@media (min-width: 200em) and (min-height: 110em) { :root { --s: 6; } }
@media (min-width: 160em) { :root { --px: 3px; } }

/* 3 · Grundlagen */

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

html {
  /* Auf großen Monitoren wächst die Schrift mit — 16 px am Handy, bis 22 px auf 4K. */
  font-size: clamp(1rem, 0.6rem + 0.42vw, 1.375rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--leiste) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--nacht);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  hyphens: manual;
}

h1 { font-size: clamp(2.1rem, 1.55rem + 2.2vw, 3.4rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.55rem, 1.3rem + 1.1vw, 2.2rem); letter-spacing: -0.026em; }
h3 { font-size: 1.2rem; letter-spacing: -0.012em; }
h4 { font-size: 1.05rem; }

p,
ul,
ol,
dl,
blockquote,
figure,
pre {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.3em;
}

:is(ul, ol):not([class]) > li + li {
  margin-top: 0.3em;
}

li::marker {
  color: var(--gold);
}

a {
  color: var(--kristall);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.15s, text-decoration-color 0.15s;
}

a:hover {
  color: var(--kristall-hell);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

strong {
  font-weight: 650;
  color: #fff;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

code {
  font-family: var(--schrift-mono);
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  background: rgba(127, 219, 255, 0.1);
  border-radius: 3px;
}

pre.code {
  overflow-x: auto;
  padding: 1rem 1.25rem;
  background: var(--nacht-tief);
  border: var(--px) solid var(--linie);
}

pre.code code {
  padding: 0;
  background: none;
}

/* Schmal brechen Codezeilen um, statt aus dem Kasten zu laufen — wer eine
   Vorlage abschreibt, soll nicht seitlich wischen müssen. Kopiert wird der
   Text ohne die Umbrüche. */
@media (max-width: 40em) {
  pre.code {
    padding: 0.85rem 1rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}

hr {
  height: var(--px);
  margin: 2.5rem 0;
  border: 0;
  background: var(--linie);
}

blockquote {
  padding-left: 1.1rem;
  border-left: calc(var(--px) * 2) solid var(--linie);
  color: var(--text-leise);
}

mark.platzhalter {
  padding: 0.05em 0.35em;
  color: #231400;
  background: repeating-linear-gradient(-45deg, #ffcf66 0 6px, #ffbf3d 6px 12px);
  border-radius: 2px;
  font-weight: 600;
}

.pixelbild {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.symbol {
  flex: none;
  width: 1.5em;
  height: 1.5em;
  image-rendering: pixelated;
}

.nur-lesehilfe {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprung {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  color: #1b1100;
  background: var(--gold);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.sprung:focus {
  transform: none;
}

.leer {
  color: var(--text-leise);
}

/* Knöpfe: gleicher Pixelrahmen wie die Fenster, kleiner */

.knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
}

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 2.9rem;
  padding: 0.55em 1.2em;
  color: var(--text);
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-decoration: none;
  background: linear-gradient(180deg, #2c3486, #1b2060) padding-box;
  border: calc(var(--px) * 3) solid transparent;
  border-image: var(--rahmen-fenster) 3 / calc(var(--px) * 3);
  /* drop-shadow statt box-shadow: der Schatten folgt den abgestuften Ecken. */
  filter: drop-shadow(0 calc(var(--px) * 2) 0 rgba(0, 0, 0, 0.5));
  transition: transform 0.1s, filter 0.15s;
}

.knopf:hover {
  color: #fff;
  filter: brightness(1.12) drop-shadow(0 calc(var(--px) * 2) 0 rgba(0, 0, 0, 0.5));
  text-decoration: none;
}

.knopf:active {
  transform: translateY(var(--px));
  filter: drop-shadow(0 var(--px) 0 rgba(0, 0, 0, 0.5));
}

.knopf--gold {
  color: #241503;
  background: linear-gradient(180deg, #ffe7a3, #f2c35b 55%, #dea440) padding-box;
  border-image-source: var(--rahmen-gold);
}

.knopf--gold:hover {
  color: #120a00;
}

.knopf--aus {
  color: var(--text-still);
  background: #151a44 padding-box;
  cursor: not-allowed;
  filter: saturate(0.4);
}

.knopf--aus:hover {
  color: var(--text-still);
  filter: saturate(0.4);
}

.knopf .symbol {
  width: 1.3em;
  height: 1.3em;
}

/* Abzeichen: der Stand einer Sache, in Farbe und Wort */

.abzeichen {
  display: inline-block;
  padding: 0.18em 0.65em 0.2em;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: 0.1em;
  color: var(--abzeichen-text);
  background: var(--abzeichen-grund);
  box-shadow: inset 0 0 0 1px var(--abzeichen-rand);
  clip-path: polygon(2px 0, calc(100% - 2px) 0, 100% 2px, 100% calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 0 calc(100% - 2px), 0 2px);
}

.abzeichen--kristall { --abzeichen-text: #a6ebff; --abzeichen-grund: rgba(127, 219, 255, 0.13); --abzeichen-rand: rgba(127, 219, 255, 0.45); }
.abzeichen--violett  { --abzeichen-text: #d2c6ff; --abzeichen-grund: rgba(185, 164, 255, 0.14); --abzeichen-rand: rgba(185, 164, 255, 0.45); }
.abzeichen--gruen    { --abzeichen-text: #a9f3c6; --abzeichen-grund: rgba(140, 232, 176, 0.13); --abzeichen-rand: rgba(140, 232, 176, 0.45); }
.abzeichen--gold     { --abzeichen-text: #ffdc8f; --abzeichen-grund: rgba(242, 195, 91, 0.14); --abzeichen-rand: rgba(242, 195, 91, 0.5); }
.abzeichen--grau     { --abzeichen-text: #cfd1e6; --abzeichen-grund: rgba(179, 182, 214, 0.1); --abzeichen-rand: rgba(179, 182, 214, 0.35); }
.abzeichen--beispiel { --abzeichen-text: #231400; --abzeichen-grund: #ffcf66; --abzeichen-rand: #ffcf66; }

/* 4 · Kopf: Himmel und Erde (天地) */

.kopf {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  background: var(--nacht-tief);
}

.kopf__himmel {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #04041a url(../bilder/szene/himmel.70725c803a.png) repeat-x 50% 100% / calc(960px * var(--s)) calc(240px * var(--s));
  image-rendering: pixelated;
}

.kopf__funkeln {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: calc(960px * var(--s));
  max-width: none;
  height: calc(240px * var(--s));
  transform: translateX(-50%);
}

.kopf__funkeln path {
  fill: #f2f5ff;
  animation: funkeln 5.2s steps(1, end) infinite;
}

.kopf__funkeln .f2 { animation-duration: 6.1s; animation-delay: -1.7s; fill: #d6e2ff; }
.kopf__funkeln .f3 { animation-duration: 4.4s; animation-delay: -3.1s; fill: #fff4d6; }
.kopf__funkeln .f4 { animation-duration: 7.3s; animation-delay: -0.6s; fill: #c9f3ff; }

@keyframes funkeln {
  0%, 100% { opacity: 1; }
  38% { opacity: 0.35; }
  44% { opacity: 1; }
  71% { opacity: 0.6; }
}

.kopf__erde {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: calc(480px * var(--s));
  height: calc(120px * var(--s));
  transform: translate(-50%, var(--senkung, 0));
  background: url(../bilder/szene/erde.ae78f076e7.png) no-repeat 0 0 / 100% 100%;
  image-rendering: pixelated;
}

.kopf__inhalt {
  position: relative;
  width: min(var(--breite), 100% - 2 * var(--rinne));
  margin-inline: auto;
}

/* Ein dunkler Hof hinter Logo und Text: die Sterne bleiben, aber sie funkeln nicht durch die Schrift. */
.kopf__inhalt::before {
  position: absolute;
  inset: -12% -4% -6%;
  z-index: -1;
  content: "";
  background: radial-gradient(closest-side, rgba(4, 4, 26, 0.72), rgba(4, 4, 26, 0.35) 60%, transparent);
  pointer-events: none;
}

/* Groß auf der Startseite, flach auf allen anderen. Die Erde zeigt dann nur ihren Rand. */
.kopf--gross {
  --senkung: calc(68px * var(--s));
  padding-block: clamp(2rem, 6vh, 5rem) calc(48px * var(--s) + clamp(1rem, 2.5vh, 2rem));
}

.kopf--klein {
  --senkung: calc(96px * var(--s));
  padding-block: clamp(1.1rem, 3vh, 1.75rem) calc(24px * var(--s) + 0.5rem);
}

.marke {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  margin: 0;
  line-height: 1;
}

.marke__verweis {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  color: inherit;
  text-decoration: none;
}

.marke__jp {
  margin-right: -0.55em;
  color: var(--kristall);
  font-family: var(--schrift-jp);
  font-size: clamp(0.95rem, 0.75rem + 0.8vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.55em;
  text-shadow: 0 0 14px rgba(127, 219, 255, 0.5);
}

.marke__name {
  display: block;
  padding-inline: 0.05em;
  font-family: var(--schrift-pixel);
  /* Wächst mit der Breite, aber nie über ein Achtel der Höhe — sonst schiebt das Logo den Inhalt aus dem ersten Bild. */
  font-size: clamp(2.6rem, min(1rem + 5.6vw, 12.5vh), 7.5rem);
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--gold);
  background: linear-gradient(180deg, #fff6d6 0%, #ffe08a 38%, #f0b443 60%, #b87420 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 calc(var(--px) * 2) 0 #2a1603) drop-shadow(0 0 22px rgba(242, 195, 91, 0.22));
}

.marke__zusatz {
  margin-top: 0.35rem;
  margin-right: -0.3em;
  color: var(--text-leise);
  font-size: clamp(0.72rem, 0.64rem + 0.35vw, 0.98rem);
  font-weight: 650;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.kopf--klein .kopf__inhalt::before {
  opacity: 0.6;
}

.kopf--klein .marke__jp { font-size: clamp(0.72rem, 0.66rem + 0.3vw, 0.95rem); }
.kopf--klein .marke__name { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 3.2rem); }
.kopf--klein .marke__zusatz { font-size: clamp(0.62rem, 0.58rem + 0.2vw, 0.78rem); }

.kopf__leitsatz {
  max-width: 34rem;
  margin: 1.15rem auto 0;
  color: #e4e6fb;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.4rem);
  line-height: 1.45;
  text-wrap: balance;
  text-shadow: 0 1px 12px #04041a;
}

.kopf__knoepfe {
  justify-content: center;
}

/* Kurze Bildschirme (Laptop quer, Handy quer): der Kopf rückt zusammen. */
@media (max-height: 44em) {
  .kopf--gross {
    --senkung: calc(82px * var(--s));
    padding-block: 1.25rem calc(34px * var(--s) + 0.75rem);
  }

  .kopf--gross .marke__name { font-size: clamp(2.2rem, min(1rem + 4.5vw, 12vh), 4.5rem); }
  .kopf__leitsatz { margin-top: 0.75rem; }
  .kopf__knoepfe { margin-top: 1.1rem; }
}

/* 5 · Leiste: die Reiter */

.leiste {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(7, 8, 30, 0.9);
  border-bottom: var(--px) solid #252c6c;
  box-shadow: 0 var(--px) 0 #03030f;
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
}

.leiste__innen {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(var(--breite), 100% - 2 * var(--rinne));
  min-height: var(--leiste);
  margin-inline: auto;
}

.leiste__marke {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold);
  font-family: var(--schrift-pixel);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.2s, visibility 0.2s;
}

.leiste__marke:hover {
  color: var(--gold-hell);
}

.leiste__marke img {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 22%;
}

.leiste__knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  margin-left: auto;
  padding: 0.4rem 1rem;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  background: #1b2060 padding-box;
  border: calc(var(--px) * 3) solid transparent;
  border-image: var(--rahmen-fenster) 3 / calc(var(--px) * 3);
  cursor: pointer;
}

.leiste__knopfsymbol,
.leiste__knopfsymbol::before,
.leiste__knopfsymbol::after {
  display: block;
  width: 1.1rem;
  height: var(--px);
  background: currentColor;
  transition: transform 0.2s;
}

.leiste__knopfsymbol {
  position: relative;
}

.leiste__knopfsymbol::before,
.leiste__knopfsymbol::after {
  position: absolute;
  left: 0;
  content: "";
}

.leiste__knopfsymbol::before { top: -0.35rem; }
.leiste__knopfsymbol::after { top: 0.35rem; }

.menue-offen .leiste__knopfsymbol { background: transparent; }
.menue-offen .leiste__knopfsymbol::before { transform: translateY(0.35rem) rotate(45deg); }
.menue-offen .leiste__knopfsymbol::after { transform: translateY(-0.35rem) rotate(-45deg); }

.reiter,
.reiter__unter {
  margin: 0;
  padding: 0;
  list-style: none;
}

.reiter li + li {
  margin-top: 0;
}

.reiter__verweis {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-leise);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.reiter__verweis:hover {
  color: #fff;
}

.reiter__verweis[aria-current="page"] {
  color: var(--gold);
}

.reiter__symbol {
  width: 1.1rem;
  height: 1.1rem;
}

.reiter__gruppenname {
  color: var(--text-still);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Schmal: Knopf »Menü«, darunter ein Feld aus Kacheln. */
@media (max-width: 69.99em) {
  .reiter {
    position: absolute;
    top: calc(100% + var(--px));
    left: calc(-1 * var(--rinne));
    right: calc(-1 * var(--rinne));
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 0.6rem;
    max-height: calc(100vh - var(--leiste) - 1rem);
    max-height: calc(100dvh - var(--leiste) - 1rem);
    overflow-y: auto;
    padding: 1rem var(--rinne) 1.5rem;
    background: #080924;
    border-bottom: var(--px) solid #252c6c;
    box-shadow: 0 1.5rem 2rem rgba(0, 0, 0, 0.5);
  }

  .menue-offen .reiter {
    display: grid;
  }

  .reiter__verweis {
    min-height: 3.25rem;
    padding: 0.7rem 1rem;
    background: var(--flaeche) padding-box;
    border: calc(var(--px) * 3) solid transparent;
    border-image: var(--rahmen-fenster) 3 / calc(var(--px) * 3);
  }

  .reiter__verweis[aria-current="page"] {
    background: #231f3b padding-box;
    border-image-source: var(--rahmen-gold);
  }

  .reiter__gruppe {
    display: grid;
    grid-column: 1 / -1;
    gap: 0.45rem;
    margin: 0.35rem 0;
  }

  .reiter__unter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.6rem;
  }
}

/* Breit: alle Reiter in einer Zeile, mit Menüzeiger wie im Spiel. */
@media (min-width: 70em) {
  .leiste__knopf {
    display: none;
  }

  .leiste-klebt-nicht .leiste__marke {
    opacity: 0;
    visibility: hidden;
  }

  .reiter {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: auto;
  }

  .reiter__verweis {
    min-height: 2.75rem;
    padding: 0.35rem 0.7rem 0.35rem 1.05rem;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .reiter__verweis::before {
    position: absolute;
    top: 50%;
    left: 0.1rem;
    width: calc(6px * 1.5);
    height: calc(9px * 1.5);
    content: "";
    background: url(../bilder/zeiger.3378c95e16.svg) no-repeat center / contain;
    image-rendering: pixelated;
    opacity: 0;
    transform: translate(-3px, -50%);
    transition: opacity 0.12s, transform 0.12s;
  }

  .reiter__verweis:hover::before,
  .reiter__verweis:focus-visible::before,
  .reiter__verweis[aria-current="page"]::before {
    opacity: 1;
    transform: translate(0, -50%);
  }

  .reiter__verweis[aria-current="page"]::before {
    animation: zeiger 1.1s steps(2, jump-none) infinite;
  }

  .reiter__gruppe {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 0.4rem;
    padding: 0.1rem 0.3rem;
    border: var(--px) solid #2b3278;
  }

  .reiter__gruppenname {
    position: absolute;
    top: -0.62rem;
    left: 50%;
    padding: 0 0.4rem;
    background: #0a0b28;
    transform: translateX(-50%);
    line-height: 1.2;
  }

  .reiter__unter {
    display: flex;
    gap: 0.1rem;
  }
}

@keyframes zeiger {
  from { transform: translate(-2px, -50%); }
  to { transform: translate(1px, -50%); }
}

/* 6 · Seitenaufbau */

.haupt {
  width: min(var(--breite), 100% - 2 * var(--rinne));
  margin-inline: auto;
  padding-block: var(--abstand);
}

.haupt--seite {
  width: min(62rem, 100% - 2 * var(--rinne));
}

.haupt--seite.hat-verzeichnis {
  width: min(var(--breite), 100% - 2 * var(--rinne));
}

@media (min-width: 75em) {
  .haupt--seite.hat-verzeichnis {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 15rem;
    align-items: start;
    gap: 2.25rem;
  }

  .haupt--seite.hat-verzeichnis .inhaltsverzeichnis {
    position: sticky;
    top: calc(var(--leiste) + 1.5rem);
    grid-column: 2;
    grid-row: 1;
  }

  .haupt--seite.hat-verzeichnis .blatt {
    grid-column: 1;
    grid-row: 1;
  }
}

/* Das Fenster: der Pixelrahmen um den Inhalt einer Seite */
.blatt,
.fenster {
  min-width: 0;
  background: linear-gradient(180deg, var(--flaeche-hell), var(--flaeche) 22rem) padding-box;
  border: calc(var(--px) * 3) solid transparent;
  border-image: var(--rahmen-fenster) 3 / calc(var(--px) * 3);
}

.blatt {
  padding: clamp(1.25rem, 4.5vw, 3.25rem);
}

.blatt__kopf {
  margin-bottom: 2.25rem;
  padding-bottom: 1.6rem;
  border-bottom: var(--px) solid var(--linie);
}

.blatt__oberzeile {
  margin-bottom: 0.7rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.blatt__oberzeile a {
  color: inherit;
}

.blatt__einleitung {
  max-width: var(--mass);
  margin: 1.1rem 0 0;
  color: #dcdff7;
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem);
  line-height: 1.5;
}

/* Fließtext bleibt schmal; Raster (Features, Galerie, Karten) nutzen die ganze Breite. */
.blatt__text > :is(p, ul:not([class]), ol:not([class]), blockquote, h2, h3, h4, pre, .kasten, .textbox, details) {
  max-width: var(--mass);
}

.blatt__text > h2 {
  margin: 3rem 0 1.1rem;
}

.blatt__text > h3 {
  margin: 2.1rem 0 0.65rem;
}

.blatt__text > :first-child {
  margin-top: 0;
}

.blatt__text > :last-child {
  margin-bottom: 0;
}

.blatt__fuss {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: var(--px) solid var(--linie);
}

.inhaltsverzeichnis {
  margin-bottom: 1.5rem;
  padding: 1.1rem 1.25rem;
  background: rgba(19, 24, 69, 0.7);
  border: var(--px) solid var(--linie);
}

.inhaltsverzeichnis__titel {
  margin-bottom: 0.5rem;
  color: var(--text-still);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.inhaltsverzeichnis ul {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.inhaltsverzeichnis li + li {
  margin-top: 0;
}

.inhaltsverzeichnis a {
  display: block;
  padding: 0.25rem 0;
  color: var(--text-leise);
  font-size: 0.92rem;
  text-decoration: none;
}

.inhaltsverzeichnis a:hover {
  color: #fff;
}

/* Die Startseite: Abschnitte ohne Rahmen, der Inhalt trägt seine Flächen selbst. */
.abschnitt + .abschnitt {
  margin-top: var(--abstand);
}

.abschnitt > h2 {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.abschnitt > h2::after {
  flex: 1;
  height: var(--px);
  min-width: 2rem;
  content: "";
  background: linear-gradient(90deg, var(--linie), transparent);
}

.abschnitt > p,
.abschnitt > ul:not([class]) {
  max-width: var(--mass);
}

.blatt__text .abschnitt > h2 {
  margin-top: 0;
}

.abschnitt--einfuehrung {
  display: grid;
  gap: 1.5rem 3rem;
  padding: clamp(1.4rem, 4vw, 2.75rem);
  background: linear-gradient(180deg, var(--flaeche-hell), var(--flaeche)) padding-box;
  border: calc(var(--px) * 3) solid transparent;
  border-image: var(--rahmen-fenster) 3 / calc(var(--px) * 3);
}

.abschnitt--einfuehrung > h2 {
  margin-bottom: 0;
}

.abschnitt--einfuehrung > h2::after {
  display: none;
}

.abschnitt--einfuehrung > p {
  margin: 0;
  font-size: 1.1rem;
}

@media (min-width: 62em) {
  .abschnitt--einfuehrung {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: start;
  }

  .abschnitt--einfuehrung > h2 {
    grid-column: 1 / -1;
  }

  .abschnitt--einfuehrung > .eckdaten {
    grid-column: 2;
    grid-row: 2 / span 3;
  }
}

.weiter {
  margin: 1.5rem 0 0;
  font-weight: 650;
}

/* 7 · Bausteine */

/* Eckdaten: drei kurze Sätze, die sofort sagen, worum es geht */
.eckdaten {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eckdaten li {
  margin: 0;
  padding: 0.9rem 1.1rem;
  background: rgba(4, 4, 26, 0.45);
  border: var(--px) solid var(--linie);
}

.eckdaten strong {
  display: block;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Editionen */
.editionen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.edition {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--flaeche) padding-box;
  border: calc(var(--px) * 3) solid transparent;
  border-image: var(--rahmen-fenster) 3 / calc(var(--px) * 3);
  transition: transform 0.15s;
}

.edition + .edition {
  margin-top: 0;
}

.edition:hover {
  transform: translateY(calc(var(--px) * -2));
  border-image-source: var(--rahmen-gold);
}

.edition:focus-within {
  border-image-source: var(--rahmen-gold);
}

.edition__bild {
  aspect-ratio: 8 / 3;
  border-bottom: var(--px) solid #03030f;
}

.edition__innen {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.1rem 1.25rem 1.25rem;
}

.edition__name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
}

.edition__verweis {
  color: #fff;
  text-decoration: none;
}

.edition__verweis::after {
  position: absolute;
  inset: 0;
  content: "";
}

.edition__verweis:focus-visible {
  outline: none;
}

.edition__zeile {
  margin: 0;
  color: var(--gold);
  font-weight: 650;
}

.edition__text {
  flex: 1;
  margin: 0;
  color: var(--text-leise);
  font-size: 0.97rem;
}

.edition__fuss {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.4rem 0 0;
}

.edition__mehr {
  color: var(--kristall);
  font-size: 0.92rem;
  font-weight: 650;
}

.edition__mehr::after {
  content: " →";
}

/* Vergleichstabelle und Tabellen allgemein */
.tabelle {
  max-width: 100%;
  margin: 0 0 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tabelle table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
  font-variant-numeric: tabular-nums;
}

.tabelle th,
.tabelle td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: var(--px) solid var(--linie);
}

.tabelle thead th {
  color: var(--text-still);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom-color: #3a4290;
}

.tabelle tbody th {
  font-weight: 600;
}

.tabelle .mitte { text-align: center; }
.tabelle .rechts { text-align: right; }

/* Auf dem Handy: weniger Innenabstand, damit »A (rechts)« in eine Zeile passt. */
@media (max-width: 40em) {
  .tabelle table {
    font-size: 0.93rem;
  }

  .tabelle th,
  .tabelle td {
    padding: 0.6rem 0.55rem;
  }
}

.vergleich table {
  background: rgba(19, 24, 69, 0.55);
}

@media (max-width: 40em) {
  .vergleich th,
  .vergleich td {
    padding: 0.6rem 0.4rem;
  }

  .vergleich tbody th {
    padding-left: 0.6rem;
    font-size: 0.9rem;
  }

  .vergleich thead th {
    letter-spacing: 0.02em;
  }

  /* Schmal zeigen die Spaltenköpfe nur das Symbol der Edition, der Name bleibt für Bildschirmleser. */
  .vergleich__name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* Der Stand steht schon auf den Karten darüber. */
  .vergleich__status {
    display: none;
  }
}

.vergleich thead a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.vergleich__symbol {
  width: 1.4rem;
  height: 1.4rem;
}

.vergleich thead th a {
  color: var(--text);
  font-size: 0.85rem;
  text-decoration: none;
}

.vergleich thead th a:hover {
  color: var(--gold);
}

.haken {
  color: var(--gruen);
  font-size: 1.2rem;
  font-weight: 800;
}

.strich {
  color: var(--text-still);
}

.vergleich__status th,
.vergleich__status td {
  border-bottom: 0;
}

/* Editionsseite: Kopf mit Bild */
.editionskopf {
  display: grid;
  gap: 1.25rem 2rem;
  margin-bottom: 2.5rem;
}

.editionskopf__bild {
  border: var(--px) solid #03030f;
  box-shadow: 0 0 0 var(--px) var(--linie);
}

.editionskopf__zeile {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 700;
}

.editionskopf__text > p:last-child {
  margin-bottom: 0;
}

.editionskopf__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.editionskopf__wann {
  color: var(--text-still);
  font-size: 0.9rem;
}

@media (min-width: 48em) {
  .galerie {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  }
}

@media (min-width: 48em) {
  .editionskopf {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
  }
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 1.1rem 1.2rem 1.2rem;
  background: rgba(8, 10, 38, 0.55);
  border: var(--px) solid var(--linie);
  border-top: calc(var(--px) * 2) solid var(--feature-farbe, var(--kristall));
}

.feature + .feature {
  margin-top: 0;
}

.feature__titel {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.08rem;
}

.feature__symbol {
  width: 1.75rem;
  height: 1.75rem;
}

.feature__text {
  flex: 1;
  margin: 0;
  color: var(--text-leise);
  font-size: 0.95rem;
  line-height: 1.55;
}

.edition-seite--enhanced .feature { --feature-farbe: var(--kristall); }
.edition-seite--definitive .feature { --feature-farbe: var(--gold); }
.edition-seite--vanilla .feature { --feature-farbe: #6fa8ff; }

/* Galerie */
.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.galerie li {
  margin: 0;
}

.galerie__bild {
  margin: 0;
}

.galerie__bild img,
.platzhalterbild {
  display: block;
  width: 100%;
  aspect-ratio: 8 / 7;
  object-fit: cover;
  border: var(--px) solid #03030f;
  box-shadow: 0 0 0 var(--px) var(--linie);
  image-rendering: pixelated;
}

.platzhalterbild {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.6rem;
  color: var(--text-still);
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background:
    repeating-conic-gradient(#10143f 0% 25%, #0d1036 0% 50%) 0 0 / 8px 8px;
}

.platzhalterbild .symbol {
  width: 2.25rem;
  height: 2.25rem;
  opacity: 0.8;
}

.galerie figcaption {
  margin-top: 0.6rem;
  color: var(--text-still);
  font-size: 0.88rem;
}

.galerie__verweis {
  position: relative;
  display: block;
  transition: filter 0.15s;
}

.galerie__verweis:hover {
  filter: brightness(1.08);
}

/* Das Schild sagt ehrlich, was das Bild ist: kein Screenshot, sondern Illustration oder Konzept. */
.galerie__schild {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  padding: 0.15em 0.55em;
  color: #0b0b26;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(236, 234, 248, 0.92);
  clip-path: polygon(2px 0, calc(100% - 2px) 0, 100% 2px, 100% calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 0 calc(100% - 2px), 0 2px);
}

.galerie__bild--konzept .galerie__schild {
  background: var(--gold);
}

@media (min-width: 62em) {
  .galerie--6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .galerie--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Messwerte der Entschlüsselung */
/* Vier Messwerte stehen in 1, 2 oder 4 Spalten — nie 3 + 1. Gemessen wird
   am Platz der Kachelreihe, nicht am Fenster (Container-Query). */
.fortschritt {
  container-type: inline-size;
}

.messwerte {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@container (min-width: 30rem) {
  .messwerte {
    grid-template-columns: repeat(2, 1fr);
  }
}

@container (min-width: 54rem) {
  .fortschritt--kompakt .messwerte {
    grid-template-columns: repeat(4, 1fr);
  }
}

.messwert {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  padding: 1.15rem 1.25rem 1.25rem;
  background: rgba(8, 10, 38, 0.6);
  border: var(--px) solid var(--linie);
}

.messwert + .messwert {
  margin-top: 0;
}

.messwert p {
  margin: 0;
}

.messwert__titel {
  color: var(--text-still);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.messwert__zahl {
  color: var(--gold);
  font-size: clamp(1.9rem, 1.5rem + 1.3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.messwert__kurz {
  display: block;
  margin-top: 0.3rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
}

.balken {
  display: block;
  width: 100%;
  height: calc(var(--px) * 5);
  margin: 0.35rem 0 0.15rem;
  shape-rendering: crispEdges;
}

.balken__spur { fill: #080a24; }
.balken__wert { fill: var(--gold); }

.messwert__genau {
  color: var(--text-still);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.messwert__text {
  margin-top: 0.5rem !important;
  color: var(--text-leise);
  font-size: 0.93rem;
  line-height: 1.55;
}

.messwert__quelle {
  margin-top: 0.4rem !important;
  color: var(--text-still);
  font-size: 0.78rem;
  line-height: 1.45;
}

.messwert__quelle span {
  font-weight: 700;
}

.fortschritt__stand {
  margin: 0.9rem 0 0;
  color: var(--text-still);
  font-size: 0.85rem;
}

/* News */
.newsliste {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.newsliste--kurz {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.newskarte {
  margin: 0;
}

.newskarte + .newskarte {
  margin-top: 0;
}

.newskarte article {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(19, 24, 69, 0.7);
  border: var(--px) solid var(--linie);
  transition: border-color 0.15s, background-color 0.15s;
}

.newskarte article:hover {
  background: rgba(28, 34, 89, 0.85);
  border-color: #4a53a6;
}

.newskarte__innen {
  padding: 1.15rem 1.3rem 1.25rem;
}

/* Schaubilder mit Schrift werden eingepasst statt beschnitten; der Grund
   ist die Hintergrundfarbe des Schaubilds, so fällt der Rand nicht auf. */
.newskarte__bild.pixelbild--ganz {
  object-fit: contain;
  background: #0b0b26;
}

/* Im Kopf eines Beitrags behält ein Schaubild sein eigenes Format — auf dem
   Handy ist das die schmale, hohe Fassung, die ins 21:9 nicht passte. */
.blatt__bild img.pixelbild--ganz {
  aspect-ratio: auto;
}

@media (max-width: 32em) {
  .blatt__bild:has(img.pixelbild--ganz) {
    max-width: 22rem;
  }
}

.newskarte__bild {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: var(--px) solid #03030f;
}

@media (min-width: 48em) {
  .newsliste--lang .newskarte--bild article {
    flex-direction: row;
  }

  .newsliste--lang .newskarte__bild {
    flex: none;
    width: 14rem;
    height: auto;
    aspect-ratio: auto;
    border-right: var(--px) solid #03030f;
    border-bottom: 0;
  }

  .newsliste--lang .newskarte__innen {
    align-self: center;
  }
}

.newskarte__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.45rem;
  color: var(--text-still);
  font-size: 0.85rem;
}

.newskarte__titel {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.newskarte__titel a {
  color: #fff;
  text-decoration: none;
}

.newskarte__titel a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.newskarte__text {
  margin: 0;
  color: var(--text-leise);
  font-size: 0.95rem;
}

.newsjahr + .newsjahr {
  margin-top: 2.5rem;
}

.newsjahr__titel {
  margin-bottom: 1rem;
  color: var(--text-still);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.blaettern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.blaettern a {
  display: block;
  padding: 0.8rem 1rem;
  color: var(--text);
  text-decoration: none;
  background: rgba(8, 10, 38, 0.5);
  border: var(--px) solid var(--linie);
}

.blaettern a:hover {
  border-color: #4a53a6;
}

.blaettern span {
  display: block;
  color: var(--text-still);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blaettern__neu {
  text-align: right;
}

/* Versionen und Changelog */
.version {
  margin-bottom: 1.25rem;
  padding: 1.2rem 1.35rem;
  background: rgba(8, 10, 38, 0.55);
  border: var(--px) solid var(--linie);
}

.version__kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-bottom: 0.6rem;
}

.version__titel {
  font-size: 1.25rem;
}

.version__titel a {
  color: #fff;
}

.version__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--text-still);
  font-size: 0.88rem;
}

.version__untertitel {
  color: var(--gold);
  font-weight: 650;
}

.aenderungen {
  display: grid;
  gap: 0.9rem;
}

.aenderungen__gruppe ul {
  margin: 0;
}

.aenderungen__art {
  display: inline-block;
  margin-bottom: 0.3rem;
  padding: 0.05rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a0b26;
  background: var(--art-farbe, var(--grau));
}

.aenderungen__gruppe--neu { --art-farbe: var(--gruen); }
.aenderungen__gruppe--verbessert { --art-farbe: var(--kristall); }
.aenderungen__gruppe--behoben { --art-farbe: var(--gold); }
.aenderungen__gruppe--entfernt { --art-farbe: var(--grau); }

.beispielklappe {
  margin: 1.25rem 0;
  padding: 0.9rem 1.1rem;
  border: var(--px) dashed rgba(255, 207, 102, 0.55);
}

.beispielklappe > summary {
  color: var(--warnung);
  font-weight: 650;
  cursor: pointer;
}

.beispielklappe[open] > summary {
  margin-bottom: 1rem;
}

/* Downloads */
.downloadliste {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.downloadzeile {
  display: grid;
  gap: 1rem 1.75rem;
  margin: 0;
  padding: 1.1rem;
  background: rgba(8, 10, 38, 0.55);
  border: var(--px) solid var(--linie);
}

.downloadzeile + .downloadzeile {
  margin-top: 0;
}

.downloadzeile__kopf {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.6rem;
}

.downloadzeile__bild {
  border: var(--px) solid #03030f;
}

.downloadzeile__name {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.2rem;
}

.downloadzeile__name a {
  color: #fff;
  text-decoration: none;
}

.downloadzeile__inhalt {
  align-self: center;
}

.downloadzeile__inhalt .leer {
  margin: 0;
}

@media (min-width: 48em) {
  .downloadzeile {
    grid-template-columns: 17rem minmax(0, 1fr);
  }
}

.download__version {
  margin-bottom: 0.75rem;
  color: var(--text-leise);
  font-size: 0.92rem;
}

.dateien {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.datei {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0;
}

.pruefsumme summary {
  color: var(--text-still);
  font-size: 0.85rem;
  cursor: pointer;
}

.pruefsumme code {
  display: block;
  margin-top: 0.4rem;
  word-break: break-all;
}

.aeltere {
  margin-top: 1rem;
}

.aeltere summary {
  color: var(--text-leise);
  cursor: pointer;
}

/* Plattformen, Kontaktwege */
.plattformen,
.kontaktwege {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.plattform,
.kontaktweg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
  padding: 1.1rem 1.25rem;
  background: rgba(8, 10, 38, 0.55);
  border: var(--px) solid var(--linie);
}

.plattform + .plattform,
.kontaktweg + .kontaktweg {
  margin-top: 0;
}

.plattform p,
.kontaktweg p {
  margin: 0;
}

.plattform__name,
.kontaktweg__art {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.plattform__text,
.kontaktweg__text {
  color: var(--text-leise);
  font-size: 0.93rem;
}

.kontaktweg__wert {
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Kästen */
.kasten {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  background: var(--kasten-grund);
  border: var(--px) solid var(--kasten-rand);
}

.kasten > :last-child {
  margin-bottom: 0;
}

.kasten__titel {
  margin-bottom: 0.35rem;
  color: var(--kasten-titel);
  font-weight: 750;
}

.kasten--hinweis { --kasten-grund: rgba(127, 219, 255, 0.07); --kasten-rand: rgba(127, 219, 255, 0.35); --kasten-titel: var(--kristall); }
.kasten--achtung { --kasten-grund: rgba(255, 190, 107, 0.08); --kasten-rand: rgba(255, 190, 107, 0.45); --kasten-titel: var(--warnung); }
.kasten--beispiel { --kasten-grund: rgba(255, 207, 102, 0.05); --kasten-rand: rgba(255, 207, 102, 0.5); --kasten-titel: var(--warnung); border-style: dashed; }

/* Textkasten wie im Spiel — für einen Satz, der tragen soll */
.textbox {
  position: relative;
  margin: 2rem 0;
  padding: 1.35rem 1.6rem 1.6rem;
  background: linear-gradient(180deg, #1c2466, #0f1340) padding-box;
  border: calc(var(--px) * 3) solid transparent;
  border-image: var(--rahmen-fenster) 3 / calc(var(--px) * 3);
}

.textbox__name {
  position: absolute;
  top: calc(var(--px) * -3 - 0.85rem);
  left: 1rem;
  padding: 0.15rem 0.7rem;
  color: #241503;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gold);
}

.textbox__text {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.5;
  border: 0;
}

.textbox__text > :last-child {
  margin-bottom: 0;
}

.textbox::after {
  position: absolute;
  right: 1rem;
  bottom: 0.6rem;
  width: calc(9px * 1.2);
  height: calc(6px * 1.2);
  content: "";
  background: url(../bilder/zeiger.3378c95e16.svg) no-repeat center / contain;
  image-rendering: pixelated;
  transform: rotate(90deg);
  animation: weiter 1s steps(1, end) infinite;
}

@keyframes weiter {
  50% { opacity: 0; }
}

/* Fragen (FAQ): aufklappbar, ohne Skript */
.frage {
  border-bottom: var(--px) solid var(--linie);
}

.frage:first-of-type {
  border-top: var(--px) solid var(--linie);
}

.frage__titel {
  position: relative;
  padding: 1rem 2.5rem 1rem 0;
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.frage__titel::-webkit-details-marker {
  display: none;
}

.frage__titel::after {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  width: calc(6px * 1.5);
  height: calc(9px * 1.5);
  content: "";
  background: url(../bilder/zeiger.3378c95e16.svg) no-repeat center / contain;
  image-rendering: pixelated;
  transform: translateY(-50%);
  transition: transform 0.15s;
}

.frage[open] > .frage__titel::after {
  transform: translateY(-50%) rotate(90deg);
}

.frage__titel:hover {
  color: var(--gold-hell);
}

.frage__antwort {
  padding: 0 0 1.25rem;
  color: var(--text-leise);
}

.frage__antwort > :last-child {
  margin-bottom: 0;
}

/* Zeitleiste: Meilensteine in ihrer Reihenfolge */
.zeitleiste {
  position: relative;
  margin: 1.5rem 0;
  padding: 0 0 0 1.75rem;
  list-style: none;
}

.zeitleiste::before {
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 0.35rem;
  width: var(--px);
  content: "";
  background: var(--linie);
}

.zeitleiste li {
  position: relative;
  margin: 0 0 1rem;
}

.zeitleiste li::before {
  position: absolute;
  top: 0.45em;
  left: calc(-1.75rem + 0.35rem - 4px + var(--px) / 2);
  width: 8px;
  height: 8px;
  content: "";
  background: var(--gold);
  box-shadow: 0 0 0 var(--px) var(--nacht);
}

.zeitleiste strong {
  color: var(--gold);
}


/* Eine Abbildung im Text */
.abbildung {
  max-width: 48rem;
  margin: 1.75rem 0 2rem;
}

.abbildung picture {
  display: block;
}

.abbildung img {
  border: var(--px) solid #03030f;
  box-shadow: 0 0 0 var(--px) var(--linie);
}

@media (max-width: 32em) {
  .abbildung {
    max-width: 22rem;
  }
}

.abbildung figcaption {
  margin-top: 0.65rem;
  color: var(--text-still);
  font-size: 0.9rem;
}

/* Kopfbild eines Beitrags */
.blatt__bild {
  max-width: var(--mass);
  margin: -0.5rem 0 2.25rem;
}

.blatt__bild picture {
  display: block;
}

.blatt__bild img {
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border: var(--px) solid #03030f;
  box-shadow: 0 0 0 var(--px) var(--linie);
}

/* Schritte: eine Anleitung, deren Reihenfolge zählt — darum senkrecht, eine
   Linie verbindet die Nummern. Als Kacheln nebeneinander (bis 27.09.) standen
   fünf Schritte 3 + 2, und »terranigma-spiel.exe« brach mitten im Wort um. */
.schritte {
  display: grid;
  max-width: var(--mass);
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.schritt {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  margin: 0;
  padding: 0 0 1.4rem;
}

.schritt:last-child {
  padding-bottom: 0;
}

.schritt:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 2.9rem;
  bottom: 0.45rem;
  left: calc(1.25rem - 1px);
  width: 2px;
  background: var(--linie);
}

.schritt__nummer {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: #241503;
  font-family: var(--schrift-pixel);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  background: var(--gold);
  clip-path: polygon(3px 0, calc(100% - 3px) 0, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 0 calc(100% - 3px), 0 3px);
}

.schritt__titel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.45rem 0 0.3rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.schritt__titel .symbol {
  width: 1.3rem;
  height: 1.3rem;
}

.schritt__text {
  margin: 0;
  color: var(--text-leise);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Merkmale: das Wichtigste in Kacheln — 1, 2 oder 4 Spalten nach dem Platz
   der Reihe (Container-Query), drei Kacheln in drei. Nie 3 + 1. */
.merkmale-rahmen {
  container-type: inline-size;
  margin: 0 0 1.75rem;
}

.merkmale {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@container (min-width: 30rem) {
  .merkmale {
    grid-template-columns: repeat(2, 1fr);
  }
}

@container (min-width: 40rem) {
  .merkmale:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
  }
}

@container (min-width: 54rem) {
  .merkmale {
    grid-template-columns: repeat(4, 1fr);
  }

  .merkmale:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.merkmal {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 1.2rem 1.25rem 1.3rem;
  background: linear-gradient(180deg, rgba(28, 34, 89, 0.85), rgba(19, 24, 69, 0.65));
  border: var(--px) solid var(--linie);
}

.merkmal__symbol .symbol {
  width: 2.25rem;
  height: 2.25rem;
}

.merkmal__titel {
  margin: 0.2rem 0 0;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.merkmal__text {
  margin: 0;
  color: var(--text-leise);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Begriffe: ein kleines Wörterbuch */
.begriffe {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 0.75rem 1.5rem;
  margin: 1.25rem 0 2rem;
}

.begriff {
  padding: 0.8rem 0 0.9rem;
  border-top: var(--px) solid var(--linie);
}

.begriff dt {
  margin-bottom: 0.2rem;
  color: var(--gold);
  font-weight: 700;
}

.begriff dd {
  margin: 0;
  color: var(--text-leise);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Fahrplan: die Etappen des Ports */
.fahrplan {
  position: relative;
  margin: 1.5rem 0 1rem;
  padding: 0;
  list-style: none;
}

.fahrplan::before {
  position: absolute;
  top: 1.2rem;
  bottom: 1.2rem;
  left: calc(1.2rem - var(--px) / 2);
  width: var(--px);
  content: "";
  background: var(--linie);
}

.etappe {
  position: relative;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 1rem;
  margin: 0 0 1.1rem;
}

.etappe__nummer {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--text-still);
  font-family: var(--schrift-pixel);
  font-size: 1.05rem;
  font-weight: 700;
  background: var(--nacht);
  border: var(--px) solid #3a4290;
}

.etappe--fertig .etappe__nummer {
  color: #0b2a18;
  background: var(--gruen);
  border-color: var(--gruen);
}

.etappe--in-arbeit .etappe__nummer {
  color: var(--kristall);
  background: #0d2f47;
  border-color: var(--kristall);
}

.etappe__titel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  margin: 0.35rem 0 0.3rem;
  font-size: 1.1rem;
}

.etappe__text {
  margin: 0;
  color: var(--text-leise);
  font-size: 0.97rem;
  line-height: 1.55;
}

.etappe--geplant .etappe__titel {
  color: var(--text-leise);
}

.fahrplan__summe-lang {
  color: var(--text-still);
  font-size: 0.92rem;
}

.fahrplan-kompakt {
  margin: 0.5rem 0 0;
}

.fahrplan__leiste {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 0.7rem;
  padding: 0;
  list-style: none;
}

.fahrplan__feld {
  height: 0.9rem;
  margin: 0;
  background: #262d70;
}

.fahrplan__feld--fertig,
.fahrplan__punkt--fertig { background: var(--gruen); }
.fahrplan__feld--in-arbeit,
.fahrplan__punkt--in-arbeit { background: var(--kristall); }
.fahrplan__punkt--geplant { background: #3a4290; }

.fahrplan__legende {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  margin: 0;
  color: var(--text-still);
  font-size: 0.85rem;
}

.fahrplan__punkt {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: -0.55rem;
}

.fahrplan__summe {
  margin-left: auto;
  color: var(--text-leise);
  font-weight: 650;
}

/* Das Einstellungsmenü der Enhanced Edition — als Skizze */
.schaltermenue {
  max-width: 32rem;
  margin: 1.5rem 0 2.25rem;
}

.schaltermenue__fenster {
  padding: 1rem 1.2rem 0.9rem;
  font-family: var(--schrift-pixel);
  background: linear-gradient(180deg, #1c2466, #0f1340) padding-box;
  border: calc(var(--px) * 3) solid transparent;
  border-image: var(--rahmen-fenster) 3 / calc(var(--px) * 3);
}

.schaltermenue__titel {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.7rem;
  padding-bottom: 0.55rem;
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: var(--px) solid #3a4290;
}

.schaltermenue__titel span {
  color: var(--kristall);
}

.schaltermenue__liste {
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.schaltermenue__zeile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.3rem 0.45rem 0.3rem 1.4rem;
  color: #e8eaff;
  font-size: 1rem;
  line-height: 1.3;
}

.schaltermenue__zeile--gewaehlt {
  background: rgba(127, 219, 255, 0.1);
}

.schaltermenue__zeile--gewaehlt::before {
  position: absolute;
  top: 50%;
  left: 0.35rem;
  width: calc(6px * 1.5);
  height: calc(9px * 1.5);
  content: "";
  background: url(../bilder/zeiger.3378c95e16.svg) no-repeat center / contain;
  image-rendering: pixelated;
  transform: translateY(-50%);
}

.schaltermenue__name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.schaltermenue__name .symbol {
  width: 1.1rem;
  height: 1.1rem;
}

.schaltermenue__wert {
  flex: none;
  min-width: 3.2rem;
  padding: 0.05rem 0.5rem;
  font-size: 0.9rem;
  text-align: center;
}

.schaltermenue__wert--an {
  color: #0b2a18;
  background: var(--gruen);
}

.schaltermenue__wert--aus {
  color: var(--text-still);
  background: #1a1f55;
  box-shadow: inset 0 0 0 1px #3a4290;
}

.schaltermenue__hilfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
  margin: 0.8rem 0 0;
  padding-top: 0.55rem;
  color: var(--text-still);
  font-size: 0.8rem;
  border-top: var(--px) solid #2a3175;
}

.schaltermenue__hilfe span {
  padding: 0 0.3rem;
  color: #e8eaff;
  background: #2a3175;
}

.schaltermenue figcaption,
.ebenen figcaption {
  margin-top: 0.7rem;
  color: var(--text-still);
  font-size: 0.9rem;
}

/* Die Ebenen: was oben liegt, gewinnt */
.ebenen {
  max-width: 40rem;
  margin: 1.5rem 0 2.25rem;
}

.ebenen__stapel {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ebene {
  margin: 0;
  padding: 0.85rem 1.1rem;
  background: var(--ebene-grund);
  border: var(--px) solid var(--ebene-rand);
  border-left-width: calc(var(--px) * 3);
}

.ebene:nth-child(1) { margin-inline: 9% 0; }
.ebene:nth-child(2) { margin-inline: 6% 0; }
.ebene:nth-child(3) { margin-inline: 3% 0; }

.ebene--mods { --ebene-grund: rgba(140, 232, 176, 0.08); --ebene-rand: rgba(140, 232, 176, 0.55); }
.ebene--definitive { --ebene-grund: rgba(242, 195, 91, 0.08); --ebene-rand: rgba(242, 195, 91, 0.55); }
.ebene--enhanced { --ebene-grund: rgba(127, 219, 255, 0.08); --ebene-rand: rgba(127, 219, 255, 0.55); }
.ebene--vanilla { --ebene-grund: rgba(111, 168, 255, 0.1); --ebene-rand: rgba(111, 168, 255, 0.6); }

.ebene__name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.2rem;
  color: #fff;
  font-weight: 700;
}

.ebene__name .symbol {
  width: 1.3rem;
  height: 1.3rem;
}

.ebene__text {
  margin: 0;
  color: var(--text-leise);
  font-size: 0.93rem;
  line-height: 1.5;
}

/* Die Bildformate: gleiche Höhe, verschiedene Breite — wie auf dem Monitor */
.bildformate {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.bildformat {
  margin: 0;
}

.bildformat figure {
  display: inline-grid;
  margin: 0;
}

.bildformat__rahmen {
  position: relative;
  height: clamp(6.5rem, 15vw, 11rem);
  overflow: hidden;
  background: #000;
  border: var(--px) solid #03030f;
  box-shadow: 0 0 0 var(--px) var(--linie);
}

.bildformat--87 .bildformat__rahmen { aspect-ratio: 8 / 7; }
.bildformat--43 .bildformat__rahmen { aspect-ratio: 4 / 3; }
.bildformat--169 .bildformat__rahmen { aspect-ratio: 16 / 9; }

.bildformat__rahmen img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* Röhre: Zeilen und ein leichter Schatten zum Rand — nur als Andeutung */
.bildformat--43 .bildformat__rahmen::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.45)),
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

.bildformat figcaption {
  width: 0;
  min-width: 100%;
  margin-top: 0.65rem;
  color: var(--text-leise);
  font-size: 0.9rem;
  line-height: 1.5;
}

.bildformat figcaption strong {
  display: block;
  margin-bottom: 0.15rem;
}

/* 8 · Fuß */

.fuss {
  margin-top: var(--abstand);
  padding: 3rem 0 calc(2rem + env(safe-area-inset-bottom, 0px));
  color: var(--text-still);
  font-size: 0.92rem;
  background: var(--nacht-tief);
  border-top: var(--px) solid #1d2360;
}

.fuss__innen,
.fuss__recht {
  width: min(var(--breite), 100% - 2 * var(--rinne));
  margin-inline: auto;
}

.fuss__innen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 2rem;
}

.fuss__marke {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold);
  font-family: var(--schrift-pixel);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fuss__marke img {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 22%;
}

.fuss__titel {
  margin-bottom: 0.6rem;
  color: var(--text-leise);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fuss ul {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fuss li + li {
  margin-top: 0;
}

.fuss a {
  color: var(--text-leise);
  text-decoration: none;
}

.fuss a:hover {
  color: #fff;
  text-decoration: underline;
}

.fuss__recht {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1d2360;
  font-size: 0.82rem;
}

.fuss__recht p {
  max-width: 60rem;
  margin-bottom: 0.5rem;
}

/* Bildbetrachter (seite.js), nur für echte Bilder in der Galerie */
.betrachter {
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  padding: 0;
  color: var(--text);
  background: var(--nacht-tief);
  border: calc(var(--px) * 3) solid transparent;
  border-image: var(--rahmen-fenster) 3 / calc(var(--px) * 3);
}

.betrachter::backdrop {
  background: rgba(2, 2, 12, 0.85);
}

.betrachter img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 4rem);
  image-rendering: pixelated;
}

.betrachter p {
  margin: 0;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

.betrachter button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

/* 9 · Bewegung, Kontrast, Druck */

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

@media (forced-colors: active) {
  .blatt,
  .fenster,
  .knopf,
  .edition,
  .textbox,
  .leiste__knopf,
  .abschnitt--einfuehrung,
  .reiter__verweis {
    border-image: none;
    border-color: CanvasText;
  }

  .marke__name {
    -webkit-text-fill-color: CanvasText;
    background: none;
    filter: none;
  }
}

@media print {
  body {
    color: #000;
    background: #fff;
  }

  .kopf,
  .leiste,
  .fuss,
  .inhaltsverzeichnis,
  .blaettern {
    display: none;
  }

  .blatt,
  .fenster {
    padding: 0;
    background: none;
    border: 0;
  }

  a {
    color: #000;
  }
}
