/**
 * Schwarzeschafe31 — Haupt-Stylesheet
 * Ausgelagert aus templates/layout.php (v26.21)
 */

/* ═══════ CSS TOKENS ═══════ */
:root {
    --body-bg: #0e1422;
    --card-bg: #152040;
    --card-bg-alt: #1a2850;
    --border: #263468;
    --border-light: #304278;
    --text: #b8c4d8;
    --text-muted: #8292bb; /* v28.68: vorher #6878a0 (nur 3,3–4,2 : 1), jetzt ≥ 4,7 */
    --text-heading: #e0e6f2;
    --cyan: #e87a1e;
    --cyan-dim: #c46518;
    --cyan-glow: rgba(232, 122, 30, 0.15);
    --gold: #d4a82a;
    --gold-dim: #b08a1e;
    --red: #c83858;
    --green: #2ecc71;
    /* v27.7 (To-do 3.7): bisher benutzt, aber nie festgelegt */
    --warning: #e8781e;
    --orange: #e87a1e;
    --yellow: #e0b830;
    --bg-lighter: #1a2850;
    --link: #e89850;
    --blue-accent: #2a3a80;
    --font-display: 'Rajdhani', 'Segoe UI', sans-serif;
    --font-body: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    --radius: 6px;
    --radius-lg: 10px;
    --shadow: 0 2px 16px rgba(0,0,0,0.35);
    --sidebar-width: 175px;
    --sidebar-right-width: 245px;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --body-bg: #eef0f5;
        --card-bg: #ffffff;
        --card-bg-alt: #f2f4f8;
        --border: #c8d0e0;
        --border-light: #dce2ee;
        --text: #2a3248;
        --text-muted: #5a6888;
        --text-heading: #141c30;
        --cyan: #a8520f; /* v28.68: vorher #c46518 (3,5–4,0 : 1) */
        --cyan-dim: #8f450c;
        --cyan-glow: rgba(196, 101, 24, 0.10);
        --gold: #b08a1e;
        --gold-dim: #8a6c14;
        --red: #a82e48;
        --green: #27ae60;
        /* v27.7 (To-do 3.7) */
        --warning: #a8520f;
        --orange: #a8520f;
        --yellow: #9a7a12;
        --bg-lighter: #f2f4f8;
        --link: #a04c10;
        --blue-accent: #3a4a90;
        --shadow: 0 2px 12px rgba(0,0,0,0.08);
    }
}
:root[data-theme="light"] {
    --body-bg: #eef0f5;
    --card-bg: #ffffff;
    --card-bg-alt: #f2f4f8;
    --border: #c8d0e0;
    --border-light: #dce2ee;
    --text: #2a3248;
    --text-muted: #5a6888;
    --text-heading: #141c30;
    --cyan: #a8520f; /* v28.68: vorher #c46518 (3,5–4,0 : 1) */
    --cyan-dim: #8f450c;
    --cyan-glow: rgba(196, 101, 24, 0.10);
    --gold: #b08a1e;
    --gold-dim: #8a6c14;
    --red: #a82e48;
    --green: #27ae60;
    /* v27.7 (To-do 3.7) */
    --warning: #a8520f;
    --orange: #a8520f;
    --yellow: #9a7a12;
    --bg-lighter: #f2f4f8;
    --link: #a04c10;
    --blue-accent: #3a4a90;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
}
:root[data-theme="dark"] {
    --body-bg: #0e1422;
    --card-bg: #152040;
    --card-bg-alt: #1a2850;
    --border: #263468;
    --border-light: #304278;
    --text: #b8c4d8;
    --text-muted: #8292bb; /* v28.68: vorher #6878a0 (nur 3,3–4,2 : 1), jetzt ≥ 4,7 */
    --text-heading: #e0e6f2;
    --cyan: #e87a1e;
    --cyan-dim: #c46518;
    --cyan-glow: rgba(232, 122, 30, 0.15);
    --gold: #d4a82a;
    --gold-dim: #b08a1e;
    --red: #c83858;
    --green: #2ecc71;
    /* v27.7 (To-do 3.7): bisher benutzt, aber nie festgelegt */
    --warning: #e8781e;
    --orange: #e87a1e;
    --yellow: #e0b830;
    --bg-lighter: #1a2850;
    --link: #e89850;
    --blue-accent: #2a3a80;
    --shadow: 0 2px 16px rgba(0,0,0,0.35);
}
/* ═══════ ZUSÄTZLICHE STILE (Profil → Seitenansicht) ═══════
   v28.61–63: erste Fassungen „Orange“ (Farben getauscht, dann Graphit mit Orange-Akzenten) — von Stephan verworfen:
   „kakerlbraun“, „Mischmasch aus Kackbraun und aus anderem dunkleren Ton … passt auch nicht zu den schwarzen Schafen“.
   v28.64 (Stephan 12.11.2026: „Bau mal einmal den orangen Hintergrund rein und danach probieren wir mal das Schwarz, wirklich Schwarz
   mit Graphit und Weiß“): zwei Stile zum Ansehen. Neutrales Graphit ohne Braunstich. --body-bg bleibt dunkel, weil Eingabefelder
   und Kalender ihn als Fläche nutzen; der Seitenhintergrund wird eigens über body gesetzt. */

/* v28.65 (Stephan 12.11.2026: „Orange kannst du mal rausnehmen … der Hintergrund Orange, das wirkt zu aufdringlich“): Stil „Orange“ entfernt;
   gespeicherte Werte „orange“ fallen in layout.php auf den Standard zurück. */

/* v28.67 (Stephan 12.11.2026: „Discord müsste seine eigene, also dieses Discord-Logo müsste seine eigene Farbe behalten, Teamspeak müsste
   seine eigene Farbe weiterhin behalten … das ist auch beim Standard auch so“): Markenzeichen behalten in allen Stilen ihre Farbe */
