/* KI ungefiltert – Fullscreen-Layout ueber einer WebGL-Szene.
   Schriften und Skripte liegen auf diesem Server, nichts wird von fremden Servern geladen. */
@font-face { font-family: "Unbounded"; src: url("/fonts/unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Anton"; src: url("/fonts/anton.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --nacht: #06060a;
  --tinte: #f1efe9;
  --leise: #a19fae;
  --linie: rgba(255, 255, 255, .12);
  --glas: rgba(14, 13, 22, .55);
  --glas-dicht: rgba(8, 8, 13, .82);
  --signal: #ff5a1f;
  --violett: #7b5cff;
  --anzeige: "Unbounded", "Arial Black", system-ui, sans-serif;
  --text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --rand: clamp(1rem, 4vw, 3.5rem);
  --lese: 44rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--nacht);
  color: var(--tinte);
  font: 400 1.0625rem/1.65 var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--signal); color: var(--nacht); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buehne (WebGL) + Ebenen ---------- */
.buehne { position: fixed; inset: 0; z-index: -2; }
.buehne canvas { display: block; width: 100%; height: 100%; }
/* Fallback ohne WebGL / bevor die Szene steht */
.buehne::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40vmax 40vmax at 72% 38%, rgba(255, 90, 31, .28), transparent 60%),
    radial-gradient(50vmax 50vmax at 80% 45%, rgba(123, 92, 255, .22), transparent 65%),
    var(--nacht);
  transition: opacity 1.2s ease;
}
.mit-3d .buehne::before { opacity: 0; }
.korn {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.fortschritt {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 30;
  background: linear-gradient(90deg, var(--violett), var(--signal));
  transform-origin: 0 50%; transform: scaleX(0);
}

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 50; background: var(--tinte); color: var(--nacht); padding: .5rem 1rem; border-radius: 6px; }

