/* europe.social. Eigene Gestaltung, Systemschriften, keine fremden Dateien. */

/* ---------- Farben und Maße ----------
   Marke (Mediakit 4.0 vom 2026-11-11, design/marke): Schwarz #000000 als Markenfarbe, EU-Sterngelb #FFCC00 für den Stern,
   Warmweiß #FAF8F2 (das Europablau #003399 ist am 2026-11-11 entfallen, das Thema Blau mit ihm). Helles Thema: Warmweiß als
   Grund, Weiß für erhabene Flächen (Karten, Eingaben, Menüs), Schwarz als Schrift und Logo. Dunkles Thema: neutrales
   Fast-Schwarz, Logo in der Negativfassung.
   --accent-fill füllt Knöpfe und Flächen (Schrift darauf --accent-fg: Weiß auf Schwarz 21 zu 1; im Dunklen #EEEEEE mit
   #121212 darauf); --accent ist Link- und Symbolfarbe auf dem Grund (Schwarz auf Warmweiß 19,6 zu 1). Ohne eigene
   Akzentfarbe haben Links damit die Farbe des Texts und sind im Fließtext unterstrichen. --muted auf Warmweiß
   6,0 zu 1, im Dunklen 7,3 zu 1. --star und --star-fg: das Gelb des Sterns mit Schwarz darauf (13,9 zu 1), für Zähler, den
   Punkt am Konto und die Hauptaktion auf dunklem Grund; nie für Text auf hellem Grund (1,4 zu 1). --marke-ring und
   --marke-wort färben Bild- und Wortmarke je Thema (farbig auf hell, negativ auf dunkel), der Stern bleibt immer gelb.
   --avatar-bg und --bildrand: Grund und Haarlinie für Profilbilder, damit jedes Bild eine klare Kante hat. Ein eigenes
   Bild mit durchsichtigen Stellen (.av-frei) steht ohne beides direkt auf der Seite. */
:root {
  --accent-fill: #000000; --accent-fg: #FFFFFF; --accent: #000000;
  --star: #FFCC00; --star-fg: #000000;
  --bg: #FAF8F2; --bg-raise: #FFFFFF; --fg: #000000; --muted: #5A5F6B; --line: #E3E1DA; --soft: #F1EFE8; --hover: #ECEAE2; --post-hover: #F4F2EB;
  --input: #FFFFFF; --avatar-bg: #FFFFFF; --bildrand: rgb(0 0 0 / .12);
  --marke-ring: #000000; --marke-wort: #000000;
  --accent-soft: color-mix(in oklab, var(--accent-fill) 12%, var(--bg));
  --danger: #C4213A; --like: #D61F5E; --ok: #187A43; --warn: #A15C00;
  --feldrand: #85827A; --danger-fill: #C4213A;
  --radius: 16px; --radius-s: 10px; --rail: 280px; --main: 700px; --side: 340px; --gesamt: 1320px; --kopf: 64px;
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 10px 30px rgb(0 0 0 / .10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
/* Thema Dunkel (früher „Schwarz“, seit 2026-11-11 das einzige dunkle Thema für „wie das Gerät“): neutrales
   Fast-Schwarz statt #000 mit reinem Weiß (21 zu 1 überstrahlt, besonders bei Hornhautverkrümmung). Grund #121212 wie
   Material Design, Schrift ein warmes Gebrochenweiß aus der Familie des Markenweiß: 15,0 zu 1 (Ziel 12 bis 16), Nebentext
   7,4. Ohne eigene Akzentfarbe einfarbig: Akzent #EEEEEE, Schrift darauf #121212 (16,1 zu 1, gegen Karten 14,4). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent-fill: #EEEEEE; --accent-fg: #121212; --accent: #EEEEEE;
    --bg: #121212; --bg-raise: #1E1E1E; --fg: #E8E6E1; --muted: #A6A39C; --line: #2E2E2E; --soft: #181818; --hover: #242424; --post-hover: #1B1B1B; --input: #1A1A1A;
    --avatar-bg: #1E1E1E; --bildrand: rgb(255 255 255 / .12);
    --marke-ring: #E8E6E1; --marke-wort: #E8E6E1;
    --danger: #FF6B82; --like: #FF5C95; --ok: #4CC485; --warn: #F0B03C;
    --feldrand: #75726C;
    --shadow: 0 1px 2px rgb(0 0 0 / .6), 0 12px 36px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --accent-fill: #EEEEEE; --accent-fg: #121212; --accent: #EEEEEE;
  --bg: #121212; --bg-raise: #1E1E1E; --fg: #E8E6E1; --muted: #A6A39C; --line: #2E2E2E; --soft: #181818; --hover: #242424; --post-hover: #1B1B1B; --input: #1A1A1A;
  --avatar-bg: #1E1E1E; --bildrand: rgb(255 255 255 / .12);
  --marke-ring: #E8E6E1; --marke-wort: #E8E6E1;
  --danger: #FF6B82; --like: #FF5C95; --ok: #4CC485; --warn: #F0B03C;
  --feldrand: #75726C;
  --shadow: 0 1px 2px rgb(0 0 0 / .6), 0 12px 36px rgb(0 0 0 / .7);
  color-scheme: dark;
}
/* Ohne eigene Akzentfarbe haben Links die Farbe des Texts (Schwarz, im Dunklen #EEEEEE). Unterstriche gibt es nirgends
   (Ansage Betreiber, 2026-11-11); Links im Fließtext heben sich stattdessen halbfett ab, beim Zeigen blenden sie ab.
   Die Linkvorschau ist eine Karte und bleibt normal gesetzt. */
:root:not([data-accent]) :is(.text, .bio, .prose, .legal-hinweis, .notice) a:not(.btn, .link-card) { font-weight: 600; }
:is(.text, .bio, .prose, .legal-hinweis, .notice) a:not(.btn, .link-card):hover { opacity: .7; }
/* Andere Akzentfarbe nach Wahl (Einstellungen, Konto): ein eigenes Stylesheet /akzent/<kennung>/<farbe>.css, nach dieser
   Datei geladen, setzt --accent-fill, --accent-fg und --accent je Darstellung. Gerechnet in lib/akzent.js: Fläche gegen
   Grund mindestens 3 zu 1, Schrift auf der Fläche 4,5, Links gegen Grund und erhabene Fläche 4,8. */

/* Farbtöne je Konto (Banner), aus der Kontonummer */
.hue-0 { --hue: 258; } .hue-1 { --hue: 222; } .hue-2 { --hue: 182; } .hue-3 { --hue: 150; } .hue-4 { --hue: 80; } .hue-5 { --hue: 40; }
.hue-6 { --hue: 18; } .hue-7 { --hue: 350; } .hue-8 { --hue: 330; } .hue-9 { --hue: 290; } .hue-10 { --hue: 270; } .hue-11 { --hue: 205; }

/* ---------- Grundlagen ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 70px; hanging-punctuation: first; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15.5px/1.5 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
::selection { background: color-mix(in oklab, var(--accent) 30%, transparent); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent-fill); color: var(--accent-fg); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i.fill { fill: currentColor; stroke: none; }
/* Gefüllte Teile eines sonst gezeichneten Symbols (lib/ui.js, PFADE mit f) */
.i .f { fill: currentColor; stroke: none; }
.btn > .i.fill { width: 20px; height: 20px; margin-left: -2px; }
.i.mini { width: 15px; height: 15px; vertical-align: -2px; }
.i.big { width: 40px; height: 40px; stroke-width: 1.4; color: var(--muted); }

/* Weiche Übergänge zwischen Seiten (View Transitions, nur Browser, die es können) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 160ms; }
.rail { view-transition-name: rail; }
.topbar { view-transition-name: topbar; }
@media (prefers-reduced-motion: reduce) {
  *, ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Rahmen ---------- */
/* Die Zeitleiste steht in der Mitte des Fensters: beide Außenspalten wachsen gleich (1fr), Navigation rechtsbündig in
   der linken, Seitenleiste linksbündig in der rechten. Reicht der Platz dafür nicht (die Seitenleiste ist breiter als
   die Navigation), hält jede Spalte ihre Mindestbreite und die Mitte rückt etwas nach links; das Schreibfenster folgt
   ihr dann über --sheet-x (app.js, schreibfensterAusrichten). Auf breiten Fenstern ist die Navigation schmaler als die
   Seitenleiste (280 gegen 340 px), die 60 px bekommt die Zeitleiste nach links dazu; --gesamt bleibt 1320 px. */
.shell { display: grid; grid-template-columns: minmax(var(--rail), 1fr) minmax(0, var(--main)) minmax(var(--side), 1fr); min-height: 100dvh; width: min(var(--gesamt), 100%); margin: 0 auto; }
.shell > .rail { justify-self: end; width: var(--rail); }
.shell > .side { justify-self: start; width: var(--side); }
.rail { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 4px; padding: 0 16px 16px; border-right: 1px solid var(--line); }
main { min-width: 0; border-right: 1px solid var(--line); padding-bottom: 96px; outline: none; container-type: inline-size; }
.side { position: sticky; top: 0; height: 100dvh; overflow-y: auto; padding: 12px 20px 24px; display: flex; flex-direction: column; gap: 16px; scrollbar-width: thin; }
/* Logo wie das horizontale Logo im Mediakit: Wortmarke 0,68 der Bildmarkenhöhe, Abstand 0,31 davon (34 px hoch: 23 px
   und 11 px). Bildmarke als Inline-SVG (lib/ui.js, BILDMARKE), Ring und e in --marke-ring, Stern immer gelb; Wortmarke
   als Maske in --marke-wort. Die Maske trägt ihre Kennung von Hand (CSS kann asset() nicht rufen): bei jeder Änderung an
   wortmarke.svg hochzählen, sonst halten Browser und Cloudflare die alte Datei ein Jahr. */
/* Kopfzeile über alle drei Spalten: Logo (links), Spaltentitel (Mitte, .col-head) und Suchfeld (rechts) stehen in einem
   Band von --kopf Höhe und teilen dieselbe Mittellinie. Die Navigation beginnt darunter wie vorher (64 + 8 = 72 px). */
.rail > .logo { height: var(--kopf); padding: 0 10px; margin-bottom: 8px; }
.side { padding-top: calc((var(--kopf) - 46px) / 2); }
.logo { display: flex; align-items: center; gap: 11px; padding: 8px 10px 18px; color: var(--marke-wort); }
.wordmark { display: block; height: 23px; aspect-ratio: 726 / 111; background: currentColor; -webkit-mask: url(/images/wortmarke.svg?v=2) no-repeat center / contain; mask: url(/images/wortmarke.svg?v=2) no-repeat center / contain; }
.logo:hover { text-decoration: none; }
.mark { display: block; width: 36px; height: auto; aspect-ratio: 774 / 732; flex: none; }
.mark .zeichen { fill: var(--marke-ring); }
.mark .stern { fill: #FFCC00; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 16px; padding: 11px 14px; border-radius: 999px; color: var(--fg); font-size: 17px; position: relative; transition: background .15s; }
.nav a:hover { background: var(--hover); text-decoration: none; }
.nav a.on { font-weight: 700; }
.nav a.on .i { stroke-width: 2.4; color: var(--accent); }
.badge { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--star); color: var(--star-fg); font-size: 11px; font-weight: 750; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--bg); }
.nav .badge { position: absolute; left: 28px; top: 5px; }
.post-btn { margin-top: 12px; padding: 13px 18px; font-size: 16px; }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 999px; border: 0; background: none; text-align: left; width: 100%; }
.me:hover { background: var(--hover); }
.me .lbl { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.me .lbl strong, .me .lbl .handle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-pop { position: fixed; inset: auto auto 84px 18px; margin: 0; min-width: 240px; background: var(--bg-raise); color: var(--fg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; }
.menu-pop a, .menu-pop button, .drawer a, .drawer button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; background: none; border-radius: 10px; color: var(--fg); font-size: 15px; text-align: left; }
.menu-pop a:hover, .menu-pop button:hover, .drawer a:hover, .drawer button:hover { background: var(--hover); text-decoration: none; }
.menu-pop form, .drawer form { margin: 0; }
.topbar, .fab { display: none; }
.drawer:not(:popover-open) { display: none; }

/* ---------- Bausteine ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; background: var(--accent-fill); color: var(--accent-fg); font-weight: 700; padding: 9px 18px; border-radius: 999px; text-decoration: none; line-height: 1.2; transition: filter .15s, transform .1s, background .15s; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { background: var(--hover); filter: none; }
.btn.danger { background: var(--danger-fill); color: #fff; }
.btn.small { padding: 6px 13px; font-size: 13.5px; }
.btn.big { padding: 14px 28px; font-size: 16.5px; }
.btn.wide { width: 100%; }
.follow-form .btn.ghost[data-hover]:not([data-hover=""]):hover { color: var(--danger); border-color: color-mix(in oklab, var(--danger) 45%, transparent); background: color-mix(in oklab, var(--danger) 8%, transparent); font-size: 0; }
.follow-form .btn.ghost[data-hover]:not([data-hover=""]):hover::after { content: attr(data-hover); font-size: 15px; }
.follow-form .btn.small.ghost[data-hover]:not([data-hover=""]):hover::after { font-size: 13.5px; }
.tool { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 999px; border: 0; background: transparent; color: var(--accent); transition: background .15s; }
.tool:hover, .tool.on { background: var(--accent-soft); }
.chip { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--fg); font-size: 13.5px; font-weight: 500; }
.chip:hover { border-color: var(--accent); text-decoration: none; }
.chip.small { padding: 1px 8px; font-size: 12px; color: var(--muted); }
.handle { color: var(--muted); font-weight: 400; }
.fine { color: var(--muted); font-size: 13.5px; }
.notice { background: var(--accent-soft); border-radius: var(--radius-s); padding: 11px 14px; }
.error { color: var(--danger); margin: 6px 0 0; }
.error:empty { display: none; }
.pad { padding: 16px; }
.intro { padding: 12px 16px 0; color: var(--muted); margin: 0; }
.empty { padding: 56px 24px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty p { margin: 0; }
.card { background: var(--soft); border-radius: var(--radius); padding: 16px 18px; }
.card h2 { font-size: 18px; margin: 0 0 8px; letter-spacing: -.01em; }
.plain { margin: 0; padding-left: 18px; color: var(--muted); }
.plain li { margin: 7px 0; }
.sub { font-size: 18px; margin: 20px 16px 8px; letter-spacing: -.01em; }
.sub.first { margin: 0 0 8px; }
.col-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; min-height: var(--kopf); padding: 0 16px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.col-head h1, .col-head .col-titel { font-size: 20px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.02em; }
.col-head .col-titel { font-weight: 700; }
.prose > h1:first-child { font-size: 26px; line-height: 1.2; margin: 6px 0 10px; letter-spacing: -.02em; }
.col-head .tool { color: var(--fg); margin-left: -8px; }
/* Knöpfe am rechten Rand des Spaltenkopfs (Unterhaltung: Sicherheitsnummer, Optionen). Der Titel davor kürzt sich. */
.col-head > :not(.col-tools) { min-width: 0; }
.col-tools { margin-left: auto; display: flex; align-items: center; gap: 2px; flex: none; margin-right: -8px; }
.col-tools .menu summary { color: var(--fg); padding: 9px; }
.col-tools .menu summary .i { width: 22px; height: 22px; }
/* Beide Menüs hängen am rechten Rand der Knopfgruppe, nicht am jeweiligen Knopf: sonst ragte das Schild-Menü am Handy links über den Rand */
.col-tools { position: relative; }
.col-tools .menu { position: static; }
.col-tools .menu-list { top: calc(100% + 6px); }
/* Menü mit Inhalt statt Einträgen (Sicherheitsnummer) und das Optionen-Menü mit der Zeitwahl oben */
.menu-panel, .menu-optionen { width: min(340px, calc(100vw - 24px)); }
.menu-panel { padding: 14px 16px; gap: 2px; }
.menu-titel { margin: 0; font-weight: 650; font-size: 15px; }
.menu-panel .safety-num { margin: 8px 0 6px; max-width: 260px; } /* acht Gruppen als zwei Zeilen zu je vier */
.menu-panel .fine { margin: 0; }
.menu-form { padding: 8px 12px 12px; margin: 0 0 4px !important; border-bottom: 1px solid var(--line); }
.menu-form label { display: block; font-size: 13px; font-weight: 650; color: var(--muted); margin: 0 0 6px; }
.menu-form-zeile { display: flex; gap: 8px; align-items: center; }
.menu-form-zeile select { flex: 1; min-width: 0; }
/* Der Speichern-Knopf ist kein Menüeintrag: nicht auf volle Breite ziehen (.menu-list button) */
.menu-list .menu-form-zeile .btn { width: auto; flex: none; justify-content: center; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 650; }
.menu-form small { display: block; margin-top: 8px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.menu-list .menu-fine { margin: 4px 0 0; padding: 10px 12px 6px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.4; }
.convo-head { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }
.tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
/* Feed: keine sichtbare Überschrift über „Feed | Alles“; sie bleibt für Vorleseprogramme, die Reiter sind der Kopf */
.col-head.kopf-weg { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.col-head.kopf-weg + .tabs { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); }
.tabs a { flex: 1 0 auto; text-align: center; padding: 15px 14px; color: var(--muted); font-weight: 600; position: relative; white-space: nowrap; }
.tabs a:hover { background: var(--hover); text-decoration: none; }
.tabs a.on { color: var(--fg); }
.tabs a.on::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 56px; height: 4px; translate: -50% 0; border-radius: 4px; background: var(--accent-fill); }
/* Profilbilder: Quadrat mit leicht gerundeten Ecken (16 % der Kante, in der App gleich: ProfilBild) */
.av { border-radius: 16%; object-fit: cover; background: var(--avatar-bg); outline: 1px solid var(--bildrand); outline-offset: -1px; flex: none; }
.av-s { width: 32px; height: 32px; } .av-m { width: 44px; height: 44px; } .av-l { width: 72px; height: 72px; }
.av-xl { width: 128px; height: 128px; border: 4px solid var(--bg); box-shadow: 0 2px 10px rgb(0 0 0 / .08); outline: 0; }
.av.av-frei { background: none; outline: 0; box-shadow: none; }
.av-xl.av-frei { border-color: transparent; }
.side-search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; background: var(--input); border: 1px solid var(--feldrand); border-radius: 999px; transition: border-color .15s, box-shadow .15s; }
.side-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent); }
.side-search .i { color: var(--muted); width: 18px; height: 18px; flex: none; }
/* Das Feld selbst ohne eigenen Rahmen und Grund: den Rahmen trägt die Pille (vorher gewann die allgemeine Feldregel, die
   später in der Datei steht, und es stand ein Feld im Feld) */
.side-search input[type=search] { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 15px; outline: none; box-shadow: none; }
.side .card { background: var(--bg-raise); border: 1px solid var(--line); }
.about-card h2 { font-size: 17px; margin: 0 0 14px; }
.anders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.anders li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 14.5px; line-height: 1.45; }
.anders .i { width: 20px; height: 20px; margin-top: 1px; color: var(--accent); }
.side-search { position: relative; }
/* Live-Vorschläge unter dem Suchfeld (public/javascripts/app.js): „Suche nach …“ und Hashtags, Trennlinie, Leute */
.search-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; max-height: min(70vh, 560px); overflow-y: auto; background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; }
.search-suggest a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 10px; border-radius: 10px; color: var(--fg); text-decoration: none; }
.search-suggest a:hover, .search-suggest a.on { background: var(--hover); text-decoration: none; }
.search-suggest .sg-symbol { display: grid; place-items: center; width: 40px; height: 40px; flex: none; }
.search-suggest .sg-lupe { width: 20px; height: 20px; stroke-width: 2.2; }
.search-suggest .sg-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.search-suggest .sg-trenner { height: 1px; margin: 6px -6px; background: var(--line); }
.search-suggest .av { flex: none; width: 40px; height: 40px; }
.search-suggest .sg-namen { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.search-suggest .sg-namen strong { display: flex; align-items: center; gap: 4px; min-width: 0; }
.search-suggest .sg-name, .search-suggest .sg-namen .handle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot { font-size: 12.5px; color: var(--muted); }
.foot p { margin: 4px 0; line-height: 1.7; }
/* Links als umbrechende Reihe ohne Trennpunkte: ein Punkt landete sonst am Zeilenanfang (· Datenschutz) */
.foot-links { list-style: none; margin: 0 0 8px; padding: 0 4px; display: flex; flex-wrap: wrap; gap: 4px 14px; line-height: 1.6; }
.foot-links a:hover { color: var(--fg); }
.foot-copy { padding: 0 4px; margin: 10px 0 0 !important; line-height: 1.6 !important; }
.foot .lang { padding: 0 4px; }
.foot a { color: var(--muted); }
/* Sprachauswahl: Formular mit Auswahlfeld (mit Skript schickt die Auswahl selbst ab, der Knopf verschwindet), auf
   Sprachseiten eine aufklappbare Liste mit Links */
.foot .lang { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.foot .lang select { width: auto; max-width: 100%; padding: 5px 28px 5px 10px; font-size: 13px; border-radius: 10px; }
.foot .lang button { border: 0; background: none; padding: 0; color: var(--accent); font-size: 12.5px; }
.js .foot form.lang button { display: none; }
.foot .lang a { color: var(--accent); }
.foot details.lang { display: block; }
.foot details.lang summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--accent); list-style: none; }
.foot details.lang summary::-webkit-details-marker { display: none; }
.foot details.lang ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 2px 12px; }
.foot details.lang a[aria-current] { color: var(--fg); font-weight: 650; }
/* Pflichtlinks (Impressum, Datenschutz, Kündigungsbutton) auch dort, wo die Seitenleiste ausgeblendet ist */
.foot-main { display: none; padding: 20px 16px 8px; border-top: 1px solid var(--line); margin-top: 16px; }
/* /info: die Links der Fußzeile als Liste zum Antippen, in Gruppen */
.info-liste { list-style: none; margin: 0; padding: 6px 0; border-bottom: 1px solid var(--line); }
.info-liste a { display: flex; align-items: center; min-height: 48px; padding: 0 16px; color: var(--fg); font-size: 16px; }
.info-liste a:hover { background: var(--hover); text-decoration: none; }
.info-liste a::after { content: "›"; margin-left: auto; color: var(--muted); font-size: 20px; }
.info-seite .foot { padding-top: 12px; }