i.fa-brands.fa-discord { color: #5865f2; }
i.fa-brands.fa-teamspeak { color: #2580c3; }
:root[data-theme="light"] i.fa-brands.fa-teamspeak { color: #1f6fae; }

/* v28.66 (Stephan 12.11.2026): „mehr mit dem Blauakzent arbeiten … Vor allen Dingen bei den Knöpfen … dass da so dreifarbig drin sind …
   Das Standard … ist eine Mischung, die ist eigentlich super ausgeglichen … Du arbeitest wirklich nur konsequent mit diesen Farbschema,
   wo du nicht eine Kombination mit reinbringst.“ Deshalb in allen drei Zusatz-Stilen: Grundfarbe für Leisten, Rahmen und Kastenüberschriften,
   Blau als zweite Farbe für Knöpfe, Links und den aktiven Menüpunkt; Schrift neutral (kein „Filter“-Stich); Kästen heben sich im Ton
   vom Seitengrund ab wie beim Standard (Navy-Grund, helleres Navy in den Kästen). */

/* ── Stil „Schwarz“: Schwarz, Graphit (leicht kühl), Weiß — dazu Blau ── */
:root[data-theme="schwarz"] {
    --body-bg: #050505;
    --card-bg: #15171a;
    --card-bg-alt: #1d2024;
    --border: #2c3036;
    --border-light: #3b4048;
    --text: #e4e4e4;
    --text-muted: #a4a6aa;
    --text-heading: #ffffff;
    --cyan: #4a9be8;
    --cyan-dim: #3d8cdb;
    --cyan-glow: rgba(74, 155, 232, 0.15);
    --gold: #d4a82a;
    --gold-dim: #b08a1e;
    --red: #f07088;
    --green: #2ecc71;
    --warning: #4a9be8;
    --orange: #4a9be8;
    --yellow: #e0b830;
    --bg-lighter: #1d2024;
    --link: #6db0f2;
    --blue-accent: #101114;
    --shadow: 0 2px 16px rgba(0,0,0,0.6);
}
:root[data-theme="schwarz"] .card-header { color: #ffffff; }
:root[data-theme="schwarz"] .main-nav a { color: rgba(255,255,255,0.82); }
:root[data-theme="schwarz"] .main-nav a.active { color: #fff; background: rgba(74,155,232,0.12); box-shadow: inset 0 -3px 0 var(--cyan); }
:root[data-theme="schwarz"] .header-nav-bar { border-top-color: #2c3036; border-bottom-color: #2c3036; }
:root[data-theme="schwarz"] .site-header { border-top-color: var(--cyan); }

/* ── Stil „Schwarz-Rot“: Schwarz/Graphit, Rot für Leisten, Rahmen und Kastenüberschriften — dazu Blau für Knöpfe und Links ──
   v28.67 (Stephan: „die Boxen … haben so ein Rot-Dunkelton drinne … und der Hintergrund ist den Augenblick viel zu schwarz dafür …
   den Hintergrund eher in so ein etwas helleres“): Seitengrund heller (Anthrazit), Kästen neutrales Graphit ohne Rotstich, Rahmen bleiben rot */
:root[data-theme="schwarzrot"] {
    --body-bg: #1b1a1a;
    --card-bg: #252424;
    --card-bg-alt: #2e2c2c;
    --border: #5a2b2b;
    --border-light: #703535;
    --text: #e4e0e0;
    --text-muted: #a89e9e;
    --text-heading: #ffffff;
    --cyan: #4a9be8;
    --cyan-dim: #3d8cdb;
    --cyan-glow: rgba(74, 155, 232, 0.15);
    --gold: #d4a82a;
    --gold-dim: #b08a1e;
    --red: #ff8fa0;
    --green: #2ecc71;
    --warning: #f26a5f;
    --orange: #f26a5f;
    --yellow: #e0b830;
    --bg-lighter: #2e2c2c;
    --link: #6db0f2;
    --blue-accent: #8e1c16;
    --shadow: 0 2px 16px rgba(0,0,0,0.6);
    --akzent-rot: #ff7a6e;
}
:root[data-theme="schwarzrot"] .card-header { color: var(--akzent-rot); }
:root[data-theme="schwarzrot"] .site-header { border-top-color: #c0302a; }
:root[data-theme="schwarzrot"] .main-nav a { color: rgba(255,255,255,0.9); }
:root[data-theme="schwarzrot"] .main-nav a.active { color: #fff; background: rgba(0,0,0,0.28); box-shadow: inset 0 -3px 0 var(--cyan); }

/* ── Stil „Oliv und Sand“: Oliv für Grund, Leisten und Rahmen, Sand für Kastenüberschriften — dazu Blau für Knöpfe und Links;
   Schrift neutral hell statt sandfarben (sonst wirkt alles wie unter einem Filter) ── */
:root[data-theme="oliv"] {
    --body-bg: #13160e;
    --card-bg: #1f2519;
    --card-bg-alt: #283020;
    --border: #46512f;
    --border-light: #59663c;
    --text: #e4e4de;
    --text-muted: #aaa99c;
    --text-heading: #f3edd8;
    --cyan: #4a9be8;
    --cyan-dim: #3d8cdb;
    --cyan-glow: rgba(74, 155, 232, 0.15);
    --gold: #e0b84a;
    --gold-dim: #b08a1e;
    --red: #f07a7a;
    --green: #8fd46a;
    --warning: #d6c189;
    --orange: #d6c189;
    --yellow: #e0c860;
    --bg-lighter: #283020;
    --link: #6db0f2;
    --blue-accent: #3e4a28;
    --shadow: 0 2px 16px rgba(0,0,0,0.5);
    --akzent-sand: #d6c189;
}
:root[data-theme="oliv"] .card-header { color: var(--akzent-sand); }
:root[data-theme="oliv"] .site-header { border-top-color: var(--akzent-sand); }
:root[data-theme="oliv"] .main-nav a { color: rgba(244,238,221,0.9); }
:root[data-theme="oliv"] .main-nav a.active { color: #fff; background: rgba(0,0,0,0.22); box-shadow: inset 0 -3px 0 var(--cyan); }

/* ═══════ ACCORDION SYSTEM ═══════ */
.accordion-section { margin-bottom: 2px; }
.accordion-header {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; background: var(--card-bg-alt);
    border: 1px solid var(--border); border-radius: var(--radius);
    cursor: pointer; user-select: none;
    transition: background 0.15s, border-color 0.15s;
    font-family: var(--font-display); font-weight: 600;
    font-size: 14px; color: var(--text-heading);
}
.accordion-header:hover { background: rgba(232,122,30,0.06); border-color: var(--border-light); }
.accordion-header.is-open { border-radius: var(--radius) var(--radius) 0 0; border-bottom-color: transparent; }
.accordion-chevron {
    margin-left: auto; font-size: 12px; color: var(--text-muted);
    transition: transform 0.25s;
}
.accordion-header.is-open .accordion-chevron { transform: rotate(180deg); }
.accordion-body {
    display: none; border: 1px solid var(--border); border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--card-bg); padding: 12px 14px;
}
.accordion-header.is-open + .accordion-body { display: block; }
.accordion-controls {
    display: flex; gap: 8px; margin-bottom: 10px; align-items: center;
}
.accordion-controls .acc-btn {
    padding: 4px 10px; font-size: 12px; font-family: var(--font-display);
    font-weight: 600; border: 1px solid var(--border); border-radius: 3px;
    background: var(--card-bg-alt); color: var(--text-muted);
    cursor: pointer; transition: background 0.15s, color 0.15s;
}
.accordion-controls .acc-btn:hover { background: var(--cyan-glow); color: var(--cyan); border-color: var(--cyan-dim); }

/* ═══════ RESET & BASE ═══════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background: var(--body-bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--cyan); }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* ═══════ HEADER ═══════ */
.site-header {
    background: var(--card-bg);
    border-top: 3px solid var(--cyan);
    padding: 0;
}

/* -- Obere Zeile: Logo zentriert, User-Controls rechts -- */
.header-top {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 20px 14px;
    position: relative;
}
.site-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-heading);
}
.logo-icon {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    object-fit: contain;
}
.logo-text {
    text-align: center;
}
.logo-text h1 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.1;
    color: var(--text-heading);
}
.logo-text small {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}
.header-user {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    font-size: 13px;
    white-space: nowrap;
    /* v28.23 (Stephan 02.11.2026: „rückt immer nur weiter zum Logo“): nie über die Logo-Mitte hinaus; was nicht passt, rutscht in die nächste Zeile */
    max-width: calc(50% - 135px);
}
.header-person {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.header-user .username-link {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.header-user .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
}
.header-user .username-link {
    color: var(--text-heading);
    font-weight: 600;
}
/* v28.42: Zeile unter dem Namen — links Plugin-Werte, rechts der Sitzungstimer */
.header-zeile2 {
    flex-basis: 100%;
    display: flex;
    justify-content: flex-end; /* Stephan 06.11.2026: Werte rechts unter dem Namen, nicht ganz links */
    align-items: center;
    gap: 12px;
    margin-top: 2px;
}
.header-werte {
    display: inline-flex;
    gap: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--cyan, #e87a1e);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.header-werte i { font-size: 11px; }
.header-zeile2 .session-timer-display { flex-basis: auto; margin-top: 0; }
.header-werte:empty { display: none; }
.header-werte > span { position: relative; }
.session-timer-display {
    font-size: 11px;
    color: var(--orange, #e87a1e); /* v28.61: über die Variable, damit der Stil „Orange“ ihn blau färbt (Standard bleibt #e87a1e) */
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    letter-spacing: 0.3px;
    flex-basis: 100%;
    justify-content: flex-end;
    margin-top: 2px;
}
/* v28.92: Timer ist ein Knopf (Klick = dieses Gerät angemeldet lassen bzw. wieder aus) — sieht aus wie bisher */
.session-timer-knopf { background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; line-height: inherit; }
.session-timer-knopf:hover, .session-timer-knopf:focus-visible { text-decoration: underline; text-underline-offset: 2px; }
.session-timer-display.timer-warning {
    color: var(--red);
    animation: timerPulse 1s ease-in-out infinite;
}
@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.header-icon-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--text-muted);
    transition: color 0.2s, background 0.2s;
}
.header-icon-link:hover {
    color: var(--cyan);
    background: var(--cyan-glow);
}
.notif-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: var(--crimson, #c83858);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    padding: 0 4px;
    border-radius: 10px;
    text-align: center;
    pointer-events: none;
}

/* -- Untere Zeile: Nav-Leiste mit Menü + Suche -- */
.header-nav-bar {
    background: var(--blue-accent);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 2px solid var(--blue-accent);
}
.header-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 4px;
}
/* ═══════ NAVIGATION ═══════ */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    min-width: 0;
}
.main-nav a {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    padding: 10px 14px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}
.main-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}
.main-nav a.active {
    color: var(--cyan);
    background: rgba(0,212,221,0.1);
    box-shadow: inset 0 -2px 0 var(--cyan);
}
/* v27.55: Untermenü oben (eine Ebene) */
.nav-drop { display: flex; flex-shrink: 0; }
.nav-drop-pfeil { font-size: 10px; opacity: 0.7; margin-left: 2px; }
.nav-drop.is-open > .nav-drop-kopf { color: #fff; background: rgba(255,255,255,0.08); }
.nav-drop-liste {
    display: none; position: fixed; z-index: 1000; min-width: 210px; max-width: calc(100vw - 16px);
    background: var(--card-bg); border: 1px solid var(--border); border-top: 2px solid var(--cyan);
    border-radius: 0 0 8px 8px; box-shadow: 0 10px 28px rgba(0,0,0,0.45); padding: 4px 0;
}
.nav-drop.is-open > .nav-drop-liste { display: block; }
.main-nav .nav-drop-liste a {
    display: block; padding: 9px 16px; font-size: 13px; text-transform: none; letter-spacing: 0;
    color: var(--text); white-space: normal; box-shadow: none;
}
.main-nav .nav-drop-liste a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.main-nav .nav-drop-liste a.active { color: var(--cyan); background: rgba(0,212,221,0.08); }
.main-nav .nav-drop-liste .nav-drop-selbst { font-weight: 700; color: var(--text-heading); border-bottom: 1px solid var(--border); }
@media (hover: hover) and (pointer: fine) { .main-nav .nav-drop-liste .nav-drop-selbst { display: none; } }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    padding: 7px 16px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn-cyan {
    background: var(--cyan);
    color: #0a0f1a;
}
.btn-cyan:hover { background: var(--cyan-dim); color: #0a0f1a; }
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-gold {
    background: var(--gold);
    color: #1a1400;
}
.btn-gold:hover { background: var(--gold-dim); color: #1a1400; }
.btn-red {
    background: var(--red);
    color: #fff;
}
.btn-sm { padding: 4px 10px; font-size: 12px; }

/* ═══════ 3-COLUMN LAYOUT ═══════ */
.site-body {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr var(--sidebar-right-width);
    gap: 20px;
    min-height: calc(100vh - 180px);
}

.sidebar-left,
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-content {
    min-width: 0;
}

/* ═══════ CARDS / BOXES ═══════ */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
/* TinyMCE-Dialoge (Link/Bild) immer im Vordergrund */
.tox-tinymce-aux {
    z-index: 100000 !important;
}
.card-header {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--cyan);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid var(--blue-accent);
    background: var(--card-bg-alt);
}
.card-body {
    padding: 14px 16px;
}

/* ═══════ SIDEBAR WIDGETS ═══════ */
.widget-list {
    list-style: none;
}
.widget-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.widget-list li:last-child { border-bottom: none; }
.widget-list a { color: var(--text); }
.widget-list a:hover { color: var(--cyan); }

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}
.stat-row .stat-label { color: var(--text-muted); }
.stat-row .stat-value { color: var(--text-heading); font-weight: 600; }

.online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    margin-right: 6px;
}
.online-user {
    font-size: 12px;
    padding: 3px 0;
}
.online-user a { color: var(--text); }
.online-user a:hover { color: var(--cyan); }

/* ═══════ BREADCRUMB ═══════ */
.breadcrumb {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb .sep { color: var(--border-light); margin: 0 2px; }
.breadcrumb span:last-child { color: var(--text-heading); font-weight: 600; }

/* Zurück-Button */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: var(--radius);
    transition: all 0.15s;
    cursor: pointer;
    background: none;
    border: 1px solid var(--border);
}
.btn-back:hover { color: var(--cyan); border-color: var(--cyan); background: var(--cyan-glow); }

/* ═══════ FORUM CATEGORY LIST ═══════ */
.category-row {
    display: grid;
    grid-template-columns: 40px 1fr 80px 80px 180px;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.category-row:last-child { border-bottom: none; }
.category-row:hover { background: var(--card-bg-alt); }
.cat-icon { font-size: 22px; text-align: center; }
.cat-info h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
}
.cat-info h3 a { color: var(--text-heading); }
.cat-info h3 a:hover { color: var(--cyan); }
.cat-info p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.cat-stat {
    text-align: center;
    font-size: 13px;
}
.cat-stat .num { display: block; font-weight: 700; color: var(--text-heading); font-size: 16px; }
.cat-stat .label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.cat-latest {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
}
.cat-latest a { color: var(--text); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-latest a:hover { color: var(--cyan); }
.cat-latest .time { font-size: 11px; }

/* ═══════ THREAD LIST ═══════ */
.thread-row {
    display: grid;
    grid-template-columns: 1fr 80px 80px 160px;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.thread-row:last-child { border-bottom: none; }
.thread-row:hover { background: var(--card-bg-alt); }
.thread-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
}
.thread-title a { color: var(--text-heading); }
.thread-title a:hover { color: var(--cyan); }
.thread-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.thread-stat { text-align: center; font-size: 13px; color: var(--text-muted); }
.thread-latest { font-size: 12px; color: var(--text-muted); }
.thread-latest a { color: var(--text); }
.thread-latest a:hover { color: var(--cyan); }

.badge-pinned {
    display: inline-block;
    background: var(--gold);
    color: #1a1400;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-right: 6px;
    vertical-align: middle;
}
/* v28.20: Forum-Kennzeichnung „Neu“ */
.badge-neu {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 3px;
    text-transform: none;
    white-space: nowrap;
    vertical-align: middle;
}
.badge-locked {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-right: 6px;
    vertical-align: middle;
}
/* v28.50: ausgeblendetes Thema (nur die Moderation sieht es) */
.badge-ausgeblendet {
    display: inline-block;
    background: #5a6478;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-right: 6px;
    vertical-align: middle;
    white-space: nowrap;
}
.badge-ausgeblendet i { font-size: 9px; margin-right: 2px; }

/* ═══════ POST VIEW ═══════ */
.post {
    display: grid;
    grid-template-columns: 160px 1fr;
    border-bottom: 1px solid var(--border);
}
.post:last-child { border-bottom: none; }
.post-author {
    background: var(--card-bg-alt);
    padding: 16px 12px;
    text-align: center;
    border-right: 1px solid var(--border);
}
.post-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-light);
    margin-bottom: 8px;
}
.post-username {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}
.post-username a { color: var(--text-heading); }
.post-username a:hover { color: var(--cyan); }
.post-rank { font-size: 11px; margin-bottom: 6px; }
.post-info { font-size: 11px; color: var(--text-muted); line-height: 1.8; }
.post-body {
    padding: 16px 20px;
}
.post-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.post-content {
    line-height: 1.7;
    word-wrap: break-word;
}
/* v28.85: Symbole aus dem Forum-Editor (Schafkopf, Panzer) sitzen mittig in der Zeile, wie Emojis */
.post-content img[src*="/uploads/icons/"] { vertical-align: middle; }
/* v27.86 (Stephan 29.10.2026: „wenn du den Editor … rausziehen willst, verschwindet der nach rechts“): der Editor wird beim Ziehen
   nie breiter als sein Kasten — schmaler und höher geht weiter, ganz groß über den Vollbild-Knopf */
.tox.tox-tinymce { max-width: 100%; }
/* v27.86: Seiten ohne Seitenleisten (z. B. Artikel schreiben) nutzen die ganze Breite */
.site-body.ohne-seitenleisten { grid-template-columns: minmax(0, 1fr); }
/* v27.85: Tabellen aus dem Forum-Editor (die Rahmen-Angaben des Editors filtert der Sicherheitsfilter heraus) */
/* v28.79: Sprung auf eine Überschrift im Artikel (…#teil-4) — etwas Luft nach oben, damit die Kopfzeile nichts verdeckt */
.art-text h2[id], .art-text h3[id], .art-text h4[id] { scroll-margin-top: 90px; }
.post-content table, .art-text table { border-collapse: collapse; margin: 10px 0; max-width: 100%; display: block; overflow-x: auto; }
.post-content th, .post-content td, .art-text th, .art-text td { border: 1px solid var(--border); padding: 5px 10px; vertical-align: top; }
.post-content th, .art-text th { background: var(--card-bg-alt); }
.post-content .bb-quote {
    background: var(--card-bg-alt);
    border-left: 3px solid var(--red);
    padding: 10px 14px;
    margin: 10px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.post-content .bb-quote cite {
    font-size: 12px;
    color: var(--red);
    display: block;
    margin-bottom: 6px;
    font-style: normal;
    font-weight: 600;
}
.post-content .bb-code {
    background: #0d1117;
    color: #c9d1d9;
    padding: 12px;
    border-radius: var(--radius);
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    margin: 10px 0;
}
.post-content .bb-img {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 8px 0;
}
.post-signature {
    margin-top: 16px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}
.post-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

/* ═══════ FORMS ═══════ */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--body-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    transition: border-color 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 2px var(--cyan-glow);
}
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}
select.form-control {
    cursor: pointer;
}

/* ═══════ EDITOR TOOLBAR ═══════ */
.editor-toolbar {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: var(--card-bg-alt);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
}
.editor-toolbar button {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}
.editor-toolbar button:hover {
    background: var(--cyan-glow);
    border-color: var(--cyan);
    color: var(--cyan);
}
.editor-textarea {
    border-radius: 0 0 var(--radius) var(--radius) !important;
}

/* ═══════ RANK BADGES ═══════ */
.rank-badge { font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.3px; }
.rank-faint { color: var(--text-muted) !important; }
.rank-muted { color: var(--text) !important; }
.rank-cyan, .rank-orange { color: var(--cyan) !important; }
.rank-gold { color: var(--gold) !important; }

/* ═══════ PAGINATION ═══════ */
.pagination {
    display: flex;
    gap: 4px;
    margin: 20px 0;
    justify-content: center;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.page-link:hover { border-color: var(--cyan); color: var(--cyan); }
.page-link.active { background: var(--cyan); color: #0a0f1a; border-color: var(--cyan); }
.page-dots { color: var(--text-muted); padding: 0 4px; line-height: 34px; }

/* ═══════ FLASH MESSAGES ═══════ */
.flash {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    transition: opacity 0.5s ease, max-height 0.5s ease, margin 0.5s ease, padding 0.5s ease;
    overflow: hidden;
}
.flash.flash-out {
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding: 0 16px;
}
/* v27.90 (Stephan 29.10.2026): Meldungen nach einer Aktion gut sichtbar — oben in der Mitte über allem, mit ✕ (frontend-common.js) */
.flash[data-flash-type] { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 100003; width: max-content; max-width: min(720px, 92vw);
    font-size: 15px; padding: 14px 44px 14px 18px; box-shadow: 0 8px 28px rgba(0,0,0,.55); background-color: var(--card-bg, #1a2035); }
.flash[data-flash-type] .flash-zu { position: absolute; top: 8px; right: 10px; background: none; border: none; color: inherit; font-size: 18px; cursor: pointer; opacity: .8; }
.flash-success { background: rgba(46, 204, 113, 0.15); color: var(--green); border: 1px solid rgba(46, 204, 113, 0.3); }
.flash-error { background: rgba(224, 64, 64, 0.15); color: var(--red); border: 1px solid rgba(224, 64, 64, 0.3); }
.flash-info { background: var(--cyan-glow); color: var(--cyan); border: 1px solid rgba(0, 212, 221, 0.3); }
.flash-warning { background: rgba(232, 120, 30, 0.15); color: var(--warning); border: 1px solid rgba(232, 120, 30, 0.35); } /* v27.7 (To-do 3.7) */

/* ═══════ MEMBER LIST ═══════ */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    padding: 16px;
}
.member-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--card-bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: border-color 0.15s;
    cursor: pointer;
}
.member-card:hover { border-color: var(--cyan); }
.member-card .member-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.member-card .member-info { min-width: 0; flex: 1; }
.member-card .member-info .name { font-weight: 600; font-size: 14px; }
.member-card .member-info .name a { color: var(--text-heading); }
.member-card .member-info .name a:hover { color: var(--cyan); }
/* Stretched Link: ganze Karte klickbar */
.member-card .member-info .name a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
.member-card .member-info .meta {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
}
.member-card .member-info .meta .rank-badge,
.member-card .member-info .meta .clan-rank-badge {
    white-space: nowrap;
}

/* ═══════ PROFILE ═══════ */
/* ═══════ PROFILE HEADER (WoltLab-Stil) ═══════ */
.profile-banner {
    position: relative;
    background: linear-gradient(135deg, #0c1220 0%, #152040 40%, #1a2850 70%, #263468 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-top: 3px solid var(--cyan);
    padding: 32px 28px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    overflow: hidden;
}
.profile-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 200"><polygon points="0,200 200,50 400,150 600,0 600,200" fill="rgba(42,58,128,0.15)"/><polygon points="0,200 150,100 350,180 500,60 600,200" fill="rgba(232,122,30,0.05)"/></svg>') center/cover no-repeat;
    opacity: 0.6;
    pointer-events: none;
}
.profile-banner > * { position: relative; z-index: 1; }
.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--blue-accent);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    flex-shrink: 0;
}
.profile-info { flex: 1; min-width: 0; }
.profile-name {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
}
.profile-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}
.profile-stats {
    display: flex;
    gap: 24px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.profile-stat {
    text-align: center;
}
.profile-stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-heading);
    font-family: var(--font-display);
    line-height: 1.2;
}
.profile-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    background: var(--card-bg);
    border-bottom: 2px solid var(--blue-accent);
    overflow-x: auto;
}
.profile-tabs a {
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}
.profile-tabs a:hover {
    color: var(--text-heading);
}
.profile-tabs a.active {
    color: var(--cyan);
    border-bottom-color: var(--cyan);
}