/* ---------- Kopf ---------- */
.kopf {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem var(--rand);
  transition: background .4s ease, padding .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.gescrollt .kopf {
  background: rgba(6, 6, 10, .6);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--linie);
  padding-top: .7rem; padding-bottom: .7rem;
}
.marke { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-family: var(--anzeige); font-weight: 600; letter-spacing: -.02em; }
.marke-ki {
  font-family: var(--mono); font-size: .72rem; font-weight: 400;
  padding: .3rem .45rem; border-radius: 6px; background: var(--signal); color: var(--nacht);
}
.marke-wort { font-size: 1rem; }
.kopf nav {
  display: flex; gap: .2rem; padding: .3rem;
  border: 1px solid var(--linie); border-radius: 999px;
  background: rgba(10, 10, 16, .45);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.kopf nav a {
  text-decoration: none; font-size: .85rem; font-weight: 500; color: var(--leise);
  padding: .4rem .85rem; border-radius: 999px; transition: color .2s, background .2s;
}
.kopf nav a:hover { color: var(--tinte); background: rgba(255, 255, 255, .08); }
.kopf nav a.sprache { color: var(--signal); font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; border-left: 1px solid var(--linie); border-radius: 0 999px 999px 0; }
.sprache-link { color: var(--signal); text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- Gemeinsame Bausteine ---------- */
.label, .meta { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--leise); margin: 0; }
.label { display: inline-flex; align-items: center; gap: .6rem; }
.label::before { content: ""; width: 1.6rem; height: 1px; background: var(--signal); }
.unterzeile { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; color: #cfcbd8; max-width: 36rem; margin: 1.4rem 0 0; text-wrap: pretty; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; position: relative; z-index: 2; }
.tag {
  font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; text-decoration: none;
  padding: .3rem .6rem; border: 1px solid var(--linie); border-radius: 999px; color: var(--leise);
  background: rgba(255, 255, 255, .03); transition: border-color .2s, color .2s;
}
.tag:hover { border-color: var(--signal); color: var(--tinte); }

.knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }
.knopf {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  padding: .85rem 1.4rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .2s ease, background .2s, border-color .2s;
}
.knopf:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .5); }
.knopf.voll { background: var(--signal); border-color: var(--signal); color: var(--nacht); }
.knopf.voll:hover { background: #ff7440; }

/* ---------- Startseite: Held ---------- */
.held {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 7rem var(--rand) 5rem;
  position: relative;
}
.held.klein { min-height: 85svh; }
.held-titel { margin: 1.4rem 0 0; font-family: var(--anzeige); font-weight: 800; line-height: .9; letter-spacing: -.05em; }
.held-ki {
  display: inline-block; font-size: clamp(1rem, 2vw, 1.4rem); letter-spacing: 0;
  font-family: var(--mono); font-weight: 400;
  border: 1px solid var(--signal); color: var(--signal); padding: .25em .55em; border-radius: 8px; margin-bottom: 1.2rem;
}
.held-wort { display: block; font-size: clamp(3rem, 12.5vw, 12.5rem); text-wrap: balance; }
.punkt { color: var(--signal); }
.scroll-hinweis {
  position: absolute; left: var(--rand); bottom: 2rem; margin: 0;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--leise);
  display: flex; align-items: center; gap: .8rem;
}
.scroll-hinweis span { width: 1px; height: 2.6rem; background: linear-gradient(var(--signal), transparent); animation: tropfen 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes tropfen { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Einblenden beim Laden */
@media (prefers-reduced-motion: no-preference) {
  .held > *, .kopfbereich > *, .beitrag-kopf > * { animation: auftauchen .9s cubic-bezier(.2, .7, .2, 1) both; }
  .held > :nth-child(2), .kopfbereich > :nth-child(2), .beitrag-kopf > :nth-child(2) { animation-delay: .08s; }
  .held > :nth-child(3), .kopfbereich > :nth-child(3), .beitrag-kopf > :nth-child(3) { animation-delay: .16s; }
  .held > :nth-child(4), .beitrag-kopf > :nth-child(4) { animation-delay: .24s; }
  .held > :nth-child(5), .beitrag-kopf > :nth-child(5) { animation-delay: .32s; }
}
@keyframes auftauchen { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* Laufband */
.laufband {
  border-block: 1px solid var(--linie); overflow: hidden;
  background: rgba(6, 6, 10, .45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.laufband-spur { display: flex; width: max-content; animation: laufen 38s linear infinite; }
.laufband span, .laufband i {
  font-family: var(--anzeige); font-weight: 500; font-size: clamp(1rem, 2.2vw, 1.6rem); letter-spacing: -.02em;
  padding: 1.1rem 1.4rem; white-space: nowrap; font-style: normal;
}
.laufband i { color: var(--signal); padding-inline: 0; }
@keyframes laufen { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .laufband-spur { animation: none; } }

/* ---------- Listen / Karten ---------- */
.liste { padding: clamp(4rem, 10vw, 8rem) var(--rand) 4rem; }
.liste-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--linie); }
.liste-kopf h2 { font-family: var(--anzeige); font-weight: 700; font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -.04em; margin: 0; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); gap: 1rem; }
.leer { color: var(--leise); }
.karte {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; gap: .9rem;
  min-height: 19rem; padding: 1.6rem;
  border: 1px solid var(--linie); border-radius: 20px;
  background: var(--glas);
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .35s, background .35s;
  overflow: hidden;
}
.karte::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(30rem 18rem at 100% 0%, rgba(255, 90, 31, .22), transparent 60%),
              radial-gradient(24rem 16rem at 0% 100%, rgba(123, 92, 255, .2), transparent 60%);
}
.karte:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .28); }
.karte:hover::before { opacity: 1; }
.karte-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.karte-nr { font-family: var(--anzeige); font-weight: 300; font-size: .95rem; color: var(--signal); }
.karte h3 { font-family: var(--anzeige); font-weight: 600; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.12; letter-spacing: -.035em; margin: auto 0 0; text-wrap: balance; }
.karte .anriss { color: #c4c0ce; margin: 0; font-size: .98rem; }
.karte-fuss { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-top: .4rem; }
.pfeil {
  flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--linie); font-size: 1.1rem; transition: background .3s, color .3s, transform .3s, border-color .3s;
}
.karte:hover .pfeil { background: var(--signal); border-color: var(--signal); color: var(--nacht); transform: rotate(-45deg); }

