
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/assets/plus-jakarta-sans-latin.cd8db90c.woff2') format('woff2'); }
:root {
  color-scheme: dark;
  --bg: #070707; --bg-alt: #0a0a0a; --bg-card: #141414; --bg-elevated: #1a1a1a; --bg-hover: #1f1f1f;
  --text: #ffffff; --text-muted: #b3b3b3; --text-subtle: #888888;
  --accent: #ffe026; --accent-hover: #f0d000; --accent-soft: rgba(255,224,38,0.12); --accent-text: #000;
  --accent-ink: #ffe026; /* Gelb als Textfarbe: hell wird daraus dunkles Gold, Flaechen bleiben Gelb */
  --rot: #ff3130; --gruen: #2ecc71; --blau: #6ea8fe;
  --border: #2a2a2a; --border-soft: #1f1f1f;
  --kopf-bg: rgba(7,7,7,0.92); --leiste-bg: rgba(7,7,7,0.96);
  --schatten: 0 12px 32px rgba(0,0,0,0.5); --schatten-klein: 0 8px 24px rgba(0,0,0,0.4);
  --logo-filter: none;
  --schalter-bahn: #2a2a2a; --schalter-knopf: #ffffff;
  --heat-1: rgba(255,224,38,0.3); --heat-2: rgba(255,224,38,0.55); --heat-3: rgba(255,224,38,0.8);
  --toast-text: #000000;
  --radius: 12px; --radius-sm: 8px; --radius-button: 30px;
  --font: 'Plus Jakarta Sans', 'Open Sans', Arial, Helvetica, sans-serif;
  --ein: 140ms cubic-bezier(0.22, 1, 0.36, 1);
  --breite: 1117px; --seitenleiste: 273px;
}
:root[data-thema="hell"] {
  color-scheme: light;
  --bg: #f5f5f5; --bg-alt: #ffffff; --bg-card: #ffffff; --bg-elevated: #f0f0f0; --bg-hover: #e9e9e9;
  --text: #202124; --text-muted: #6b6b6b; --text-subtle: #666666;
  --accent-hover: #e8c800; --accent-soft: rgba(255,224,38,0.25); --accent-ink: #7d6200;
  --rot: #d32423; --gruen: #187a42; --blau: #1a5fd0; /* gruen 5,4:1 auf Weiss, 4,7:1 auf #f0f0f0 (vorher 3,8:1 bei "seit … dabei") */
  --border: #d8d8d8; --border-soft: #e4e4e4;
  --kopf-bg: rgba(255,255,255,0.92); --leiste-bg: rgba(255,255,255,0.97);
  --schatten: 0 12px 32px rgba(0,0,0,0.12); --schatten-klein: 0 8px 24px rgba(0,0,0,0.12);
  --logo-filter: invert(1);
  --schalter-bahn: #bdbdbd; --schalter-knopf: #ffffff;
  --heat-1: rgba(255,224,38,0.45); --heat-2: #ffe026; --heat-3: #e0b400;
  --toast-text: #ffffff;
}
@media (prefers-color-scheme: light) { :root[data-thema="auto"] {
  color-scheme: light;
  --bg: #f5f5f5; --bg-alt: #ffffff; --bg-card: #ffffff; --bg-elevated: #f0f0f0; --bg-hover: #e9e9e9;
  --text: #202124; --text-muted: #6b6b6b; --text-subtle: #666666;
  --accent-hover: #e8c800; --accent-soft: rgba(255,224,38,0.25); --accent-ink: #7d6200;
  --rot: #d32423; --gruen: #187a42; --blau: #1a5fd0; /* gruen 5,4:1 auf Weiss, 4,7:1 auf #f0f0f0 (vorher 3,8:1 bei "seit … dabei") */
  --border: #d8d8d8; --border-soft: #e4e4e4;
  --kopf-bg: rgba(255,255,255,0.92); --leiste-bg: rgba(255,255,255,0.97);
  --schatten: 0 12px 32px rgba(0,0,0,0.12); --schatten-klein: 0 8px 24px rgba(0,0,0,0.12);
  --logo-filter: invert(1);
  --schalter-bahn: #bdbdbd; --schalter-knopf: #ffffff;
  --heat-1: rgba(255,224,38,0.45); --heat-2: #ffe026; --heat-3: #e0b400;
  --toast-text: #ffffff;
} }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text-muted); font-family: var(--font); font-size: 15px; line-height: 1.55; min-height: 100dvh; display: flex; flex-direction: column; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent-ink); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
svg { width: 1em; height: 1em; flex: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { color: var(--text); line-height: 1.2; margin: 0; }

/* Kopfleiste */
.kopf { position: sticky; top: 0; z-index: 20; background: var(--kopf-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-soft); }
.kopf__zeile { max-width: var(--breite); margin: 0 auto; padding: 8px 1rem 0; min-height: 64px; display: flex; align-items: center; gap: 1rem; }
.kopf__marke { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.kopf__marke img { height: 16px; width: auto; filter: var(--logo-filter); }
html img[src="/assets/freiformation-wortmarke.1ae2857b.png"] { filter: var(--logo-filter); }
.kopf__marke span { font-weight: 800; color: var(--text); white-space: nowrap; font-size: 1rem; }
.kopf__suche { flex: 1; display: flex; align-items: center; gap: 0.6rem; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius); height: 48px; padding: 0 0.9rem; color: var(--text-subtle); min-width: 0; max-width: 696px; }
.kopf__suche input { font-size: 16px; }
.kopf__suche input::-webkit-search-cancel-button { -webkit-appearance: searchfield-cancel-button; cursor: pointer; }
.kopf__suche svg { width: 18px; height: 18px; }
.kopf__suche input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); min-width: 0; }
.kopf__suche input::placeholder { color: var(--text-subtle); }
.kopf__rechts { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.ikon { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); position: relative; border: 0; background: transparent; cursor: pointer; }
.ikon:hover { background: var(--bg-card); color: var(--text); }
.ikon svg { width: 22px; height: 22px; }
.kopf__rechts .avatar--s { width: 32px; height: 32px; }
.menue { position: relative; }
.menue summary::-webkit-details-marker { display: none; }
.menue__liste { position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--schatten); padding: 0.35rem; z-index: 30; display: grid; }
.menue__liste a { padding: 0.55rem 0.8rem; border-radius: 6px; color: var(--text); font-weight: 600; font-size: 0.9rem; }
.menue__liste a:hover { background: var(--bg-elevated); color: var(--text); }
/* Darstellung (Hell/Dunkel/System) im Avatar-Menue, Cookie ff_thema + localStorage (public-community/thema.js) */
.menue__thema { margin-top: 0.25rem; padding: 0.5rem 0.8rem 0.4rem; border-top: 1px solid var(--border-soft); }
.menue__thema > span { display: block; font-size: 0.72rem; font-weight: 700; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.35rem; }
.thema-wahl { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--bg-elevated); border-radius: 8px; padding: 2px; }
.thema-wahl label { position: relative; text-align: center; font-size: 0.8rem; font-weight: 700; padding: 0.35rem 0.2rem; border-radius: 6px; cursor: pointer; color: var(--text-muted); white-space: nowrap; }
.thema-wahl label:hover { color: var(--text); }
.thema-wahl label:has(input:checked) { background: var(--accent); color: var(--accent-text); }
.thema-wahl label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.thema-wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }

/* Thema-abhaengige Stellen aus den Seiten-STYLEs (Variablen oben, Selektoren mit html davor gewinnen gegen die Seiten-Regeln) */
html .toast { color: var(--toast-text); }
html #karte, html .ortkarte__map { background: var(--bg-alt); }
html .karte-hinweis, html .maplibregl-ctrl-attrib, html .ortkarte__map .maplibregl-ctrl-attrib { background: var(--kopf-bg) !important; }
html .marker:hover, html .marker--ich { border-color: var(--text); }
html .schalter i { background: var(--schalter-bahn); }
html .schalter i::after { background: var(--schalter-knopf); }
html .heat__z.s1 { background: var(--heat-1); }
html .heat__z.s2 { background: var(--heat-2); }
html .heat__z.s3 { background: var(--heat-3); }
html .benachr__menue, html .sortier__menue, html .heat__info p, html .wz-picker, html .wz-mention, html .likes, html .popover, html .composer-anker .composer__kat-liste { box-shadow: var(--schatten); }
/* Gelb als Schriftfarbe auf hellem Grund (1.3:1) wird zu --accent-ink; dunkel bleibt es Gelb. */
html .profil__stufe, html .profil__bis b, html .profil__warn, html .lvl__stufe, html .mitglied__rolle, html mark, html .beitrag__titel mark, html .karte-hinweis a, html .popup__stufe, html .popup__bis b, html .benachr__alle, html .popover__link, html .benachr__menue a[aria-current], html .lvl__ikon.erreicht, html .sortier--aktiv .sortier__knopf, html .fertig[aria-pressed="true"], html .modul-link__haken, html .artikel .like-pille .like[aria-pressed="true"], html .artikel .like-pille .like[aria-pressed="true"]:hover, html .artikel .kommentar__zeile .like[aria-pressed="true"], html .artikel__meta a:hover, html .profil__kommentar-kopf a:hover, html .modul__weiter:hover, html .kal__uhr:hover, html .kal__zeile-link:hover b, html .kal__ics a:hover, html .termin__tz:hover, html .lvl__info a:hover, html .lvl__frei a:hover, html .composer-anker .composer__entwurf button:hover, html .gif-knopf[aria-expanded="true"] { color: var(--accent-ink); }
@media (min-width: 721px) { html .einst__nav a[aria-current] { color: var(--accent-ink); } }
.ikon__zahl { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rot); color: #fff; font-size: 0.7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.reiter { max-width: var(--breite); margin: 0 auto; padding: 0 1rem; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; scroll-padding: 0 1rem; }
.reiter::-webkit-scrollbar { display: none; }
.reiter a { color: var(--text-subtle); font-weight: 600; height: 40px; display: inline-flex; align-items: center; padding: 0 16px 0 0; margin-right: 8px; border-bottom: 3px solid transparent; white-space: nowrap; font-size: 14px; }
.reiter a:hover { color: var(--text); }
.reiter a[aria-current] { color: var(--text); border-color: var(--accent); }