/* Profile Content */
.profile-content {
    background: var(--card-bg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 24px;
}
.profile-section {
    margin-bottom: 24px;
}
.profile-section:last-child { margin-bottom: 0; }
/* v28.5 (2.55): Box TeamSpeak-Anzeige */
.ts-anzeige-kopf { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; margin-bottom: 8px; color: var(--text); }
.ts-anzeige-verbinden { color: inherit; text-decoration: none; }
.ts-anzeige-verbinden:hover, .ts-anzeige-verbinden:focus { color: var(--cyan); text-decoration: underline; }
.ts-anzeige-kopf span, .ts-anzeige-zahl, .ts-anzeige-aus { color: var(--text-muted); font-size: 12px; }
.ts-anzeige-baum { list-style: none; margin: 0; padding: 0; font-size: 12px; max-height: 480px; overflow-y: auto; }
.ts-anzeige-kanal { display: flex; justify-content: space-between; gap: 8px; padding-top: 3px; padding-bottom: 3px; color: var(--text); overflow-wrap: anywhere; }
.ts-anzeige-nutzer { padding-top: 1px; padding-bottom: 1px; color: var(--cyan); overflow-wrap: anywhere; }
.ts-anzeige-ueber { padding: 6px 0 2px; font-weight: 600; color: var(--text-heading); }
.ts-anzeige-ueber.ts-mitte { text-align: center; }
.ts-anzeige-ueber.ts-rechts { text-align: right; }
.ts-anzeige-trenn { border-top: 1px solid var(--border); margin: 6px 0; }
/* v28.2 (Stephan 31.10.2026): Mein Konto → Einstellungen auf dem PC in zwei Spalten, auf dem Handy untereinander */
.einst-spalte { margin-bottom: 24px; }
@media (min-width: 900px) {
    .einst-spalten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; }
}
.profile-section-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-heading);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.profile-field {
    display: flex;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(38,52,104,0.3);
}
.profile-field:last-child { border-bottom: none; }
.profile-field-label {
    width: 140px;
    flex-shrink: 0;
    color: var(--text-muted);
    font-weight: 600;
}
.profile-field-value {
    color: var(--text);
    word-break: break-word;
}