/* ---------- Seitenkopf (Themen, Thema) ---------- */
.kopfbereich { min-height: 62svh; display: flex; flex-direction: column; justify-content: end; padding: 8rem var(--rand) 1rem; }
.kopfbereich h1 { font-family: var(--anzeige); font-weight: 800; font-size: clamp(2.6rem, 9vw, 8rem); line-height: .95; letter-spacing: -.05em; margin: 1.2rem 0 0; text-wrap: balance; }

.themen { display: flex; flex-wrap: wrap; gap: .8rem; padding: 3rem var(--rand) 5rem; }
.thema {
  font-family: var(--anzeige); font-weight: 500; font-size: clamp(1.2rem, 3vw, 2rem); letter-spacing: -.03em; text-decoration: none;
  padding: .7rem 1.3rem; border: 1px solid var(--linie); border-radius: 999px;
  background: var(--glas); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: border-color .25s, transform .25s, color .25s;
}
.thema.gross { font-size: clamp(1.6rem, 4.6vw, 3.2rem); }
.thema sup { font-family: var(--mono); font-size: .45em; color: var(--signal); margin-left: .35em; vertical-align: super; }
.thema:hover { border-color: var(--signal); transform: translateY(-3px); }

/* ---------- Artikel ---------- */
.beitrag-kopf {
  min-height: 88svh; display: flex; flex-direction: column; justify-content: end;
  padding: 8rem var(--rand) 3.5rem;
}
.beitrag-kopf h1 {
  font-family: var(--anzeige); font-weight: 800;
  font-size: clamp(2.3rem, 7vw, 6.4rem); line-height: .98; letter-spacing: -.05em;
  margin: 1rem 0 0; max-width: 16ch; text-wrap: balance; hyphens: auto;
}
.beitrag-kopf .tags { margin-top: 1.6rem; }
.entwurf-hinweis {
  align-self: start; margin: 0 0 1.6rem; padding: .45rem .9rem; border-radius: 999px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--nacht); background: var(--signal);
}
.text {
  max-width: calc(var(--lese) + 2 * clamp(1.25rem, 5vw, 4rem));
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
  background: var(--glas-dicht);
  -webkit-backdrop-filter: blur(30px) saturate(1.2); backdrop-filter: blur(30px) saturate(1.2);
  border: 1px solid var(--linie); border-radius: 28px;
  font-size: clamp(1.06rem, 1.3vw, 1.16rem); line-height: 1.78; color: #e4e1ea;
}
.text > :first-child { margin-top: 0; }
.text h2, .text h3 { font-family: var(--anzeige); letter-spacing: -.035em; line-height: 1.15; color: var(--tinte); text-wrap: balance; }
.text h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 700; margin: 3rem 0 .9rem; }
.text h3 { font-size: 1.25rem; font-weight: 600; margin: 2.2rem 0 .6rem; }
.text p, .text ul, .text ol { margin: 0 0 1.25rem; }
.text strong { color: var(--tinte); font-weight: 650; }
.text a { text-decoration-color: var(--signal); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.text a:hover { color: var(--signal); }
.text ul { padding-left: 1.2rem; }
.text li { margin-bottom: .45rem; padding-left: .3rem; }
.text li::marker { color: var(--signal); }
.text ol li::marker { font-family: var(--mono); font-size: .85em; }
.text blockquote {
  margin: 2.2rem 0; padding: .2rem 0 .2rem 1.4rem; border-left: 3px solid var(--signal);
  font-family: var(--anzeige); font-weight: 400; font-size: 1.3rem; line-height: 1.4; letter-spacing: -.02em; color: var(--tinte);
}
.text code { font-family: var(--mono); font-size: .86em; background: rgba(255, 255, 255, .07); padding: .12em .4em; border-radius: 5px; }
.text pre { background: rgba(0, 0, 0, .45); border: 1px solid var(--linie); padding: 1.1rem 1.2rem; border-radius: 12px; overflow-x: auto; font-size: .88rem; line-height: 1.6; }
.text pre code { background: none; padding: 0; }
.text img { max-width: 100%; height: auto; border-radius: 14px; }
/* ---------- Video im Text (figure.clip, Steuerung in js/clip.js) ---------- */
.text .clip { position: relative; width: min(100%, 440px, calc(84vh * 9 / 16)); margin: 2.4rem auto 2.8rem; isolation: isolate; }
.clip-buehne { position: relative; }
.text .clip::before {
  content: ""; position: absolute; inset: 8% -6%; z-index: -1; border-radius: 40px;
  background: var(--poster, none) center / cover, radial-gradient(closest-side, rgba(92, 255, 31, .35), transparent);
  filter: blur(56px) saturate(1.5); opacity: .55; transform: scale(1.05);
}
.text .clip video {
  display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; cursor: pointer;
  border-radius: 28px; border: 1px solid rgba(92, 255, 31, .28);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 0 6px rgba(255, 255, 255, .025), 0 0 40px -10px rgba(92, 255, 31, .35);
}
.text .clip figcaption {
  margin-top: 1rem; text-align: center; font: 400 .72rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--leise);
}
.clip-play {
  position: absolute; left: 50%; top: 46%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  border: 1px solid rgba(92, 255, 31, .6); background: rgba(4, 5, 4, .55); cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity .25s, transform .25s;
}
.clip-play::after { content: ""; position: absolute; left: 31px; top: 25px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--signal); }
.clip.laeuft .clip-play { opacity: 0; transform: scale(.8); pointer-events: none; }
.clip-ton {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); cursor: pointer;
  padding: .62rem 1.1rem .62rem 2.3rem; border-radius: 999px; border: 1px solid rgba(92, 255, 31, .55);
  background: rgba(4, 5, 4, .6) no-repeat .85rem 50% / 1rem
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235cff1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M19 5a10 10 0 0 1 0 14'/%3E%3C/svg%3E");
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--tinte); font: 400 .74rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 0 24px -6px rgba(92, 255, 31, .6); transition: all .3s;
}
.clip.mit-ton .clip-ton { left: auto; right: 16px; top: 16px; bottom: auto; transform: none; padding: .5rem .8rem .5rem 2rem; opacity: .8; box-shadow: none; }
.clip-ton:hover, .clip-play:hover { border-color: var(--signal); }
.clip-leiste { position: absolute; left: 22px; right: 22px; bottom: 14px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; pointer-events: none; }
.clip-leiste span { display: block; height: 100%; width: 100%; background: var(--signal); transform-origin: left; transform: scaleX(var(--p, 0)); box-shadow: 0 0 10px var(--signal); }
.text hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--linie), transparent); margin: 3rem 0; }
.text table { border-collapse: collapse; width: 100%; font-size: .95rem; display: block; overflow-x: auto; }
.text th, .text td { border-bottom: 1px solid var(--linie); padding: .5rem .7rem; text-align: left; }