.kopf__zurueck, .kopf__untertitel { display: none; }
.kopf__untertitel { font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; font-size: 0.95rem; }

/* Beitrag als Sheet ueber dem Feed (P12, nur Desktop) */
.sheet { border: 0; padding: 0; margin: 0; background: transparent; width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; overflow: hidden; }
.sheet::backdrop { background: rgba(0,0,0,0.6); }
.sheet__zu { position: fixed; top: 12px; left: 16px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.14); color: #fff; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; z-index: 2; }
.sheet__zu:hover { background: rgba(255,255,255,0.28); }
.sheet__innen { position: absolute; top: 62px; bottom: 0; left: 50%; transform: translateX(-50%); width: min(790px, calc(100vw - 32px)); background: var(--bg); border: 1px solid var(--border-soft); border-bottom: 0; border-radius: 16px 16px 0 0; overflow-y: auto; overscroll-behavior: contain; }
.sheet__innen > .artikel { border-radius: 0; border: 0; }
.sheet__laden { padding: 3rem; text-align: center; color: var(--text-subtle); }

.pwa-hinweis { position: fixed; left: 12px; right: 12px; width: auto; max-width: calc(100vw - 24px); box-sizing: border-box; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 24; background: var(--accent); color: #000; border-radius: 12px; padding: 10px 12px; font-size: 0.85rem; font-weight: 600; display: flex; gap: 0.6rem; align-items: center; box-shadow: var(--schatten-klein); }
.pwa-hinweis span { min-width: 0; flex: 1; }
.pwa-hinweis button { margin-left: auto; flex: none; background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: #000; }

/* Live-Leiste: laeuft gerade ein Call, steht sie unter der Kopfzeile (wie Skools "Live now") */
.live-leiste { display: flex; align-items: center; gap: 0.75rem; width: 100%; background: var(--accent); color: #000; padding: 0 1rem; min-height: 52px; font-weight: 700; border-bottom: 1px solid rgba(0,0,0,0.15); }
.live-leiste:hover { color: #000; background: var(--accent-hover); }
.live-leiste__innen { max-width: var(--breite); margin: 0 auto; width: 100%; display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.live-leiste__punkt { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--rot); box-shadow: 0 0 0 0 rgba(255,49,48,0.6); animation: live-puls 1.6s ease-out infinite; }
@keyframes live-puls { 0% { box-shadow: 0 0 0 0 rgba(255,49,48,0.6); } 70% { box-shadow: 0 0 0 10px rgba(255,49,48,0); } 100% { box-shadow: 0 0 0 0 rgba(255,49,48,0); } }
@media (prefers-reduced-motion: reduce) { .live-leiste__punkt { animation: none; } }
.live-leiste__text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1rem; }
.live-leiste__text small { font-weight: 600; font-size: 0.9rem; opacity: 0.8; }
.live-leiste__knopf { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 1.1rem; border-radius: var(--radius-button); background: #000; color: var(--accent); font-size: 0.9rem; font-weight: 800; }
.live-leiste:hover .live-leiste__knopf { background: #111; }

/* Untere Tab-Leiste (nur mobil, wie Skool: Home, Chat, Glocke, Avatar) */
.leiste-unten { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--leiste-bg); backdrop-filter: blur(10px); border-top: 1px solid var(--border-soft); justify-content: space-around; align-items: center; }
.leiste-unten a { position: relative; width: 50px; height: 50px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); }
.leiste-unten a[aria-current] { color: var(--text); }
.leiste-unten a svg { width: 24px; height: 24px; }
.leiste-unten .ikon__zahl { top: 4px; right: 4px; }
.leiste-unten .avatar { width: 30px; height: 30px; }

/* Raster */
.raster { max-width: var(--breite); margin: 0 auto; padding: 32px 1rem 4rem; display: grid; grid-template-columns: minmax(0, 1fr) var(--seitenleiste); gap: 42px; width: 100%; flex: 1; }
.raster--voll { grid-template-columns: minmax(0, 1fr); }
.raster--landing { padding: 0; max-width: none; }
@media (max-width: 900px) { .raster { grid-template-columns: minmax(0, 1fr); } .seitenleiste { display: none; } }
.karte { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius); }
.karte + .karte { margin-top: 1rem; }
.karte__innen { padding: 16px; }

/* Seitenleiste */
.gruppe__bild { aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; width: 100%; background: var(--bg-elevated); }
.gruppe__name { font-size: 18px; font-weight: 800; color: var(--text); }
.gruppe__url { color: var(--text-subtle); font-size: 13px; font-weight: 700; margin: 0.1rem 0 0.6rem; }
.gruppe__text { font-size: 15px; line-height: 1.5; color: var(--text-muted); margin: 0 0 0.9rem; }
.gruppe__zahlen { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); margin-bottom: 0.9rem; }
.gruppe__zahlen a { display: block; padding: 8px 0; min-height: 64px; border-right: 1px solid var(--border-soft); }
.gruppe__zahlen a:last-child { border-right: 0; }
.gruppe__zahlen a:hover { background: var(--bg-elevated); }
.gruppe__zahlen b { display: block; color: var(--text); font-size: 18px; font-weight: 500; line-height: 28px; }
.gruppe__zahlen span { font-size: 13px; color: var(--text-subtle); }
.gruppe__admins { display: flex; gap: 0.3rem; margin-bottom: 0.9rem; }
.gruppe__admins .avatar--s { width: 26px; height: 26px; font-size: 0.65rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bg-elevated); flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--text); font-size: 0.9rem; overflow: hidden; }
.avatar--s { width: 28px; height: 28px; font-size: 0.7rem; }
.avatar--m { width: 44px; height: 44px; }
.avatar--l { width: 88px; height: 88px; font-size: 1.6rem; }
.avatar--xl { width: 140px; height: 140px; font-size: 2.4rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-mit-level { position: relative; display: inline-block; flex: none; }
.avatar-mit-level .level { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #000; font-size: 0.7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg-card); }
.avatar-mit-level.gross .level { width: 34px; height: 34px; font-size: 1rem; right: 2px; bottom: 2px; }

/* Knoepfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 40px; padding: 0.45rem 1.2rem; border-radius: var(--radius-button); border: 1px solid transparent; font-weight: 800; font-size: 0.9rem; cursor: pointer; text-decoration: none; transition: background-color var(--ein), color var(--ein), border-color var(--ein); }
.knopf--ja { background: var(--accent); color: #000; }
.knopf--ja:hover { background: var(--accent-hover); color: #000; }
.knopf--ruhig { background: transparent; color: var(--text-muted); border-color: var(--border); }
.knopf--ruhig:hover { color: var(--text); border-color: var(--text-subtle); }
.knopf--klein { min-height: 32px; padding: 0.25rem 0.85rem; font-size: 0.8rem; }
.knopf--breit { width: 100%; }
.knopf[disabled] { opacity: 0.5; cursor: default; }

/* Pills */
.pills { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0 0 1rem; }
.pill { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.85rem; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); font-size: 0.85rem; font-weight: 600; background: var(--bg-card); }
.pill:hover { color: var(--text); border-color: var(--text-subtle); }
.pill[aria-current] { background: var(--accent); color: #000; border-color: var(--accent); }

/* Formulare */
.feld { display: block; width: 100%; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text); font-size: 0.95rem; }
.feld::placeholder { color: var(--text-subtle); }
.feld:focus { outline: none; border-color: var(--accent); }
textarea.feld { resize: vertical; min-height: 90px; line-height: 1.5; }
.hinweis { color: var(--text-subtle); font-size: 0.85rem; }
.fehler { color: var(--rot); font-size: 0.9rem; }

/* Composer (Overlay) */
.composer { border: 0; padding: 0; background: transparent; max-width: 720px; width: calc(100% - 2rem); margin: auto; }
.composer::backdrop { background: rgba(0,0,0,0.7); backdrop-filter: blur(3px); }
.composer__form { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem 1.25rem; display: grid; gap: 0.6rem; box-shadow: var(--schatten); }
.composer__kopf { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--text-muted); }
.composer__kopf b { color: var(--text); }
.composer__titel { border: 0; background: transparent; color: var(--text); font-size: 1.35rem; font-weight: 800; padding: 0.2rem 0; outline: 0; }
.composer__titel::placeholder { color: var(--text-subtle); }
.composer__text { border: 0; background: transparent; color: var(--text); font-size: 1rem; line-height: 1.5; resize: none; min-height: 140px; outline: 0; padding: 0; }
.composer__text::placeholder { color: var(--text-subtle); }
.composer__extra { display: grid; gap: 0.4rem; }
.composer__leiste { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; padding-top: 0.6rem; border-top: 1px solid var(--border-soft); }
.composer__knopf { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.1rem; }
.composer__knopf:hover, .composer__knopf[aria-pressed="true"] { background: var(--bg-elevated); color: var(--text); }
.composer__knopf svg { width: 20px; height: 20px; }
.composer__kategorie { background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.85rem; max-width: 220px; }
.composer__rechts { margin-left: auto; display: flex; gap: 0.5rem; }
.composer__emojis { display: flex; flex-wrap: wrap; gap: 0.2rem; }
.composer__emojis button { background: transparent; border: 0; font-size: 1.3rem; cursor: pointer; padding: 0.2rem; border-radius: 6px; }
.composer__emojis button:hover { background: var(--bg-elevated); }
@media (max-width: 720px) { .composer { width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; } .composer__form { border-radius: 0; min-height: 100dvh; } }