/* Responsive Profile */
@media (max-width: 600px) {
    .profile-banner { flex-direction: column; text-align: center; padding: 24px 16px; }
    .profile-stats { justify-content: center; }
    .profile-field { flex-direction: column; gap: 2px; }
    .profile-field-label { width: auto; }
    .profile-tabs a { padding: 10px 14px; font-size: 12px; }
}

/* Backward compat alias */
.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
}
.profile-stat strong { color: var(--text-heading); }

/* ═══════ SEARCH ═══════ */
.search-box {
    display: flex;
    gap: 8px;
}
.search-box .form-control { flex: 1; }

/* Header-Suche (in Nav-Leiste rechts) */
.header-search {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
    padding: 6px 0;
}
.header-search form {
    display: flex;
    align-items: center;
    gap: 0;
}
.header-search input[type="text"] {
    width: 160px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius) 0 0 var(--radius);
    color: #fff;
    font-family: var(--font-body);
    font-size: 12px;
    transition: border-color 0.2s, width 0.3s;
}
.header-search input[type="text"]:focus {
    outline: none;
    border-color: var(--cyan);
    width: 220px;
    background: rgba(255,255,255,0.12);
}
.header-search input[type="text"]::placeholder { color: rgba(255,255,255,0.4); }
.header-search button {
    padding: 6px 10px;
    background: var(--cyan);
    border: 1px solid var(--cyan);
    border-left: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: #0a0f1a;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-display);
    transition: background 0.2s;
    white-space: nowrap;
}
.header-search button:hover { background: var(--cyan-dim); }