.blaettern {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  max-width: calc(var(--lese) + 8rem); margin: 2rem auto 0; padding: 0 var(--rand);
}
.blaettern a {
  display: flex; flex-direction: column; gap: .5rem; text-decoration: none;
  font-family: var(--anzeige); font-weight: 600; letter-spacing: -.025em; line-height: 1.2;
  padding: 1.3rem 1.4rem; border: 1px solid var(--linie); border-radius: 20px; background: var(--glas);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transition: border-color .25s;
}
.blaettern a:hover { border-color: var(--signal); }
.blaettern .rechts { text-align: right; }

/* ---------- Fuss ---------- */
.fuss { margin-top: clamp(5rem, 12vw, 9rem); padding: 0 var(--rand) 2.5rem; overflow: hidden; }
.fuss-wort {
  margin: 0; font-family: var(--anzeige); font-weight: 800; letter-spacing: -.06em; line-height: .85;
  font-size: clamp(3.5rem, 17vw, 17rem); white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .22);
}
.fuss-zeilen {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem;
  padding-top: 1.5rem; margin-top: 1rem; border-top: 1px solid var(--linie);
  font-size: .85rem; color: var(--leise);
}
.fuss-zeilen p { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.fuss-zeilen a { text-decoration: none; color: var(--tinte); }
.fuss-zeilen a:hover { color: var(--signal); }

/* ---------- Mobil ---------- */
@media (max-width: 700px) {
  .kopf { padding-inline: 1rem; }
  .marke-wort { display: none; }
  .kopf nav a { padding: .35rem .6rem; font-size: .8rem; }
  .held { padding: 6.5rem 1rem 6rem; justify-content: end; }
  .liste, .themen { padding-inline: 1rem; }
  .kopfbereich, .beitrag-kopf { padding-inline: 1rem; }
  .karte { min-height: 0; }
  .text { border-radius: 20px; margin-inline: .5rem; }
    .blaettern { grid-template-columns: 1fr; padding-inline: 1rem; }
  .blaettern .rechts { text-align: left; }
  .fuss { padding-inline: 1rem; }
}
@media (max-width: 380px) { .kopf nav a:first-child { display: none; } }

/* ---------- Umschalter + Slogan (beide Designs) ---------- */
.slogan { display: none; }
.design-wahl a { color: var(--leise) !important; }
.design-wahl a:hover { color: var(--signal) !important; }

/* =====================================================================
   Design-Variante "Klartext" – passend zum X-Profil: schwarz, Neongruen,
   kraeftige schmale Schrift, Pinselstrich, Leiterbahnen in der 3D-Szene.
   Aktiv mit ?design=klartext (js/design.js setzt html.design-klartext).
   ===================================================================== */
html.design-klartext {
  --nacht: #040504;
  --tinte: #f4f6f2;
  --leise: #9aa596;
  --linie: rgba(160, 255, 120, .14);
  --glas: rgba(8, 12, 7, .6);
  --glas-dicht: rgba(4, 6, 4, .86);
  --signal: #5cff1f;
  --violett: #1d9e00;
  --anzeige: "Anton", "Impact", "Arial Narrow", sans-serif;
}
.design-klartext body { background: var(--nacht); }
.design-klartext ::selection { color: #000; }
.design-klartext .buehne::before {
  background:
    radial-gradient(40vmax 40vmax at 72% 40%, rgba(92, 255, 31, .18), transparent 60%),
    radial-gradient(60vmax 50vmax at 80% 45%, rgba(20, 120, 0, .18), transparent 65%),
    var(--nacht);
}
/* Anton ist schmal: kein enges Sperren, dafuer Versalien wo es passt */
.design-klartext .held-titel, .design-klartext .kopfbereich h1, .design-klartext .beitrag-kopf h1,
.design-klartext .liste-kopf h2, .design-klartext .karte h3, .design-klartext .text h2, .design-klartext .text h3,
.design-klartext .thema, .design-klartext .laufband span, .design-klartext .blaettern a, .design-klartext .fuss-wort,
.design-klartext .marke { letter-spacing: 0; font-weight: 400; }
.design-klartext .kopfbereich h1, .design-klartext .beitrag-kopf h1, .design-klartext .liste-kopf h2,
.design-klartext .laufband span, .design-klartext .thema { text-transform: uppercase; }
.design-klartext .beitrag-kopf h1 { max-width: 18ch; line-height: .95; font-size: clamp(2.6rem, 7.5vw, 7rem); }
.design-klartext .karte h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.05; }
.design-klartext .text h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); text-transform: uppercase; }