/* ---------- Formulare ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field > .label, fieldset legend { font-weight: 600; font-size: 14px; }
.field small { color: var(--muted); font-size: 12.5px; }
input[type=text], input[type=email], input[type=url], input[type=search], input[type=datetime-local], input[type=date], input[type=number], input:not([type]), select, textarea {
  width: 100%; border: 1px solid var(--feldrand); background: var(--input); border-radius: 12px; padding: 11px 13px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent); }
textarea { resize: vertical; field-sizing: content; min-height: 3lh; }
/* Platzhalter: Nebentextfarbe statt Browsergrau (#757575 lag im Dunklen bei 3,3 zu 1) */
::placeholder { color: var(--muted); opacity: 1; }
.prefix { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding-left: 13px; transition: border-color .15s, box-shadow .15s; }
.prefix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent); }
.prefix span { color: var(--muted); }
.prefix input { border: 0; box-shadow: none !important; padding-left: 2px; }
.check, .radio { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input, .radio input { margin-top: 4px; accent-color: var(--accent-fill); width: 17px; height: 17px; flex: none; }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 10px; margin: 0; }
.accents { flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: center; }
.swatch { width: 34px; height: 34px; border-radius: 50%; cursor: pointer; position: relative; background: var(--sw, #000000); box-shadow: inset 0 0 0 1px rgb(127 127 127 / .25); }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.swatch:has(input:checked) { outline: 3px solid var(--fg); outline-offset: 2px; }
.swatch:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
/* Farbfelder: --sw je Darstellung aus /akzent/<kennung>/auswahl.css. Eigene Farbe: Farbkreis als Ring, innen der Farbwähler */
.sw-eigen { background: conic-gradient(from 90deg, #E5484D, #F5A524, #46A758, #12A594, #3E63DD, #8E4EC6, #E5484D); box-shadow: none; display: grid; place-items: center; }
.sw-eigen input[type=color] { position: relative; z-index: 1; inset: auto; opacity: 1; width: 24px; height: 24px; padding: 0; border: 2px solid var(--bg-raise); border-radius: 50%; background: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.sw-eigen input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.sw-eigen input[type=color]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.sw-eigen input[type=color]::-moz-color-swatch { border: 0; border-radius: 50%; }
.sw-eigen input[type=color]:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.accents-hint { flex-basis: 100%; color: var(--muted); }
.avatar-field { flex-direction: row; gap: 16px; align-items: center; }
.avatar-field > div { display: flex; flex-direction: column; gap: 6px; }
.rows { list-style: none; margin: 0 0 16px; padding: 0; }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.rows li div { display: flex; flex-direction: column; }
.rows small { color: var(--muted); }
.inline { display: inline; }
.alt-edit { flex-direction: row; gap: 12px; }
.alt-edit img { border-radius: 10px; object-fit: cover; }
.alt-edit div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.push-box { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--soft); margin-bottom: 12px; }
.push-box p { margin: 0; }

/* ---------- Eingabefeld ---------- */
.composer { border-bottom: 1px solid var(--line); padding: 14px 16px 10px; position: relative; }
.composer.drop::after { content: attr(data-drop-text); position: absolute; inset: 6px; border: 2px dashed var(--accent); border-radius: var(--radius); background: color-mix(in srgb, var(--accent-soft) 90%, transparent); display: grid; place-items: center; color: var(--accent); font-weight: 700; z-index: 4; }
.composer-row { display: flex; gap: 12px; }
.composer-main { flex: 1; min-width: 0; position: relative; }
.composer textarea[name=text] { border: 0; padding: 8px 0; font-size: 19px; line-height: 1.45; background: transparent; box-shadow: none !important; resize: none; min-height: 2.4lh; max-height: 50vh; }
.composer .cw-field input { margin: 2px 0 8px; }
.replying { margin: 0 0 6px 56px; font-size: 13.5px; color: var(--muted); }
.composer-bar { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.composer-bar .btn { margin-left: 8px; }
.composer-bar .send { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.composer-bar .send .count { margin-left: 0; }
.composer-bar .send .btn { margin-left: 0; }
.count { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.ring { width: 22px; height: 22px; rotate: -90deg; }
.ring circle { fill: none; stroke: var(--line); stroke-width: 2.5; }
.ring .ring-on { stroke: var(--accent-fill); stroke-linecap: round; transition: stroke-dashoffset .12s; }
.count.close .ring-on { stroke: var(--warn); } .count.close { color: var(--warn); }
.count.over .ring-on { stroke: var(--danger); } .count.over { color: var(--danger); font-weight: 700; }
.suggest { position: absolute; left: 0; right: 0; z-index: 10; background: var(--bg-raise); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; }
.sg { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.sg.on, .sg:hover { background: var(--hover); }
.sg-emoji { font-size: 24px; line-height: 1; width: 32px; text-align: center; flex: none; }
.sg .handle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uploads { display: grid; gap: 8px; margin: 6px 0; }
.up { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: start; background: var(--soft); border-radius: 14px; padding: 8px; position: relative; animation: auf .2s ease-out; }
.up img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: var(--hover); }
.up-video video, .up-video img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: #000; }
.up-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.up-meta textarea { font-size: 14px; min-height: 2lh; padding: 7px 9px; border-radius: 10px; font-weight: 400; }
.up-state { position: absolute; left: 14px; bottom: 14px; font-size: 11px; background: var(--bg); padding: 2px 7px; border-radius: 6px; }
.up-state:empty { display: none; }

/* Dialoge: Schreiben, Rückfragen, Tastenkürzel */
dialog { color: var(--fg); }
dialog::backdrop { background: rgb(8 9 14 / .45); backdrop-filter: blur(3px); }
.sheet { width: min(620px, calc(100% - 24px)); max-height: calc(100dvh - 48px); margin: 6vh auto auto; translate: var(--sheet-x, 0px) 0; padding: 0; border: 0; border-radius: 20px; background: var(--bg); box-shadow: var(--shadow); overflow: auto; }
.sheet[open] { animation: auf .18s ease-out; }
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px 0; }
.sheet-head form { margin: 0; }
.sheet-head h2 { font-size: 17px; margin: 0; }
.sheet-head .tool { color: var(--fg); }
.sheet .composer { border-bottom: 0; }
.ask { width: min(420px, calc(100% - 32px)); border: 0; border-radius: 20px; padding: 22px 22px 18px; background: var(--bg-raise); box-shadow: var(--shadow); }
.ask[open] { animation: auf .16s ease-out; }
.ask p { margin: 0 0 18px; font-size: 16px; }
.ask h2 { margin: 0 0 8px; font-size: 18px; }
.ask p.error:empty { display: none; }
.ask-actions { display: flex; justify-content: flex-end; gap: 8px; margin: 0; }
.keys h2 { margin: 0 0 12px; font-size: 18px; }
.keys dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 18px; align-items: center; }
.keys dt { display: flex; gap: 4px; } .keys dd { margin: 0; color: var(--muted); }
kbd { font-family: var(--mono); font-size: 12.5px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--soft); }
@keyframes auf { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* Toasts */
.toasts { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(480px, calc(100% - 32px)); }
/* Als popover (oberste Ebene, über Dialogen): die Vorgaben des Browsers für popover zurücknehmen */
.toasts[popover] { top: auto; right: auto; height: auto; margin: 0; border: 0; padding: 0; overflow: visible; background: none; color: inherit; }
.toast { background: var(--fg); color: var(--bg); padding: 11px 18px; border-radius: 14px; box-shadow: var(--shadow); font-weight: 600; font-size: 14.5px; pointer-events: auto; animation: auf .2s ease-out; transition: opacity .35s, transform .35s; text-align: center; }
.toast.weg { opacity: 0; transform: translateY(8px); }

/* ---------- Beiträge ---------- */
.post { padding: 14px 16px 6px; border-bottom: 1px solid var(--line); position: relative; outline: none; transition: background .15s; }
/* Keine Hervorhebung bei Maus und Klick (Ansage Betreiber, 2026-11-11): Nur wer mit der Tastatur durch die Beiträge geht
   (Tastenkürzel j/k), sieht, welcher gerade gewählt ist; dafür ist die Markierung da. */
.post:focus-visible { box-shadow: inset 3px 0 0 var(--accent-fill); background: var(--accent-soft); outline: none; }
.post.fresh { animation: frisch 1.6s ease-out; }
@keyframes frisch { from { background: var(--accent-soft); } to { background: transparent; } }
.post-l:hover { background: none; }
/* Dezentes Hover und Klick in die Antworten (wieder seit 2026-11-12, Ansage Betreiber): nur mit Maus, nie beim großen
   Beitrag oben im Gespräch. --post-hover liegt je Thema knapp neben dem Grund (hell #F4F2EB auf #FAF8F2,
   dunkel #1B1B1B auf #121212), dezent, aber auf beiden sichtbar. Der Klick selbst: public/javascripts/app.js („Klick auf einen Beitrag“). */
@media (hover: hover) and (pointer: fine) {
  .post:not(.post-l):hover { background: var(--post-hover); cursor: pointer; }
  .post:not(.post-l):hover:focus-visible { background: var(--accent-soft); }
}
.post-head { display: flex; align-items: center; gap: 8px; }
.who { display: flex; align-items: center; gap: 12px; color: var(--fg); min-width: 0; }
.who:hover { text-decoration: none; }
.who:hover strong { opacity: .75; }
.names { display: flex; flex-wrap: wrap; gap: 0 6px; align-items: baseline; min-width: 0; line-height: 1.25; }
.names strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; font-weight: 700; }
.when { color: var(--muted); font-size: 14px; white-space: nowrap; }
.when::before { content: "· "; }
.edited { font-size: 13px; }
.post-head .menu { margin-left: auto; }
.text { margin: 4px 0 4px 56px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; line-height: 1.5; }
.text-l { font-size: 20px; line-height: 1.45; margin-left: 0; margin-top: 14px; letter-spacing: -.005em; }
/* Linkvorschau im Beitrag neben der Avatar-Spalte wie Text und Bilder; Ausnahmen: große Ansicht, Vorwarnung, schmal */
.post .link-card { margin-left: 56px; }
.post-l .media, .post-l .cw, .post-l .link-card { margin-left: 0; }
.post-meta { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.post-meta a { color: var(--muted); font-weight: 600; }
.mention, .tag { font-weight: 500; }
/* Eigene Emojis (lib/eigene-emoji.js) in Zeilenhöhe, wie ein Zeichen */
.emoji-eigen { display: inline-block; width: 1.3em; height: 1.3em; vertical-align: -.28em; margin: 0 .04em; object-fit: contain; }
.sg-emoji img { width: 26px; height: 26px; vertical-align: middle; }
/* Einfarbige eigene Emojis (Apple, Website): schwarz gezeichnet, im dunklen Design hell wie der Text */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .emoji-einfarbig { filter: invert(1); } }
:root[data-theme="dark"] .emoji-einfarbig { filter: invert(1); }
.ctx { margin: 0 0 4px 56px; font-size: 13px; color: var(--muted); display: flex; gap: 5px; align-items: center; }
.ctx a { color: var(--muted); font-weight: 600; }
.cw { margin: 8px 0 4px 56px; }
.cw > .text, .cw > .media, .cw > .link-card { margin-left: 0; }
.cw summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.cw summary::-webkit-details-marker { display: none; }
.cw-show { color: var(--accent); font-weight: 650; font-size: 13.5px; }
.cw[open] .cw-show { visibility: hidden; }
.cw-label { color: var(--warn); font-weight: 600; }
.media { display: grid; gap: 3px; margin: 10px 0 6px 56px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.media-2, .media-3, .media-4 { grid-template-columns: 1fr 1fr; }
.media-3 .media-item:first-child { grid-row: span 2; }
.media-item { display: block; position: relative; background: var(--soft); cursor: zoom-in; }
.media img { display: block; width: 100%; height: 100%; max-height: 560px; object-fit: cover; transition: filter .2s; }
.media-item:hover img { filter: brightness(.94); }
.media-1 img { height: auto; }
/* Transparente Bilder: auf dem Grund des Beitrags, nie beschnitten */
.media-item.alpha { background: transparent; }
.media-item.alpha img { object-fit: contain; }
.media-item.alpha:hover img { filter: none; }
/* Videos: Standbild davor, lädt erst beim Abspielen; von selbst nur stumm und mit Kontoeinstellung (app.js) */
.media-item.video { margin: 0; cursor: auto; background: #000; }
.media video { display: block; width: 100%; height: auto; max-height: 560px; background: #000; }
/* Ohne native Controls, bis jemand ins Video tippt (wie x.com mobil): darüber ein Link über die ganze Fläche, unten
   links Restzeit (davor Abspielzeichen und Länge), unten rechts der Ton-Knopf. Mit .steuerung nur noch der Player. */
.video-start { position: absolute; inset: 0; z-index: 1; -webkit-tap-highlight-color: transparent; }
.video-start:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: inherit; }
.video-dauer { position: absolute; left: 8px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 3px; background: rgb(0 0 0 / .6); color: #fff; font-size: 12px; font-weight: 700; line-height: 18px; padding: 1px 6px; border-radius: 6px; pointer-events: none; font-variant-numeric: tabular-nums; }
.video-dauer .i { width: 11px; height: 11px; }
.media-item.video.laeuft .video-dauer .i { display: none; }
.video-ton { position: absolute; right: 8px; bottom: 8px; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgb(0 0 0 / .6); color: #fff; cursor: pointer; }
.video-ton[hidden] { display: none; }
.video-ton .i { width: 18px; height: 18px; }
.video-ton .ton-an, .media-item.video.ton-an .video-ton .ton-aus { display: none; }
.media-item.video.ton-an .video-ton .ton-an { display: block; }
.video-ton.ohne-ton { opacity: .45; cursor: default; }
.video-ton:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.media-item.video.steuerung :is(.video-start, .video-dauer, .video-ton, .alt-badge) { display: none; }
.media-item.video .alt-badge { bottom: auto; top: 8px; pointer-events: none; z-index: 2; }
.media-item.video.gespielt .alt-badge { display: none; }
/* Video aus „Video posten“ im Raster: Quelle oben links (unten liegen Restzeit, Ton und Bedienleiste), ALT dann rechts */
.media .media-item.video .quelle { top: 8px; bottom: auto; z-index: 2; }
.media-item.video:has(.quelle) .alt-badge { left: auto; right: 8px; }
/* Fortschritt im Player weiß statt in der Systemfarbe */
.media-item video { accent-color: #fff; }
.video-badge { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.video-badge .i { width: 11px; height: 11px; }
.ap-video { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px 56px; padding: 10px 14px; border-radius: 14px; background: var(--soft); color: var(--fg); font-size: 14px; }
.ap-video .i { width: 18px; height: 18px; color: var(--accent); }
.post-l .ap-video { margin-left: 0; }
.media-2 img, .media-3 img, .media-4 img { aspect-ratio: 1 / 1; max-height: 320px; }
/* Videos zwischen Fotos (seit 2026-11-13 gemischt): dieselbe quadratische Kachel wie die Bilder daneben */
.media-2 video, .media-3 video, .media-4 video { aspect-ratio: 1 / 1; max-height: 320px; height: 100%; object-fit: cover; }
.media-3 .media-item:is(.video, .gif-video):first-child video { aspect-ratio: auto; max-height: none; position: absolute; inset: 0; }
/* GIF als Video: wie ein Bild, ohne Bedienleiste; die Fläche dahinter wie bei Bildern */
.media-item.gif-video video { background: var(--soft); pointer-events: none; }
/* Fünf bis zwanzig Fotos und Videos (seit 2026-11-13): auch auf breiten Bildschirmen ein Streifen zum seitlichen
   Wischen, alle gleich hoch, rastet je Medium ein; ein Raster aus zwanzig Kacheln wäre zu klein zum Erkennen */
.media-streifen { --h: 300px; display: flex; gap: 4px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; border: 0; border-radius: 0; }
.media-streifen > .media-item { flex: 0 0 auto; height: var(--h); min-width: calc(var(--h) * .8); max-width: calc(var(--h) * 1.2); display: flex; justify-content: center; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); scroll-snap-align: start; }
.media-streifen > .media-item .mi-bild { display: contents; }
.media-streifen > .media-item :is(img, video) { height: 100%; width: auto; min-width: 100%; max-width: none; max-height: none; aspect-ratio: auto; position: static; object-fit: cover; }
/* Drei Bilder: das erste geht über zwei Zeilen und muss die ganze Kachel füllen (sonst grauer Streifen unten) */
.media-3 .media-item:first-child img { aspect-ratio: auto; max-height: none; height: 100%; position: absolute; inset: 0; }
.alt-badge { position: absolute; left: 8px; bottom: 8px; background: rgb(0 0 0 / .72); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; padding: 2px 6px; border-radius: 5px; }
/* Quelle eines geposteten Fotos oder Screenshots (Teilen-Menü): Plakette unten links, ALT rückt nach rechts */
.media-item.hat-quelle .mi-bild { display: block; height: 100%; }
.media .media-item .quelle { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 64px); padding: 3px 10px 3px 3px; border-radius: 9px; background: rgb(0 0 0 / .72); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.2; cursor: pointer; }
.media .media-item .quelle span:not(.sr) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media .media-item .quelle img.av { position: static; inset: auto; width: 20px; height: 20px; aspect-ratio: 1; max-height: none; flex: none; filter: none; }
.media .media-item .quelle:hover { background: rgb(0 0 0 / .86); text-decoration: none; }
.media-item.hat-quelle .alt-badge { left: auto; right: 8px; }
/* Quelle und ALT unter einem einzelnen geteilten Foto oder Screenshot (lib/ui.js, medien) */
/* eingerückt wie .media: die Spalte unter dem Profilbild bleibt frei */
.quell-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 6px 56px; font-size: 13px; color: var(--muted); }
.post-l .quell-zeile { margin-left: 0; }
.quell-zeile .quelle-unten { display: inline-flex; align-items: center; gap: 7px; min-width: 0; color: var(--muted); font-weight: 600; }
.quell-zeile .quelle-unten span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quell-zeile .quelle-unten:hover { color: var(--fg); text-decoration: none; }
.quell-zeile img.av { width: 20px; height: 20px; flex: none; }
.quell-zeile .alt-badge { position: static; flex: none; background: var(--soft); color: var(--muted); }
/* Teilen-Knopf in der Aktionsleiste: wie die anderen Knöpfe */
.post-actions .teilen summary { padding: 7px 9px; color: var(--muted); transition: color .15s, background .15s; }
.post-actions .teilen summary:hover, .post-actions .teilen[open] summary { color: var(--accent); background: var(--accent-soft); }
/* GIFs: Abzeichen, Abspielzeichen solange das Standbild steht (Konto „erst beim Antippen“, Bewegung reduziert, angehalten) */
.media-item.gif { cursor: pointer; }
.media picture { display: contents; }
.gif-badge { position: absolute; left: 8px; bottom: 8px; background: rgb(0 0 0 / .72); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; padding: 2px 6px; border-radius: 5px; }
.tile .gif-badge { left: 6px; bottom: auto; top: 6px; }
.gif-play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgb(0 0 0 / .62); color: #fff; display: none; place-items: center; pointer-events: none; }
.gif-play .i { width: 26px; height: 26px; margin-left: 3px; }
.media-item.gif.tap:not(.playing) .gif-play, .media-item.gif.paused .gif-play { display: grid; }
@media (prefers-reduced-motion: reduce) { .media-item.gif-video:not(.playing) .gif-play { display: grid; } }
@media (prefers-reduced-motion: reduce) { .media-item.gif:not(.playing) .gif-play { display: grid; } }
.post-actions { display: flex; gap: 8px; margin: 4px -8px 0 48px; justify-content: space-between; }
.post-l .post-actions { margin-left: -8px; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 12px; max-width: none; justify-content: space-around; }
.post-actions form { margin: 0; }
/* .act-like-n: Zahl der Herzen für Gäste, wenn der Verfasser sie öffentlich gemacht hat (kein Knopf) */
.post-actions a, .post-actions button, .post-actions .act-like-n { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; color: var(--muted); padding: 7px 9px; border-radius: 999px; font-size: 13px; transition: color .15s, background .15s; }
.post-actions .i { width: 19px; height: 19px; }
.act-reply:hover { color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.act-reply.off { opacity: .4; cursor: default; }
.act-like:hover, .act-like.on { color: var(--like); background: color-mix(in oklab, var(--like) 10%, transparent); }
.act-like.on .i, .act-bookmark.on .i { fill: currentColor; }
.act-share:hover, .act-share.on { color: var(--ok); background: color-mix(in oklab, var(--ok) 10%, transparent); }
.act-bookmark:hover, .act-bookmark.on { color: var(--accent); background: var(--accent-soft); }
.pop .i { animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { 0% { transform: scale(.7); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.n { font-variant-numeric: tabular-nums; }
.hidden-reply summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 6px 0; }
.thread-up .post { border-bottom: 0; }
.thread-up .post::before { content: ""; position: absolute; left: 37px; top: 62px; bottom: -8px; width: 2px; border-radius: 2px; background: var(--line); }
.replies .post { padding-left: 24px; }
.replies { border-top: 1px solid var(--line); }
.more { display: block; text-align: center; padding: 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.more.loading { color: transparent; position: relative; }
.more.loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--accent); animation: dreh .7s linear infinite; }
@keyframes dreh { to { rotate: 360deg; } }
.new-posts { position: sticky; top: 64px; z-index: 4; display: block; margin: 10px auto; padding: 9px 18px; background: var(--accent-fill); color: var(--accent-fg); border: 0; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow); animation: auf .2s ease-out; }
.versions { list-style: none; margin: 0; padding: 0; }
.version { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.version .text { margin-left: 0; }
.version p { margin: 0 0 6px; }
.version.now { background: var(--accent-soft); }

/* Menü an Beiträgen */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; color: var(--muted); display: inline-flex; padding: 6px; border-radius: 999px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--accent-soft); color: var(--accent); }
.menu-list { position: absolute; right: 0; top: 100%; z-index: 8; min-width: 240px; background: var(--bg-raise); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; animation: auf .12s ease-out; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; border: 0; background: none; padding: 10px 12px; border-radius: 9px; color: var(--fg); font-size: 14.5px; }
.menu-list .i { width: 18px; height: 18px; color: var(--muted); }
.menu-list a:hover, .menu-list button:hover { background: var(--hover); text-decoration: none; }
.menu-list .danger { color: var(--danger); }
.menu-list .danger .i { color: currentColor; }
.menu-list form { margin: 0; }

/* Bildbetrachter */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(5 6 10 / .94); color: #fff; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 56px 64px 40px; touch-action: none; }
/* Zoomen übernimmt der Betrachter selbst (app.js); die Beschreibung darf weiter senkrecht scrollen */
.lightbox figcaption { touch-action: pan-y; }
.lightbox img { touch-action: none; user-select: none; -webkit-user-drag: none; transform-origin: 50% 50%; will-change: transform; position: relative; z-index: 1; }
.lightbox.gezoomt figcaption, .lightbox.gezoomt .lb-count { opacity: 0; pointer-events: none; }
.lightbox { overflow: hidden; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 160px); object-fit: contain; border-radius: 6px; }
.lightbox img.alpha { background: var(--bg); }
.lightbox figcaption { max-width: 70ch; color: #d8dae4; font-size: 14.5px; text-align: center; }
.lb-count { position: absolute; top: 18px; left: 0; right: 0; text-align: center; color: #b8bbc8; font-size: 13px; margin: 0; }
.lightbox .tool { position: absolute; color: #fff; background: rgb(255 255 255 / .12); width: 44px; height: 44px; }
.lightbox .tool:hover { background: rgb(255 255 255 / .22); }
.lb-close { top: 12px; right: 12px; } .lb-prev { left: 12px; top: 50%; translate: 0 -50%; } .lb-next { right: 12px; top: 50%; translate: 0 -50%; }

/* ---------- Profil ---------- */
.banner, .banner-preview { height: 170px; background: radial-gradient(120% 140% at 85% 0%, oklch(80% .12 var(--hue)) 0%, transparent 60%), linear-gradient(135deg, oklch(62% .19 var(--hue)), oklch(46% .19 calc(var(--hue) + 40))); }
.banner.has-img { height: auto; aspect-ratio: 3 / 1; background: var(--soft); overflow: hidden; }
.banner-preview:has(img) { background: var(--soft); }
.banner img, .banner-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.banner-preview { height: auto; aspect-ratio: 3 / 1; border-radius: 14px; overflow: hidden; margin: 2px 0; }
.pronouns { color: var(--muted); }
/* Medien-Reiter: Raster, ein Feld je Post */
.grid-media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 3px; }
.tile { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--soft); display: block; }
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.tile.alpha { background: var(--bg); }
.tile.alpha img { object-fit: contain; padding: 8%; }
.tile:hover img { transform: scale(1.04); }
.cw-tile img { filter: blur(20px) saturate(.6); transform: scale(1.2); }
.cw-tile:hover img { transform: scale(1.2); }
.tile .cw-label { position: absolute; inset: auto 6px 6px; display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 10px; background: rgb(0 0 0 / .62); color: #fff; font-size: 12px; font-weight: 650; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tile-count { position: absolute; top: 6px; right: 6px; padding: 2px 8px; border-radius: 999px; background: rgb(0 0 0 / .62); color: #fff; font-size: 12px; font-weight: 700; }
.profile { padding: 0 16px 16px; border-bottom: 1px solid var(--line); }
.profile-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: -64px; position: relative; }
.profile-actions { display: flex; gap: 8px; align-items: center; padding-bottom: 6px; }
.profile-actions .menu-list { right: 0; }
/* Knöpfe im Profilkopf gleich hoch, ob mit Symbol oder ohne (vorher 38, 42 und 36 px); „Mehr“ als Kreis */
.profile-actions .btn { height: 40px; padding-top: 0; padding-bottom: 0; }
.profile-actions .menu > summary.btn { width: 40px; padding: 0; }
.profile-name { font-size: 24px; margin: 12px 0 0; letter-spacing: -.02em; }
/* Gründungsmitglieder (die ersten 1.000 Konten, lib/gruender.js): das Gründungssiegel neben dem Namen, gewellter Rand mit
   der Bildmarke darin (lib/ui.js, SIEGEL). Es folgt dem Thema: im Hellen schwarzes Siegel mit warmweißer Marke, im Dunklen
   helles Siegel mit Marke in der Grundfarbe, wie ausgestanzt. Der Stern bleibt EU-Gelb. In der Plakette und im Band
   (Fast-Schwarz in beiden Themen) immer die helle Fassung. */
.gruender { display: inline-flex; align-items: center; flex: none; vertical-align: -.14em; }
.gruender-siegel { width: 1.05em; height: 1.05em; flex: none; display: block; }
.siegel-ring { fill: #FFFFFF; }
.siegel-stern { fill: var(--star); }
/* Hell (2026-11-15, Ansage Daniel): Marke weiß, Stern golden; dunkel: Marke fast schwarz, Stern als heller Lichtpunkt */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .siegel-ring { fill: #16130C; } :root:not([data-theme="light"]) .siegel-stern { fill: #FFF6D6; } }
:root[data-theme="dark"] .siegel-ring { fill: #16130C; } :root[data-theme="dark"] .siegel-stern { fill: #FFF6D6; }
/* Gold der Nummer = Gold des Siegels (Verlauf als Schrift), hell etwas dunkler gezogen, damit es auf Weiß lesbar bleibt */
.gruender-nr { background: linear-gradient(135deg, #C8901C, #8E5F08); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gruender-nr { background-image: linear-gradient(135deg, #FCE7A6, #E3B03A); } }
:root[data-theme="dark"] .gruender-nr { background-image: linear-gradient(135deg, #FCE7A6, #E3B03A); }
/* In .names (Flex, Grundlinie) säße eine Grafik mit der Unterkante auf der Grundlinie und damit 2,7 px zu hoch: mittig zur
   Zeile ausrichten trifft die Mitte der Großbuchstaben (gemessen 0,3 px Abweichung). Abstand nur über die Lücke von .names
   (6 px), links wie rechts: gemessen an der Tinte 6,9 px vom Namen und 7,1 px bis zum @ (vorher -2 px links, 4,9 zu 7,1) */
.names .gruender { align-self: center; }
.names .gruender-siegel { width: 20px; height: 20px; }
/* Plakette im Profil (seit 2026-11-11 das einzige Abzeichen dort, direkt am Namen statt Siegel plus Kasten darunter):
   zwei Fassungen. Hell: weiße Karte mit feiner Kante, schwarzes Siegel, Nummer in dunklem Gold (#7A5C00, 6,3 zu 1 auf
   Weiß; #FFCC00 hätte 1,4 zu 1). Dunkel: fast schwarze Karte mit goldener Kante, helles Siegel, Nummer in Sterngelb.
   Der Name und die Plakette stehen in einer Flex-Zeile, auf schmalen Bildschirmen bricht die Plakette unter den Namen. */
.profile-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; line-height: 1.25; }
.profile-name > .i { margin-left: -6px; }
/* Plakette als eigene Zeile unter der Kennung, wenn sie neben dem Namen keinen Platz hat (public/javascripts/app.js) */
.profile-plakette { margin: 10px 0 0; }
.gruender-plakette { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 8px; border-radius: 999px; overflow: hidden;
  background: #FFFFFF; color: #000000; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12), 0 1px 2px rgb(0 0 0 / .06);
  font-size: 13.5px; line-height: 1.2; font-weight: 400; letter-spacing: 0; white-space: nowrap; }
.gruender-plakette .gruender-text { display: inline-block; overflow: hidden; }
.gruender-plakette .gruender-nr { font-weight: 700; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gruender-plakette { background: #121212; color: #F2EFE6; box-shadow: inset 0 0 0 1px rgb(255 204 0 / .35), 0 1px 2px rgb(0 0 0 / .18); } }
:root[data-theme="dark"] .gruender-plakette { background: #121212; color: #F2EFE6; box-shadow: inset 0 0 0 1px rgb(255 204 0 / .35), 0 1px 2px rgb(0 0 0 / .18); }
.gruender-plakette .gruender-siegel { width: 24px; height: 24px; flex: none; }
.gruender-plakette strong { font-weight: 700; letter-spacing: .01em; }
/* Glanz, der einmal über die Plakette läuft (nur mit Bewegung, siehe unten) */
.gruender-plakette::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 35%, rgb(255 230 140 / .55) 50%, transparent 65%); transform: translateX(-100%); }
/* Band zum Gründungspreis (Start- und Kaufseite) im Stil der Plakette: Fast-Schwarz in beiden Themen, großes Siegel, Preis in Sterngelb; ab 100 Mitgliedern ein Balken, wie viele der 1.000 Plätze vergeben sind */
/* Karte zum Gründungspreis (lib/ui.js, gruenderBand; Start- und Kaufseite), neu gestaltet am 2026-11-15. Sie folgt dem Thema der
   Seite, Gold nur als Akzent (Text hell #7A5C00, dunkel Sterngelb). Die Karte misst sich selbst (Container-Abfrage):
   ab 700 px zwei Spalten mit der Stufentreppe als Säulen, schmaler untereinander mit Stufen als Zeilen mit Füllstand. */
.gruender-band { container: gband / inline-size; --gold: #7A5C00; margin: 28px 0 8px; padding: clamp(18px, 3.4vw, 32px); border-radius: 24px; text-align: left; color: var(--fg);
  background: radial-gradient(120% 130% at 0% 0%, color-mix(in oklab, var(--star) 17%, transparent), transparent 58%), var(--bg-raise);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--star) 50%, var(--line)), 0 18px 44px -24px rgb(0 0 0 / .4); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gruender-band { --gold: var(--star); } }
:root[data-theme="dark"] .gruender-band { --gold: var(--star); }
.gb-raster { display: grid; gap: 22px; }
.gruender-band p { margin: 0; }
.gb-haupt { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; min-width: 0; }
.gruender-band .gruender-siegel.gross { width: 48px; height: 48px; }
.gruender-band-text { flex: 1 1 auto; min-width: 0; }
.gruender-band-titel { font-size: 14.5px; font-weight: 700; line-height: 1.35; color: var(--gold); }
/* Preiszeile (2026-11-15, Ansage Daniel): vorher stand der Preis in 54 px mitten im 21-px-Satz und riss eine große Lücke zur
   Überschrift auf. Jetzt ist der ganze Satz die Schlagzeile, der Preis nur 1,3-mal so groß und ohne eigene Zeilenhöhe
   (line-height: 0), damit er die Zeile nicht aufbläht. Die großen Zahlen stehen ohnehin in der Treppe darunter. */
.gruender-band-preis { margin-top: 6px !important; font-size: clamp(20px, 5.2cqi, 27px); font-weight: 700; letter-spacing: -.015em; line-height: 1.3; text-wrap: balance; }
.gruender-band-preis strong { font-size: 1.3em; font-weight: 800; letter-spacing: -.03em; line-height: 0; color: var(--gold); white-space: nowrap; }
.gruender-band-mehr { margin-top: 6px !important; font-size: 14px; line-height: 1.5; color: var(--muted); }
.gruender-band-mehr .preis-normal { color: var(--fg); font-weight: 700; white-space: nowrap; }
.gruender-band-frei { margin-top: 12px !important; display: grid; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--gold); }
.gruender-balken { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 7px; border: 0; border-radius: 999px; background: var(--line); overflow: hidden; }
.gruender-balken::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
.gruender-balken::-webkit-progress-value { background: var(--gold); border-radius: 999px; }
.gruender-balken::-moz-progress-bar { background: var(--gold); border-radius: 999px; }
/* Treppe in der Karte, schmal: Zeilen, Füllstand der laufenden Stufe von links */
.gruender-treppe[data-f="0"] { --fill: 0%; } .gruender-treppe[data-f="1"] { --fill: 5%; } .gruender-treppe[data-f="2"] { --fill: 10%; } .gruender-treppe[data-f="3"] { --fill: 15%; }
.gruender-treppe[data-f="4"] { --fill: 20%; } .gruender-treppe[data-f="5"] { --fill: 25%; } .gruender-treppe[data-f="6"] { --fill: 30%; } .gruender-treppe[data-f="7"] { --fill: 35%; }
.gruender-treppe[data-f="8"] { --fill: 40%; } .gruender-treppe[data-f="9"] { --fill: 45%; } .gruender-treppe[data-f="10"] { --fill: 50%; } .gruender-treppe[data-f="11"] { --fill: 55%; }
.gruender-treppe[data-f="12"] { --fill: 60%; } .gruender-treppe[data-f="13"] { --fill: 65%; } .gruender-treppe[data-f="14"] { --fill: 70%; } .gruender-treppe[data-f="15"] { --fill: 75%; }
.gruender-treppe[data-f="16"] { --fill: 80%; } .gruender-treppe[data-f="17"] { --fill: 85%; } .gruender-treppe[data-f="18"] { --fill: 90%; } .gruender-treppe[data-f="19"] { --fill: 95%; }
.gruender-treppe[data-f="20"] { --fill: 100%; }
.gruender-band .gruender-treppe { margin: 16px 0 2px; gap: 5px; color: var(--muted); }
.gruender-band .gruender-treppe li { position: relative; isolation: isolate; overflow: hidden; padding: 8px 12px; border-radius: 10px; background: var(--soft); }
.gruender-band .gruender-treppe li::before { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 0; width: 0; background: color-mix(in oklab, var(--muted) 16%, transparent); }
.gruender-band .gruender-treppe .vorbei { opacity: 1; }
.gruender-band .gruender-treppe .vorbei::before { width: 100%; }
.gruender-band .gruender-treppe .jetzt { color: var(--fg); background: color-mix(in oklab, var(--star) 12%, var(--soft)); box-shadow: inset 0 0 0 1.5px var(--gold); }
.gruender-band .gruender-treppe .jetzt::before { width: var(--fill, 0%); background: color-mix(in oklab, var(--star) 40%, transparent); }
.gruender-band .gruender-treppe .jetzt :is(strong, em) { color: var(--gold); }
.gruender-band .gruender-treppe .normal { margin-top: 0; padding-top: 8px; border-radius: 10px; background: none; box-shadow: inset 0 0 0 1px var(--line); }
/* Vorschau des Profils rechts neben dem Text bzw. darunter */
.gruender-vorschau { margin: 0; min-width: 0; }
.gruender-vorschau figcaption { font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 10px; }
.gv-karte { display: block; border-radius: 18px; overflow: hidden; background: var(--bg); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line), 0 16px 36px -18px rgb(0 0 0 / .45); }
/* Treppe als Säulen ab 640 px Kartenbreite, Vorschau daneben erst ab 1100 px: darunter bekäme die Treppe nur 420 bis 540 px
   und die Stufenbeschriftung bräche in drei bis vier Zeilen um (gemessen bei 768 und 1024 px Fensterbreite) */
@container gband (min-width: 1100px) {
  .gb-raster { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 36px; align-items: center; }
  .gruender-vorschau { align-self: center; }
}
@container gband (min-width: 640px) {
  .gb-haupt { flex-direction: row; gap: 18px; }
  .gruender-band .gruender-siegel.gross { width: 64px; height: 64px; }
  .gruender-band .gruender-treppe { grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; gap: 6px; margin-top: 22px; }
  .gruender-band .gruender-treppe li { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 4px 10px; text-align: center; border-radius: 12px 12px 6px 6px; height: 120px; }
  .gruender-band .gruender-treppe li:nth-child(2) { height: 138px; } .gruender-band .gruender-treppe li:nth-child(3) { height: 156px; }
  .gruender-band .gruender-treppe li:nth-child(4) { height: 174px; } .gruender-band .gruender-treppe li:nth-child(5) { height: 192px; } .gruender-band .gruender-treppe li:nth-child(6) { height: 214px; }
  .gruender-band .gruender-treppe strong { order: 1; font-size: 20px; letter-spacing: -.02em; text-align: center; }
  .gruender-band .gruender-treppe em { order: 2; font-size: 11px; text-align: center; }
  .gruender-band .gruender-treppe span { order: 3; font-size: 11.5px; line-height: 1.3; }
  .gruender-band .gruender-treppe li::before { inset: auto 0 0 0; width: auto; height: 0; }
  .gruender-band .gruender-treppe .vorbei::before { height: 100%; width: auto; }
  .gruender-band .gruender-treppe .jetzt::before { width: auto; height: var(--fill, 0%); }
  .gruender-band .gruender-treppe .normal { border-radius: 12px 12px 6px 6px; padding-top: 12px; }
}
/* Normalpreis durchgestrichen neben dem Gründungspreis (statt „danach 99 €“, das wie eine zweite Zahlung klang) */
.preis-statt { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--muted); white-space: nowrap; }
/* Im Band: Ziffern fast so hell wie der Text (vorher zu blass), dünner und gedämpfter Strich, damit „99 €“ lesbar bleibt */
.gruender-zeile .preis-statt { font-weight: 600; margin-left: 2px; }
/* Gründungspreis im Preis-Abschnitt der Startseite (lib/ui.js, gruenderHinweis): Karte im Thema der Seite mit goldener
   Kante, oben die animierte Plakette aus dem Profil, darunter was gilt: erste 1.000 einmalig 49 €, ab Nr. 1.001 99 €.
   Gold für Text wie bei der Plakette: hell #7A5C00 (6,3 zu 1 auf Weiß), dunkel Sterngelb. */
.st-gruender, .quittung-danach, .gruender-zeile { --gold: #7A5C00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.st-gruender, .quittung-danach, .gruender-zeile) { --gold: var(--star); } }
:root[data-theme="dark"] :is(.st-gruender, .quittung-danach, .gruender-zeile) { --gold: var(--star); }
.st-gruender { margin-top: 24px; padding: 18px 20px 18px; border-radius: 18px; background: color-mix(in oklab, var(--star) 7%, var(--bg-raise)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--star) 45%, var(--line)); }
.st-preis .st-text .st-gruender p { margin: 0; color: var(--fg); }
.st-gruender .gruender-plakette { margin-bottom: 14px; }
.st-preis .st-text .st-gruender .st-gruender-titel { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.st-preis .st-text .st-gruender .st-gruender-preis { margin-top: 4px; font-size: 18px; font-weight: 600; line-height: 1.45; }
.st-gruender-preis strong { font-size: 22px; letter-spacing: -.02em; color: var(--gold); }
.st-gruender-preis .preis-normal { font-weight: 700; white-space: nowrap; }
.st-preis .st-text .st-gruender .st-gruender-mehr { margin-top: 6px; font-size: 15px; color: var(--muted); }
.st-preis .st-text .st-gruender .st-gruender-frei { margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--gold); }
/* Quittung: „statt 99 €“ ohne Strich (das „statt“ sagt es), unter der Summe, was ab Nummer 1.001 gilt */
.preis-statt-text .preis-normal { white-space: nowrap; }
.quittung-danach { margin: 6px 0 0; text-align: right; font-size: 13.5px; color: var(--muted); }
.quittung-danach .preis-normal { color: var(--fg); font-weight: 700; white-space: nowrap; }
.gruender-zeile strong { color: var(--gold); }
.gruender-zeile .preis-normal { font-weight: 600; white-space: nowrap; }
/* Beispiel im Band (lib/ui.js, gruenderVorschau): ein Profilkopf im Thema der Seite mit der echten Plakette. Das Band
   bricht dafür um, die Vorschau steht in voller Breite unter Siegel und Text. */
.gv-banner { display: block; width: 100%; height: auto; aspect-ratio: 4 / 1; object-fit: cover; }
/* Echtes Gründungsmitglied: Titelbild als Fläche mit dem Farbverlauf des Profils (.banner), ein eigenes Bild füllt sie */
div.gv-banner { background: radial-gradient(120% 140% at 85% 0%, oklch(80% .12 var(--hue)) 0%, transparent 60%), linear-gradient(135deg, oklch(62% .19 var(--hue)), oklch(46% .19 calc(var(--hue) + 40))); overflow: hidden; }
div.gv-banner.has-img { background: var(--soft); }
div.gv-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
a.gv-karte { text-decoration: none; }
a.gv-karte:hover .gv-name > strong { text-decoration: underline; }
.gv-bild.av-frei { box-shadow: none; background: transparent; }
.gv-bild { display: block; width: 64px; height: 64px; margin: -34px 0 0 14px; border-radius: 14px; object-fit: cover; box-shadow: 0 0 0 3px var(--bg-raise); position: relative; }
.gv-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 14px 0 !important; line-height: 1.25; }
.gv-handle { margin: 4px 14px 14px !important; font-size: 14px; color: var(--muted); }
.gv-name > strong { font-size: 19px; letter-spacing: -.02em; }
.gv-platz { display: inline-grid; justify-items: start; max-width: 100%; }
.gv-platz > .gruender-plakette { grid-area: 1 / 1; }
.gv-platz > .gv-mass, .gv-platz > .gv-mass * { visibility: hidden; animation: none !important; }
@media (prefers-reduced-motion: no-preference) {
  /* Schleife, 6 s: Siegel erscheint, Plakette klappt auf, Glanz, Pause, klappt zu, Siegel geht */
  .gruender-plakette.schleife { animation: gv-auf 6s cubic-bezier(.2, .8, .2, 1) .6s infinite both; }
  .gruender-plakette.schleife .gruender-text { animation: gv-text 6s cubic-bezier(.2, .8, .2, 1) .6s infinite both; }
  .gruender-plakette.schleife .gruender-siegel { animation: gv-siegel 6s cubic-bezier(.2, .9, .3, 1.3) .6s infinite both; transform-origin: 50% 50%; }
  .gruender-plakette.schleife::after { animation: gv-glanz 6s ease-in-out .6s infinite both; }
  @keyframes gv-auf { 0%, 9% { padding-right: 8px; gap: 0; } 22%, 82% { padding-right: 14px; gap: 9px; } 93%, 100% { padding-right: 8px; gap: 0; } }
  @keyframes gv-text { 0%, 9% { max-width: 0; opacity: 0; } 14% { opacity: 0; } 24%, 80% { max-width: 16em; opacity: 1; } 90%, 100% { max-width: 0; opacity: 0; } }
  @keyframes gv-siegel { 0% { transform: scale(1.35); opacity: 0; } 6% { transform: scale(.94); opacity: 1; } 9%, 95% { transform: scale(1); opacity: 1; } 100% { transform: scale(.8); opacity: 0; } }
  @keyframes gv-glanz { 0%, 28% { transform: translateX(-100%); opacity: 1; } 44%, 100% { transform: translateX(100%); opacity: 1; } }
}
/* Preistreppe der Gründungsstufen (lib/ui.js, gruenderTreppe): laufende Stufe hervorgehoben, volle gedämpft, Normalpreis
   darunter abgesetzt. Im dunklen Band und in der hellen Karte der Startseite mit eigenen Farben. */
.gruender-treppe { list-style: none; margin: 10px 0 4px; padding: 0; display: grid; gap: 2px; font-size: 13.5px; line-height: 1.35; }
.gruender-treppe li { display: grid; grid-template-columns: 1fr auto 4.8em; align-items: baseline; gap: 10px; margin: 0; padding: 4px 10px; border-radius: 8px; }
.gruender-treppe strong { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.gruender-treppe em { font-style: normal; font-size: 12px; font-weight: 700; text-align: right; }
.gruender-treppe .vorbei { opacity: .55; }
.gruender-treppe .normal { margin-top: 4px; padding-top: 8px; border-radius: 0; box-shadow: inset 0 1px 0 color-mix(in oklab, currentColor 22%, transparent); }
.st-gruender .gruender-treppe { color: var(--muted); }
.st-gruender .gruender-treppe .jetzt { background: color-mix(in oklab, var(--star) 15%, transparent); color: var(--fg); }
.st-gruender .gruender-treppe .jetzt :is(strong, em) { color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .gruender-band .gruender-siegel.gross { animation: funkeln 1.1s cubic-bezier(.2, .9, .3, 1.3) .3s both; transform-origin: 50% 50%; }
}
/* Gründungspreis in der Quittung und in der Karte „Neu hier?“ */
.st-quittung dd.kasse-gruender { justify-content: flex-start; align-items: center; gap: 8px; color: var(--fg); }
.kasse-gruender > :last-child { margin-left: auto; }
.kasse-gruender .gruender-siegel, .gruender-zeile .gruender-siegel { width: 18px; height: 18px; }
.gruender-zeile { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; font-weight: 600; }
.gruender-zeile .gruender-siegel { margin-top: 1px; }
.gruender-nr { font-weight: 700; font-variant-numeric: tabular-nums; margin-left: 2px; }
/* Profil: das Siegel erscheint wie das kleine Abzeichen am Namen und klappt dann zur Plakette mit Nummer auf, danach läuft
   einmal ein Glanz darüber. Ohne Bewegungswunsch (prefers-reduced-motion) steht die Plakette sofort fertig da. */
@media (prefers-reduced-motion: no-preference) {
  .gruender-plakette { animation: plakette-auf .7s cubic-bezier(.2, .8, .2, 1) .45s both; }
  .gruender-plakette .gruender-text { animation: plakette-text .7s cubic-bezier(.2, .8, .2, 1) .45s both; }
  .gruender-plakette .gruender-siegel { animation: funkeln 1.1s cubic-bezier(.2, .9, .3, 1.3) .1s both; transform-origin: 50% 50%; }
  .gruender-plakette::after { animation: glanz 1s ease-in-out 1.25s 1 both; }
  @keyframes plakette-auf { from { padding-right: 8px; gap: 0; } to { padding-right: 14px; gap: 9px; } }
  @keyframes plakette-text { from { max-width: 0; opacity: 0; } 40% { opacity: 0; } to { max-width: 16em; opacity: 1; } }
  @keyframes glanz { 0% { transform: translateX(-100%); opacity: 1; } 100% { transform: translateX(100%); opacity: 1; } }
  @keyframes funkeln { 0% { transform: scale(1.35); opacity: 0; } 60% { transform: scale(.94); opacity: 1; } 100% { transform: scale(1); } }
}
.profile .handle { margin: 0; }
.bio { white-space: pre-wrap; margin: 12px 0; overflow-wrap: anywhere; }
.fediverse-note { margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--soft); color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.fediverse-note strong { color: var(--fg); font-weight: 650; }
.fediverse-note a { color: var(--fg); }
.profile-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.profile-meta.own a { color: var(--fg); }
.people, .people-mini, .convos { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.people-main { flex: 1; min-width: 0; }
.people-main p { margin: 4px 0 0; font-size: 14px; }
.people .names { color: var(--fg); }
.people-mini li { display: flex; align-items: center; gap: 10px; padding: 9px 16px; flex-wrap: wrap; }
.people-mini form { margin-left: auto; }
.cards-row { list-style: none; margin: 0; padding: 4px 16px 16px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.cards-row li { scroll-snap-align: start; flex: none; }
.cards-row a { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 132px; padding: 14px 10px; border-radius: var(--radius); background: var(--soft); color: var(--fg); text-align: center; }
.cards-row a:hover { background: var(--hover); text-decoration: none; }
.cards-row strong, .cards-row .handle { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }

/* ---------- Mitteilungen ---------- */
.notif { display: flex; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.notif.unread { background: color-mix(in srgb, var(--accent-soft) 70%, transparent); }
.notif p { margin: 0; }
.notif-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.notif-icon { color: var(--accent); padding-top: 4px; }
.notif-icon .i { width: 26px; height: 26px; }
.notif-icon.k-like { color: var(--like); } .notif-icon.k-like .i { fill: currentColor; }
.notif-icon.k-share { color: var(--ok); }
.stack { display: flex; }
.stack a + a { margin-left: -8px; }
.stack .av:not(.av-frei) { box-shadow: 0 0 0 2px var(--bg); }
.notif-quote { color: var(--muted); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.notif-post { display: block; padding: 0; }
.notif-label { padding: 12px 16px 0 72px; font-size: 13.5px; color: var(--muted); }
.notif-label a { color: var(--fg); }
.notif-post .post { border: 0; }
.requests { border-bottom: 1px solid var(--line); padding-bottom: 8px; }

/* ---------- Nachrichten ---------- */
.dm-status p { margin: 0 0 8px; }
.dm-ok { color: var(--ok); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.dm-ok .briefschloss { width: 11px; height: 15px; flex: none; fill: currentColor; }
.dm-status code { font-family: var(--mono); font-size: 12.5px; }
/* Wiederherstellungscode: groß, ohne Umbruch innerhalb einer Vierergruppe, gut abzuschreiben */
.dm-status .dm-code { font-family: var(--mono); font-size: 17px; font-weight: 600; letter-spacing: .04em; word-spacing: .1em; line-height: 1.6;
  padding: 12px 14px; margin: 4px 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft, transparent); user-select: all; overflow-wrap: anywhere; white-space: pre-line; }
.dm-status .check { margin: 12px 0; }
.dm-status > .btn + .btn, .dm-status > .btn.small { margin-left: 8px; }
.dm-code-form { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.dm-code-form input { font-family: var(--mono); font-size: 15px; letter-spacing: .03em; text-transform: uppercase; }
.dm-code-form .btn { align-self: flex-start; }
/* Gerät koppeln (KOPPELN.md): QR-Code immer schwarz auf weiß (auch im Dunkelmodus scanbar), feste Größe wie ein Bild */
.dm-qr-rahmen { margin: 6px 0 12px; }
.dm-qr { display: block; width: 220px; height: 220px; border-radius: 12px; }
.dm-pruefzahl { font-family: var(--mono); font-size: 34px !important; font-weight: 700; letter-spacing: .08em; color: var(--fg) !important; margin: 4px 0 12px !important; }
.dm-anfrage:empty { display: none; }
.dm-anfrage, .dm-verknuepfen { margin: 12px 16px 16px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-raise); }
.dm-anfrage p, .dm-verknuepfen p { margin: 0 0 12px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.dm-anfrage .dm-hinweis-titel, .dm-verknuepfen .dm-hinweis-titel { color: var(--fg); font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.dm-anfrage .btn + .btn, .dm-verknuepfen .btn + .btn { margin-left: 8px; }
.dm-anfrage .dm-ok { margin: 0; }
#dm_karte_code .dm-verknuepfen { margin: 12px 0 0; width: 100%; }
/* DMs v2 (KOPPELN.md): ganzseitige Schritte. Solange einer läuft, tritt der Rest der Seite zurück */
body.dm-fluss-aktiv .convos, body.dm-fluss-aktiv .new-convo, body.dm-fluss-aktiv .new-group, body.dm-fluss-aktiv .dm-fusszeile,
body.dm-fluss-aktiv .chat, body.dm-fluss-aktiv form[data-dm-send], body.dm-fluss-aktiv main .empty, body.dm-fluss-aktiv [data-safety] { display: none !important; }
.dm-status.dm-fluss { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px 20px 40px; min-height: calc(100dvh - 160px); }
.dm-fluss > * { width: 100%; }
.dm-fluss-fortschritt { display: flex; gap: 6px; justify-content: center; margin-bottom: 28px; }
.dm-fluss-fortschritt span { width: 28px; height: 4px; border-radius: 2px; background: var(--line); }
.dm-fluss-fortschritt span.an { background: var(--fg); }
.dm-fluss-symbol { width: 64px; height: 64px; margin: 8px auto 20px; border-radius: 20px; background: var(--bg-raise); border: 1px solid var(--line); display: grid; place-items: center; }
.dm-fluss-symbol svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dm-fluss-symbol.ok { color: var(--ok); }
.dm-status .dm-fluss-titel { font-size: 24px; line-height: 1.25; font-weight: 700; margin: 0 0 10px; outline: none; }
.dm-status .dm-fluss-text { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0 0 18px; }
.dm-status .dm-fluss-klein { font-size: 14px; margin-top: 4px; }
.dm-fluss .dm-code { text-align: center; font-size: 19px; margin: 6px 0 12px; }
.dm-fluss .check { justify-content: center; margin: 14px 0; }
.dm-fluss .dm-code-form { text-align: left; }
.dm-fluss-unten { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.dm-fluss-unten .btn.wide { width: 100%; justify-content: center; }
.dm-status > .dm-fluss-unten .btn + .btn { margin-left: 0; }
.dm-fluss-leise { border: 0 !important; background: none !important; color: var(--accent) !important; font-weight: 600; }
.dm-fluss .dm-qr-rahmen { display: flex; justify-content: center; margin: 4px 0 8px; }
.dm-fluss .dm-pruefzahl, .dm-fenster .dm-pruefzahl { font-family: var(--mono); font-size: 40px; font-weight: 700; letter-spacing: .08em; color: var(--fg); margin: 10px 0 18px; }
.dm-fenster .dm-pruefzahl.klein { font-size: 22px; color: var(--muted); }
/* Frage auf dem entsperrten Gerät: modales Fenster */
.dm-fenster { width: min(420px, 100% - 32px); border: 1px solid var(--line); border-radius: 20px; background: var(--bg-raise); color: var(--fg); padding: 28px 24px 22px; text-align: center; }
.dm-fenster::backdrop { background: rgba(0, 0, 0, .55); }
.dm-fenster .dm-fluss-symbol { margin-top: 0; }
.dm-fenster-titel { font-size: 21px; font-weight: 700; margin: 0 0 8px; line-height: 1.3; }
.dm-fenster-text { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0 0 6px; }
.dm-fenster .btn.wide { width: 100%; justify-content: center; margin-top: 10px; }
.dm-fenster .dm-code { font-family: var(--mono); font-size: 18px; font-weight: 600; white-space: pre-line; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin: 12px 0; user-select: all; }
.dm-fenster .check { justify-content: center; margin: 12px 0 4px; }
/* Unter der DM-Liste: eine Zeile zu „Nachrichten und Geräte“ */
.dm-fusszeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--fg); }
.dm-fusszeile:hover { text-decoration: none; background: var(--hover); }
.dm-fusszeile-link { color: var(--muted); font-size: 14px; white-space: nowrap; }
/* Einstellungen „Nachrichten und Geräte“ */
.dm-einst-ok { font-size: 15px; }
.dm-einst-ok .i { width: 16px; height: 16px; }
.dm-hinzufuegen { margin: 12px 0 8px; }
.dm-hinzufuegen summary { list-style: none; display: inline-flex; }
.dm-hinzufuegen summary::-webkit-details-marker { display: none; }
.dm-hinzufuegen p { margin-top: 10px; color: var(--muted); }
/* Einstellungen als gruppierte Listen (DMs und Geräte): eine Zeilenform für alles */
.einst-gruppe { margin: 0 0 28px; }
.einst-titel { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 8px 4px; }
.einst-liste { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-raise); overflow: hidden; }
.einst-liste > li + li { border-top: 1px solid var(--line); }
.einst-zeile { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 12px 16px; border: 0; background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.einst-zeile:hover { background: var(--hover); text-decoration: none; }
.einst-zeile:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.einst-symbol { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--hover); color: var(--fg); }
.einst-symbol .i { width: 18px; height: 18px; }
.einst-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.einst-text strong { font-size: 15px; font-weight: 600; }
.einst-text small { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.einst-wert { color: var(--muted); font-size: 14px; text-align: right; }
.einst-pfeil { color: var(--muted); font-size: 20px; line-height: 1; }
.einst-akzent, .einst-akzent .einst-symbol { color: var(--accent); }
.einst-punkt { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); flex: none; }
.einst-fuss { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 8px 4px 0; }
.einst-fuss-schloss { display: flex; gap: 6px; align-items: flex-start; }
.einst-fuss-schloss .i { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.einst-still { cursor: default; }
.einst-still:hover { background: none; }
.einst-bild { flex: none; width: 34px; height: 34px; display: grid; place-items: center; }
.einst-bild .avatar { width: 34px; height: 34px; }
/* Schalter: Zeile ist ein <label>, die Checkbox sieht aus wie ein Schalter in iOS (an: Akzent, aus: Grau) */
.einst-schalter { cursor: pointer; }
.einst-switch { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 46px; height: 28px; margin: 0; border-radius: 14px; background: var(--line); cursor: pointer; transition: background .15s; }
.einst-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.einst-switch:checked { background: var(--accent-fill); }
.einst-switch:checked::after { transform: translateX(18px); background: var(--accent-fg); }
.einst-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.einst-aus { opacity: .5; cursor: default; }
.einst-aus:hover { background: none; }
/* Auswahl: das echte <select> liegt unsichtbar über der ganzen Zeile, die Zeile zeigt den gewählten Wert */
.einst-auswahl { position: relative; }
.einst-auswahl select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.einst-auswahl:focus-within { outline: 2px solid var(--accent); outline-offset: -2px; }
.einst-auswahl .einst-wert { max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Textfeld: graue Beschriftung, darunter das Feld ohne eigenen Rahmen */
.einst-feld { display: flex; flex-direction: column; gap: 4px; padding: 10px 16px 12px; }
.einst-feld > label { font-size: 13px; color: var(--muted); font-weight: 500; }
.einst-feld input, .einst-feld textarea, .einst-feld select { width: 100%; border: 0; background: none; padding: 2px 0; font: inherit; font-size: 15px; color: var(--fg); border-radius: 0; box-shadow: none; }
.einst-feld input:focus, .einst-feld textarea:focus { outline: none; }
.einst-feld:focus-within { box-shadow: inset 3px 0 0 var(--accent); }
.einst-feld textarea { resize: vertical; min-height: 4.5em; }
.einst-feld small { font-size: 12.5px; color: var(--muted); }
.einst-feld .prefix { display: flex; align-items: center; gap: 2px; border: 0; background: none; padding: 0; box-shadow: none; }
.einst-block .accents legend { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 8px; padding: 0; }
.einst-feld .prefix span { color: var(--muted); }
.einst-block { padding: 14px 16px; }
.einst-block-titel { display: block; font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.einst-block small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.einst-block .banner-field, .einst-block .avatar-field, .einst-block .accents, .einst-block .wz-pos { margin: 0; border: 0; padding: 0; }
.einst-block .form { max-width: none; }
.einst-block .avatar-field { display: flex; gap: 16px; align-items: center; }
.einst-regler label { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.einst-regler output { color: var(--muted); font-weight: 400; }
.einst-regler input { width: 100%; accent-color: var(--accent-fill); }
.einst-bild .vorlage-bild.klein { width: 34px; height: 34px; padding: 3px; border-radius: 10px; }
.einst-bild:has(.vorlage-bild.klein) { width: 56px; }
.einst-bild .vorlage-bild.klein { width: 56px; }
/* Fenster einer Zeile (data-fenster): Symbol oben, darunter Titel, grauer Satz und gleich breite Knöpfe */
.einst-fenster-symbol { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; background: var(--hover); display: grid; place-items: center; }
.einst-fenster-symbol .i { width: 30px; height: 30px; }
.dm-fenster form { margin: 0; }
.dm-fenster .field { text-align: left; }
.dm-fenster a.btn.wide { display: flex; }
.einst-seite > .form, .einst-seite > form { max-width: none; }
.dm-fenster .gefahr { color: var(--danger); }
.dm-fenster-feld { width: 100%; margin: 12px 0 4px; }
/* Passkey umbenennen: aufklappbar unter dem Namen, ohne Skript */
.passkey-umbenennen { margin-top: 6px; }
.passkey-umbenennen summary { cursor: pointer; list-style: none; display: inline-flex; margin-top: 4px; }
.passkey-umbenennen summary::-webkit-details-marker { display: none; }
.passkey-umbenennen .form { margin-top: 8px; }
@media (max-width: 420px) { .dm-anfrage .btn, .dm-verknuepfen .btn { width: 100%; } .dm-anfrage .btn + .btn, .dm-verknuepfen .btn + .btn { margin: 8px 0 0; } }
.convos li a { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--fg); }
.convos li a:hover { background: var(--hover); text-decoration: none; }
.convos .unread strong { color: var(--accent); }
.convo-main { flex: 1; display: flex; flex-wrap: wrap; gap: 0 6px; align-items: baseline; }
.convo-main small { color: var(--muted); width: 100%; }
.new-convo { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* Verlauf mit jemandem ohne DM-Schlüssel: Karte statt Eingabefeld (wie in den Apps) */
.dm-hinweis { margin: 12px 16px 16px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-raise); }
.dm-hinweis p { margin: 0 0 12px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.dm-hinweis .dm-hinweis-titel { color: var(--fg); font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.dm-hinweis form { margin: 0; }
.dm-hinweis .dm-hinweis-ok { color: var(--ok); margin: 0; font-weight: 600; }
@media (max-width: 420px) { .dm-hinweis .btn { width: 100%; } }
.dm-compose[hidden], .chat > .empty[hidden] { display: none; }
/* Konto löschen: Warnung als Kasten in der Gefahrfarbe */
.loeschen-warnung { border: 1px solid var(--danger); border-radius: 12px; padding: 12px 14px; margin: 8px 0 14px; }
.loeschen-warnung p { margin: 0 0 6px; } .loeschen-warnung p:last-child { margin: 0; }
.loeschen-warnung strong { color: var(--danger); }
/* Erstes Einrichten der DMs als Karte: Knöpfe untereinander und bündig */
.dm-status.dm-hinweis { padding: 16px; }
.dm-status.dm-hinweis > .btn { display: block; margin: 8px 0 0; }
.dm-status.dm-hinweis > .btn.small { width: auto; }
.dm-status.dm-hinweis > p.error:empty { display: none; }
/* Karte unter der DM-Liste (wie in den Apps): Ende-zu-Ende, Wiederherstellungscode, wer schreiben darf */
.dm-karte { margin: 20px 16px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-raise); overflow: hidden; }
.dm-karte .dm-ok { font-size: 15px; margin: 0; padding: 16px 16px 4px; }
.dm-karte .dm-ok .briefschloss { width: 13px; height: 17px; }
.dm-karte-text { margin: 0; padding: 0 16px 16px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.dm-karte-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
.dm-karte-zeile[hidden] { display: none; }
.dm-karte-info { min-width: 0; }
.dm-karte-info strong { display: block; font-size: 15px; }
.dm-karte-info p { margin: 2px 0 0; font-size: 13px; line-height: 1.4; }
.dm-karte-ok { color: var(--ok); }
.dm-karte-zeile .btn { flex: none; }
.dm-karte-link { color: var(--fg); font-weight: 600; font-size: 15px; }
.dm-karte-link:hover { background: var(--hover); text-decoration: none; }
.dm-karte-link span[aria-hidden] { color: var(--muted); font-size: 20px; line-height: 1; }
.btn.kopiert { color: var(--ok); border-color: var(--ok); }
@media (max-width: 420px) { .dm-karte-zeile { flex-wrap: wrap; } .dm-karte-zeile .btn { width: 100%; } }
.new-convo select { width: auto; flex: 1; }
.chat { display: flex; flex-direction: column; gap: 4px; padding: 16px; min-height: 40vh; max-height: 64dvh; overflow-y: auto; overscroll-behavior: contain; }
.bubble { max-width: 78%; padding: 9px 14px; border-radius: 20px; position: relative; overflow-wrap: anywhere; }
/* Nur der Text behält seine Zeilenumbrüche; die Umbrüche im HTML dazwischen sollen keine Leerzeilen erzeugen */
.bubble .dm-text, .bubble .dm-plain { white-space: pre-wrap; }
.bubble small { display: block; font-size: 11px; opacity: .7; margin-top: 2px; }
.bubble.mine { align-self: flex-end; background: var(--accent-fill); color: var(--accent-fg); border-bottom-right-radius: 6px; }
.bubble.mine a { color: inherit; font-weight: 600; }
.bubble.theirs { align-self: flex-start; background: var(--soft); border-bottom-left-radius: 6px; }
.bubble .del { display: none; position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--muted); line-height: 1; }
.bubble:hover .del, .bubble:focus-within .del { display: block; }
.dm-locked { opacity: .7; }
.dm-warn { color: var(--danger); font-style: normal; }
/* Schlüssel geändert: Hinweis oben im Chat statt nur eines kleinen Vermerks an der Nachricht */
.dm-key-warn { margin: 8px 16px; background: color-mix(in srgb, var(--danger) 12%, var(--bg)); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); }
.dm-key-warn p { margin: 0 0 8px; }
.dm-key-warn strong { color: var(--danger); }
.dm-key-warn-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.dm-compose { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--bg); }
.dm-compose .dm-uploads { grid-column: 1 / -1; margin: 0; }
.dm-compose .dm-uploads:empty { display: none; }
.dm-attach { align-self: center; }
/* Bilder in DMs: in der Blase, ohne den Einzug der Posts */
/* feste Breite: sonst zählen die Bildmaße (width-Attribut) in die Breite der Blase */
.bubble .dm-media { margin: 6px 0 2px; width: 280px; max-width: 100%; border-color: transparent; border-radius: 14px; }
.bubble .dm-media.media-1 img { max-height: 360px; }
.bubble .dm-text:empty { display: none; }
.media-item.laedt img { background: var(--hover); min-height: 120px; }
.bubble .dm-media + small, .bubble .dm-locked + small { margin-top: 4px; }
/* Reaktionen: Knopf neben der Blase (beim Zeigen oder Antippen), Emojis darunter, Auswahl als Popover */
.bubble:focus { outline: none; }
.bubble:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Werkzeuge neben der Blase: reagieren, antworten, bearbeiten */
.bubble .dm-tools { display: none; position: absolute; top: 50%; translate: 0 -50%; gap: 4px; }
.bubble.mine .dm-tools { right: calc(100% + 6px); flex-direction: row-reverse; }
.bubble.theirs .dm-tools { left: calc(100% + 6px); }
.bubble:hover .dm-tools:not([hidden]), .bubble:focus-within .dm-tools:not([hidden]) { display: flex; }
.dm-tools button { width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.dm-tools button:hover { color: var(--fg); background: var(--hover); }
.dm-tools .i { width: 18px; height: 18px; }
.bubble.blink { animation: blink 1.2s ease-out; }
@keyframes blink { 0%, 40% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }
/* Zitat in einer Antwort */
.dm-quote { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; margin: 0 0 6px; padding: 5px 9px; border: 0; border-left: 3px solid currentColor; border-radius: 8px; background: rgb(0 0 0 / .07); color: inherit; font: inherit; font-size: 13px; text-align: left; cursor: pointer; white-space: normal; }
.dm-quote span { opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.bubble.theirs .dm-quote { border-left-color: var(--accent); }
/* Eingabe: Leiste für Antwort oder Bearbeiten, „schreibt“, Aufnahme */
.dm-compose .dm-context { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--soft); font-size: 13px; }
.dm-compose .dm-context[hidden] { display: none; }
.dm-context-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-compose.editing .dm-attach, .dm-compose.editing .dm-mic, .dm-compose.editing .dm-uploads { display: none; }
.dm-compose { grid-template-columns: auto auto 1fr auto; }
.dm-compose:not(:has(.dm-mic:not([hidden]))) { grid-template-columns: auto 1fr auto; }
.dm-compose .dm-mic { align-self: center; }
.dm-compose .dm-mic[hidden] { display: none; }
.dm-typing { margin: 0; padding: 4px 16px; font-size: 13px; color: var(--muted); font-style: italic; }
.dm-rec { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; background: var(--soft); }
.dm-rec[hidden] { display: none; }
.dm-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: puls 1s ease-in-out infinite alternate; }
@keyframes puls { to { opacity: .35; } }
.dm-rec-zeit { flex: 1; font-variant-numeric: tabular-nums; font-weight: 650; }
.up-audio { grid-template-columns: 1fr auto auto; align-items: center; }
.up-audio audio { width: 100%; min-width: 0; }
.dm-audio { margin: 4px 0 2px; width: 280px; max-width: 100%; }
.dm-audio audio { width: 100%; display: block; }
.dm-audio.laedt { min-height: 40px; border-radius: 20px; background: rgb(0 0 0 / .07); display: flex; align-items: center; padding: 0 14px; font-size: 13px; }
.dm-older { display: block; align-self: center; margin: 4px 0 10px; font-size: 13.5px; font-weight: 650; }
.dm-timerline { margin: 0; padding: 6px 16px; font-size: 13px; color: var(--muted); text-align: center; }
.dm-timerline[hidden] { display: none; }
/* Konten wechseln */
.konten { display: flex; flex-direction: column; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 4px 0; padding: 4px 0; }
.konten form { margin: 0; }
.konto { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: 0; background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; border-radius: 10px; }
.konto:hover { background: var(--hover); }
.konto > span:not(.badge):not(.sr) { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.konto .handle { font-size: 13px; }
.me, .topbar-me { position: relative; }
/* Punkt „neu in einem anderen Konto“: Die anderen Konten stecken im Menü hinter den drei Punkten, also sitzt der Hinweis
   dort (rechts oben am Symbol), nicht über dem eigenen Avatar, der ja nichts Neues hat. In der schmalen Leiste ohne die drei
   Punkte und oben auf dem Handy an der Ecke des Avatars, mit Rand in der Grundfarbe. */
.me .dot, .topbar-me .dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--star); box-shadow: 0 0 0 2px var(--bg); pointer-events: none; }
.me .dot { right: 8px; top: calc(50% - 15px); }
.me:hover .dot { box-shadow: 0 0 0 2px var(--hover); }
.topbar-me .dot { right: -1px; top: -1px; }
/* Entwürfe */
.drafts-link { display: block; text-align: right; font-size: 13px; font-weight: 600; margin: 0 0 4px; }
.danger-text { color: var(--danger); }
.drafts { list-style: none; margin: 0; padding: 0; }
.drafts li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.draft-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; color: var(--fg); text-decoration: none; }
.draft-main:hover .draft-text { opacity: .75; }
.draft-text { white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.draft-main small { color: var(--muted); font-size: 12.5px; }
/* Übersetzen (auf dem Gerät) */
.translate-btn { display: block; margin: 2px 0 6px 56px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.translate-btn:hover { opacity: .75; }
/* „wartet“: so liefert der Server den Knopf aus, bis app.js weiß, ob der Browser die Sprache übersetzen kann. Kennt der
   Browser die Schnittstelle (Klasse kann-uebersetzen aus seitenwechsel.js, vor dem ersten Zeichnen), steht die Zeile
   schon unsichtbar da und der Knopf erscheint ohne Layoutsprung; geht die Sprache doch nicht, entfernt app.js ihn.
   Sonst (ohne Skript, Safari, Firefox) bleibt er ganz weg. Nicht über [hidden]: das ist oben mit !important gesperrt. */
.translate-btn.wartet { display: none; }
.kann-uebersetzen .translate-btn.wartet { display: block; visibility: hidden; }
.post-l .translate-btn { margin-left: 0; }
.bubble .translate-btn { margin: 4px 0 0; color: inherit; font-weight: 600; font-size: 12.5px; }
.rx-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; white-space: normal; }
.rx-row:empty { display: none; }
.rx { display: inline-flex; align-items: center; gap: 3px; padding: 0 8px; min-height: 28px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font-size: 15px; cursor: pointer; }
.rx .n { font-size: 12px; font-weight: 700; }
.rx.mine { border-color: var(--accent); background: var(--accent-soft); }
.rx-picker { position: fixed; inset: auto; margin: 0; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-raise, var(--bg)); color: var(--fg); box-shadow: var(--shadow, 0 8px 28px rgb(0 0 0 / .18)); gap: 2px; align-items: center; }
.rx-picker:popover-open { display: flex; }
.rx-picker:not([popover]):not([hidden]) { display: flex; z-index: 30; }
.rx-pick { font-size: 22px; width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 0; background: none; cursor: pointer; transition: transform .12s; }
.rx-pick:hover, .rx-pick:focus-visible { background: var(--hover); transform: scale(1.12); }
.rx-pick.on { background: var(--accent-soft); }
.rx-picker input.rx-other { width: 46px; height: 38px; padding: 0; text-align: center; border-radius: 999px; font-size: 18px; }
/* Gruppen */
.dm-von { display: block; font-size: 12.5px; font-weight: 700; color: var(--accent); margin-bottom: 2px; text-decoration: none; }
.dm-event { align-self: center; text-align: center; font-size: 12.5px; color: var(--muted); margin: 8px 0; max-width: 90%; white-space: normal; }
.av-group { display: inline-flex; flex: none; }
.av-group .av:not(.av-frei) { box-shadow: 0 0 0 2px var(--bg); }
.av-group .av + .av { margin-left: -12px; }
.convos .av-group { width: 52px; }
.member-tag { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.member-tag.warn { color: var(--warn); }
.link-btn { background: none; border: 0; padding: 0; color: var(--danger); font-weight: 600; cursor: pointer; font: inherit; font-size: 13px; }
.new-group summary, .group-info summary { cursor: pointer; font-weight: 650; padding: 4px 0; }
.group-info { border-top: 1px solid var(--line); }
.group-info form { margin-top: 12px; }
.group-info form.inline { display: inline-block; margin-right: 8px; }
.group-info .people-mini li form.inline { margin: 0 0 0 auto; }
.member-pick .check { align-items: center; }
.member-pick .check input { margin-top: 0; }
.group-info .people-mini li { flex-wrap: nowrap; }
.group-info .people-mini .handle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-info .member-tag, .group-info .people-mini li > a { white-space: nowrap; }
.dm-compose textarea { min-height: 2lh; max-height: 30vh; }
.dm-compose .dm-fp, .dm-compose .error { grid-column: 1 / -1; margin: 0; }
.safety-num { font-family: var(--mono); font-size: 15px; letter-spacing: .04em; word-spacing: .3em; margin: 10px 0 4px; }

/* ---------- Startseite: eigener Rahmen ohne App-Spalten (lib/ui.js layout mit start, lib/routes/meta.js) ----------
   Das Produkt zeigt sich selbst: echte Screenshots der App in iPhone-Rahmen (Bühne im Hero, ein Gerät je Kapitel), große
   ruhige Typografie, eine Spalte bis 1200 px. Alles steht ohne Skript; public/javascripts/start.js verschlüsselt in der
   DM-Demo echt und blendet Abschnitte beim Scrollen ein. Bei „Bewegung reduzieren“ bewegt sich nichts. */
.lead { font-size: 18.5px; color: var(--muted); margin: 0 0 22px; position: relative; }
.st-wrap { width: min(1200px, 100% - 40px); margin: 0 auto; }
.st-kopf { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.st-kopf .st-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding-top: env(safe-area-inset-top); }
.st-kopf .logo { padding: 0; }
/* Kopf der Startseite: alle Bedienelemente gleich hoch (--kopf-h), Anmelden und Mitmachen gleich breit */
.st-kopf { --kopf-h: 40px; }
.st-kopf-nav { display: flex; align-items: center; gap: 8px; }
.st-kopf-nav .btn { white-space: nowrap; box-sizing: border-box; height: var(--kopf-h); padding: 0 18px; font-size: 15px; }
.st-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st-sprache { position: relative; }
.st-knopf { display: flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; height: var(--kopf-h); min-height: 0; min-width: var(--kopf-h); padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg); font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; user-select: none; transition: background .15s; }
.st-knopf::-webkit-details-marker { display: none; }
.st-knopf:hover, .st-sprache[open] .st-knopf { background: var(--hover); }
.st-knopf .i { width: 18px; height: 18px; }
.st-sprache-menue { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; box-sizing: border-box; width: min(380px, calc(100vw - 32px)); padding: 10px; background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.st-menue-titel { margin: 2px 8px 6px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.st-sprachen { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; max-height: min(72vh, 540px); overflow: auto; }
.st-sprachen button { padding: 9px 10px; border: 0; border-radius: var(--radius-s); background: none; color: var(--fg); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.st-sprachen button:hover { background: var(--hover); }
.st-sprachen button[aria-current] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.st-sprache-thema { display: none; margin: 0 0 8px; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.st-sprache-thema .st-thema { display: flex; width: 100%; margin: 0; }
.st-sprache-thema .st-thema button { flex: 1; width: auto; }
.st-kopf-nav .login .i { display: none; width: 20px; height: 20px; }
/* Umschalter Wie das Gerät, Hell, Dunkel: drei Symbole in einer Pille */
.st-thema { display: inline-flex; align-items: center; gap: 2px; box-sizing: border-box; height: var(--kopf-h, 40px); padding: 3px; margin: 0; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); }
.st-thema button { display: grid; place-items: center; width: calc(var(--kopf-h, 40px) - 8px); height: calc(var(--kopf-h, 40px) - 8px); padding: 0; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.st-thema button:hover { color: var(--fg); }
.st-thema button[aria-pressed="true"] { background: var(--bg-raise); color: var(--fg); box-shadow: 0 1px 3px rgb(0 0 0 / .14); }
.st-thema .i { width: 18px; height: 18px; }
.st-main { display: block; }
.st-abschnitt { padding: 80px 0; }
.st-abschnitt + .st-abschnitt { border-top: 1px solid var(--line); }
.st-h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.06; letter-spacing: -.03em; margin: 0 0 12px; }
.st-sub { font-size: 18px; color: var(--muted); margin: 0 0 36px; }
.st-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
/* Claim aus dem Markenleitfaden über der Überschrift, davor der eine Stern */
.claim { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 15px; font-weight: 650; color: var(--accent); position: relative; }
.claim::before { content: ""; flex: none; width: 13px; height: 13px; background: var(--star); clip-path: polygon(50% 0%, 61.8% 38.2%, 100% 38.2%, 69.1% 61.8%, 80.9% 100%, 50% 76.4%, 19.1% 100%, 30.9% 61.8%, 0% 38.2%, 38.2% 38.2%); }

/* Hero: Text mittig, darunter die Bühne mit drei Geräten (Chat, Feed, Profil) */
.st-hero { position: relative; overflow: hidden; padding: 64px 0 0; text-align: center; }
.st-hero::before { content: ""; position: absolute; left: 50%; top: 20%; width: 1100px; height: 1100px; translate: -50% 0; background: radial-gradient(closest-side, color-mix(in oklab, var(--accent-fill) 18%, transparent), transparent 70%); pointer-events: none; }
.st-hero .st-wrap { position: relative; }
.st-hero .claim { justify-content: center; }
.st-hero h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: .98; letter-spacing: -.045em; margin: 0 auto 22px; }
.st-hero .lead { font-size: clamp(18px, 1.7vw, 23px); margin: 0 auto 30px; }
.st-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 0 16px; }
.st-hero .fine { margin: 0 0 22px; }
.st-hero .fine a { color: var(--fg); font-weight: 650; }
.st-fakten { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; list-style: none; margin: 0; padding: 0; font-size: 14px; font-weight: 600; }
.st-fakten li { display: inline-flex; align-items: center; gap: 7px; }
.st-fakten .i { width: 18px; height: 18px; color: var(--accent); }
.st-buehne { position: relative; display: grid; grid-template-columns: 1fr 1.3fr 1fr; align-items: end; width: min(100%, 980px); margin: 64px auto -12%; perspective: 2400px; }
.st-buehne .st-geraet { margin: 0; }
.st-buehne .mitte { z-index: 2; }
.st-buehne .links { z-index: 1; transform: translate(14%, 7%) rotateY(16deg) rotateZ(-3deg); transform-origin: right bottom; }
.st-buehne .rechts { z-index: 1; transform: translate(-14%, 7%) rotateY(-16deg) rotateZ(3deg); transform-origin: left bottom; }
.st-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }

/* Gerät: iPhone-Rahmen, Maße relativ zur Breite (Container-Einheiten); Bildschirm 393 zu 852 wie das iPhone 15 Pro */
.st-geraet { container-type: inline-size; width: 100%; margin: 0; }
.st-rahmen { position: relative; border-radius: 13.4cqi; padding: 2.9cqi; background: linear-gradient(150deg, #2c2d33, #0b0c10 60%, #1b1c22); box-shadow: 0 2.4cqi 6cqi -1.6cqi rgb(0 0 0 / .55), inset 0 0 0 .45cqi #16171c, inset 0 0 0 .8cqi rgb(255 255 255 / .14); }
.st-rahmen::before, .st-rahmen::after { content: ""; position: absolute; right: -0.9cqi; width: .9cqi; border-radius: 0 .4cqi .4cqi 0; background: #2a2b31; }
.st-rahmen::before { top: 20%; height: 9%; }
.st-rahmen::after { top: 20%; height: 0; }
/* Bildschirm im Gegenthema der Seite: helle Seite zeigt die dunkle App und umgekehrt (--app-bg, --app-fg für Grund,
   Statusleiste und Home-Indikator, passend zum gezeigten Screenshot) */
.st-bildschirm { --app-bg: #121212; --app-fg: #E8E6E1; position: relative; aspect-ratio: 393 / 852; border-radius: 10.8cqi; overflow: hidden; background: var(--app-bg); }
.st-bildschirm img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.st-app-light { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .st-bildschirm { --app-bg: #FAF8F2; --app-fg: #000000; }
  :root:not([data-theme="light"]) .st-app-light { display: block !important; }
  :root:not([data-theme="light"]) .st-app-dark { display: none !important; }
}
:root[data-theme="dark"] .st-bildschirm { --app-bg: #FAF8F2; --app-fg: #000000; }
:root[data-theme="dark"] .st-app-light { display: block !important; }
:root[data-theme="dark"] .st-app-dark { display: none !important; }
.st-insel { position: absolute; left: 50%; top: 1.3%; width: 32%; aspect-ratio: 126 / 37; translate: -50% 0; border-radius: 999px; background: #050507; }
.st-status { position: absolute; left: 0; right: 0; top: 1.7%; display: flex; align-items: center; justify-content: space-between; padding: 0 7.5% 0 12.5%; color: var(--app-fg); font-size: 4.05cqi; font-weight: 650; letter-spacing: -.01em; line-height: 1; font-variant-numeric: tabular-nums; }
.st-status-rechts { display: inline-flex; align-items: center; gap: 1.4cqi; }
.st-status svg { height: 2.9cqi; width: auto; fill: currentColor; display: block; }
.st-status svg:last-child { height: 3.1cqi; }
.st-home { position: absolute; left: 50%; bottom: 1%; width: 35%; height: .6%; translate: -50% 0; border-radius: 999px; background: var(--app-fg); opacity: .9; }

/* Kapitel: Text neben Gerät, abwechselnd; zwei Geräte bei Fotos und Video */
.st-kapitel-teil { padding: 56px 0 24px; }
.st-kapitel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: 56px 0; }
.st-kapitel + .st-kapitel { border-top: 1px solid var(--line); }
.st-kapitel:nth-of-type(even) .st-text { order: 2; }
.st-kapitel h3 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 16px; }
.st-kapitel .st-text > p { font-size: 18px; color: var(--muted); margin: 0 0 12px; }
.st-geraete { display: flex; justify-content: center; align-items: flex-start; gap: 18px; }
.st-geraete .st-geraet { width: min(100%, 340px); }
.st-kapitel.zwei .st-geraete .st-geraet { width: calc(50% - 9px); max-width: 300px; }
.st-kapitel.zwei .st-geraet.versetzt { margin-top: 14%; }
.st-kapitel .fedi-demo { margin-top: 18px; }
.st-beispiel { margin: 16px 0 0; }
.st-demo { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.st-kapitel .st-demo-dm { margin-top: 22px; text-align: left; }
.fd-label { display: block; margin: 0 0 6px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
/* DM-Demo: Eingabe oben, Zeichensalat darunter (ohne Skript ein Beispiel, mit Skript echt) */
.st-demo-dm textarea { margin: 0 0 14px; font-size: 16px; min-height: 2.6lh; }
.st-chiffre { display: block; margin: 0; padding: 12px 14px; min-height: 3lh; font: 13px/1.5 var(--mono); word-break: break-all; color: var(--muted); background: var(--soft); border: 1px dashed color-mix(in oklab, var(--fg) 25%, transparent); border-radius: 12px; transition: background .2s; }
.st-demo-dm.echt .st-chiffre { color: var(--fg); }
.st-demo-dm .st-dm-note { margin: 12px 0 0; font-size: 13px; }
/* Fediverse-Adresse */
.fedi-demo { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.fedi-demo small { color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.fedi-demo .adresse { font: 600 15px/1.3 var(--mono); background: var(--bg-raise); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; overflow-wrap: anywhere; }
.fedi-liste { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; }
.fedi-liste li { display: flex; align-items: center; gap: 8px; }
.fedi-liste .i { width: 18px; height: 18px; margin: 0; flex: none; }
.fedi-liste .ja .i { color: var(--ok); }
.fedi-liste .nein { color: var(--muted); }
.fedi-liste .nein .i { color: var(--danger); }
.sub-checks { display: grid; gap: 10px; margin: 2px 0 0 28px; }

/* Speisekarte: was es gibt und was nicht, als Band in Textfarbe (Hell schwarz, Dunkel hell) */
.st-menu { background: var(--fg); color: var(--bg); }
.st-menu .st-sub { color: color-mix(in oklab, var(--bg) 72%, var(--fg)); }
.st-zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.st-liste { padding: 22px 24px 18px; border-radius: var(--radius); background: color-mix(in oklab, var(--bg) 8%, var(--fg)); border: 1px solid color-mix(in oklab, var(--bg) 16%, transparent); }
.st-liste h3 { margin: 0 0 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: color-mix(in oklab, var(--bg) 70%, var(--fg)); }
.st-liste ul { list-style: none; margin: 0; padding: 0; }
.st-liste li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 16.5px; }
.st-liste .i { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.st-liste.ja .i { color: var(--star); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .st-liste.ja .i { color: #000000; } }
:root[data-theme="dark"] .st-liste.ja .i { color: #000000; }
.st-liste.nein .i { color: color-mix(in oklab, var(--bg) 45%, var(--fg)); }
.st-liste.nein li { color: color-mix(in oklab, var(--bg) 70%, var(--fg)); }
.st-liste.nein s { text-decoration-thickness: 1.5px; }

/* Preis mit Quittung */
.st-preis .st-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.st-preis .st-text p { font-size: 18px; color: var(--muted); margin: 0 0 12px; }
.st-quittung { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.st-quittung dl { margin: 0; }
.st-quittung dt { margin: 14px 0 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.st-quittung dt:first-child { margin-top: 0; }
.st-quittung dd { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 5px 0; font-weight: 600; }
.st-quittung dd span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.st-summe { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 14px; border-top: 1px dashed var(--line); font-weight: 700; }
.st-summe strong { font-size: 40px; letter-spacing: -.03em; }
.st-quittung ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; color: var(--muted); font-size: 14.5px; }
.st-quittung ul li { display: flex; align-items: flex-start; gap: 8px; }
.st-quittung ul .i { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: calc((1lh - 18px) / 2); }
/* Drei Schritte */
.st-schritte { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; counter-reset: schritt; }
.st-schritte li { counter-increment: schritt; background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; }
.st-schritte li::before { content: counter(schritt); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 50%; background: var(--star); color: var(--star-fg); font-weight: 800; }
.st-schritte h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; }
.st-schritte p { margin: 0; color: var(--muted); }
.st-schritte-teil .st-cta { justify-content: flex-start; }
.st-vergleich .vergleich-wrap { margin: 0 0 18px; }
.st-vergleich .stand { display: inline-block; }
/* Fragen */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; font-weight: 650; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; font-weight: 400; color: var(--accent); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); font-size: 16.5px; }
/* Schlusskasten in der Akzentfarbe mit großer Bildmarke im Hintergrund und der Hauptaktion in Sterngelb */
.st-final { padding: 24px 0 72px; }
/* Fläche und Schrift aus --accent-fill und --accent-fg (Hell: Weiß auf Schwarz 21 zu 1, Dunkel: #121212 auf #EEEEEE;
   bei eigener Akzentfarbe gerechnet, mindestens 4,5 zu 1) */
.st-final-box { position: relative; overflow: hidden; padding: 72px 24px; border-radius: 28px; background: var(--accent-fill); color: var(--accent-fg); text-align: center; }
.st-final-box .mark { position: absolute; left: -90px; top: -110px; width: 420px; opacity: .09; }
.st-final-box .mark .zeichen { fill: var(--accent-fg); }
.st-final-box h2 { position: relative; margin: 0 0 10px; font-size: clamp(32px, 5vw, 54px); line-height: 1.04; letter-spacing: -.035em; }
.st-final-box p { position: relative; margin: 0 0 26px; font-size: 18px; color: color-mix(in oklab, var(--accent-fg) 86%, transparent); }
.st-final-box .btn { position: relative; background: var(--star); color: var(--star-fg); }
.st-fuss { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.st-fuss .foot { font-size: 13px; }
/* Einblenden beim Scrollen (start.js setzt „versteckt“ nur für Abschnitte unterhalb des ersten Bildschirms) */
/* Kaufseite (/join) im Rahmen der Startseite: links Botschaft und Leistungen, rechts die Kasse als Quittung (klebt beim
   Scrollen); auf schmalen Bildschirmen Überschrift, Kasse, Leistungen untereinander */
.kasse-hero { padding: 56px 0 72px; text-align: left; }
.kasse-hero::after { display: none; }
.kasse-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-rows: auto 1fr; grid-template-areas: "text karte" "mehr karte"; column-gap: 64px; row-gap: 8px; align-items: start; }
.kasse-text { grid-area: text; }
.kasse-mehr { grid-area: mehr; }
.kasse-karte { grid-area: karte; position: sticky; top: 88px; padding: 24px 28px 22px; border-radius: 24px; box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 28px 70px -18px color-mix(in oklab, var(--accent-fill) 45%, transparent); }
.kasse-hero .claim { justify-content: flex-start; }
.kasse-hero h1 { font-size: clamp(38px, 5.4vw, 70px); margin: 0 0 20px; text-wrap: balance; }
.kasse-hero .lead { margin: 0 0 28px; }
.kasse-produkt { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.kasse-produkt img { flex: none; border-radius: 13px; box-shadow: 0 2px 8px rgb(0 0 0 / .12); }
.kasse-produkt h2 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.kasse-karte .notice, .kasse-karte .error { margin: 0 0 14px; }
.kasse-form { margin: 20px 0 0; }
.kasse-form .field { margin: 0 0 14px; }
.kasse-form input[type=email] { font-size: 16px; }
.kasse-knopf { width: 100%; gap: 10px; box-shadow: 0 10px 24px -10px color-mix(in oklab, var(--accent-fill) 70%, transparent); }
.kasse-knopf .i { width: 20px; height: 20px; }
.kasse-knopf[aria-busy="true"] { opacity: .85; cursor: progress; }
.kasse-sicher { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: 13.5px; }
.kasse-karte > ul { margin-top: 18px; }
.kasse-pflicht { margin: 18px 0 0; padding: 16px 0 0; border-top: 1px dashed var(--line); color: var(--muted); font-size: 13px; line-height: 1.5; }
.kasse-pflicht p { margin: 0 0 6px; }
.kasse-pflicht strong { color: var(--fg); font-weight: 650; }
.kasse-pflicht a { color: var(--fg); font-weight: 600; }
.kasse-login { margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); text-align: center; font-size: 14.5px; }
.kasse-login a { font-weight: 650; }
.kasse-gibt { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px 24px; }
.kasse-gibt li { display: flex; gap: 10px; align-items: flex-start; font-size: 16.5px; font-weight: 600; }
.kasse-gibt .i { flex: none; width: 21px; height: 21px; margin-top: 1px; color: var(--accent); }
.kasse-mehr .st-fakten { justify-content: flex-start; }
.kasse-geraet { width: min(300px, 62%); margin: 44px 0 0 6%; transform: rotate(-3deg); }
.kasse-fragen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.kasse-frage { padding: 22px 24px; background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); }
.kasse-frage h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.01em; }
.kasse-frage p { margin: 0; color: var(--muted); font-size: 16px; }
/* Nach der Zahlung (/account/create): Bestätigung statt Hinweiskasten */
.kasse-erfolg { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 18px; padding: 16px 18px; border-radius: var(--radius); background: color-mix(in oklab, var(--ok) 12%, var(--bg)); border: 1px solid color-mix(in oklab, var(--ok) 35%, var(--bg)); }
.kasse-erfolg-zeichen { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ok); color: #fff; }
.kasse-erfolg-zeichen .i { width: 20px; height: 20px; }
.kasse-erfolg p { margin: 0; }
.kasse-erfolg .kasse-erfolg-titel { margin: 2px 0 2px; font-size: 18px; font-weight: 750; }
@media (max-width: 960px) {
  .kasse-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "text" "karte" "mehr"; row-gap: 28px; }
  .kasse-karte { position: static; }
  .kasse-hero { padding-top: 40px; }
}
@media (max-width: 480px) {
  .kasse-karte { padding: 20px 18px 18px; border-radius: 20px; }
}
.st-reveal { transition: opacity .6s ease-out, translate .6s ease-out; }
.st-reveal.versteckt { opacity: 0; translate: 0 18px; }
@media (max-width: 900px) {
  .st-wrap { width: min(1200px, 100% - 32px); }
  .st-abschnitt { padding: 56px 0; }
  .st-hero { padding-top: 40px; }
  .st-buehne { grid-template-columns: minmax(0, 1fr); width: min(100%, 300px); margin: 44px auto -10%; }
  .st-buehne .links, .st-buehne .rechts { display: none; }
  .st-kapitel, .st-preis .st-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .st-kapitel { padding: 36px 0; }
  .st-kapitel:nth-of-type(even) .st-text { order: 0; }
  .st-kapitel .st-geraete { order: 1; }
  .st-geraete .st-geraet { width: min(100%, 300px); }
  .st-kapitel.zwei .st-geraete .st-geraet { width: calc(50% - 9px); }
  .st-final-box { padding: 48px 20px; }
}
/* Kopf nach Platzbedarf der längsten Sprache (Ungarisch, gemessen 2026-11-10): ab 901 px alle vier Elemente; darunter
   wandert der Theme-Umschalter ins Sprachmenü; bis 640 px wird Anmelden zum Symbol und das Logo zur Bildmarke. */
@media (max-width: 900px) {
  .st-kopf-nav > .st-thema { display: none; }
  .st-sprache-thema { display: block; }
}
@media (max-width: 640px) {
  .st-kopf .wordmark { display: none; }
  .st-kopf .st-wrap { gap: 8px; }
  .st-kopf-nav { gap: 6px; }
  /* 40 px wie überall auf Touch-Geräten (Tippflächen-Regel unten), alle Elemente gleich */
  .st-kopf { --kopf-h: 40px; }
  .st-kopf-nav .btn { padding: 0 14px; font-size: 14.5px; }
  /* Menü an der Kopfzeile statt am Globus, sonst ragt es links aus dem Bild */
  .st-sprache { position: static; }
  .st-sprache-menue { left: 16px; right: 16px; width: auto; top: calc(100% + 4px); }
  .st-kopf-nav .login { padding: 0; width: var(--kopf-h); }
  .st-kopf-nav .login .i { display: block; }
  .st-kopf-nav .login span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .st-auth { display: flex; gap: 6px; }
}
@media (max-width: 480px) {
  .st-cta .btn.big { width: 100%; }
}
@media (max-width: 400px) {
  .st-sprache-kurz { display: none; }
  .st-knopf { padding: 0; width: var(--kopf-h); }
}
.price-box { background: linear-gradient(135deg, var(--accent-soft), var(--soft)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.price { font-size: 38px; font-weight: 800; margin: 0; letter-spacing: -.03em; }
.price small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.facts { padding-left: 18px; margin: 0 0 18px; }
.facts li { margin: 7px 0; }
.steps li { margin: 8px 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px; margin: 0; border-bottom: 1px solid var(--line); }
/* ---------- Hashtags und Neu dabei (Seitenleiste, Übersichtsseiten, schmale Fassung auf „Alles“) ----------
   Keine Zähler, keine Rangfolge (KONZEPT.md): Hashtags nach letzter Verwendung mit Zeit, Neuzugänge nach Beitritt.
   Zeilen gehen bis an den Kartenrand, damit Hover und Markierung die ganze Breite füllen. */
.side .side-liste { padding: 14px 0 6px; overflow: hidden; }
/* Die Seitenleiste ist eine Flex-Spalte mit fester Höhe, die selbst scrollt: Karten dürfen darin nicht schrumpfen (mit
   overflow: hidden würden sie sonst zu schmalen Streifen gedrückt) */
.side > * { flex: none; }
.side-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 18px 6px; }
.side-kopf h2 { font-size: 17px; margin: 0; }
.side-hinweis { color: var(--muted); font-size: 13px; white-space: nowrap; }
.tag-liste, .neu-liste, .tag-uebersicht { list-style: none; margin: 0; padding: 0; }
.tag-liste a, .tag-uebersicht a { display: flex; align-items: baseline; gap: 1px; color: var(--fg); font-weight: 650; transition: background .15s; }
.tag-liste a { padding: 8px 18px; font-size: 15px; }
.tag-liste a:hover, .tag-uebersicht a:hover, .neu-liste li:hover { background: var(--hover); text-decoration: none; }
.tag-liste a[aria-current="page"] { background: var(--accent-soft); }
.tag-raute { color: var(--muted); font-weight: 500; }
.tag-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-liste time, .tag-uebersicht time { flex: none; margin-left: 12px; color: var(--muted); font-size: 13px; font-weight: 400; font-variant-numeric: tabular-nums; }
.neu-liste li { display: flex; align-items: center; gap: 10px; padding: 8px 18px; transition: background .15s; }
.neu-wer { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; color: var(--fg); }
.neu-wer:hover { text-decoration: none; }
.neu-namen { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.neu-namen strong { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 15px; }
.neu-name, .neu-namen .handle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.neu-namen .handle { font-size: 14px; }
.neu-folgen { margin: 0; flex: none; }
.side-mehr { display: block; padding: 10px 18px 8px; font-size: 14.5px; font-weight: 600; color: var(--accent); }
.side-mehr:hover { background: var(--hover); text-decoration: none; }
.intro-zeile { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tag-uebersicht a { padding: 14px 16px; font-size: 16px; border-bottom: 1px solid var(--line); }
/* Schmal (ohne Seitenleiste): eine Zeile Hashtags zum Wischen, darunter Neu dabei als Kartenreihe */
.entdecken-schmal { border-bottom: 1px solid var(--line); }
.entdecken-schmal .tag-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-bottom: 0; padding: 12px 16px 4px; }
.entdecken-schmal .tag-row::-webkit-scrollbar { display: none; }
.entdecken-schmal .chip { flex: none; }
.chip-mehr { background: transparent; color: var(--muted); }
.entdecken-schmal .cards-row { border-bottom: 0; }
.sub-zeile { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-right: 16px; }
.sub-zeile a { font-size: 14.5px; font-weight: 600; white-space: nowrap; }
@media (min-width: 1041px) { .entdecken-schmal { display: none; } }
.search-big { display: flex; gap: 8px; position: relative; }
/* Vorschläge bündig mit Feld und Knopf, nicht über das Seitenpolster hinaus */
.search-big.pad .search-suggest { left: 16px; right: 16px; top: calc(100% - 10px); }
.prose { overflow-wrap: anywhere; }
.prose h2 { font-size: 19px; margin: 24px 0 6px; letter-spacing: -.01em; }
.prose h3 { font-size: 16px; margin: 20px 0 6px; }
.prose p, .prose li { line-height: 1.6; }
/* Vergleichsseiten (/alternative): Tabelle läuft innerhalb ihres Kastens seitlich, die Seite nie; erste Spalte bleibt stehen */
.vergleich-wrap { overflow-x: auto; margin: 14px 0 6px; border: 1px solid var(--line); border-radius: var(--radius-s); overscroll-behavior-x: contain; }
.vergleich { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; overflow-wrap: normal; hyphens: auto; }
.vergleich.breit { min-width: 980px; }
.vergleich td { min-width: 190px; }
.vergleich.breit td { min-width: 128px; }
.vergleich th, .vergleich td { text-align: left; vertical-align: top; padding: 9px 11px; border-bottom: 1px solid var(--line); }
.vergleich tr:last-child th, .vergleich tr:last-child td { border-bottom: 0; }
.vergleich thead th { background: var(--soft); font-weight: 700; white-space: nowrap; }
.vergleich tbody th { font-weight: 600; min-width: 130px; }
.vergleich th:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); box-shadow: 1px 0 0 var(--line); }
.vergleich thead th:first-child { background: var(--soft); }
.vergleich .wir { background: var(--accent-soft); }
.prose .kurz { padding-left: 20px; }
.prose .kurz li { margin: 4px 0; }
.alt-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; padding: 0; list-style: none; }
.alt-links a { display: block; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); font-weight: 600; color: var(--fg); }
.alt-links a:hover { background: var(--hover); text-decoration: none; }
.quellen { font-size: 13px; color: var(--muted); padding-left: 20px; }
/* Presse und Marke (/press): Logoflächen in den festen Markenfarben, unabhängig vom Thema der Seite */
.pr-downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.pr-download { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raise); }
.pr-download h3 { margin: 0; }
.pr-download p { margin: 0; }
.pr-download .btn { margin-top: auto; align-self: flex-start; }
.pr-meta { color: var(--muted); font-size: 13.5px; }
.pr-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pr-logo { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-raise); display: flex; flex-direction: column; }
.pr-flaeche { position: relative; aspect-ratio: 16 / 9; }
.pr-flaeche.hell { background: #FAF8F2; }
.pr-flaeche.dunkel { background: #121212; }
.pr-flaeche img { position: absolute; inset: 14% 10%; width: 80%; height: 72%; object-fit: contain; }
.pr-flaeche.bildmarke img { inset: 18% 0; width: 100%; height: 64%; }
.pr-flaeche img.pr-icon { left: 50%; width: auto; aspect-ratio: 1; transform: translateX(-50%); border-radius: 22%; }
.pr-logo figcaption { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 12px; border-top: 1px solid var(--line); flex: 1; }
.pr-logo figcaption span { color: var(--muted); font-size: 13.5px; }
.pr-formate { display: flex; gap: 8px; margin-top: 6px; }
.pr-formate a { font-weight: 700; font-size: 13px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg); }
.pr-formate a:hover { background: var(--hover); text-decoration: none; }
.pr-farben { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.pr-farben li { display: flex; flex-direction: column; gap: 2px; line-height: 1.4; }
.pr-farben small { color: var(--muted); font-size: 12.5px; }
.pr-farben code { font-size: 14px; user-select: all; }
.pr-rgb { color: var(--muted); font-size: 13px; }
.pr-muster { display: block; height: 64px; border-radius: var(--radius-s); border: 1px solid var(--line); margin-bottom: 6px; }
.pr-muster.gelb { background: #FFCC00; }
.pr-muster.schwarz { background: #000000; }
.pr-muster.weiss { background: #FAF8F2; }
.pr-kurztext { padding: 14px 16px; border-left: 3px solid var(--accent-fill); background: var(--soft); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.pr-fakten { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0; }
.pr-fakten dt { font-weight: 700; }
.pr-fakten dd { margin: 0; }
@media (max-width: 420px) { .pr-fakten { grid-template-columns: 1fr; gap: 0; } .pr-fakten dd { margin-bottom: 8px; } }
.quellen li { line-height: 1.5; }
.stand { color: var(--muted); font-size: 13px; }
.legal table, .legacy table { width: 100%; border-collapse: collapse; }
.legal-hinweis { padding: 12px 14px; border-radius: var(--radius-s); background: var(--accent-soft); }
.legacy fieldset { border: 0; padding: 0; }
.legacy fieldset table th { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; font-weight: 600; font-size: 14px; white-space: nowrap; }
.legacy fieldset table td { padding: 6px 0; }
.legacy fieldset table input[type=text], .legacy fieldset table input[type=email], .legacy fieldset table textarea, .legacy fieldset table select { width: 100%; }
.legacy input[type=submit], .legacy button { background: var(--accent-fill); color: var(--accent-fg); border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 700; }
.legacy .meldung { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 12px 0; }
.legacy small { color: var(--muted); display: block; margin-top: 3px; }
.offline { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 6px; }
.offline .mark { width: 64px; }
/* Theme-Umschalter im Menü */
.seg { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { width: auto !important; padding: 6px 12px !important; border-radius: 999px !important; font-size: 13px !important; color: var(--muted) !important; }
.seg button.on { background: var(--bg) !important; color: var(--fg) !important; box-shadow: 0 1px 3px rgb(0 0 0 / .12); }

/* ---------- Kleinere Bildschirme ---------- */
@media (max-width: 1220px) {
  .shell { --rail: 92px; --main: 640px; }
  .rail { align-items: center; padding: 0 8px 12px; }
  .rail .lbl, .rail .wordmark, .me > .i { display: none; }
  .nav a { padding: 13px; }
  .post-btn { width: 54px; height: 54px; padding: 0; }
  .me { width: auto; padding: 6px; }
  .me .dot { right: 5px; top: 5px; }
}
@media (max-width: 1040px) {
  .shell { grid-template-columns: minmax(var(--rail), 1fr) minmax(0, var(--main)) minmax(0, 1fr); width: 100%; }
  .side { display: none; }
  main { border-right: 0; }
  .foot-main { display: block; }
}
@media (max-width: 700px) {
  :root { --kopf: 56px; }
  body { font-size: 15px; }
  .shell { display: block; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 7; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: env(safe-area-inset-top) 12px 0 8px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
  .topbar .logo { padding: 4px; gap: 9px; }
  .topbar .mark { width: 30px; }
  .topbar .wordmark { height: 19px; }
  .topbar-me { border: 0; background: none; padding: 2px; border-radius: 9px; }
  .topbar-cta { display: flex; gap: 6px; }
  .topbar-cta .login .i { display: none; width: 20px; height: 20px; }
  /* Schmale Telefone: Anmelden nur als Symbol, sonst passt Mitmachen nicht neben das Logo */
  @media (max-width: 430px) {
    .topbar-cta .login { padding: 7px; width: 38px; height: 38px; }
    .topbar-cta .login .i { display: block; }
    .topbar-cta .login span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  }
  .col-head { top: 54px; min-height: 50px; }
  .col-head h1 { font-size: 18px; }
  .shell > .rail { width: auto; justify-self: normal; } /* sonst schrumpft die feste Leiste unten auf Inhaltsbreite */
  .rail { position: fixed; bottom: 0; top: auto; left: 0; right: 0; height: auto; z-index: 8; flex-direction: row; padding: 0 0 env(safe-area-inset-bottom); border-right: 0; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); }
  .rail .logo, .rail .post-btn, .rail .me { display: none; }
  .nav { flex-direction: row; justify-content: space-around; width: 100%; }
  .nav a { padding: 13px 12px; flex: 1; justify-content: center; }
  .nav a[href="/bookmarks"], .nav a[href="/settings"] { display: none; }
  .nav .badge { left: calc(50% + 2px); top: 6px; }
  /* Wo man ist, sieht man an der Leiste, nicht an der Akzentfarbe (die kann Weiß sein wie die übrigen Symbole): die
     anderen Symbole gedämpft, das aktive in Textfarbe, kräftiger und mit Punkt darunter */
  .nav a .i { color: var(--muted); }
  .nav a.on .i { color: var(--fg); stroke-width: 2.6; }
  .nav a.on::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--fg); }
  main { padding-bottom: 96px; }
  /* Angemeldet keine Fußzeile unter der Spalte (wie bei X): alles steht unter „Info & Rechtliches“ im Menü (/info).
     Gäste haben kein Menü, für sie bleibt sie */
  body[data-uid] .foot-main { display: none; }
  /* Schreiben: rund, 56 px, „+“, unten rechts über der Leiste; gleich in iOS und Android (seit 2026-11-12) */
  .fab { display: flex; position: fixed; right: 16px; bottom: calc(65px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; background: var(--accent-fill); color: var(--accent-fg); align-items: center; justify-content: center; box-shadow: 0 8px 24px color-mix(in oklab, var(--accent-fill) 45%, transparent); z-index: 9; transition: transform .15s; }
  .fab:active { transform: scale(.94); }
  .fab .i { width: 26px; height: 26px; stroke-width: 2.2; }
  /* Auf einer Post-Seite gibt es das Antwortfeld; der Knopf läge sonst über „Antworten“ */
  /* Unter DMs gibt es den eigenen Knopf für eine neue Nachricht; zwei Schreib-Knöpfe nebeneinander verwirren */
  body:has(.dm-compose) .fab, body:has(#dm_status) .fab, body:has(.composer textarea:focus) .fab, body:has(.composer .emoji-feld:focus) .fab, body:has(.post-l) .fab { display: none; }
  .drawer { position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); height: 100dvh; max-height: none; margin: 0; padding: calc(16px + env(safe-area-inset-top)) 12px 16px; border: 0; border-left: 1px solid var(--line); background: var(--bg-raise); color: var(--fg); box-shadow: var(--shadow); flex-direction: column; gap: 2px; overflow-y: auto; }
  .drawer:popover-open { display: flex; animation: rein .2s ease-out; }
  .drawer::backdrop { background: rgb(8 9 14 / .4); }
  .drawer .drawer-me { flex-direction: column; align-items: flex-start; padding: 8px 12px 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; border-radius: 0; }
  .drawer-me span { display: flex; flex-direction: column; }
  .drawer .drawer-out { color: var(--danger); margin-top: 8px; }
  .theme-switch { padding: 12px 12px 8px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); margin-top: 8px; }
  .theme-switch > span:first-of-type { display: flex; align-items: center; gap: 12px; }
  /* Darstellung: drei gleich breite Kacheln mit Symbol in einer Reihe (wie die Systemeinstellung), die gewählte hell
     umrandet; Beschriftung darf umbrechen statt die Reihe zu sprengen */
  .thema-wahl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .drawer .thema-wahl button { flex-direction: column; justify-content: center; gap: 6px; min-height: 72px; padding: 10px 2px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--soft); color: var(--muted); font-size: 12.5px; line-height: 1.2; text-align: center; transition: border-color .15s, color .15s, background .15s; }
  .drawer .thema-wahl button .i { width: 22px; height: 22px; }
  .drawer .thema-wahl button span { max-width: 100%; hyphens: auto; -webkit-hyphens: auto; }
  .thema-wahl { gap: 6px; }
  .drawer .thema-wahl button:hover { background: var(--hover); }
  .drawer .thema-wahl button[aria-pressed="true"] { border-color: var(--fg); background: var(--bg); color: var(--fg); font-weight: 650; }
  .text, .ctx, .media, .cw, .ap-video, .post .link-card, .quell-zeile { margin-left: 0; }
  .replying { margin-left: 0; }
  .notif-label { padding-left: 16px; }
  .post-actions { margin-left: -8px; }
  .names strong { max-width: 160px; }
  .composer textarea[name=text] { font-size: 17px; }
  .composer .composer-row > .av { display: none; }
  .bubble { max-width: 88%; }
  .up { grid-template-columns: 72px 1fr auto; }
  .up img { width: 72px; height: 72px; }
  .sheet { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .banner { height: 120px; }
  .av-xl { width: 96px; height: 96px; }
  .profile-top { margin-top: -48px; }
  .menu-list { position: fixed; left: 8px; right: 8px; top: auto; bottom: calc(8px + env(safe-area-inset-bottom)); min-width: 0; z-index: 30; border-radius: 18px; padding: 8px; }
  /* Menüs im Spaltenkopf bleiben Klappmenüs unter dem Knopf: der Kopf hat backdrop-filter und wäre damit der Bezugsrahmen
     des festen Blatts (es lag 18 px hoch im Kopf, der Inhalt lief über die Seite; gemessen 2026-11-12) */
  .col-tools .menu-list { position: absolute; left: auto; right: 0; top: calc(100% + 6px); bottom: auto; width: min(340px, calc(100vw - 24px)); max-height: calc(100dvh - 140px); overflow-y: auto; }
  .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
  /* Leisten beim Scrollen (app.js): nach unten weg, nach oben zurück; nur transform, damit nichts springt */
  .topbar, .col-head, .col-head + .tabs, .rail, .fab { transition: transform .25s cubic-bezier(.2, .7, .2, 1), opacity .25s ease; }
  /* Reiter unter dem Spaltenkopf (Feed | Alles) bleiben wie bei X oben stehen und gleiten mit ihm weg; ohne Skript
     gelten die Vorgaben (Kopfleiste 54 px, Spaltenkopf 50 px plus Linie) */
  .col-head + .tabs { position: sticky; top: calc(var(--topbar-h, 54px) + var(--colhead-h, 51px)); z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); }
  .leisten-weg .topbar { transform: translateY(-100%); }
  .leisten-weg .col-head { transform: translateY(calc(-100% - var(--topbar-h, 54px))); }
  .leisten-weg .col-head + .tabs { transform: translateY(calc(-100% - var(--topbar-h, 54px) - var(--colhead-h, 51px))); }
  /* Spaltenkopf der Hauptbereiche (Feed, Suche, Pings, DMs, Lesezeichen) entfällt; die Überschrift bleibt für
     Vorleseprogramme, Reiter darunter rücken direkt unter die Kopfleiste */
  .col-head.mobil-weg { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .col-head.mobil-weg + .tabs { top: var(--topbar-h, 54px); }
  .leisten-weg .col-head.mobil-weg + .tabs { transform: translateY(calc(-100% - var(--topbar-h, 54px))); }
  /* Im Feed schreibt man über den runden Knopf (wie bei X); das Schreibfeld oben gibt es nur auf breiten Bildschirmen */
  .composer-feed { display: none; }
  .leisten-weg .rail { transform: translateY(100%); }
  /* 16 px über der Leiste (sie ist 49 px hoch); ist sie weg, 16 px über dem unteren Rand. Beim Scrollen nach unten
     wird er blass statt zu verschwinden (20 %, wie in den Apps), bleibt aber antippbar */
  .leisten-weg .fab { transform: translateY(49px); opacity: .2; }
  .legacy fieldset table, .legacy fieldset table tbody, .legacy fieldset table tr, .legacy fieldset table th, .legacy fieldset table td { display: block; width: 100%; }
  .legacy fieldset table th { padding-bottom: 2px; }
  .lightbox figure { padding: 56px 8px 32px; }
  .lb-prev, .lb-next { display: none; }
}
@keyframes rein { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.composer textarea[name=text]:focus-visible { outline: none; }
/* Schreibfeld mit eigenen Emojis als Bild (app.js, emojiFeld): sieht aus wie das Textfeld, das unsichtbar darunter liegt */
.composer textarea.emoji-feld-quelle { position: absolute !important; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; pointer-events: none; overflow: hidden; }
.emoji-feld { padding: 8px 0; font-size: 19px; line-height: 1.45; min-height: 2.4lh; max-height: 50vh; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; outline: none; color: var(--fg); cursor: text; }
.emoji-feld.leer::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; }
.emoji-feld .emoji-eigen { cursor: default; }
@media (max-width: 700px) { .emoji-feld { font-size: 17px; } }
.drawer::backdrop { background: rgb(8 9 14 / .4); }
.form > .btn:not(.wide) { align-self: flex-start; min-width: 160px; }
@media (max-width: 700px) { .form > .btn:not(.wide) { align-self: stretch; } }
fieldset.checks { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
/* Datei-Auswahl wie ein Knopf statt im Systemlook */
input[type=file] { font-size: 13.5px; color: var(--muted); max-width: 100%; }
input[type=file]::file-selector-button { margin-right: 10px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg); font: inherit; font-weight: 700; cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--hover); }
.pad > .sub { margin-inline: 0; }
/* Linkvorschau */
/* Linkkarte (neu gestaltet am 2026-11-24, lib/ui.js linkKarte): groß mit breitem Bild, kompakt mit Quadrat links, ohne
   Bild mit Kachel in der Farbe der Seite. Kopfzeile mit Symbol, Seite, Adresse und Pfeil nach draußen. */
.link-card { display: block; margin-top: 12px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; background: var(--bg-raise); transition: border-color .2s, background .2s, box-shadow .2s; }
.link-card:hover { border-color: color-mix(in oklab, var(--fg) 24%, var(--line)); box-shadow: 0 6px 22px -14px rgb(0 0 0 / .35); text-decoration: none; }
.link-card:active { background: var(--hover); }
.lc-bild { position: relative; display: block; overflow: hidden; background: var(--soft); }
.lc-bild img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.link-card:hover .lc-bild img { transform: scale(1.03); }
.link-card.gross .lc-bild { aspect-ratio: 1.91 / 1; border-bottom: 1px solid var(--line); }
.link-card.kompakt, .link-card.ohne-bild { display: grid; grid-template-columns: 116px minmax(0, 1fr); }
.link-card.kompakt .lc-bild { min-height: 116px; border-right: 1px solid var(--line); }
.lc-kachel { display: grid; place-items: center; min-height: 116px; border-right: 1px solid var(--line);
  background: linear-gradient(145deg, hsl(var(--hue) 70% 62% / .30), hsl(var(--hue) 70% 45% / .12)); color: hsl(var(--hue) 55% 34%); }
.lc-kachel img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; box-shadow: 0 4px 14px -6px rgb(0 0 0 / .45); background: #fff; }
.lc-kachel span { font-size: 40px; font-weight: 750; line-height: 1; letter-spacing: -.02em; }
.lc-play { position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: rgb(0 0 0 / .55); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 0 0 1.5px rgb(255 255 255 / .35); }
.lc-play .i { width: 26px; height: 26px; margin-left: 3px; }
.link-card.kompakt .lc-play { width: 42px; height: 42px; } .link-card.kompakt .lc-play .i { width: 18px; height: 18px; margin-left: 2px; }
.lc-text { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; min-width: 0; justify-content: center; }
.lc-kopf { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--muted); font-size: 13px; line-height: 1.3; }
.lc-icon { flex: none; width: 16px; height: 16px; border-radius: 4px; object-fit: cover; }
.lc-buchstabe { display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; background: hsl(var(--hue) 60% 46%); }
.lc-site { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lc-site strong { color: var(--fg); font-weight: 600; }
.lc-pfeil { flex: none; width: 15px; height: 15px; opacity: .55; transition: opacity .2s, transform .2s; }
.link-card:hover .lc-pfeil { opacity: 1; transform: translate(1px, -1px); }
.lc-titel { font-size: 15.5px; font-weight: 650; line-height: 1.32; color: var(--fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.link-card.gross .lc-titel { font-size: 16.5px; }
.lc-desc { color: var(--muted); font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lc-kachel { color: hsl(var(--hue) 70% 78%); } }
:root[data-theme="dark"] .lc-kachel { color: hsl(var(--hue) 70% 78%); }
@media (prefers-reduced-motion: reduce) { .lc-bild img, .lc-pfeil { transition: none; } .link-card:hover .lc-bild img { transform: none; } }
/* Linkkarte im Schreibfeld (app.js, linkKarteImSchreibfeld): Auswahl bei mehreren Links, Platzhalter beim Laden */
.schreib-karte { margin: 4px 0 8px; }
.schreib-karte .link-card { margin-top: 8px; }
.schreib-karte-wahl { display: flex; flex-wrap: wrap; gap: 6px; }
.schreib-karte-wahl button { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid var(--line); background: var(--bg-raise); color: var(--muted); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.schreib-karte-wahl button:hover { background: var(--hover); color: var(--fg); }
.schreib-karte-wahl button.on { background: var(--accent-fill); color: var(--accent-fg); border-color: var(--accent-fill); }
.link-card.laedt { display: grid; grid-template-columns: 116px minmax(0, 1fr); pointer-events: none; }
.link-card.laedt .lc-kachel { background: var(--soft); }
.lc-zeile { display: block; height: 12px; border-radius: 6px; background: var(--soft); width: 70%; animation: lc-puls 1.2s ease-in-out infinite; }
.lc-zeile.kurz { width: 40%; }
@keyframes lc-puls { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .lc-zeile { animation: none; } }
/* Umfragen */
.poll { display: grid; gap: 8px; margin-top: 10px; }
.poll-opt { width: 100%; text-align: left; padding: 10px 16px; border-radius: 12px; border: 1.5px solid color-mix(in oklab, var(--accent) 55%, var(--line)); background: transparent; color: var(--accent); font: inherit; font-weight: 650; cursor: pointer; transition: background .15s; }
.poll-opt:hover { background: var(--accent-soft); }
.poll-opt:disabled { opacity: .6; cursor: progress; }
.poll-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 0 14px; border-radius: 12px; overflow: hidden; }
.poll-row progress { position: absolute; inset: 0; width: 100%; height: 100%; appearance: none; -webkit-appearance: none; border: 0; background: color-mix(in oklab, var(--fg) 7%, transparent); border-radius: 12px; }
.poll-row progress::-webkit-progress-bar { background: color-mix(in oklab, var(--fg) 7%, transparent); }
.poll-row progress::-webkit-progress-value { background: color-mix(in oklab, var(--accent-fill) 22%, var(--soft)); }
.poll-row progress::-moz-progress-bar { background: color-mix(in oklab, var(--accent-fill) 22%, var(--soft)); }
.poll-row.top progress::-webkit-progress-value { background: color-mix(in oklab, var(--accent-fill) 40%, var(--soft)); }
.poll-row.top progress::-moz-progress-bar { background: color-mix(in oklab, var(--accent-fill) 40%, var(--soft)); }
.poll-label, .poll-pz { position: relative; font-weight: 600; }
.poll-label { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.poll-pz { font-variant-numeric: tabular-nums; color: var(--muted); }
.poll-row.top .poll-label, .poll-row.top .poll-pz { font-weight: 800; color: var(--fg); }
.poll-foot { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.poll-field { border: 0; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.poll-field input { width: 100%; }
.poll-dauer { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.notif-icon.k-poll { color: var(--accent); }
/* Thread im Schreibfeld: weitere Posts darunter, mit Verbindungslinie */
.thread-parts:empty { display: none; }
.thread-parts { display: grid; gap: 8px; margin-top: 8px; }
.thread-part { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: start; padding-left: 14px; }
.thread-line { position: absolute; left: 3px; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: color-mix(in oklab, var(--accent-fill) 45%, var(--line)); }
.thread-part textarea { width: 100%; resize: vertical; field-sizing: content; min-height: 52px; }

/* ---------- Bildeditor (editor.js): dunkel wie jeder Fotoeditor, unabhängig vom Thema ---------- */
.editor { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0d0d0f; color: #f5f5f7; color-scheme: dark; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.editor:not([open]) { display: none; }
.editor::backdrop { background: #0d0d0f; }
.editor svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.editor button:focus-visible, .editor input:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 2px; }
.editor .fine { color: #a1a1a6; margin: 0; font-size: 13px; }
.editor a { color: #9FB0FF; }
.ed-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 14px 10px; }
.ed-kopf .btn.ghost { color: #f5f5f7; border-color: rgb(255 255 255 / .22); }
.ed-kopf .btn.ghost:hover { background: rgb(255 255 255 / .08); }
.ed-verlauf { display: flex; gap: 4px; }
.editor .tool { color: #f5f5f7; width: 44px; height: 44px; }
.editor .tool:hover { background: rgb(255 255 255 / .1); }
.editor .tool:disabled { opacity: .3; }
.ed-buehne { position: relative; min-height: 0; overflow: hidden; }
.ed-flaeche { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ed-flaeche:focus-visible { box-shadow: inset 0 0 0 2px var(--accent-fill); }
.ed-papierkorb { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgb(0 0 0 / .6); border: 1.5px solid rgb(255 255 255 / .5); transition: transform .15s, background .15s; pointer-events: none; }
.ed-papierkorb.scharf { background: #d7263d; border-color: #fff; transform: scale(1.18); }
.ed-text { position: absolute; left: 50%; top: 45%; translate: -50% -50%; width: min(92%, 640px); font: 700 clamp(22px, 5vw, 34px)/1.25 var(--font); text-align: center; color: #fff; background: rgb(0 0 0 / .6); border: 1.5px solid rgb(255 255 255 / .45); border-radius: 14px; padding: 12px 14px; resize: none; }
.ed-text-fertig { position: absolute; right: 14px; top: 12px; }
.ed-seite { background: #161618; border-top: 1px solid rgb(255 255 255 / .08); padding-bottom: env(safe-area-inset-bottom); min-height: 0; }
.ed-optionen { max-height: 38dvh; overflow-y: auto; overscroll-behavior: contain; padding: 12px 14px 8px; display: grid; gap: 12px; align-content: start; }
.ed-reiter { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgb(255 255 255 / .08); }
.ed-reiter-k { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; padding: 8px 4px; background: none; border: 0; color: #a1a1a6; font: 600 12px var(--font); }
.ed-reiter-k[aria-selected="true"] { color: #fff; }
.ed-reiter-k[aria-selected="true"] svg { stroke: var(--accent-fill); }
.ed-reihe { display: grid; gap: 6px; min-width: 0; }
.ed-titel { font-size: 12px; font-weight: 600; color: #a1a1a6; }
.ed-titel:empty { display: none; }
.ed-chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.ed-chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .ed-chips { flex-wrap: wrap; overflow: visible; } }
.ed-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .16); background: rgb(255 255 255 / .06); color: #f5f5f7; font: 600 14px var(--font); white-space: nowrap; }
.ed-chip svg { width: 18px; height: 18px; }
.ed-chip:hover { background: rgb(255 255 255 / .12); }
.ed-chip[aria-pressed="true"] { background: #f5f5f7; color: #111; border-color: #f5f5f7; }
.ed-chip:disabled { opacity: .3; }
.ed-farbe { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .28); background: var(--f); }
.ed-farbe[aria-pressed="true"] { box-shadow: 0 0 0 2px #161618, 0 0 0 4px #fff; }
.ed-farbwahl { flex: none; width: 44px; height: 38px; padding: 0; border: 0; background: none; }
.ed-regler { display: grid; gap: 2px; font-size: 12px; font-weight: 600; color: #a1a1a6; }
.ed-regler output { color: #f5f5f7; font-variant-numeric: tabular-nums; }
.ed-regler input[type="range"] { width: 100%; min-height: 32px; accent-color: var(--accent-fill); }
.ed-lage { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 16px; }
.ed-lage .ed-titel { grid-column: 1 / -1; }
.ed-raster { display: grid; grid-template-columns: repeat(3, 32px); gap: 4px; }
.ed-raster button { position: relative; width: 32px; height: 32px; border-radius: 7px; border: 1px solid rgb(255 255 255 / .2); background: rgb(255 255 255 / .06); }
.ed-raster button::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: rgb(255 255 255 / .65); }
.ed-raster button:hover { background: rgb(255 255 255 / .16); }
.ed-regler-gruppe { display: grid; gap: 2px; min-width: 0; }
.ed-auswahl-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ed-auswahl-kopf strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-leer { display: grid; justify-items: start; gap: 8px; }
.ed-block { gap: 8px; }
.ed-vorlagen { display: flex; gap: 8px; overflow-x: auto; padding: 2px; }
.ed-vorlage { flex: none; width: 116px; display: grid; justify-items: center; gap: 6px; padding: 8px; border-radius: 12px; border: 1px solid rgb(255 255 255 / .14); background: repeating-conic-gradient(#2c2c2e 0 25%, #3a3a3c 0 50%) 0 0 / 12px 12px; color: #f5f5f7; font: 600 12px var(--font); }
.ed-vorlage img, .ed-vorlage canvas { max-width: 100px; height: 48px; object-fit: contain; }
.ed-vorlage canvas { width: auto; }
.ed-vorlage span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgb(0 0 0 / .55); padding: 1px 7px; border-radius: 6px; }
.ed-emoji-feld { width: 100%; background: rgb(255 255 255 / .06); color: #f5f5f7; border: 1px solid rgb(255 255 255 / .16); border-radius: 10px; padding: 9px 11px; font-size: 16px; }
.ed-emojis { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 2px; }
.ed-emojis button { height: 44px; border: 0; border-radius: 10px; background: none; font-size: 26px; line-height: 1; }
.ed-emojis button:hover { background: rgb(255 255 255 / .1); }
@media (min-width: 900px) {
  .editor { grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto minmax(0, 1fr); }
  .ed-kopf { grid-column: 1 / -1; }
  .ed-seite { border-top: 0; border-left: 1px solid rgb(255 255 255 / .08); display: flex; flex-direction: column-reverse; justify-content: flex-end; overflow: hidden; }
  .ed-optionen { max-height: none; flex: 1; min-height: 0; }
  .ed-reiter { border-top: 0; border-bottom: 1px solid rgb(255 255 255 / .08); }
}

/* Beitragsfenster: Werkzeuge unter der Bildbeschreibung */
.up-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.up-tools:empty { display: none; }
.up-tool { min-height: 32px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: 600 12.5px var(--font); }
.up-tool:hover { background: var(--hover); }
.up-tool[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-fill); }
.up-tool[aria-pressed="true"]::before { content: "✓\00a0"; }

/* Einstellungen, Bilder */
.bild-einst h3 { margin: 24px 0 8px; font-size: 16px; }
.pos-raster { display: grid; grid-template-columns: repeat(3, 44px); gap: 6px; margin: 6px 0 12px; }
.pos-raster label { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--soft); cursor: pointer; }
.pos-raster label::after { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--muted); }
.pos-raster input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pos-raster label:has(input:checked) { border-color: var(--accent-fill); background: var(--accent-soft); }
.pos-raster label:has(input:checked)::after { background: var(--accent-fill); border-color: var(--accent-fill); }
.pos-raster label:has(input:focus-visible), .farb-reihe label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.field output { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.wz-vorschau { display: grid; gap: 6px; margin: 4px 0 14px; }
.wz-vorschau > div { display: flex; gap: 10px; overflow-x: auto; padding: 2px; }
.wz-vorschau canvas { flex: none; height: 150px; width: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--bildrand); }
.wahl-reihe, .farb-reihe { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.farb-reihe label { position: relative; width: 36px; height: 36px; cursor: pointer; }
.farb-reihe input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.farbpunkt { display: block; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--bildrand); }
.farb-reihe label:has(input:checked) .farbpunkt { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--fg); }
.farbe-ffffff { background: #ffffff; } .farbe-111111 { background: #111111; } .farbe-d7263d { background: #d7263d; } .farbe-ff9500 { background: #ff9500; }
.farbe-ffcc00 { background: #ffcc00; } .farbe-34c759 { background: #34c759; } .farbe-0a84ff { background: #0a84ff; } .farbe-af52de { background: #af52de; }
.stempel-vorschau, .vorlage-bild { display: grid; place-items: center; border-radius: 12px; background: repeating-conic-gradient(rgb(128 128 128 / .2) 0 25%, transparent 0 50%) 0 0 / 14px 14px; }
.stempel-vorschau { min-height: 120px; padding: 16px; margin: 4px 0 14px; }
.stempel-vorschau canvas { max-width: 100%; height: auto; }
.vorlagen-liste { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; gap: 10px; }
.vorlagen-liste li { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 14px; }
.vorlage-bild { width: 120px; height: 64px; padding: 6px; }
.vorlage-bild img, .vorlage-bild canvas { max-width: 100%; max-height: 100%; object-fit: contain; }
.vorlage-bild.gross { width: auto; height: auto; padding: 12px; margin: 0 0 12px; }
.vorlage-bild.gross:not(:has(img:not([hidden]))) { display: none; }
.vorlage-bild.gross img { max-height: 200px; }
.vorlage-name { display: flex; gap: 8px; align-items: center; min-width: 0; }
.vorlage-name input { flex: 1; min-width: 0; }
@media (max-width: 600px) {
  .vorlagen-liste li { grid-template-columns: 96px minmax(0, 1fr); }
  .vorlage-bild { width: 96px; }
  .vorlagen-liste li > form:last-child { grid-column: 1 / -1; justify-self: end; }
}

/* ---------- Telefon: Feinschliff (am 2026-11-08 jede Seite und jedes Popup bei 320 und 375 Pixeln vermessen) ----------
   Regeln: kein seitliches Scrollen; Eingabefelder mindestens 16 px (iOS zoomt sonst beim Antippen hinein und bleibt
   vergrößert); Tippflächen mindestens 40 px, wo der Finger tippt (Apple empfiehlt 44 pt, WCAG 2.5.8 verlangt 24). */
@media (max-width: 700px), (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]), select, textarea { font-size: 16px; }
  .up-meta textarea, .poll-field select, .dm-compose textarea { font-size: 16px; }
  .btn.small { min-height: 40px; padding-top: 8px; padding-bottom: 8px; }
  .seg button { min-height: 38px; font-size: 14px !important; }
  .foot .lang button, .foot .lang a { display: inline-block; padding: 10px 6px; margin: -10px -6px; font-size: 13px; }
  /* Zeitangabe eines Posts ist der Link zum Post: größere Tippfläche, ohne dass sich etwas verschiebt */
  a.when { display: inline-block; padding: 10px 6px; margin: -10px -6px; }
  /* Menü-Knöpfe und Vorwarnungen ausgenommen, die haben eigene Maße; :where hält die Spezifität niedrig, damit eigene
     summary-Regeln (Zielgruppe) weiter gewinnen. Nicht mit „display: revert“ zurücksetzen: Das fällt bis auf die
     Browser-Vorgabe (list-item) zurück, und das Symbol im Menü-Knopf saß 2,8 px zu hoch. */
  details:where(:not(.menu, .cw)) > summary { min-height: 44px; display: flex; align-items: center; }
  /* Menü-Knopf: 40 px Tippfläche, sichtbar und im Layout so groß wie bisher (negativer Rand gleicht aus) */
  .menu > summary:not(.btn) { padding: 9px; margin: -3px; }
  input[type=date], input[type=number], input[type=datetime-local] { min-height: 44px; }
  .drafts-link { display: inline-flex; align-items: center; min-height: 40px; }
}
@media (max-width: 700px) {
  .col-head .tool { flex: none; }
  .col-head h1 { min-width: 0; flex: 1; }
  .col-head h1 .convo-head { display: flex; min-width: 0; }
  .col-head h1 .convo-head > :not(.av):not(.stack) { min-width: 0; }
  .convo-head { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* Beitragsfenster: Vorschaubild links, Entfernen-Knopf auf seiner Ecke, die Beschreibung hat die ganze übrige Breite */
  .up { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 8px; }
  .up img, .up-video video, .up-video img { width: 76px; height: 76px; }
  .up .up-x { position: absolute; top: 2px; left: 2px; width: 32px; height: 32px; background: rgb(0 0 0 / .62); color: #fff; font-size: 18px; z-index: 1; }
  .up .up-x:hover { background: rgb(0 0 0 / .8); }
  .up-state { left: 12px; bottom: 12px; }
  .composer-bar .tool { width: 40px; height: 40px; }
  .composer-bar .send { padding-left: 4px; }
  .composer-bar .btn { min-height: 44px; padding-left: 22px; padding-right: 22px; }
  /* Auf der Schreibseite selbst braucht es den Knopf zum Schreiben nicht */
  body:has(.composer textarea[autofocus]) .fab { display: none; }
  /* Neue Nachricht: Auswahl darf schmal werden (lange Namen) */
  .new-convo select { min-width: 0; max-width: 100%; }
  .new-convo .btn { flex: none; }
  .avatar-field > div { min-width: 0; flex: 1; }
  .avatar-field input[type=file] { max-width: 100%; }
  input[type=file] { max-width: 100%; min-width: 0; }
  .vorlagen-liste .vorlage-name .btn { flex: none; }
}
/* Rückfragen: auf schmalen Telefonen untereinander, die Hauptaktion oben, jede so breit wie der Dialog */
@media (max-width: 480px) {
  .ask { padding: 20px 18px 16px; }
  .ask-actions { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  .ask-actions .btn { width: 100%; min-height: 46px; }
}
@media (max-width: 700px), (pointer: coarse) {
  .ed-kopf .btn { min-height: 40px; padding-left: 16px; padding-right: 16px; }
  .ed-text-fertig { min-height: 40px; }
}
/* Sehr schmale Telefone (bis 360 px, etwa iPhone SE der ersten Generation): ohne Anmeldung passen Logo mit Schriftzug,
   Anmelden und Mitmachen nicht nebeneinander; das Zeichen bleibt, der Name steht weiter für Screenreader da */
@media (max-width: 360px) {
  .topbar .wordmark { display: none; }
  .topbar-cta .btn.small { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 700px) {
  /* Profilmenü wie jedes Menü als Blatt unten, mit Abstand zu beiden Rändern */
  .profile-actions .menu-list { right: 8px; }
}
@media (max-width: 700px) {
  /* Schreibfeld im Feed und Antwortfeld: Werkzeuge erst, wenn man hineintippt oder schon etwas drinsteht
     (auf der Schreibseite immer offen). „offen“ setzt app.js; ohne Skript reicht der Fokus. */
  .composer:not(:has(textarea[autofocus])):not(.offen):not(:focus-within:not(.js *)):not(:has(textarea[name=text]:not(:placeholder-shown))):not(:has(.up)):not(:has(.poll-field:not([hidden]))):not(:has(.cw-field:not([hidden]))):not(:has([data-thread] textarea)) .composer-bar { display: none; }
}
.convo-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-senden .i { display: none; }
@media (max-width: 700px) {
  /* Im Chat wie in jedem Messenger: keine untere Leiste, das Eingabefeld sitzt unten; zurück geht es über den Pfeil */
  body:has(.dm-compose) .rail { display: none; }
  body:has(.dm-compose) main { padding-bottom: 0; }
  /* Senden als Symbol, damit das Eingabefeld Platz hat */
  .dm-senden { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
  .dm-senden .i { display: block; width: 20px; height: 20px; }
  .dm-senden-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* Kein runder Schreib-Knopf über Formularen (Einstellungen, Melden, Bearbeiten) */
  body:has(main .form) .fab { display: none; }
}

/* ---------- Schreibfeld: Zielgruppe als eine Zeile über einer einzigen Werkzeugzeile (wie bei X) ---------- */
.composer-meta { display: flex; align-items: center; gap: 8px; margin: 2px 0 6px; min-height: 32px; }
/* Aufklappen über „offen“ aus app.js, nie per :focus-within: Das griffe schon beim Drücken auf ein Werkzeug, die Zeile
   schöbe die Leiste unter dem Zeiger weg und der Klick landete auf der Zielgruppe. Ohne Skript reicht der Fokus. */
.composer:not(.offen):not(:focus-within:not(.js *)):not(:has(textarea[autofocus])):not(:has(textarea[name=text]:not(:placeholder-shown))):not(:has(.up)):not(:has(.zielgruppe[open])):not(:has(.poll-field:not([hidden]))) .composer-meta { display: none; }
.zielgruppe { position: relative; flex: 1 1 auto; min-width: 0; }
.zielgruppe > summary { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 32px; padding: 4px 10px 4px 8px; margin-left: -8px; border-radius: 999px; color: var(--accent); font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; }
.zielgruppe > summary::-webkit-details-marker { display: none; }
.zielgruppe > summary:hover { background: var(--accent-soft); }
.zielgruppe .i { width: 18px; height: 18px; flex: none; }
/* Rahmen ums Symbol als Flexbox, sonst sitzt es wie ein Buchstabe auf der Schriftlinie und steht zu hoch */
.zg-ic { display: flex; flex: none; }
.zg-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zielgruppe [data-v], .zielgruppe [data-r], .zielgruppe .zg-fol { display: none; }
.zielgruppe:has(input[name=visibility][value=public]:checked) [data-v=public],
.zielgruppe:has(input[name=visibility][value=followers]:checked) [data-v=followers],
.zielgruppe:has(input[name=reply_policy][value=all]:checked) [data-r=all],
.zielgruppe:has(input[name=reply_policy][value=following]:checked) [data-r=following],
.zielgruppe:has(input[name=reply_policy][value=none]:checked) [data-r=none] { display: inline; }
.zielgruppe:has(input[name=visibility][value=followers]:checked) .zg-oeff { display: none; }
.zielgruppe:has(input[name=visibility][value=followers]:checked) .zg-fol { display: block; }
.zielgruppe[open] .zg-pfeil { rotate: 180deg; }
.zg-panel { position: absolute; left: -8px; top: calc(100% + 4px); z-index: 9; width: max-content; min-width: 260px; max-width: min(340px, 90vw); display: grid; gap: 12px; padding: 12px 16px; background: var(--bg-raise); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.zg-panel fieldset { display: grid; gap: 0; margin: 0; padding: 0; border: 0; }
.zg-panel legend { padding: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.zg-panel .radio { align-items: center; padding: 8px 0; font-size: 15px; }
.zg-panel .radio input { margin-top: 0; }
.zg-panel .radio:has(input:disabled) { opacity: .5; cursor: default; }
.zg-panel small { color: var(--muted); font-size: 12.5px; }
.zg-entwurf { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin-left: auto; padding: 6px 10px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.zg-entwurf:hover { background: var(--hover); color: var(--fg); }
.zg-entwurf .i { width: 18px; height: 18px; }
.composer:not(:has(textarea[name=text]:not(:placeholder-shown))):not(:has(.up)) .zg-entwurf { visibility: hidden; }
/* Werkzeugzeile: bricht nie um; der Zähler erscheint erst mit dem ersten Zeichen */
.composer-bar { flex-wrap: nowrap; }
.composer-bar .trenner { width: 1px; height: 24px; margin: 0 4px; background: var(--line); }
.composer:not(:has(textarea[name=text]:not(:placeholder-shown))) .count { display: none; }
@media (max-width: 700px) {
  .zielgruppe > summary { min-height: 40px; padding-right: 8px; }
  .zg-pfeil { display: none; }
  .zg-entwurf { min-width: 40px; min-height: 40px; justify-content: center; padding: 0; }
  .zg-entwurf span { display: none; }
  /* Am Telefon als Blatt von unten, wie die anderen Menüs */
  .zg-panel { position: fixed; left: 8px; right: 8px; top: auto; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 30; width: auto; max-width: none; padding: 16px 20px; border-radius: 18px; }
  .zg-panel .radio { min-height: 44px; padding: 6px 0; font-size: 16px; }
}
@media (max-width: 400px) { .zielgruppe > summary { font-size: 13.5px; gap: 5px; } }
@media (max-width: 360px) {
  .composer-bar .tool { width: 36px; height: 36px; }
  .composer-bar .btn { padding-left: 16px; padding-right: 16px; }
  .composer-bar .trenner { margin: 0 2px; }
}

/* ---------- Planen ---------- */
.plan-field { display: grid; gap: 6px; margin: 2px 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--soft); }
.plan-field label { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--accent); }
.plan-field label .i { width: 18px; height: 18px; }
.plan-zeile { display: flex; gap: 8px; align-items: center; }
.plan-zeile input { flex: 1; min-width: 0; }
.plan-zeile .tool { flex: none; color: var(--muted); }
.plan-zeile input { font-family: inherit; }
.plan-field small { color: var(--muted); font-size: 12.5px; }
.composer-bar .tool.on { background: var(--accent-soft); }
.plan-zeit, .plan-fehler { display: flex; align-items: flex-start; gap: 6px; font-size: 13.5px; font-weight: 700; }
/* Bricht der Text um (schmales Handy), steht das Symbol neben der ersten Zeile, nicht mittig zwischen beiden */
.plan-zeit .i, .plan-fehler .i { margin-top: 2.5px; margin-top: calc((1lh - 15px) / 2); }
.plan-zeit { color: var(--accent); }
.plan-fehler { color: var(--danger); }
@media (max-width: 340px) {
  .composer-bar .tool { width: 32px; height: 32px; }
  .composer-bar .trenner { display: none; }
  .composer-bar .btn { padding-left: 13px; padding-right: 13px; }
}
.drafts-titel { margin: 18px 16px 4px; padding: 0; }

/* Mehrere Bilder auf dem Handy wie bei X (seit 2026-11-12): ein Streifen zum seitlichen Wischen statt Raster, alle gleich
   hoch (zwei Drittel der Spaltenbreite), Breite nach Seitenverhältnis zwischen 4 : 5 und 6 : 5, rastet je Bild ein. Er
   reicht über den Innenabstand des Posts bis an den Bildschirmrand und beginnt bündig mit dem Text. Gleich in iOS und
   Android (MedienRaster). Auf breiten Bildschirmen bleibt das Raster. */
@media (max-width: 700px) {
  .media:is(.media-2, .media-3, .media-4, .media-streifen) { --rand-l: 16px; --rand-r: 16px; --h: calc((100vw - var(--rand-l) - var(--rand-r)) * .67);
    display: flex; gap: 4px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    scroll-padding-inline: var(--rand-l) var(--rand-r); margin: 10px calc(-1 * var(--rand-r)) 6px calc(-1 * var(--rand-l));
    padding: 0 var(--rand-r) 0 var(--rand-l); border: 0; border-radius: 0; }
  .replies .media:is(.media-2, .media-3, .media-4, .media-streifen) { --rand-l: 24px; }
  .media:is(.media-2, .media-3, .media-4, .media-streifen)::-webkit-scrollbar { display: none; }
  .media:is(.media-2, .media-3, .media-4, .media-streifen) > .media-item { flex: 0 0 auto; height: var(--h); min-width: calc(var(--h) * .8); max-width: calc(var(--h) * 1.2);
    display: flex; justify-content: center; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); scroll-snap-align: start; grid-row: auto; }
  .media:is(.media-2, .media-3, .media-4, .media-streifen) > .media-item .mi-bild { display: contents; }
  .media:is(.media-2, .media-3, .media-4, .media-streifen) > .media-item :is(img, video) { height: 100%; width: auto; min-width: 100%; max-width: none; max-height: none;
    aspect-ratio: auto; position: static; object-fit: cover; }
}

/* ---------- Überall, wo du bist (lib/apps-abschnitt.js, seit 2026-11-15) ----------
   Geräte-Bühne mit den echten Apps (Mac, iPad, iPhone, Android), Produktfilm und eine Kachel je Plattform. Die Rahmen sind
   reines CSS, Maße in cqi des jeweiligen Geräts. Bildschirme passen zum Thema der Seite (hell/dunkel wie .st-bildschirm). */
.ap-abschnitt { overflow: hidden; }
.ap-buehne { position: relative; aspect-ratio: 100 / 60; margin: 8px 0 56px; }
.ap-geraet { position: absolute; margin: 0; container-type: inline-size; }
.ap-p-mac { left: 12%; top: 0; width: 80%; }
.ap-p-ipad { left: 0; bottom: 0; width: 31%; z-index: 2; }
.ap-p-iphone { left: 63.5%; bottom: 0; width: 15.5%; z-index: 2; }
.ap-p-android { left: 81.5%; bottom: -1.5%; width: 15.5%; z-index: 3; }
.ap-bild { display: block; width: 100%; height: auto; }
.ap-bild-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ap-bild-dark { display: block; } :root:not([data-theme="light"]) .ap-bild-light { display: none; } }
:root[data-theme="dark"] .ap-bild-dark { display: block; }
:root[data-theme="dark"] .ap-bild-light { display: none; }
.ap-mac .ap-bild { filter: drop-shadow(0 0 .2cqi rgb(0 0 0 / .45)) drop-shadow(0 2.4cqi 4.2cqi rgb(0 0 0 / .32)); }
.ap-rahmen { position: relative; background: linear-gradient(150deg, #2c2d33, #0b0c10 60%, #1b1c22); box-shadow: 0 3cqi 7cqi -2cqi rgb(0 0 0 / .55), inset 0 0 0 .5cqi #16171c, inset 0 0 0 .9cqi rgb(255 255 255 / .1); }
.ap-schirm { position: relative; overflow: hidden; background: #000; }
.ap-iphone .ap-rahmen { padding: 2.8cqi; border-radius: 15cqi; }
.ap-iphone .ap-schirm { border-radius: 12.4cqi; aspect-ratio: 600 / 1304; }
.ap-android .ap-rahmen { padding: 2.5cqi; border-radius: 10cqi; }
.ap-android .ap-schirm { border-radius: 7.6cqi; aspect-ratio: 600 / 1333; }
.ap-ipad .ap-rahmen { padding: 3.4cqi; border-radius: 7.4cqi; }
.ap-ipad .ap-schirm { border-radius: 4.2cqi; aspect-ratio: 900 / 1306; }
.ap-kamera { position: absolute; background: #050507; }
.ap-iphone .ap-kamera { left: 50%; top: 4.6cqi; width: 28cqi; height: 8.4cqi; translate: -50% 0; border-radius: 999px; }
.ap-android .ap-kamera { left: 50%; top: 5.4cqi; width: 5cqi; height: 5cqi; translate: -50% 0; border-radius: 50%; }
.ap-ipad .ap-kamera { left: 50%; top: 1.5cqi; width: 1.5cqi; height: 1.5cqi; translate: -50% 0; border-radius: 50%; background: #1c1d22; }
.ap-film { position: relative; margin: 0 0 56px; }
.ap-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 24px; background: #000; box-shadow: 0 24px 60px -30px rgb(0 0 0 / .55); }
.ap-film-knopf { position: absolute; left: 50%; top: calc(50% - 14px); translate: -50% -50%; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 24px 0 18px; border: 0; border-radius: 999px; background: rgb(255 255 255 / .94); color: #000; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; box-shadow: 0 10px 30px rgb(0 0 0 / .35); transition: scale .15s, opacity .25s; }
.ap-film-knopf .i { width: 22px; height: 22px; fill: currentColor; }
.ap-film-knopf:hover { scale: 1.04; }
.ap-film.laeuft .ap-film-knopf { opacity: 0; pointer-events: none; }
.ap-film figcaption { margin: 12px 4px 0; font-size: 14px; color: var(--muted); }
/* Schluss des Films: Gründungspreis als echtes HTML rechts neben dem goldenen Siegel im Bild (lib/apps-abschnitt.js filmEnde).
   Die Größen folgen der Breite des Films (Container), schmal deckt es den Film ganz und mittig ab. */
.ap-film { container-type: inline-size; }
.ap-film-ende { position: absolute; left: 50%; right: 5%; top: 0; height: calc(100cqi * 9 / 16); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.1cqi; color: #fff; text-shadow: 0 2px 18px rgb(0 0 0 / .4); visibility: hidden; opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .7s; pointer-events: none; }
.ap-film.ende .ap-film-ende { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; pointer-events: auto; }
.ap-film-ende p { margin: 0; }
.ape-titel { font-size: clamp(12px, 1.5cqi, 17px); font-weight: 700; color: #ffd978; }
.ape-preis { font-size: clamp(16px, 2.4cqi, 30px); font-weight: 650; line-height: 1.15; }
.ape-preis strong { font-size: clamp(36px, 6.4cqi, 84px); font-weight: 780; letter-spacing: -.04em; line-height: 1; color: #ffd978; white-space: nowrap; }
.ape-mehr { font-size: clamp(12px, 1.45cqi, 17px); line-height: 1.4; color: rgb(255 255 255 / .86); }
.ape-knopf.btn { margin-top: 1.2cqi; background: #fff; color: #000; border-color: #fff; text-shadow: none; }
.ap-film.ende .ap-film-knopf { left: 2.4cqi; top: calc(100cqi * 9 / 16 - 40px - 2.4cqi); translate: none; height: 40px; padding: 0 16px 0 12px; font-size: 14px; background: rgb(255 255 255 / .2); color: #fff; box-shadow: none; backdrop-filter: blur(8px); }
.ap-film.ende.laeuft .ap-film-knopf { opacity: 0; }
@container (max-width: 620px) {
  .ap-film-ende { left: 0; right: 0; align-items: center; text-align: center; padding: 0 6%; background: rgb(0 0 0 / .5); border-radius: 24px; gap: 4px; }
  .ape-mehr { display: none; }
  .ape-preis strong { font-size: clamp(30px, 10cqi, 48px); }
  .ap-film.ende .ap-film-knopf { display: none; }
}
.ap-kacheln { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.ap-kachel { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; border-radius: 22px; background: var(--bg-raise); box-shadow: inset 0 0 0 1px var(--line); }
.ap-symbol { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--soft); }
.ap-symbol .i { width: 26px; height: 26px; }
.ap-kachel h3 { margin: 4px 0 0; font-size: 21px; letter-spacing: -.02em; }
.ap-kachel p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.ap-stand { margin-top: auto; padding: 6px 12px; border-radius: 999px; background: var(--soft); font-size: 13px; font-weight: 700; color: var(--muted); }
.ap-kachel p + .ap-stand { margin-top: auto; }
.ap-kachel .ap-jetzt { background: var(--fg); color: var(--bg); }
a.ap-link { color: var(--fg); text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--fg); background: none; }
a.ap-link:hover { background: var(--hover); }
@media (max-width: 700px) {
  .ap-buehne { aspect-ratio: 100 / 74; margin-bottom: 36px; }
  .ap-p-mac { display: none; }
  .ap-p-ipad { left: 0; width: 44%; }
  .ap-p-iphone { left: 47%; width: 25%; }
  .ap-p-android { left: 74%; width: 25%; bottom: 0; }
  .ap-film-knopf { height: 46px; font-size: 15px; padding: 0 18px 0 14px; }
}

/* ---------- Medienkarten im Schreibfeld (Neugestaltung 2026-11-18, wie in der App) ----------
   Eines: so breit wie das Feld, ganz zu sehen, Beschreibung darunter. Mehrere: gleich breite Karten nebeneinander zum
   Wischen (Einrasten), nummeriert, per Ziehen oder ‹ › umsortierbar. Zustand des Hochladens mitten auf dem Bild. */
.uploads:not(.dm-uploads) { counter-reset: mk; gap: 12px; margin: 10px 0 4px; }
.uploads:has(> .mk:nth-child(2)) { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding: 2px 2px 8px; scrollbar-width: thin; }
.up.mk { display: flex; flex-direction: column; align-items: stretch; gap: 8px; background: none; padding: 0; border-radius: 0; counter-increment: mk; min-width: 0; }
.uploads:has(> .mk:nth-child(2)) > .mk { flex: 0 0 min(264px, 78%); scroll-snap-align: start; }
.mk-bild { position: relative; border-radius: 16px; overflow: hidden; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); width: fit-content; max-width: 100%; cursor: grab; }
.mk-bild:active { cursor: grabbing; }
.mk .mk-bild img, .mk .mk-bild video { display: block; width: auto; height: auto; max-width: 100%; max-height: min(420px, 60vh); object-fit: contain; border-radius: 0; background: transparent; }
.uploads:has(> .mk:nth-child(2)) .mk-bild { width: 100%; }
.uploads:has(> .mk:nth-child(2)) .mk .mk-bild img, .uploads:has(> .mk:nth-child(2)) .mk .mk-bild video { width: 100%; height: 264px; max-height: none; object-fit: cover; }
.mk.up-video .mk-bild video { background: #000; }
.mk-oben { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.mk .mk-knopf { position: static; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; font: 600 20px/1 var(--font);
  color: #fff; background: rgb(20 20 20 / .55); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 1px 3px rgb(0 0 0 / .25), inset 0 0 0 1px rgb(255 255 255 / .14); cursor: pointer; transition: background .15s, transform .15s; }
.mk .mk-knopf:hover { background: rgb(20 20 20 / .78); }
.mk .mk-knopf:active { transform: scale(.94); }
.mk .mk-knopf:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mk-links, .mk-rechts { display: none !important; }
.uploads:has(> .mk:nth-child(2)) .mk-links, .uploads:has(> .mk:nth-child(2)) .mk-rechts { display: grid !important; }
.uploads > .mk:first-child .mk-links, .uploads > .mk:last-child .mk-rechts { opacity: .35; pointer-events: none; }
.mk-unten { position: absolute; left: 8px; bottom: 8px; display: flex; gap: 6px; pointer-events: none; }
.mk-unten span { font: 800 11px/1 var(--font); letter-spacing: .04em; color: #fff; background: rgb(0 0 0 / .58); padding: 5px 8px; border-radius: 999px; }
.mk-nr::before { content: counter(mk); }
.mk-nr { display: none; }
.uploads:has(> .mk:nth-child(2)) .mk-nr { display: inline-block; }
.mk-alt { display: none; }
.mk:has(textarea:not(:placeholder-shown)) .mk-alt { display: inline-block; }
.mk.up-video .mk-bild::after { content: ""; position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: rgb(20 20 20 / .5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E") center / 22px no-repeat;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mk.up-video:has(.up-state:not(:empty)) .mk-bild::after { display: none; }
/* Zustand: abgedunkelt, Kreisel oder Fortschrittsbalken (--p in Prozent), Text */
.mk .up-state { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 16px; left: 0; bottom: 0; border-radius: 0;
  background: rgb(0 0 0 / .42); color: #fff; font: 600 13px var(--font); text-align: center; pointer-events: none; }
.mk .up-state::before { content: ""; width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgb(255 255 255 / .3); border-top-color: #fff; animation: mk-dreh .8s linear infinite; }
.mk .up-state[style*="--p"]::before { width: min(160px, 70%); height: 6px; border: 0; border-radius: 999px; animation: none;
  background: linear-gradient(#fff 0 0) 0 / calc(var(--p) * 1%) 100% no-repeat, rgb(255 255 255 / .28); transition: background-size .3s ease-out; }
.mk .up-state:empty { display: none; }
@keyframes mk-dreh { to { rotate: 1turn; } }
@media (prefers-reduced-motion: reduce) { .mk .up-state::before { animation-duration: 2.4s; } }
.mk .up-meta { font-size: 13px; }
.mk .up-meta textarea { width: 100%; min-width: 100%; box-sizing: border-box; font-size: 15px; min-height: 2lh; padding: 10px 12px; border-radius: 12px; }
.mk .up-tools { margin-top: 0; }
.mk.mk-zieht { opacity: .45; }
.mk.mk-ziel .mk-bild { box-shadow: inset 0 0 0 3px var(--accent); }
@media (max-width: 640px) {
  .mk .up-meta textarea { font-size: 16px; }
  .uploads:has(> .mk:nth-child(2)) .mk .mk-bild img, .uploads:has(> .mk:nth-child(2)) .mk .mk-bild video { height: 220px; }
}

/* Apps laden (seit 2026-11-23, lib/download.js): offizielle Store-Abzeichen, unverändert und ohne Effekt auf der Grafik
   (Apple und Google untersagen Änderungen). Gleiche Höhe für alle, Breite aus der Datei. */
.dl-abzeichen { display: inline-block; line-height: 0; border-radius: 9px; }
.dl-abzeichen img { display: block; height: 44px; width: auto; }
.dl-abzeichen:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dl-leiste { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dl-abzeichen-reihe { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.dl-zusatz { margin: 0; font-size: 15px; color: var(--muted); text-align: center; }
.dl-zusatz a { color: var(--fg); font-weight: 650; }
/* Startseite: direkt unter den beiden Knöpfen */
.st-dl { margin: 6px 0 18px; }
.ap-mehr { margin: 0 0 18px; }
/* Kopf der Startseite und der Seite /apps (Gäste): Apps-Knopf mit Text, schmal nur das Symbol. Auf den übrigen Seiten
   steht „Apps“ in der Navigation (links, auf dem Telefon in der unteren Leiste) und im Menü. */
.st-apps { text-decoration: none; }
.st-apps[aria-current] { background: var(--soft); }
@media (max-width: 900px) {
  .st-apps { padding: 0; }
  .st-apps span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* Seite /apps */
.dl-abschnitt { padding-top: 56px; }
.dl-seite { container-type: inline-size; }
.dl-kopf { text-align: center; margin: 0 0 40px; }
.dl-kopf h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 14px; }
.dl-kopf .lead { margin: 0 auto 26px; }
.dl-karten { list-style: none; margin: 0 0 56px; padding: 0; display: grid; gap: 16px; }
.dl-karte { display: flex; flex-direction: column; gap: 20px; padding: 18px 18px 24px; border-radius: 24px; background: var(--bg-raise); box-shadow: inset 0 0 0 1px var(--line); scroll-margin-top: 80px; }
.dl-bild { display: flex; align-items: center; justify-content: center; height: 300px; border-radius: 16px; background: var(--soft); overflow: hidden; }
.dl-geraet.ap-geraet { position: relative; left: auto; top: auto; bottom: auto; flex: none; }
.dl-iphone .dl-geraet, .dl-android .dl-geraet { width: 124px; }
.dl-ipad .dl-geraet { width: 186px; }
.dl-mac .dl-geraet { width: min(430px, 92%); }
.dl-text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; flex: 1; padding: 0 6px; }
.dl-text h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 26px; letter-spacing: -.02em; }
.dl-text p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.dl-text .dl-braucht { display: flex; align-items: flex-start; gap: 8px; color: var(--fg); font-size: 15px; font-weight: 600; }
.dl-braucht .i { flex: none; width: 20px; height: 20px; color: var(--accent); }
.dl-knopf { margin-top: auto; padding-top: 6px; }
@container (min-width: 760px) {
  .dl-karten { grid-template-columns: 1fr 1fr; }
  .dl-web { grid-column: 1 / -1; }
  .dl-web .dl-text { padding: 6px; }
}
.dl-schritte-teil, .dl-faq { margin: 0 0 48px; }
.dl-schritte-teil h2, .dl-faq h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.025em; margin: 0 0 20px; }