/* ═══════ ONLINE STATUS BAR ═══════ */
.online-bar {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 10px 20px;
    font-size: 12px;
    color: var(--text-muted);
}
.online-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.online-bar-left {
    white-space: nowrap;
}
.online-bar-left strong {
    color: var(--text-heading);
}
.online-bar-users {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.online-bar-user {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--link);
    font-size: 12px;
}
.online-bar-user:hover { color: var(--cyan); }

/* ═══════ FOOTER ═══════ */
.site-footer {
    background: var(--card-bg);
    border-top: 2px solid var(--blue-accent);
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 20px;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--cyan); }

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1024px) {
    .site-body {
        grid-template-columns: 1fr var(--sidebar-right-width);
    }
    .sidebar-left { display: none; }
}
@media (max-width: 768px) {
    .site-body {
        grid-template-columns: 1fr;
        padding: 12px;
    }
    .sidebar-left,
    .sidebar-right { display: none; }
    .online-bar { display: none; }
    .header-top {
        flex-direction: column;
        padding: 14px 16px 10px;
    }
    .header-user {
        position: static;
        transform: none;
        margin-top: 10px;
        justify-content: center;
        max-width: none;
    }
    .header-nav-inner {
        flex-wrap: wrap;
        gap: 0;
        padding: 0 12px;
    }
    /* v27.56: eigene volle Zeile (vorher flex:1 → Breite 0 neben der Suche, Menü auf dem Handy unsichtbar);
       mittig über Rand-Abstände statt justify-content:center — sonst ließen sich die vorderen Punkte nicht mehr hinschieben */
    .main-nav {
        flex: 0 0 100%;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
    }
    .main-nav > :first-child { margin-left: auto; }
    .main-nav > :last-child { margin-right: auto; }
    .main-nav a { padding: 8px 10px; font-size: 12px; }
    .header-search {
        width: 100%;
        margin-left: 0;
        padding: 6px 0 8px;
        justify-content: center;
    }
    .header-search input[type="text"] { flex: 1; width: auto; }
    .header-search input[type="text"]:focus { width: auto; }
    .category-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .cat-stat, .cat-latest { display: none; }
    .thread-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .thread-stat, .thread-latest { display: none; }
    .post {
        grid-template-columns: 1fr;
    }
    .post-author {
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 10px 14px;
    }
    .post-avatar { width: 40px; height: 40px; margin-bottom: 0; }
}