/* Logo im Kopf: KI gruen, ungefiltert weiss */
.design-klartext .marke { gap: .3rem; font-size: 1.35rem; }
.design-klartext .marke-ki { background: none; color: var(--signal); font-family: var(--anzeige); font-size: 1.35rem; padding: 0; }
.design-klartext .marke-wort { font-size: 1.35rem; }

/* Held: "KI ungefiltert" wie das Banner */
.design-klartext .held { justify-content: center; }
.design-klartext .held-titel { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .18em; line-height: .86; margin-top: 1rem; }
.design-klartext .held-ki {
  font-family: var(--anzeige); font-size: clamp(4.2rem, 15vw, 15rem); font-weight: 400;
  border: 0; padding: 0; margin: 0; color: var(--signal);
  text-shadow: 0 0 .25em rgba(92, 255, 31, .45);
}
.design-klartext .held-wort {
  display: inline; font-size: clamp(4.2rem, 15vw, 15rem);
  /* leicht angeraute Kanten wie gedruckt */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -9 8.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -9 8.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");
}
.design-klartext .held-wort .punkt { display: none; }
.design-klartext .slogan {
  display: block; position: relative; margin: 1.6rem 0 0; padding: .55rem 0 .9rem;
  font-family: var(--anzeige); font-size: clamp(1.25rem, 2.6vw, 2.2rem); letter-spacing: .06em; text-transform: uppercase;
  color: var(--tinte);
}
.design-klartext .slogan b { font-weight: 400; color: var(--signal); }
/* gruener Pinselstrich unter dem Slogan */
.design-klartext .slogan::after {
  content: ""; position: absolute; left: -.4rem; bottom: 0; width: min(34rem, 92%); height: .55rem;
  background: var(--signal); border-radius: 50% 40% 60% 30% / 60% 50% 40% 50%;
  transform: rotate(-1.2deg); opacity: .9;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 70%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 70%, transparent);
  box-shadow: 0 0 18px rgba(92, 255, 31, .5);
}
.design-klartext .held .label { display: none; }
.design-klartext .held .unterzeile { color: #c9d1c5; margin-top: 1.8rem; }

.design-klartext .knopf.voll { color: #000; box-shadow: 0 0 24px rgba(92, 255, 31, .35); }
.design-klartext .knopf.voll:hover { background: #8bff5c; }
.design-klartext .karte::before {
  background: radial-gradient(30rem 18rem at 100% 0%, rgba(92, 255, 31, .18), transparent 60%),
              radial-gradient(24rem 16rem at 0% 100%, rgba(20, 140, 0, .18), transparent 60%);
}
.design-klartext .karte:hover { border-color: rgba(92, 255, 31, .55); box-shadow: 0 0 0 1px rgba(92, 255, 31, .15), 0 0 40px rgba(92, 255, 31, .12); }
.design-klartext .karte-nr { font-family: var(--anzeige); font-size: 1.2rem; }
.design-klartext .fortschritt { background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.design-klartext .label::before { background: var(--signal); }
.design-klartext .unterzeile { color: #c9d1c5; }
.design-klartext .text { color: #e3e8e0; }
.design-klartext .fuss-wort { -webkit-text-stroke: 1px rgba(92, 255, 31, .3); text-transform: uppercase; }
.design-klartext .entwurf-hinweis { color: #000; }

/* ---------- Sprache: Hinweis-Leiste (js/sprache.js) + Uebersetzungsvermerk ---------- */
.sprach-hinweis {
  position: fixed; z-index: 50; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); width: min(calc(100% - 2rem), 34rem);
  display: flex; align-items: center; gap: .9rem; padding: .75rem .75rem .75rem 1.1rem;
  border: 1px solid rgba(92, 255, 31, .4); border-radius: 16px; background: rgba(6, 9, 5, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .8), 0 0 30px -12px rgba(92, 255, 31, .5);
  font-size: .9rem; line-height: 1.35; color: var(--tinte);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .45s;
}
.sprach-hinweis.da { transform: translate(-50%, 0); opacity: 1; }
.sprach-hinweis p { margin: 0; flex: 1; color: #c9d1c5; }
.sprach-hinweis a { flex: 0 0 auto; padding: .45rem .8rem; border-radius: 999px; background: var(--signal); color: #040504; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sprach-hinweis button { flex: 0 0 auto; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--leise); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.sprach-hinweis button:hover { color: var(--tinte); background: rgba(255, 255, 255, .12); }
@media (prefers-reduced-motion: reduce) { .sprach-hinweis { transition: none; } }
@media (max-width: 520px) { .sprach-hinweis { flex-wrap: wrap; } .sprach-hinweis p { flex-basis: calc(100% - 3rem); } }
.uebersetzt { margin-top: 1rem; font: 400 .78rem/1.5 var(--mono); color: var(--leise); }
.uebersetzt a { color: var(--signal); }

/* ---------- Teilen (unter Artikeln) ---------- */
.teilen { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; max-width: var(--lese); margin: 2.4rem auto 0; padding: 1.4rem var(--rand) 0; border-top: 1px solid var(--linie); }
.teilen-lbl { font: 400 .74rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--leise); margin-right: .4rem; }
.teilen-knopf {
  padding: .55rem 1rem; border: 1px solid rgba(92, 255, 31, .45); border-radius: 999px; background: rgba(4, 5, 4, .5);
  color: var(--tinte); font: 600 .88rem/1 var(--text); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.teilen-knopf:hover, .teilen-knopf:focus-visible { background: var(--signal); color: #040504; border-color: var(--signal); }