/* Feed */
.schreiben { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; }
.schreiben__feld { flex: 1; background: var(--bg-elevated); border: 1px solid var(--border-soft); border-radius: 999px; padding: 0.55rem 1rem; color: var(--text-subtle); cursor: text; text-align: left; font-size: 18px; }
.schreiben__feld:hover { border-color: var(--border); color: var(--text-muted); }
.beitrag { display: flex; gap: 0.85rem; padding: 1.1rem 1.25rem; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius); }
.beitrag + .beitrag { margin-top: 0.6rem; }
.beitrag:hover { border-color: var(--border); }
.feed-liste .karte { background: transparent; border: 0; }
.beitrag__body { flex: 1; min-width: 0; }
.beitrag__kopf { display: flex; align-items: baseline; gap: 0.4rem; font-size: 0.8rem; color: var(--text-subtle); flex-wrap: wrap; }
.beitrag__kopf b { color: var(--text); font-size: 0.9rem; font-weight: 700; }
.beitrag__kopf .kat { color: var(--text-muted); }
.beitrag__titel { display: block; font-size: 1.05rem; font-weight: 800; color: var(--text); margin: 0.2rem 0 0.25rem; text-wrap: balance; }
.beitrag__titel:hover { color: var(--accent-ink); }
.beitrag__text { color: var(--text-muted); font-size: 0.92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.beitrag__text a { color: var(--blau); }
.beitrag__zeile { display: flex; align-items: center; gap: 1rem; margin-top: 0.7rem; font-size: 0.85rem; color: var(--text-subtle); }
.beitrag__zeile .zaehler { display: inline-flex; align-items: center; gap: 0.3rem; }
.beitrag__zeile svg { width: 18px; height: 18px; }
.beitrag__mit { display: flex; align-items: center; gap: 0.35rem; margin-left: auto; }
.beitrag__mit .avatar { border: 2px solid var(--bg-card); margin-left: -8px; }
.beitrag__mit .avatar:first-child { margin-left: 0; }
.beitrag__neu { color: var(--blau); font-size: 0.8rem; }
.beitrag__vorschau { width: 84px; height: 84px; border-radius: var(--radius-sm); object-fit: cover; flex: none; background: var(--bg-elevated); }
.beitrag__vorschau-wrap { position: relative; flex: none; }
.beitrag__vorschau-wrap .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.beitrag__vorschau-wrap .play span { width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,0.65); display: flex; align-items: center; justify-content: center; }
.pin { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--text-subtle); font-size: 0.75rem; font-weight: 700; margin-left: auto; }
.seiten { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin: 1.25rem 0 0; font-size: 0.85rem; }
.seiten a, .seiten span { min-width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--text-subtle); }
.seiten [aria-current] { background: var(--accent); color: #000; font-weight: 800; }
.leer { padding: 2rem; text-align: center; color: var(--text-subtle); }

/* Rangliste in der Seitenleiste */
.rang { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0; }
.rang .avatar--s { width: 32px; height: 32px; }
.rang__nr { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 800; color: var(--text-subtle); flex: none; }
.rang__nr.g { background: var(--accent); color: #000; }
.rang__nr.s { background: #c9c9c9; color: #000; }
.rang__nr.b { background: #c98a4b; color: #000; }
.rang__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 600; font-size: 15px; }
.rang__punkte { color: var(--blau); font-weight: 700; font-size: 0.85rem; }
.karte__titel { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 0.5rem; }
.karte__link { display: block; text-align: center; font-size: 0.8rem; color: var(--text-subtle); padding-top: 0.6rem; }

/* Beitragsseite */
.artikel__kopf { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.9rem; }
.artikel__meta { font-size: 0.8rem; color: var(--text-subtle); }
.artikel__meta b { color: var(--text); font-size: 0.9rem; display: block; }
.artikel h1 { font-size: 1.35rem; font-weight: 800; margin-bottom: 0.75rem; }
.artikel__inhalt { color: var(--text); font-size: 0.97rem; line-height: 1.6; }
.artikel__inhalt p { margin: 0 0 0.9rem; }
.artikel__inhalt a { color: var(--blau); }
.artikel__inhalt, .kommentar__text, .beitrag__text, .treffer__auszug, .ktreffer__text, .modul__text, .gruppe__text { overflow-wrap: anywhere; }
.medien { display: grid; gap: 0.6rem; margin: 0.9rem 0; }
.bilder { display: grid; gap: 0.4rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.bilder[data-anzahl="1"] { grid-template-columns: minmax(0, 420px); }
.bilder .bild { display: block; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; background: #000; border: 1px solid var(--border-soft); }
.bilder .bild img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--ein); }
.bilder .bild:hover img { transform: scale(1.03); }
.bilder--klein { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); max-width: 480px; }
.bilder--klein[data-anzahl="1"] { grid-template-columns: minmax(0, 220px); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 2rem; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); }
.lightbox__zu { position: absolute; top: 14px; right: 18px; color: #fff; font-size: 2rem; line-height: 1; background: none; border: 0; cursor: pointer; }
.lightbox img { max-width: 90vw; max-height: 90vh; }
.lightbox__pfeil { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff; border: 0; cursor: pointer; font-size: 1.6rem; display: flex; align-items: center; justify-content: center; }
.lightbox__pfeil:hover { background: rgba(255,255,255,0.25); }
.lightbox__pfeil--l { left: 16px; } .lightbox__pfeil--r { right: 16px; }
.lightbox__zaehler { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 0.9rem; background: rgba(0,0,0,0.5); padding: 4px 12px; border-radius: 999px; }
.artikel__inhalt ul, .kommentar__text ul, .modul__text ul { margin: 0.4rem 0 0.9rem 1.2rem; padding: 0; }
.artikel__inhalt li, .kommentar__text li, .modul__text li { margin: 0.2rem 0; }
.video--eigen video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__vorschau { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.video__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video__play span { width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; }
.video__play svg { width: 30px; height: 30px; }
.beitrag__vorschau-wrap .play svg { width: 18px; height: 18px; }
.anhang { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.8rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--text); }
.umfrage { margin: 0.9rem 0; display: grid; gap: 0.4rem; }
.umfrage__option { position: relative; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.55rem 0.8rem; overflow: hidden; font-size: 0.9rem; color: var(--text); display: flex; justify-content: space-between; cursor: pointer; background: none; text-align: left; width: 100%; }
.umfrage__option .balken { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent-soft); z-index: 0; }
.umfrage__option span { position: relative; z-index: 1; }
.umfrage__option[aria-pressed="true"] { border-color: var(--accent); }
.aktionen .zaehler { display: inline-flex; align-items: center; gap: 0.35rem; }
.aktionen .zaehler svg { width: 16px; height: 16px; }
.aktionen { display: flex; align-items: center; gap: 0.6rem; margin: 1rem 0 0; padding-top: 0.75rem; border-top: 1px solid var(--border-soft); font-size: 0.85rem; color: var(--text-subtle); }
.aktion { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid var(--border); background: none; color: var(--text-muted); cursor: pointer; font-weight: 600; font-size: 0.85rem; }
.aktion:hover { color: var(--text); border-color: var(--text-subtle); }
.aktion[aria-pressed="true"] { color: var(--accent-ink); border-color: var(--accent); }
.aktion svg { width: 16px; height: 16px; }

/* Kommentare */
.kommentare { margin-top: 1rem; }
.kommentar { display: flex; gap: 0.7rem; padding: 0.75rem 0 0; }
.kommentar__body { flex: 1; min-width: 0; }
.kommentar__kopf { font-size: 0.8rem; color: var(--text-subtle); }
.kommentar__kopf b { color: var(--text); font-size: 0.88rem; }
.kommentar__text { color: var(--text); font-size: 0.92rem; margin: 0.15rem 0 0.3rem; white-space: pre-wrap; word-wrap: break-word; }
.kommentar__text a { color: var(--blau); }
.kommentar__zeile { display: flex; align-items: center; gap: 0.8rem; font-size: 0.8rem; color: var(--text-subtle); }
.kommentar__zeile button { background: none; border: 0; color: var(--text-subtle); cursor: pointer; padding: 0; font-weight: 600; font-size: 0.8rem; display: inline-flex; align-items: center; gap: 0.3rem; }
.kommentar__zeile button:hover { color: var(--text); }
.kommentar__zeile svg { width: 15px; height: 15px; }
.kommentar__antworten { margin-left: 0; }
.antwort-form { display: none; gap: 0.5rem; margin-top: 0.5rem; }
.antwort-form.offen { display: flex; }
.kommentar-schreiben { display: flex; gap: 0.7rem; align-items: flex-start; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-soft); }
.kommentar-schreiben .feld { border-radius: 20px; min-height: 44px; }
.kommentar-schreiben form { flex: 1; display: flex; gap: 0.5rem; align-items: flex-end; }