/* ═══════ UTILITY ═══════ */
.text-cyan { color: var(--cyan); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.gap-sm { gap: 8px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; }

/* ═══════ LEGAL TEXT ═══════ */
.legal-text { line-height: 1.8; font-size: 14px; }
.legal-text h3 { font-family: var(--font-display); font-size: 18px; color: var(--cyan); margin: 20px 0 8px 0; }
.legal-text h3:first-child { margin-top: 0; }
.legal-text p { margin-bottom: 12px; }
/* v26.82: formatierte Rechtstexte / Regeln aus der Ablage (Ueberschriften, Listen, Fristen-Tabelle) */
.legal-text h2, .legal-text h4 { font-family: var(--font-display); color: var(--cyan); margin: 22px 0 8px 0; }
.legal-text h2 { font-size: 20px; } .legal-text h4 { font-size: 15px; }
.legal-text ul, .cms-page-content ul { margin: 0 0 12px 22px; }
.legal-text li, .cms-page-content li { margin-bottom: 4px; }
.legal-text table, .cms-page-content table { border-collapse: collapse; width: 100%; margin: 8px 0 16px; font-size: 13px; display: block; overflow-x: auto; }
.legal-text th, .legal-text td, .cms-page-content th, .cms-page-content td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; vertical-align: top; }
.legal-text th, .cms-page-content th { background: rgba(255,255,255,0.04); }
/* v26.89 (T-54): Absaetze "Noch nicht aktiv." — Funktion beschrieben, aber noch nicht eingeschaltet; beim Scharfschalten entfernen */
.noch-nicht-aktiv { background: rgba(232,160,30,0.08); border-left: 3px solid #e8a01e; padding: 8px 12px; border-radius: 0 4px 4px 0; }

/* ═══════ COOKIE BANNER ═══════ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 3px solid var(--cyan);
    padding: 18px 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}
.cookie-banner p {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    max-width: 700px;
    line-height: 1.5;
}
.cookie-banner p a {
    color: var(--cyan);
    text-decoration: underline;
}
.cookie-banner .cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-banner .btn-accept {
    background: var(--cyan);
    color: var(--body-bg);
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    transition: background .2s;
}
.cookie-banner .btn-accept:hover { background: var(--cyan-hover); }
.cookie-banner .btn-decline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    transition: border-color .2s, color .2s;
}
.cookie-banner .btn-decline:hover { border-color: var(--text-muted); color: var(--text); }
@media (max-width: 600px) {
    .cookie-banner { flex-direction: column; text-align: center; padding: 16px; }
    .cookie-banner .cookie-buttons { width: 100%; justify-content: center; }
}

/* ─── Frontend-Edit-Links für Admins ─── */
.fe-edit-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 4px;
    background: rgba(232,122,30,0.15); color: var(--orange);
    font-size: 11px; text-decoration: none;
    opacity: 0.4; transition: opacity 0.2s, background 0.2s;
    vertical-align: middle; margin-left: 4px; flex-shrink: 0;
}
.fe-edit-link:hover { opacity: 1; background: rgba(232,122,30,0.3); }
.fe-edit-link i { font-size: 10px; }
.card-header .fe-edit-link { float: right; margin-top: 1px; }
.main-nav .fe-edit-link { margin-left: 6px; opacity: 0.3; }
.main-nav .fe-edit-link:hover { opacity: 1; }
.cms-page-edit { position: absolute; top: 8px; right: 12px; }

