/**
 * Path: wp-content/plugins/fanclub-core/modules/governance/assets/governance.css
 * Abstimmungen, Anträge, Dokumente – komplett neu ab Session #29
 */

/* ══════════════════════════════════════════════════════════
   1. RESET & WRAP
   ══════════════════════════════════════════════════════════ */
.ab-wrap * { box-sizing: border-box; margin: 0; padding: 0; }
.ab-wrap {
    background: transparent;
    padding: clamp(24px, 5vw, 80px);
    color: #fff;
    min-height: 60vh;
    max-width: 1440px;
    margin-inline: auto;
    position: relative;
}

/* ══════════════════════════════════════════════════════════
   2. SECTION LABEL
   ══════════════════════════════════════════════════════════ */
.ab-label {
    font-size: var(--fc-size-base);
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #FFD900;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ab-label .ab-cnt {
    background: #FFD900;
    color: #000;
    font-size: var(--fc-size-base);
    font-weight: 900;
    padding: 2px 10px;
    border-radius: 999px;
}

/* Klappbarer Bereich (Abgeschlossene Abstimmungen) */
.ab-label--toggle { background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; }
.ab-label--toggle:hover { color: #fff; }
.ab-label--toggle .ab-label-chev { flex-shrink: 0; transition: transform 0.25s ease; stroke: currentColor; }
.ab-label--toggle.open .ab-label-chev { transform: rotate(180deg); }

/* ══════════════════════════════════════════════════════════
   3. GRID
   ══════════════════════════════════════════════════════════ */
.ab-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}
@media (max-width: 900px) { .ab-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ab-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════
   4. KARTE
   ══════════════════════════════════════════════════════════ */
.ab-card {
    border-radius: 16px;
    border: 1px solid #1e1e2e;
    background: #232323;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
.ab-card::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 4px;
    border-radius: 0 0 50% 50%;
    background: linear-gradient(90deg, transparent, #FFD900 50%, transparent);
    opacity: .9;
    filter: blur(1px);
}
.ab-card.voted::before   { background: linear-gradient(90deg, transparent, #22C55E 50%, transparent); opacity: .9; filter: blur(1px); }
.ab-card.closed::before  { background: linear-gradient(90deg, transparent, #EF4444 50%, transparent); opacity: .9; filter: blur(1px); }
.ab-card.antrag::before  { background: linear-gradient(90deg, transparent, #3B82F6 50%, transparent); opacity: .9; filter: blur(1px); }
.ab-card.approved::before{ background: linear-gradient(90deg, transparent, #22C55E 50%, transparent); opacity: .9; filter: blur(1px); }
.ab-card.rejected::before{ background: linear-gradient(90deg, transparent, #EF4444 50%, transparent); opacity: .9; filter: blur(1px); }

/* ── Karten-Kopf ── */
.ab-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px 8px;
    gap: 8px;
}

/* ── Split-Pill ── */
.ab-pill {
    display: inline-flex;
    align-items: stretch;
    border-radius: 999px;
    overflow: hidden;
    font-size: var(--fc-size-base);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1;
    flex-shrink: 0;
}
.ab-pill-l { display: flex; align-items: center; gap: 4px; padding: 5px 12px; background: #FFD900; color: #000; }
.ab-pill-l.green  { background: #22C55E; color: #fff; }
.ab-pill-l.grey   { background: #2a2a3a; color: #888; }
.ab-pill-l.blue   { background: #3B82F6; color: #fff; }
.ab-pill-l.red    { background: #EF4444; color: #fff; }
.ab-pill-l.orange { background: #F59E0B; color: #000; }
.ab-pill-r { display: flex; align-items: center; padding: 5px 12px; background: #1a1a26; color: #fff; font-weight: 700; }

/* ── Timer / Datum ── */
.ab-timer { font-size: var(--fc-size-base); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #F59E0B; white-space: nowrap; }
.ab-date  { font-size: var(--fc-size-base); color: #ffffff; font-weight: 600; letter-spacing: .06em; }

/* ── Karten-Body ── */
.ab-card-body {
    padding: 0 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.ab-card-title { font-size: var(--fc-size-lg); font-weight: 900; font-style: italic; text-transform: uppercase; color: #fff; line-height: 1.2; }
.ab-card-desc  { font-size: var(--fc-size-base); color: #ffffff; line-height: 1.5; }

/* ── Meta-Badges ── */
.ab-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.ab-badge { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fc-size-base); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; border: none; cursor: pointer; text-decoration: none; line-height: 1; }
.ab-badge.yellow { background: #FFD900; color: #000; }
.ab-badge.yellow:hover { background: #e6c300; }
.ab-badge.ghost  { background: rgba(255,255,255,.06); color: #fff; border: 1px solid #2a2a3a; }
.ab-badge.ghost:hover { border-color: #FFD900; color: #FFD900; }
.ab-badge--edited { background: rgba(255,217,0,.12); color: #FFD900; border: 1px solid rgba(255,217,0,.35); cursor: default; text-transform: none; letter-spacing: .02em; }

/* ── Änderungsprotokoll (Transparenz bei bearbeiteten Abstimmungen) ── */
.ab-editlog { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.ab-editlog-item { border-left: 3px solid #FFD900; padding: 2px 0 2px 12px; }
.ab-editlog-meta { font-size: var(--fc-size-sm); color: #A5A5A5; margin-bottom: 2px; }
.ab-editlog-change { font-size: var(--fc-size-base); color: #fff; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.ab-editlog-old { color: #A5A5A5; text-decoration: line-through; }
.ab-editlog-arrow { color: #FFD900; }
.ab-editlog-new { color: #fff; font-weight: 700; }

/* ── Ergebnis-Box ── */
.ab-result-box { background: #0a0a10; border: 1px solid #1a1a26; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; }
.ab-result-notice { font-size: var(--fc-size-base); color: #22C55E; font-weight: 700; }
.ab-result-row { display: flex; align-items: center; gap: 8px; }
.ab-result-label { font-size: var(--fc-size-base); font-weight: 600; color: #fff; flex: 0 0 auto; min-width: 36px; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-result-bar-wrap { flex: 1; height: 4px; background: rgba(255,255,255,.12); border-radius: 999px; overflow: hidden; }
.ab-result-bar { height: 100%; border-radius: 999px; background: #FFD900; transition: width .4s ease; }
.ab-result-bar.green { background: #22C55E; }
.ab-result-pct { font-size: var(--fc-size-base); font-weight: 700; color: #ffffff; white-space: nowrap; text-align: right; min-width: 40px; }
.ab-result-pct.green { color: #22C55E; }
.ab-result-total { font-size: var(--fc-size-base); color: #ffffff; text-align: right; margin-top: 2px; }
.ab-winner { font-size: var(--fc-size-base); font-weight: 700; color: #FFD900; }

/* ── Info-Box (noch nicht gestartet) ── */
.ab-info-box { background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.2); border-radius: 10px; padding: 10px 12px; font-size: var(--fc-size-base); color: #F59E0B; }

/* ── Mehrheits-Anforderung (aktive Abstimmungen) ── */
.ab-majority-hint { font-size: var(--fc-size-base); color: #A5A5A5; padding: 6px 0; letter-spacing: .02em; }
.ab-majority-hint strong { color: #FFD900; font-weight: 700; }
.ab-majority-auto { color: #A5A5A5; }

/* ── Ergebnis-Banner (geschlossene Abstimmungen) ── */
.ab-result-banner { font-size: var(--fc-size-base); font-weight: 600; padding: 10px 14px; border-radius: 10px; margin-top: 4px; }
.ab-result-banner strong { font-weight: 900; letter-spacing: .04em; }
.ab-result-banner--passed   { background: rgba(34,197,94,.10); border: 1px solid rgba(34,197,94,.30); color: #22C55E; }
.ab-result-banner--rejected { background: rgba(239,68,68,.10); border: 1px solid rgba(239,68,68,.30); color: #EF4444; }
.ab-result-banner--empty    { background: rgba(255,255,255,.04); border: 1px solid #1e1e2e; color: #A5A5A5; text-align: center; }

/* ── Abstimmungs-Optionen ── */
.ab-options { display: flex; flex-direction: column; gap: 6px; }
.ab-option { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid #1e1e2e; border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; user-select: none; }
.ab-option:hover { border-color: #FFD900; background: rgba(255,217,0,.06); }
.ab-option input[type="radio"] { cursor: pointer; accent-color: #FFD900; flex-shrink: 0; }
.ab-option:has(input:checked) { border-color: #FFD900; background: rgba(255,217,0,.1); }
.ab-option-label { font-size: var(--fc-size-base); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; }

/* ── Buttons ── */
.ab-btn {
    width: 100%;
    margin-top: 4px;
    padding: 10px 16px;
    background: #FFD900;
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: var(--fc-size-base);
    font-weight: 900;
    font-style: italic;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s;
}
.ab-btn:hover { background: #e6c300; }
.ab-btn.inline { width: auto; min-width: 180px; display: inline-block; }

.ab-hint { font-size: var(--fc-size-base); color: #ffffff; text-align: center; margin-top: 6px; }

/* ── Divider ── */
.ab-divider { border: none; border-top: 1px solid #1a1a26; margin: 8px 0 28px; }

/* ── Empty State ── */
.ab-empty { text-align: center; padding: 3rem 1rem; background: rgba(255,255,255,.04); border-radius: 10px; color: #ffffff; }
.ab-empty-icon { font-size: var(--fc-size-2xl); display: block; margin-bottom: .5rem; }

/* ══════════════════════════════════════════════════════════
   5. FORMULAR
   ══════════════════════════════════════════════════════════ */
.ab-form-wrap {
    background: #232323;
    border: 1px solid #1e1e2e;
    border-radius: 20px;
    padding: 24px;
    max-width: 1440px;
    margin-inline: auto;
    margin-bottom: 36px;

}
.ab-form-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.ab-tab { padding: 7px 16px; border-radius: 8px; font-size: var(--fc-size-base); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; border: 1px solid #1e1e2e; color: #ffffff; background: transparent; font-family: var(--fc-font); transition: all .15s; }
.ab-tab.active, .ab-tab.fc-type-btn--active { background: #FFD900; color: #000; border-color: #FFD900; }
.ab-form-hint { background: rgba(245,158,11,.08); border-left: 2px solid #F59E0B; border-radius: 6px; padding: 8px 12px; font-size: var(--fc-size-base); color: #ffffff; margin-bottom: 14px; line-height: 1.5; }
.ab-form-hint strong { color: #F59E0B; }
.ab-form-gap { margin-bottom: 12px; }
.ab-form-label { font-size: var(--fc-size-base); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #FFD900; margin-bottom: 5px; display: block; }
.ab-form-label span { color: #ffffff; font-weight: 400; text-transform: none; letter-spacing: 0; }
.ab-form-select {
    width: 100%;
    background: #080808;
    border: 1px solid #1e1e2e;
    border-radius: 8px;
    padding: 9px 12px;
    color: #ffffff;
    font-size: var(--fc-size-base);
}
.ab-form-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid #1e1e2e;
    border-radius: 8px;
    padding: 9px 12px;
    color: #1a1a1a;
    font-size: var(--fc-size-base);
}
.ab-form-input::placeholder { color: #aaa; }
.ab-form-hint-sm { font-size: var(--fc-size-base); color: #ffffff; margin-top: 4px; }
.ab-file-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid #1e1e2e; border-radius: 8px; padding: 7px 12px; font-size: var(--fc-size-base); font-weight: 700; color: #fff; cursor: pointer; font-family: var(--fc-font); }

/* Quill override: Toolbar dunkel, Editor-Bereich weiß */
.ab-form-wrap .ql-toolbar, .ab-form-wrap .fc-quill-toolbar { background: #111 !important; border-color: #1e1e2e !important; }
.ab-form-wrap .ql-toolbar button, .ab-form-wrap .ql-toolbar .ql-picker { color: #FFD900 !important; }
.ab-form-wrap .ql-toolbar button svg, .ab-form-wrap .ql-toolbar .ql-stroke { stroke: #FFD900 !important; }
.ab-form-wrap .ql-toolbar .ql-fill { fill: #FFD900 !important; }
.ab-form-wrap .ql-toolbar button:hover { color: #ffffff !important; }
.ab-form-wrap .ql-toolbar button:hover svg, .ab-form-wrap .ql-toolbar button:hover .ql-stroke { stroke: #ffffff !important; }
.ab-form-wrap .ql-editor, .ab-form-wrap .fc-quill-editor { background: #ffffff !important; color: #1a1a1a !important; border-color: #ddd !important; min-height: 120px; resize: vertical; font-size: var(--fc-size-lg); line-height: var(--fc-leading-normal); }
.ab-form-wrap .ql-editor p,
.ab-form-wrap .ql-editor h1,
.ab-form-wrap .ql-editor h2,
.ab-form-wrap .ql-editor h3,
.ab-form-wrap .ql-editor li,
.ab-form-wrap .ql-editor blockquote,
.ab-form-wrap .ql-editor strong,
.ab-form-wrap .ql-editor em,
.ab-form-wrap .ql-editor u { color: #1a1a1a !important; }
.ab-form-wrap .ql-editor.ql-blank::before { color: #aaa !important; font-size: var(--fc-size-base); }
.ab-form-wrap .fc-quill-editor { border-radius: 0 0 8px 8px !important; }

/* Bestehende fc-* Klassen im Formular auf ab-Style mappen */
.ab-form-wrap .fc-type-toggle { display: flex; gap: 8px; margin-bottom: 16px; }
.ab-form-wrap .fc-type-btn { padding: 7px 16px; border-radius: 8px; font-size: var(--fc-size-base); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; border: 1px solid #1e1e2e; color: #ffffff; background: transparent; font-family: var(--fc-font); transition: all .15s; }
.ab-form-wrap .fc-type-btn--active { background: #FFD900 !important; color: #000 !important; border-color: #FFD900 !important; }
.ab-form-wrap .fc-type-hint { background: rgba(245,158,11,.08); border-left: 2px solid #F59E0B; border-radius: 6px; padding: 8px 12px; font-size: var(--fc-size-base); color: #ffffff; margin-bottom: 14px; line-height: 1.5; }
.ab-form-wrap .fc-form-group { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.ab-form-wrap .fc-form-group label { font-size: var(--fc-size-base); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #FFD900; }
.ab-form-wrap .fc-form-group label .fc-label-optional { color: #ffffff; font-weight: 400; text-transform: none; letter-spacing: 0; }
.ab-form-wrap .fc-input { background: #080808; border: 1px solid #1e1e2e; border-radius: 8px; padding: 9px 12px; color: #ffffff; font-size: var(--fc-size-base); font-family: var(--fc-font); width: 100%; }
.ab-form-wrap .fc-input[type="text"] { background: #ffffff; color: #1a1a1a; border-color: #ddd; font-size: var(--fc-size-base); }
.ab-form-wrap .fc-input[type="text"]::placeholder { color: #aaa; font-size: var(--fc-size-base); }
.ab-form-wrap .fc-file-pick-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid #1e1e2e; border-radius: 8px; padding: 7px 12px; font-size: var(--fc-size-base); font-weight: 700; color: #fff; cursor: pointer; font-family: var(--fc-font); }
.ab-form-wrap .fc-file-pick-input { display: none; }
.ab-form-wrap .fc-file-list { background: #0a0a10; border: 1px solid #1a1a26; border-radius: 8px; padding: 8px 12px; margin-top: 8px; }
.ab-form-wrap .fc-file-list__header { font-size: var(--fc-size-base); color: #ffffff; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.ab-form-wrap .fc-form-actions { margin-top: 8px; }
.ab-form-wrap .fc-btn--primary, .ab-form-wrap #proposal-submit-btn { background: #FFD900; color: #000; border: none; border-radius: 8px; padding: 10px 24px; font-size: var(--fc-size-base); font-weight: 900; font-style: italic; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; font-family: var(--fc-font); }
.ab-form-wrap .fc-quill-hint { font-size: var(--fc-size-base); color: #ffffff; margin-top: 4px; }
.ab-form-wrap .fc-message { margin-top: 12px; padding: 10px 14px; border-radius: 8px; font-size: var(--fc-size-base); }
.ab-form-wrap .fc-message.success { background: rgba(34,197,94,.1); border-left: 3px solid #22C55E; color: #22C55E; }
.ab-form-wrap .fc-message.error   { background: rgba(239,68,68,.1);  border-left: 3px solid #EF4444; color: #EF4444; }

/* ══════════════════════════════════════════════════════════
   6. ANTRAGS-KARTEN
   ══════════════════════════════════════════════════════════ */
.ab-antrag-meta { font-size: var(--fc-size-base); color: #ffffff; font-weight: 600; letter-spacing: .06em; }
.ab-status-badge { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fc-size-base); font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.ab-status-badge.pending  { background: rgba(59,130,246,.15); color: #3B82F6; border: 1px solid rgba(59,130,246,.25); }
.ab-status-badge.ok       { background: rgba(34,197,94,.15);  color: #22C55E; border: 1px solid rgba(34,197,94,.25); }
.ab-status-badge.rejected { background: rgba(239,68,68,.15);  color: #EF4444; border: 1px solid rgba(239,68,68,.25); }
.ab-antrag-body { padding: 8px 14px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.ab-vote-tag { background: #FFD900; color: #000; font-size: var(--fc-size-base); font-weight: 900; padding: 4px 10px; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; }
.ab-antrag-title   { font-size: var(--fc-size-lg); font-weight: 900; font-style: italic; text-transform: uppercase; color: #fff; line-height: 1.2; }
.ab-antrag-content { font-size: var(--fc-size-base); color: #ffffff; line-height: 1.5; }
.ab-antrag-attach  { margin-top: 4px; }
.ab-antrag-attach-label { font-size: var(--fc-size-base); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ffffff; margin-bottom: 5px; }
.ab-antrag-file { background: #0a0a10; border: 1px solid #1a1a26; border-radius: 6px; padding: 5px 10px; font-size: var(--fc-size-base); color: #ffffff; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.ab-antrag-file:hover { border-color: #FFD900; color: #FFD900; }
.ab-admin-note { background: rgba(255,217,0,.08); border-left: 2px solid #FFD900; border-radius: 6px; padding: 8px 12px; font-size: var(--fc-size-base); color: #FFD900; line-height: 1.5; }

/* ══════════════════════════════════════════════════════════
   8. TOAST
   ══════════════════════════════════════════════════════════ */
.fc-message { padding: 10px 14px; border-radius: 8px; font-size: var(--fc-size-base); }
.fc-message.success { background: rgba(34,197,94,.1); border-left: 3px solid #22C55E; color: #22C55E; }
.fc-message.error   { background: rgba(239,68,68,.1);  border-left: 3px solid #EF4444; color: #EF4444; }
/* ══════════════════════════════════════════════════════════
   AKKORDION & 1-SPALTEN-LAYOUT (ab Session #29)
   ══════════════════════════════════════════════════════════ */

/* Vollbreite Karte */
.ab-card--full { border-radius: 16px 16px 0 0; }

/* Vote-Row: Karte + Akkordion als Einheit */
.ab-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 36px; }
.ab-vote-row { margin-bottom: 24px; }

/* ── Akkordion ─────────────────────────────────────────────────────────────── */
.ab-accordion {
    border: 1px solid #1e1e2e;
    border-top: none;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.ab-acc-item { border-top: 1px solid #1a1a26; }
.ab-acc-item:first-child { border-top: none; }

.ab-acc-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #232323;
    border: none;
    cursor: pointer;
    font-family: var(--fc-font);
    font-size: var(--fc-size-base);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    text-align: left;
    transition: background 0.15s, color 0.15s;
    gap: 12px;
}
.ab-acc-trigger:hover { background: #2e2e2e; color: #fff; }
.ab-acc-trigger.open  { background: #2e2e2e; color: #FFD900; }
.ab-acc-trigger.open .ab-acc-icon { transform: rotate(180deg); }

/* Sektionen dezent voneinander abheben — abgestufte Grau-Töne (hell → dunkel) */
.ab-acc-item:nth-child(1) .ab-acc-trigger, .ab-acc-item:nth-child(1) .ab-acc-body { background: #2a2a2a; }
.ab-acc-item:nth-child(2) .ab-acc-trigger, .ab-acc-item:nth-child(2) .ab-acc-body { background: #232323; }
.ab-acc-item:nth-child(3) .ab-acc-trigger, .ab-acc-item:nth-child(3) .ab-acc-body { background: #1c1c1c; }
.ab-acc-item .ab-acc-trigger:hover { background: #2e2e2e; }
.ab-acc-item .ab-acc-trigger.open  { background: #2e2e2e; }

.ab-acc-icon { flex-shrink: 0; transition: transform 0.25s ease; stroke: currentColor; }

.ab-acc-count {
    background: #FFD900;
    color: #000;
    font-size: var(--fc-size-base);
    font-weight: 900;
    padding: 1px 7px;
    border-radius: 999px;
    margin-left: 6px;
    vertical-align: middle;
}

.ab-acc-body { background: #232323; }

.ab-acc-inner {
    padding: 20px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ab-acc-vote-ref {
    font-size: var(--fc-size-base);
    color: #ffffff;
    letter-spacing: 0.06em;
}
.ab-acc-vote-ref strong { color: #FFD900; }

.ab-acc-section-label {
    font-size: var(--fc-size-base);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    padding-bottom: 8px;
    border-bottom: 1px solid #1a1a26;
}

.ab-acc-empty {
    font-size: var(--fc-size-base);
    color: #A5A5A5;
    text-align: center;
    padding: 16px 0;
}

/* ── Inline-Formular im Akkordion ─────────────────────────────────────────── */
.ab-inline-type-toggle {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}
.ab-inline-type-btn {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: var(--fc-size-base);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid #1e1e2e;
    color: #ffffff;
    background: transparent;
    font-family: var(--fc-font);
    transition: all 0.15s;
}
.ab-inline-type-btn.active { background: #FFD900; color: #000; border-color: #FFD900; }

.ab-inline-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.ab-inline-label {
    font-size: var(--fc-size-base);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FFD900;
}
.ab-inline-input {
    background: linear-gradient(160deg, #13131a, #0d0d12);
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: var(--fc-size-base);
    font-family: var(--fc-font);
    width: 100%;
}
.ab-inline-input::placeholder { color: #aaa; }
.ab-inline-textarea {
    background: linear-gradient(160deg, #13131a, #0d0d12);
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: var(--fc-size-base);
    font-family: var(--fc-font);
    width: 100%;
    resize: vertical;
    min-height: 90px;
}
.ab-inline-textarea::placeholder { color: #aaa; }

.ab-btn--sm {
    width: auto;
    padding: 8px 20px;
    font-size: var(--fc-size-base);
    margin-top: 4px;
}

.ab-inline-msg {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: var(--fc-size-base);
    font-weight: 600;
}
.ab-inline-msg.success { background: rgba(34,197,94,.1); border-left: 3px solid #22C55E; color: #22C55E; }
.ab-inline-msg.error   { background: rgba(239,68,68,.1);  border-left: 3px solid #EF4444; color: #EF4444; }

/* ── Dokument-Liste im Akkordion ──────────────────────────────────────────── */
.ab-doc-list { display: flex; flex-direction: column; gap: 6px; }
.ab-doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #0a0a0a;
    border: 1px solid #1e1e2e;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-size: var(--fc-size-base);
    font-weight: 600;
    transition: border-color 0.15s;
}
.ab-doc-item:hover { border-color: #FFD900; }
.ab-doc-size { color: #A5A5A5; font-size: var(--fc-size-base); }
.ab-doc-name { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-doc-meta { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ab-doc-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    background: #232323; border: 1px solid #2a2a2a; border-radius: 6px;
    color: #fff; font-size: var(--fc-size-base); line-height: 1;
    cursor: pointer; text-decoration: none;
    transition: border-color .15s, color .15s;
}
.ab-doc-btn:hover { border-color: #FFD900; color: #FFD900; }

/* ── Dokument-Viewer (Popup zum Lesen) — Abstimmungen + Dokumentenbereich ── */
#ab-doc-viewer, #dc-doc-viewer { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 9999; display: flex; }
.ab-doc-viewer-box { background: #0d0d0d; width: 100%; height: 100%; display: flex; flex-direction: column; }
.ab-doc-viewer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #2a2a2a; }
#ab-doc-viewer-title, #dc-doc-viewer-title { font-size: var(--fc-size-base); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #FFD900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-doc-viewer-actions { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
#ab-doc-viewer-close, #dc-doc-viewer-close { background: transparent; border: none; color: #fff; font-size: var(--fc-size-xl); line-height: 1; cursor: pointer; padding: 0 4px; }
#ab-doc-viewer-close:hover, #dc-doc-viewer-close:hover { color: #FFD900; }
#ab-doc-viewer-frame, #dc-doc-viewer-frame { flex: 1; width: 100%; border: none; background: #fff; }

/* ── Antrags-Liste im Akkordion ───────────────────────────────────────────── */
.ab-prop-list { display: flex; flex-direction: column; gap: 8px; }
.ab-prop-item {
    background: #0a0a0a;
    border: 1px solid #1e1e2e;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.ab-prop-item-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.ab-prop-item-name  { font-size: var(--fc-size-base); font-weight: 700; color: #fff; }
.ab-prop-item-date  { font-size: var(--fc-size-base); color: #ffffff; margin-left: auto; }
.ab-prop-item-status{ font-size: var(--fc-size-base); font-weight: 700; }
.ab-prop-item-title { font-size: var(--fc-size-lg); font-weight: 900; font-style: italic; text-transform: uppercase; color: #fff; }
.ab-prop-item-content { font-size: var(--fc-size-base); color: #ffffff; line-height: 1.5; }

/* ── Kontur auf alle Innen-Boxen ─────────────────────────────────────────── */
.ab-result-box,
.ab-info-box,
.ab-form-wrap,
.ab-prop-item,
.ab-doc-item,
.ab-acc-trigger,
.ab-inline-input,
.ab-inline-textarea {
    border: 1px solid #1e1e2e;
}

.ab-result-box,
.ab-info-box,
.ab-prop-item,
.ab-doc-item {
    position: relative;
    overflow: hidden;
}
.ab-result-box::before,
.ab-info-box::before,
.ab-prop-item::before,
.ab-doc-item::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 3px;
    border-radius: 0 0 50% 50%;
    background: linear-gradient(90deg, transparent, #FFD900 50%, transparent);
    opacity: .7;
    filter: blur(1px);
    pointer-events: none;
}

.ab-form-wrap {
    position: relative;
    overflow: hidden;
}
.ab-form-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 4px;
    border-radius: 0 0 50% 50%;
    background: linear-gradient(90deg, transparent, #FFD900 50%, transparent);
    opacity: .9;
    filter: blur(1px);
    pointer-events: none;
    z-index: 1;
}

.ab-wrap > * {
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════════════════════════════════════════
   Dokumentenbereich (dc-) — Bereiche/Unterbereiche als Akkordion
   ══════════════════════════════════════════════════════════════════════════ */

.dc-areas { display: flex; flex-direction: column; gap: 12px; }

.dc-area { background: #0d0d0d; border: 1px solid #2a2a2a; border-radius: 12px; overflow: hidden; }

.dc-area-trigger {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    width: 100%; padding: 16px 18px;
    background: #161616; border: none; cursor: pointer;
    color: #fff; text-align: left;
    font-size: var(--fc-size-md, 1rem); font-weight: 800;
    letter-spacing: .04em; text-transform: uppercase;
    transition: background .15s;
}
.dc-area-trigger:hover { background: #1c1c1c; }
.dc-area-trigger.open { background: #1c1c1c; }
.dc-area-trigger__label { display: inline-flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.dc-area-trigger__icon { font-size: 1.25em; }

.dc-area-chevron { flex-shrink: 0; color: #A5A5A5; transition: transform .2s; }
.dc-area-trigger.open > .dc-area-chevron,
.dc-sub-trigger.open > .dc-area-chevron { transform: rotate(180deg); }

.dc-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 24px; height: 20px; padding: 0 7px;
    background: #232323; border: 1px solid #2a2a2a; border-radius: 99px;
    color: #FFD900; font-size: var(--fc-size-xs, .75rem); font-weight: 700;
}

.dc-tag {
    display: inline-flex; align-items: center;
    padding: 1px 8px; border-radius: 99px;
    font-size: var(--fc-size-xs, .7rem); font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
}
.dc-tag--new    { background: #FFD900; color: #000; }
.dc-tag--pin    { background: transparent; padding: 0; font-size: .85em; }
.dc-tag--public { background: #14331c; color: #4ade80; border: 1px solid #1e4d2a; }
.dc-tag--board  { background: #331414; color: #f87171; border: 1px solid #4d1e1e; }

.dc-area-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 14px; }

/* Unterbereiche */
.dc-sub { border-left: 2px solid #2a2a2a; padding-left: 14px; }
.dc-sub-trigger {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; border: none; cursor: pointer; padding: 4px 0;
    color: #fff; font-size: var(--fc-size-base, .9rem); font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
}
.dc-sub-trigger:hover { color: #FFD900; }
.dc-sub-body { padding: 8px 0 4px; }

/* Dokument-Zeilen (gleiche Optik wie bei den Abstimmungen) */
.dc-doc-list { display: flex; flex-direction: column; gap: 6px; }
.dc-doc {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px;
    background: #0a0a0a; border: 1px solid #1e1e2e; border-radius: 8px;
    transition: border-color .15s;
}
.dc-doc:hover { border-color: #FFD900; }
.dc-doc__icon { font-size: 1.2rem; flex-shrink: 0; }
.dc-doc__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.dc-doc__title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: #fff; font-size: var(--fc-size-base); font-weight: 600; }
.dc-doc__desc { color: #A5A5A5; font-size: var(--fc-size-sm, .8rem); }
.dc-doc__meta { color: #595959; font-size: var(--fc-size-xs, .75rem); }
.dc-doc__actions { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }

.dc-empty { color: #595959; font-size: var(--fc-size-sm, .85rem); font-style: italic; margin: 0; }

/* Responsiv: Tablet + Mobile */
@media (max-width: 767px) {
    .dc-area-trigger { padding: 14px; }
    .dc-area-body { padding: 12px 14px 14px; }
    .dc-doc { flex-wrap: wrap; }
    .dc-doc__main { flex-basis: calc(100% - 34px); }
    .dc-doc__actions { flex-basis: 100%; justify-content: flex-end; }
    .dc-doc__actions .ab-doc-btn { width: 44px; height: 44px; }
    .dc-sub { padding-left: 10px; }
}

/* ℹ️-Icon mit Hover-Tooltip: erklärt was in den Bereich gehört */
.dc-info {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; flex-shrink: 0;
    border: 1.5px solid #595959; border-radius: 50%;
    color: #A5A5A5; font-size: .7rem; font-weight: 700; font-style: italic;
    font-family: Georgia, serif; cursor: help;
    text-transform: none; letter-spacing: 0;
}
.dc-info:hover, .dc-info:focus, .dc-info.show { border-color: #FFD900; color: #FFD900; }
.dc-info::after {
    content: attr(data-tip);
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
    width: max-content; max-width: min(320px, 72vw);
    background: #232323; color: #fff; border: 1px solid #2a2a2a;
    font-size: var(--fc-size-sm, .8rem); font-weight: 400; font-style: normal;
    font-family: inherit; line-height: 1.5; text-align: left;
    text-transform: none; letter-spacing: 0;
    padding: 10px 14px; border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,.45);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .15s;
    z-index: 60;
}
.dc-info::before {
    content: '';
    position: absolute; top: calc(100% + 5px); left: 50%; transform: translateX(-50%);
    border: 5px solid transparent; border-bottom-color: #2a2a2a;
    opacity: 0; visibility: hidden; transition: opacity .15s;
    z-index: 60;
}
.dc-info:hover::after, .dc-info:focus::after, .dc-info.show::after,
.dc-info:hover::before, .dc-info:focus::before, .dc-info.show::before { opacity: 1; visibility: visible; }

/* Mobile: Tooltip am linken Rand ausrichten, damit nichts aus dem Viewport ragt */
@media (max-width: 767px) {
    .dc-info::after { left: auto; right: -40px; transform: none; }
}