/* Profil, Listen */
.profil { text-align: center; padding: 1.5rem 1.25rem; }
.profil__name { font-size: 1.4rem; font-weight: 800; margin-top: 0.75rem; }
.profil__handle { color: var(--text-subtle); font-size: 0.85rem; }
.profil__bio { margin: 0.6rem 0 0.9rem; color: var(--text-muted); }
.profil__fakten { text-align: left; font-size: 0.9rem; display: grid; gap: 0.35rem; padding: 0.9rem 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.profil__fakten span { display: flex; gap: 0.5rem; align-items: center; }
.profil__fakten svg { width: 16px; height: 16px; color: var(--text-subtle); flex: none; }
.profil__zahlen { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 0.9rem; }
.profil__zahlen b { display: block; color: var(--text); font-size: 1.1rem; }
.profil__zahlen span { font-size: 0.75rem; color: var(--text-subtle); }
.links { display: flex; gap: 0.4rem; justify-content: center; margin-top: 0.7rem; flex-wrap: wrap; }
.mitglied { display: flex; gap: 0.85rem; padding: 1rem 1.25rem; border-top: 1px solid var(--border-soft); }
.mitglied:first-child { border-top: 0; }
.mitglied__body { flex: 1; min-width: 0; }
.mitglied__name { font-weight: 800; color: var(--text); }
.mitglied__handle { font-size: 0.8rem; color: var(--text-subtle); }
.mitglied__bio { font-size: 0.9rem; color: var(--text-muted); margin: 0.25rem 0 0.5rem; }
.mitglied__fakten { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.2rem 1rem; font-size: 0.8rem; color: var(--text-subtle); }
.mitglied__fakten span { display: flex; gap: 0.4rem; align-items: center; }
.mitglied__fakten svg { width: 14px; height: 14px; }
.punkt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gruen); }
.tabelle { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tabelle td { padding: 0.5rem 0.4rem; border-top: 1px solid var(--border-soft); vertical-align: middle; }
.abschnitt { margin-bottom: 1.5rem; }
.abschnitt h2 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 900px) { .zwei, .drei { grid-template-columns: minmax(0, 1fr); } }
/* .karte + .karte schob die 2. und 3. Karte im Raster 1rem tiefer (Leaderboard) */
.zwei > .karte + .karte, .drei > .karte + .karte { margin-top: 0; }
.meldung { padding: 0.75rem 1rem; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--text); font-size: 0.9rem; margin-bottom: 1rem; }
.fuss { max-width: var(--breite); margin: 0 auto; padding: 1rem; font-size: 0.75rem; color: var(--text-subtle); display: flex; gap: 1rem; flex-wrap: wrap; }
.fuss a { color: var(--text-subtle); }
.nur-mobil { display: none; }
@media (max-width: 720px) {
  .kopf__suche { display: none; }
  .kopf__marke span { display: none; }
  .kopf__marke img { height: 14px; }
  .kopf__zeile { gap: 0.5rem; }
  .kopf__rechts .ikon:not(.nur-mobil), .kopf__rechts .menue { display: none; }
  .kopf__zurueck { display: inline-flex; margin-left: -8px; }
  .kopf__untertitel { display: block; }
  .kopf__zeile:has(.kopf__untertitel) .kopf__marke { flex: none; }
  .reiter--unterseite { display: none; }
  .feld, textarea.feld, .kopf__suche input, .composer__text, .composer__titel { font-size: 16px; }
  .aktion, .kommentar__zeile button { min-height: 32px; }
  .ikon { width: 40px; height: 40px; }
  .reiter a { font-size: 1rem; padding: 0.8rem 0 0.85rem; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); overflow-x: hidden; }
  .leiste-unten { display: flex; }
  .live-leiste { min-height: 48px; padding: 0.4rem 0.75rem; gap: 0.5rem; }
  .live-leiste__text { font-size: 0.92rem; }
  .live-leiste__knopf { min-height: 32px; padding: 0 0.85rem; font-size: 0.85rem; }
  .nur-mobil { display: inline-flex; }
  .raster { padding: 0.75rem 0 3rem; gap: 0.75rem; }
  .karte { border-radius: 0; border-left: 0; border-right: 0; }
  .beitrag { padding: 0.9rem 1rem; border-radius: 0; border-left: 0; border-right: 0; }
  .beitrag + .beitrag { margin-top: 0.5rem; }
  .beitrag__zeile { flex-wrap: wrap; }
  .beitrag__mit { max-width: 100%; }
  .kommentar, .kommentar__body, .kommentar__blase, .kommentar__antworten { min-width: 0; max-width: 100%; }
  .bilder--klein { max-width: 100%; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .beitrag__vorschau { width: 64px; height: 64px; }
  .pills { padding: 0 1rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .pills::-webkit-scrollbar { display: none; }
  .pill { white-space: nowrap; flex: none; }
  .schreiben { padding: 0.75rem 1rem; }
}