/* ─── Icon Picker (Frontend) ─── */
.icon-picker-wrap { position: relative; }
.icon-picker-trigger {
    display: flex; align-items: center; gap: 8px; padding: 6px 12px;
    background: var(--card-bg, #1a2035); border: 1px solid var(--border); border-radius: 6px;
    cursor: pointer; color: var(--text); font-size: 13px; width: 100%;
    transition: border-color .2s;
}
.icon-picker-trigger:hover { border-color: var(--cyan, #00d4dd); }
.icon-picker-preview {
    width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 16px;
}
.icon-picker-preview i { font-size: 16px; color: var(--cyan, #00d4dd); }
.icon-picker-preview img { width: 18px; height: 18px; object-fit: contain; }
.icon-picker-label { color: var(--text-muted); font-size: 13px; }
.icon-picker-dropdown {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 100001;
    background: var(--card-bg, #1a2035); border: 1px solid var(--border); border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4); max-height: 320px; overflow-y: auto;
    min-width: 280px;
}
.icon-picker-search-wrap { padding: 8px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--card-bg, #1a2035); z-index: 1; }
.icon-picker-search {
    width: 100%; padding: 6px 10px; background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    border-radius: 4px; color: var(--text); font-size: 13px; outline: none;
}
.icon-picker-search:focus { border-color: var(--cyan, #00d4dd); }
.icon-picker-clear { padding: 4px 8px; border-bottom: 1px solid var(--border); }
.icon-picker-clear-btn {
    width: 100%; padding: 4px; background: none; border: 1px dashed var(--border); border-radius: 4px;
    color: var(--text-muted); cursor: pointer; font-size: 12px; transition: border-color .2s, color .2s;
}
.icon-picker-clear-btn:hover { border-color: var(--orange, #e87a1e); color: var(--orange, #e87a1e); }
.icon-picker-section-label {
    padding: 6px 10px 2px; font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px; color: var(--text-muted); user-select: none;
}
.icon-picker-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
    gap: 4px; padding: 6px 8px;
}
.icon-picker-item {
    display: flex; align-items: center; justify-content: center; height: 36px;
    border: 1px solid transparent; border-radius: 4px; cursor: pointer;
    color: var(--text); transition: background .15s, border-color .15s;
}
.icon-picker-item:hover { background: rgba(0,212,221,0.1); border-color: var(--cyan, #00d4dd); color: var(--cyan, #00d4dd); }
.icon-picker-item i { font-size: 16px; pointer-events: none; }
.icon-picker-item img { width: 20px; height: 20px; object-fit: contain; pointer-events: none; }
.icon-picker-empty {
    padding: 16px; text-align: center; color: var(--text-muted); font-size: 12px;
}
/* Gruppen-Zugriff-Panel */
.group-access-panel { position: relative; }
.gap-toggle {
    display: flex; align-items: center; gap: 8px; width: 100%;
    padding: 8px 12px; background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 6px; color: var(--text); font-size: 13px; cursor: pointer;
    transition: border-color 0.2s;
}
.gap-toggle:hover { border-color: var(--cyan); }
.gap-toggle .gap-arrow { margin-left: auto; font-size: 10px; transition: transform 0.2s; }
.group-access-panel.is-open .gap-arrow { transform: rotate(180deg); }
/* v28.55 (0a-R1): „Wer sieht die Box?“ — Aufklapp-Liste „Gruppen“, darunter je angehaktem Clan „Ränge …“ */
.bz-feld { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; align-items: start; }
.box-einst-zweispaltig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 0 28px; align-items: start; }
@media (max-width: 800px) { .box-einst-zweispaltig, .bz-feld { grid-template-columns: minmax(0, 1fr); } }
.bz-wahl { position: relative; }
.bz-wahl > summary { list-style: none; cursor: pointer; display: flex; gap: 6px; align-items: center; justify-content: space-between; padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; width: 100%; box-sizing: border-box; user-select: none; }
.bz-wahl > summary::-webkit-details-marker { display: none; }
.bz-wahl > summary::after { content: '▾'; opacity: .7; margin-left: auto; }
.bz-wahl[open] > summary::after { content: '▴'; }
.bz-vor { font-weight: 600; }
.bz-liste { position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; min-width: 100%; max-height: 320px; overflow-y: auto; background: var(--card-bg); border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.45); padding: 6px 10px; display: flex; flex-direction: column; gap: 2px; }
.bz-feld label.bz-chip { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; margin: 0; padding: 2px 0; font-weight: normal; text-transform: none; letter-spacing: normal; }
.bz-gesperrt { opacity: .8; }
.bz-quelle, .bz-quelle-vorne { grid-column: 1 / -1; font-size: 13px; padding: 8px 10px; border: 1px solid #e87a1e; border-radius: 6px; }
.bz-folger .bz-wahl, .bz-folger .bz-hinweis, .bz-folger .bz-ablage { display: none !important; }
.bz-ablage { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bz-ablage-info { font-size: 12px; color: var(--text-muted); }
.bz-hinweis { grid-column: 1 / -1; font-size: 11px; color: var(--text-muted); }
/* v28.55 (0a-R1): Ränge unter einem Clan im Box-Rechte-Feld */
.gap-rang-liste { margin: 0 10px 8px 30px; padding: 4px 0 4px 10px; border-left: 2px solid var(--border); display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 12px; }
.gap-rang-hinweis { grid-column: 1 / -1; font-size: 11px; opacity: .75; margin-bottom: 2px; }
.gap-dropdown.gap-gross { position: static !important; max-height: none !important; width: auto; margin-top: 6px; box-shadow: none; }
.gap-rang-row { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 2px 0; cursor: pointer; }
.gap-dropdown {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); margin-top: 4px; max-height: 300px; overflow-y: auto;
}
.gap-controls {
    display: flex; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--border);
}
.gap-ctrl-btn {
    padding: 3px 8px; font-size: 11px; background: rgba(0,0,0,0.2); border: 1px solid var(--border);
    border-radius: 4px; color: var(--text-muted); cursor: pointer;
}
.gap-ctrl-btn:hover { background: var(--cyan); color: #fff; border-color: var(--cyan); }
.gap-group-row {
    display: flex; align-items: center; gap: 8px; padding: 6px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 13px;
}
.gap-group-row:last-child { border-bottom: none; }
.gap-group-row:hover { background: rgba(255,255,255,0.03); }
.gap-admin-locked { opacity: 0.6; }
.gap-lock-hint { font-size: 10px; color: var(--text-muted); margin-left: auto; }

/* ═══════ CONFIRM-MODAL ═══════ */
.cm-overlay{display:none;position:fixed;inset:0;z-index:100001;background:rgba(0,0,0,0.7);justify-content:center;align-items:center}
.cm-box{background:var(--card-bg,#152040);border:1px solid var(--border,#263468);border-radius:12px;width:90%;max-width:420px;box-shadow:0 8px 32px rgba(0,0,0,0.5);animation:cmIn .15s ease;overflow:hidden}
@keyframes cmIn{from{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}
.cm-header{padding:20px 24px 0;font-size:17px;font-weight:600;color:var(--text-heading,#e0e6f2);font-family:var(--font-display,'Rajdhani',sans-serif)}
.cm-body{padding:12px 24px 20px;font-size:14px;color:var(--text,#b8c4d8);line-height:1.6;white-space:pre-line}
.cm-footer{display:flex;justify-content:flex-end;gap:10px;padding:0 24px 20px}
.cm-btn{padding:8px 20px;border:none;border-radius:6px;font-size:14px;font-weight:600;cursor:pointer;transition:opacity .15s}
.cm-btn:hover{opacity:.85}
.cm-btn-ghost{background:transparent;border:1px solid var(--border,#263468);color:var(--text,#b8c4d8)}
.cm-btn-ghost:hover{background:rgba(255,255,255,.05)}
.cm-btn-red{background:var(--red,#c83858);color:#fff}
.cm-btn-cyan{background:var(--cyan,#e87a1e);color:#fff}

/* ═══ Zwei-Faktor Backup-Codes: Drucktitel + Druckansicht (v26.39) ═══ */
.backup-codes-druck-titel,
.backup-codes-druck-hinweis { display: none; }

@media print {
    /* Seit v26.41: Regeln greifen NUR auf der Seite mit dem Backup-Code-Block (body:has(...)).
       v26.39 hatte "body * { visibility:hidden }" fuer ALLE Seiten gesetzt → andere Seiten druckten leer,
       und der ausgeblendete Rest belegte trotzdem Platz → 2 Seiten. Jetzt wird alles, was den Block
       nicht enthaelt, komplett entfernt (display:none) → eine Seite. */
    @page { margin: 15mm; }
    body:has(.backup-codes-druck) { background: #fff !important; min-height: 0 !important; height: auto !important; margin: 0 !important; padding: 0 !important; }
    body:has(.backup-codes-druck) *:not(:has(.backup-codes-druck)):not(.backup-codes-druck):not(.backup-codes-druck *) {
        display: none !important;
    }
    body:has(.backup-codes-druck) *:has(.backup-codes-druck) {
        display: block !important; margin: 0 !important; padding: 0 !important; border: 0 !important;
        box-shadow: none !important; background: none !important; min-height: 0 !important; height: auto !important;
        width: auto !important; max-width: none !important; position: static !important;
    }
    .backup-codes-druck { width: 100%; padding: 0; background: #fff !important; }
    .backup-codes-druck div { background: #fff !important; color: #000 !important; border-color: #000 !important; }
    .backup-codes-druck-titel { display: block !important; font-size: 16px; font-weight: bold; margin-bottom: 16px; color: #000 !important; }
    .backup-codes-druck-hinweis { display: block !important; font-size: 12px; margin-top: 8px; color: #000 !important; }
}

/* v26.72: gesperrte Knoepfe sichtbar grau (vorher sahen sie aus wie aktive, z.B. 'Ich akzeptiere' bei der Registrierung) */
.btn:disabled, .btn[disabled] {
    background: #3a4458 !important;
    border-color: #3a4458 !important;
    color: #8a94a8 !important;
    cursor: not-allowed;
    opacity: .75;
    box-shadow: none !important;
}

/* ═══════ v27.27 (T-194): fremde Inhalte erst nach Klick ═══════ */
.fremd-inhalt { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 100%;
    padding: 10px 12px; margin: 4px 0; border: 1px dashed var(--border-light, #3a4a6b); border-radius: 6px;
    background: var(--card-bg-alt, rgba(255,255,255,.03)); vertical-align: middle; }
.fremd-inhalt .fremd-knopf { cursor: pointer; font: inherit; font-size: 13px; color: var(--text-heading, #fff);
    background: var(--card-bg, #1b2540); border: 1px solid var(--cyan, #e87a1e); border-radius: 4px; padding: 6px 10px; }
.fremd-inhalt .fremd-knopf:hover { background: var(--cyan, #e87a1e); color: #fff; }
.fremd-inhalt .fremd-hinweis { font-size: 11px; color: var(--text-muted, #8890a0); }

/* ═══════ v27.33 (2.23): Schalter „Rahmen“ gilt für jede Box-Art — ohne Rahmen steht die Box frei auf der Seite ═══════ */
.card.ohne-rahmen { background: transparent; border-color: transparent; border-radius: 0; overflow: visible; }
.card.ohne-rahmen > .card-header { border-bottom: none; padding-left: 2px; padding-right: 2px; background: none; }
.card.ohne-rahmen > .card-body { padding-left: 2px; padding-right: 2px; }
/* v28.35 (Stephan 03.11.2026): Seite in voller Breite — Schalter unter Einstellungen → Allgemein (body.breite-voll).
   Seitenleisten behalten ihre Breite, die Mitte wächst; 10 px Rand; höchstens 1920 px, damit Textzeilen lesbar bleiben. */
body.breite-voll .header-top,
body.breite-voll .header-nav-inner,
body.breite-voll .site-body,
body.breite-voll .online-bar-inner { max-width: 1920px; }
body.breite-voll .site-body { padding-left: 10px; padding-right: 10px; }
body.breite-voll .header-top { padding-left: 10px; padding-right: 10px; }
body.breite-voll .header-nav-inner { padding: 0 10px; }

/* ═══════ FORUM: ANTWORT-LEISTE (v28.58, Stephan 09.11.2026 „Nummer 2“, assets/js/antwort-leiste.js) ═══════
   Knopf „Antworten“ unten rechts immer sichtbar; Schreibfläche unten angedockt, Höhe ziehbar, zuklappbar. Unten bekommt die Seite
   so viel Polster, wie die Leiste hoch ist — der letzte Beitrag lässt sich immer über die Leiste schieben. */
body.mit-antwort-leiste { padding-bottom: var(--antwort-leiste-platz, 0px); }
.thema-knoepfe { flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.antwort-fab {
    position: fixed; right: 20px; bottom: calc(20px + var(--antwort-leiste-unten, 0px)); z-index: 8990;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 20px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--cyan); color: #0a0f1a;
    font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .3px;
    box-shadow: 0 6px 22px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
    transition: background .15s, transform .15s;
}
.antwort-fab:hover { background: var(--cyan-dim); transform: translateY(-1px); }
.antwort-fab:focus-visible { outline: 2px solid var(--text-heading); outline-offset: 3px; }
.antwort-fab[hidden] { display: none; }

.antwort-leiste {
    position: fixed; left: 0; right: 0; bottom: var(--antwort-leiste-unten, 0px); z-index: 9000;   /* über Cookie-Hinweis bzw. Handy-Tastatur */
    width: 100%; max-width: 1280px; margin: 0 auto; box-sizing: border-box;
    display: flex; flex-direction: column;
    background: var(--card-bg); color: var(--text);
    border: 1px solid var(--border); border-bottom: 0; border-top: 3px solid var(--cyan);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -10px 34px rgba(0,0,0,.55);
}
body.breite-voll .antwort-leiste { max-width: 1920px; }
.antwort-leiste[hidden] { display: none; }
.antwort-leiste-griff {
    flex: 0 0 auto; height: 14px; margin-top: -2px; cursor: ns-resize; touch-action: none;
    display: flex; align-items: center; justify-content: center;
}
.antwort-leiste-griff span { width: 54px; height: 5px; border-radius: 3px; background: var(--border-light); transition: background .15s; }
.antwort-leiste-griff:hover span, .antwort-leiste-griff:focus-visible span, .antwort-leiste.zieht .antwort-leiste-griff span { background: var(--cyan); }
.antwort-leiste-griff:focus-visible { outline: none; }
.antwort-leiste.zieht { user-select: none; }
.antwort-leiste.zieht iframe { pointer-events: none; }   /* sonst schluckt der Editor die Mausbewegung */
.antwort-leiste-kopf {
    flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
    padding: 2px 10px 8px 14px; border-bottom: 1px solid var(--border);
}
.antwort-leiste-titel {
    flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 10px;
    background: none; border: 0; padding: 4px 0; cursor: pointer; text-align: left; color: var(--text-heading);
    font-family: var(--font-display); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .5px;
}
.antwort-leiste-titel > i { color: var(--cyan); font-size: 13px; }
.antwort-leiste-thema {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: var(--text-muted); font-family: var(--font-body); font-weight: 400; font-size: 12px; text-transform: none; letter-spacing: 0;
}
.antwort-leiste-zustand { flex-shrink: 0; color: var(--cyan); font-family: var(--font-body); font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.antwort-leiste-zustand:empty { display: none; }
.antwort-leiste-steuer { flex: 0 0 auto; display: flex; gap: 6px; }
.antwort-leiste-knopf {
    width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    background: transparent; color: var(--text-muted); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; font-size: 14px;
}
.antwort-leiste-knopf:hover { color: var(--cyan); border-color: var(--cyan); }
.antwort-leiste-knopf .fa-chevron-down { transition: transform .2s; }
.antwort-leiste.ist-zu .antwort-leiste-knopf .fa-chevron-down { transform: rotate(180deg); }
.antwort-leiste-meldung { flex: 0 0 auto; padding: 0 14px; }
.antwort-leiste-meldung:empty { display: none; }
.antwort-leiste-meldung .ss31-meldung { margin: 10px 0 2px; }
.antwort-leiste-form {
    flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 10px;
    padding: 10px 14px 12px; overflow-y: auto;
}
.antwort-leiste-gast { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 0 14px; }
.antwort-leiste-gast > .form-group { flex: 1 1 220px; margin-bottom: 0; }
.antwort-leiste-editor { flex: 1 1 0; min-height: 150px; overflow: hidden; }
.antwort-leiste-editor > textarea { width: 100%; height: 100%; min-height: 140px; resize: none; box-sizing: border-box; }
.antwort-leiste-fuss { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.antwort-leiste-hinweis { color: var(--text-muted); font-size: 12px; }
/* Der Speicher-Wächter (admin-speicherwaechter.js) passt weiter auf (Rückfrage beim Verlassen über einen Link) — seine Hinweisleiste
   braucht es in der Leiste aber nicht: die Fläche selbst ist der Hinweis, ihr Absende-Knopf steht direkt darunter */
.antwort-leiste .sw-ungespeichert { display: none !important; }
/* zugeklappt: nur die schmale Kopfleiste */
.antwort-leiste.ist-zu { height: auto !important; }
.antwort-leiste.ist-zu .antwort-leiste-griff,
.antwort-leiste.ist-zu .antwort-leiste-meldung,
.antwort-leiste.ist-zu .antwort-leiste-form { display: none; }
.antwort-leiste.ist-zu .antwort-leiste-kopf { border-bottom: 0; padding-top: 8px; }

@media (max-width: 600px) {
    .antwort-fab { right: 12px; bottom: calc(12px + var(--antwort-leiste-unten, 0px)); padding: 11px 16px; font-size: 14px; }
    .antwort-leiste { border-radius: 8px 8px 0 0; border-left: 0; border-right: 0; }
    .antwort-leiste-kopf { padding: 2px 8px 6px 10px; }
    .antwort-leiste-thema, .antwort-leiste-hinweis { display: none; }
    .antwort-leiste-form { padding: 8px 8px 10px; }
    .antwort-leiste-griff { height: 20px; }   /* mehr Fläche für den Finger */
    .antwort-leiste-fuss .btn { flex: 1 1 auto; justify-content: center; }
}
