* {
    box-sizing: border-box;
}

:root {
    --bg: #0a0f1c;
    --bg-soft: #101827;
    --sidebar: #0b1220;
    --card: #141f31;
    --card-2: #18263b;
    --border: #2a3a52;
    --text: #e5edf7;
    --muted: #94a3b8;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --danger-hover: #b91c1c;
    --shadow: 0 16px 40px rgba(0,0,0,.28);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(37,99,235,.10), transparent 28%),
        var(--bg);
    color: var(--text);
}

/* Layout */

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 270px;
    background: linear-gradient(180deg, #0b1220, #0d1525);
    border-right: 1px solid var(--border);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    box-shadow: 8px 0 30px rgba(0,0,0,.14);
}

.brand {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 28px;
    padding: 0 10px;
    letter-spacing: .3px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.sidebar a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 11px;
    transition: .18s ease;
}

.sidebar a:hover {
    background: #1b2a41;
    color: #fff;
    transform: translateX(2px);
}

.sidebar-user {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding: 18px 10px 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    color: var(--muted);
}

.content {
    flex: 1;
    padding: 36px;
    max-width: 1600px;
    width: 100%;
}

/* Überschriften */

h1 {
    margin-top: 0;
    font-size: 34px;
    margin-bottom: 28px;
}

h2 {
    margin-top: 34px;
    margin-bottom: 16px;
}

h3,
h4 {
    color: #f8fafc;
}

p {
    color: #cbd5e1;
    line-height: 1.55;
}

/* Grid / Cards */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: linear-gradient(180deg, var(--card), var(--card-2));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

/* Buttons */

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 10px 15px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: .18s ease;
}

.button:hover,
button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.button.secondary {
    background: #374151;
}

.button.secondary:hover {
    background: #4b5563;
}

.button.danger,
button.danger {
    background: var(--danger);
}

.button.danger:hover,
button.danger:hover {
    background: var(--danger-hover);
}

button:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

/* Formulare */

label {
    display: block;
    margin-top: 8px;
    margin-bottom: 5px;
    font-weight: 600;
    color: #dbeafe;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 13px;
    border-radius: 10px;
    border: 1px solid #3a4a62;
    background: #0d1627;
    color: #fff;
    margin-top: 5px;
    margin-bottom: 14px;
    outline: none;
    transition: .18s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,.16);
}

textarea {
    min-height: 125px;
    resize: vertical;
}

select {
    cursor: pointer;
}

/* Tabellen */

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table th {
    background: #1b2940;
    color: #dbeafe;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.table th,
.table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.table tr:last-child td {
    border-bottom: 0;
}

.table tbody tr:hover td {
    background: rgba(255,255,255,.025);
}

/* Badges */

.badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: #334155;
    font-size: 12px;
    font-weight: 700;
}

.badge.success {
    background: rgba(22,163,74,.18);
    color: #86efac;
}

.badge.warning {
    background: rgba(217,119,6,.18);
    color: #fcd34d;
}

.badge.danger {
    background: rgba(220,38,38,.18);
    color: #fca5a5;
}

.badge.info {
    background: rgba(59,130,246,.18);
    color: #93c5fd;
}

/* Meldungen */

.alert {
    padding: 13px 15px;
    border-radius: 11px;
    background: #183152;
    border: 1px solid #2d5a8b;
    margin-bottom: 18px;
}

/* Login */

.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top, rgba(59,130,246,.16), transparent 35%),
        #0a0f1c;
    padding: 20px;
}

.login-box {
    width: min(440px, 94vw);
    background: linear-gradient(180deg, #152136, #101827);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 25px 70px rgba(0,0,0,.38);
}

.login-box h1 {
    margin-bottom: 8px;
}

.login-box p {
    margin-top: 0;
    margin-bottom: 22px;
}

/* Formulare nebeneinander */

form[style*="display:flex"] {
    align-items: center;
    flex-wrap: wrap;
}

form[style*="display:flex"] select {
    width: auto;
    min-width: 170px;
    margin: 0;
}

form[style*="display:flex"] input {
    width: auto;
    margin: 0;
}

/* Admin Aktionen */

.user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.user-actions form {
    margin: 0;
}

/* Trennlinien */

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 22px 0;
}

/* Scrollbar */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #0b1220;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Responsive */

@media (max-width: 1050px) {
    .content {
        padding: 26px;
    }

    .table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 800px) {
    .sidebar {
        width: 220px;
    }

    .content {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .layout {
        display: block;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .sidebar nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .sidebar-user {
        margin-top: 16px;
    }

    .content {
        padding: 16px;
    }

    h1 {
        font-size: 28px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .table {
        font-size: 13px;
    }
}
/* =========================
   Adminbereich
========================= */

.admin-section-title {
    margin-top: 34px;
    margin-bottom: 16px;
    padding-left: 14px;
    border-left: 4px solid var(--primary);
    font-size: 22px;
    font-weight: 800;
    color: #f8fafc;
}

.user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 220px;
}

.user-actions .button,
.user-actions button {
    min-width: 100px;
}

.table td .button,
.table td button {
    padding: 8px 11px;
    font-size: 13px;
}

.table td form {
    margin: 0;
}

.card form:last-child {
    margin-bottom: 0;
}
/* Benutzeraktionen */

.btn-warning {
    background: #d97706 !important;
}

.btn-warning:hover {
    background: #b45309 !important;
}

.btn-success {
    background: #16a34a !important;
}

.btn-success:hover {
    background: #15803d !important;
}

.btn-password {
    background: #ca8a04 !important;
}

.btn-password:hover {
    background: #a16207 !important;
}

.btn-danger {
    background: #dc2626 !important;
}

.btn-danger:hover {
    background: #b91c1c !important;
}
/* =========================
   Admin Benutzertabelle
========================= */

.content {
    max-width: 1800px;
}

/* Tabelle etwas luftiger */
.table th {
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

/* Aktionsbereich */
.user-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    gap: 7px;
    min-width: 220px;
}

/* Alle Aktionsbuttons gleich groß */
.user-actions .button,
.user-actions button {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
    margin: 0;
}

/* Formulare innerhalb Aktionen */
.user-actions form {
    width: 100%;
    margin: 0;
}

/* Eigener Account Hinweis */
.user-actions small {
    color: #94a3b8;
    font-size: 11px;
    padding: 5px;
}

/* Rollen etwas sauberer */
.table td strong {
    display: inline-block;
    margin-right: 5px;
}

/* Buttons zum Rollen entfernen kleiner */
.table td form button {
    white-space: nowrap;
}

/* Tabellenzeilen */
.table tbody tr {
    transition: background .15s ease;
}

.table tbody tr:hover {
    background: rgba(59, 130, 246, .04);
}
/* =========================
   Rollen Badges
========================= */

.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.role-admin {
    background: rgba(220, 38, 38, .18);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, .35);
}

.role-dev {
    background: rgba(37, 99, 235, .18);
    color: #93c5fd;
    border: 1px solid rgba(37, 99, 235, .35);
}

.role-teamleitung {
    background: rgba(147, 51, 234, .18);
    color: #d8b4fe;
    border: 1px solid rgba(147, 51, 234, .35);
}

.role-fraktion {
    background: rgba(22, 163, 74, .18);
    color: #86efac;
    border: 1px solid rgba(22, 163, 74, .35);
}

.role-default {
    background: rgba(100, 116, 139, .20);
    color: #cbd5e1;
    border: 1px solid rgba(100, 116, 139, .35);
}
/* =====================================================
   KYRO CITY DESIGN
   Farben passend zum Kyro City Roleplay Logo
===================================================== */

:root {
    --kyro-bg: #070b18;
    --kyro-sidebar: #090f20;
    --kyro-card: #111b31;
    --kyro-card-hover: #172440;
    --kyro-border: #263a5e;

    --kyro-cyan: #00d9ff;
    --kyro-blue: #168cff;
    --kyro-purple: #8b3dff;
    --kyro-pink: #ff19b7;
    --kyro-red: #ff304f;
    --kyro-orange: #ff7a00;
    --kyro-green: #42e65c;

    --kyro-text: #f8fafc;
    --kyro-muted: #94a3b8;

    --primary: #168cff;
}


/* ===== Grunddesign ===== */

body {
    background:
        radial-gradient(circle at 80% 0%,
            rgba(255, 25, 183, .08),
            transparent 30%),
        radial-gradient(circle at 20% 100%,
            rgba(0, 217, 255, .06),
            transparent 35%),
        var(--kyro-bg);

    color: var(--kyro-text);
}


/* ===== Sidebar ===== */

.sidebar {
    background:
        linear-gradient(
            180deg,
            #090f20 0%,
            #080d1a 100%
        );

    border-right: 1px solid rgba(0, 217, 255, .22);
}


/* TeamPortal / Logo-Schrift */

.brand {
    color: #ffffff;
    text-shadow:
        0 0 12px rgba(0, 217, 255, .35);
}


/* Sidebar Links */

.sidebar a {
    color: #cbd5e1;
    border-left: 3px solid transparent;
    transition: .2s ease;
}

.sidebar a:hover {
    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            rgba(0, 217, 255, .12),
            rgba(139, 61, 255, .05)
        );

    border-left-color: var(--kyro-cyan);
}


/* ===== Inhalt ===== */

.content {
    background: transparent;
}


/* ===== Überschriften ===== */

h1 {
    color: #ffffff;

    text-shadow:
        0 0 18px rgba(139, 61, 255, .20);
}

h2,
h3,
h4 {
    color: #f8fafc;
}


/* Bereichsüberschriften */

.admin-section-title {
    border-left:
        4px solid var(--kyro-cyan);

    color: #ffffff;

    text-shadow:
        0 0 12px rgba(0, 217, 255, .15);
}


/* ===== Karten ===== */

.card {
    background:
        linear-gradient(
            145deg,
            #121d34,
            #0e172a
        );

    border:
        1px solid var(--kyro-border);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .20);

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}


.card:hover {
    transform: translateY(-2px);

    border-color:
        rgba(0, 217, 255, .40);

    box-shadow:
        0 10px 30px rgba(0, 217, 255, .07);
}


/* ===== Eingabefelder ===== */

input,
textarea,
select {
    background: #091226;

    border:
        1px solid #314563;

    color: #ffffff;

    transition: .2s ease;
}


input:focus,
textarea:focus,
select:focus {
    outline: none;

    border-color:
        var(--kyro-cyan);

    box-shadow:
        0 0 0 3px rgba(0, 217, 255, .10);
}


/* ===== Standard Buttons ===== */

.button,
button {
    background:
        linear-gradient(
            135deg,
            var(--kyro-blue),
            #426cff
        );

    color: white;

    border: 0;

    box-shadow:
        0 4px 12px rgba(22, 140, 255, .20);

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        filter .15s ease;
}


.button:hover,
button:hover {
    transform: translateY(-1px);

    filter: brightness(1.10);

    box-shadow:
        0 5px 18px rgba(0, 217, 255, .25);
}


/* ===== Tabellen ===== */

.table {
    background: #111b31;

    border:
        1px solid #263a5e;
}


.table th {
    background:
        linear-gradient(
            90deg,
            #172844,
            #18223b
        );

    color: #e8f7ff;

    border-bottom:
        1px solid rgba(0, 217, 255, .25);
}


.table td {
    border-bottom:
        1px solid #263852;
}


.table tbody tr:hover {
    background:
        rgba(0, 217, 255, .045);
}


/* ===== Status / Badges ===== */

.badge {
    background:
        rgba(0, 217, 255, .12);

    color:
        #7eeaff;

    border:
        1px solid rgba(0, 217, 255, .20);
}


/* ===== Login ===== */

.login-wrap {
    background:
        radial-gradient(
            circle at 25% 25%,
            rgba(139, 61, 255, .15),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(0, 217, 255, .10),
            transparent 35%
        ),
        #070b18;
}


.login-box {
    background:
        linear-gradient(
            145deg,
            #131e35,
            #0c1528
        );

    border:
        1px solid rgba(0, 217, 255, .25);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, .40),
        0 0 30px rgba(139, 61, 255, .08);
}


/* ===== Benutzeraktionen ===== */

.btn-warning {
    background:
        linear-gradient(
            135deg,
            #ff9500,
            #ff6500
        ) !important;
}


.btn-success {
    background:
        linear-gradient(
            135deg,
            #16c75d,
            #32e875
        ) !important;
}


.btn-password {
    background:
        linear-gradient(
            135deg,
            #ffb000,
            #ff7a00
        ) !important;
}


.btn-danger {
    background:
        linear-gradient(
            135deg,
            #ff304f,
            #d71945
        ) !important;
}


/* ===== Scrollbar ===== */

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: #070b18;
}

::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            var(--kyro-cyan),
            var(--kyro-purple)
        );

    border-radius: 10px;
}
/* =====================================================
   KYRO CITY - FINAL COLOR OVERRIDE
===================================================== */

body {
    background:
        radial-gradient(circle at 15% 15%, rgba(0, 217, 255, .13), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(255, 25, 183, .13), transparent 30%),
        radial-gradient(circle at 75% 90%, rgba(139, 61, 255, .12), transparent 30%),
        #050816 !important;
}

/* SIDEBAR */
.sidebar {
    background:
        linear-gradient(
            180deg,
            #071426 0%,
            #100a24 50%,
            #080c18 100%
        ) !important;

    border-right: 2px solid #00d9ff !important;

    box-shadow:
        8px 0 35px rgba(0, 217, 255, .10) !important;
}

.brand {
    color: #fff !important;

    background:
        linear-gradient(
            90deg,
            #00d9ff,
            #8b3dff,
            #ff19b7,
            #ff7a00
        );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    font-weight: 900 !important;
}

/* SIDEBAR LINKS */
.sidebar a:hover {
    background:
        linear-gradient(
            90deg,
            rgba(0, 217, 255, .18),
            rgba(139, 61, 255, .14),
            rgba(255, 25, 183, .08)
        ) !important;

    border-left: 3px solid #00d9ff !important;

    box-shadow:
        inset 0 0 20px rgba(0, 217, 255, .05);
}

/* HAUPTBEREICH */
.content {
    background:
        linear-gradient(
            135deg,
            rgba(0, 217, 255, .025),
            rgba(139, 61, 255, .025),
            rgba(255, 25, 183, .025)
        ) !important;
}

/* ÜBERSCHRIFTEN */
h1 {
    background:
        linear-gradient(
            90deg,
            #00d9ff,
            #70e7ff,
            #b864ff,
            #ff35ba
        );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    font-weight: 900 !important;
}

.admin-section-title {
    border-left: 4px solid #00d9ff !important;

    background:
        linear-gradient(
            90deg,
            #00d9ff,
            #8b3dff,
            #ff19b7
        );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    font-weight: 900 !important;
}

/* KARTEN */
.card {
    background:
        linear-gradient(
            145deg,
            #10213b 0%,
            #15152f 55%,
            #11192d 100%
        ) !important;

    border: 1px solid rgba(0, 217, 255, .35) !important;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, .25),
        0 0 18px rgba(0, 217, 255, .04) !important;
}

.card:hover {
    border-color: #8b3dff !important;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, .30),
        0 0 22px rgba(139, 61, 255, .15) !important;
}

/* EINGABEFELDER */
input,
textarea,
select {
    background: #070e20 !important;

    border: 1px solid #385070 !important;

    color: white !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #00d9ff !important;

    box-shadow:
        0 0 0 3px rgba(0, 217, 255, .15),
        0 0 14px rgba(0, 217, 255, .10) !important;
}

/* STANDARD BUTTONS */
.button,
button {
    background:
        linear-gradient(
            135deg,
            #008cff,
            #5b55ff
        ) !important;

    border: 1px solid rgba(0, 217, 255, .30) !important;

    box-shadow:
        0 5px 15px rgba(0, 140, 255, .18) !important;
}

.button:hover,
button:hover {
    background:
        linear-gradient(
            135deg,
            #00d9ff,
            #8b3dff
        ) !important;

    box-shadow:
        0 5px 22px rgba(0, 217, 255, .25) !important;
}

/* TABELLE */
.table {
    background: #0e1930 !important;

    border:
        1px solid rgba(0, 217, 255, .30) !important;
}

.table th {
    background:
        linear-gradient(
            90deg,
            #102b48,
            #202052,
            #321846
        ) !important;

    color: #ffffff !important;

    border-bottom:
        1px solid rgba(0, 217, 255, .45) !important;
}

.table tbody tr:hover {
    background:
        linear-gradient(
            90deg,
            rgba(0, 217, 255, .08),
            rgba(139, 61, 255, .06),
            rgba(255, 25, 183, .04)
        ) !important;
}

/* SPEZIELLE BUTTONS */
.btn-warning {
    background:
        linear-gradient(135deg, #ff9d00, #ff5e00) !important;
}

.btn-success {
    background:
        linear-gradient(135deg, #00c853, #42e65c) !important;
}

.btn-password {
    background:
        linear-gradient(135deg, #ffc400, #ff7a00) !important;
}

.btn-danger {
    background:
        linear-gradient(135deg, #ff304f, #ff0066) !important;
}

/* LOGIN */
.login-wrap {
    background:
        radial-gradient(circle at 20% 20%, rgba(0,217,255,.18), transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(255,25,183,.18), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(139,61,255,.18), transparent 35%),
        #050816 !important;
}

.login-box {
    background:
        linear-gradient(
            145deg,
            #10213b,
            #171530,
            #0c1428
        ) !important;

    border:
        1px solid rgba(0, 217, 255, .45) !important;

    box-shadow:
        0 25px 70px rgba(0,0,0,.45),
        0 0 35px rgba(139,61,255,.12) !important;
}

/* SCROLLBAR */
::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            #00d9ff,
            #8b3dff,
            #ff19b7
        ) !important;
}
/* Kyro City Logo */

.brand {
    padding: 0 !important;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.brand-logo {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
    object-fit: contain;
    filter:
        drop-shadow(0 0 10px rgba(0, 217, 255, .20))
        drop-shadow(0 0 15px rgba(255, 25, 183, .12));
    transition: .2s ease;
}

.brand-logo:hover {
    transform: scale(1.03);
    filter:
        drop-shadow(0 0 13px rgba(0, 217, 255, .35))
        drop-shadow(0 0 20px rgba(255, 25, 183, .20));
}
.brand {
    padding: 0 !important;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.brand-logo {
    width: 100%;
    max-width: 190px;
    height: auto;
    display: block;
    object-fit: contain;

    filter:
        drop-shadow(0 0 10px rgba(0, 217, 255, .25))
        drop-shadow(0 0 15px rgba(255, 25, 183, .15));
}
.brand-logo {
    width: 100%;
    max-width: 235px;
    height: auto;
    display: block;
    object-fit: contain;
}
/* ===== KYRO CITY SIDEBAR LOGO ===== */

.sidebar {
    width: 270px !important;
    min-width: 270px !important;
}

.brand {
    width: 100%;
    padding: 15px 0 25px !important;
    margin: 0 0 15px 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.brand-logo {
    width: 220px !important;
    max-width: 220px !important;
    height: auto !important;
    display: block !important;

    filter:
        drop-shadow(0 0 12px rgba(0, 217, 255, .30))
        drop-shadow(0 0 18px rgba(255, 25, 183, .20));
}
.sidebar {
    width: 300px !important;
    min-width: 300px !important;
}

.brand {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 10px 0 25px !important;
    overflow: visible !important;
}

.brand-logo {
    width: 260px !important;
    max-width: none !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
}
/* Protokolle auf-/zuklappen */

.protocol-card {
    background: linear-gradient(
        145deg,
        #121d34,
        #0e172a
    );

    border: 1px solid rgba(0, 217, 255, .30);
    border-radius: 14px;

    margin-bottom: 14px;
    overflow: hidden;
}

.protocol-summary {
    list-style: none;

    padding: 16px 18px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;

    cursor: pointer;

    background: linear-gradient(
        90deg,
        rgba(0,217,255,.06),
        rgba(139,61,255,.05),
        rgba(255,25,183,.04)
    );
}

.protocol-summary::-webkit-details-marker {
    display: none;
}

.protocol-summary::after {
    content: "▼";
    color: #00d9ff;
    margin-left: 10px;
    transition: transform .2s ease;
}

.protocol-card[open] .protocol-summary::after {
    transform: rotate(180deg);
}

.protocol-summary strong {
    display: block;
    font-size: 16px;
}

.protocol-summary small {
    color: #94a3b8;
}

.protocol-content {
    padding: 18px;
    border-top: 1px solid rgba(0,217,255,.18);
    line-height: 1.7;
}

.protocol-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}
/* =========================
   Fraktionsverwaltung Layout
========================= */

.fraktion-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 22px;
    align-items: start;
}

.fraktion-top-grid .card {
    height: fit-content;
}

/* Form im Katalog kompakter */
.fraktion-top-grid .card:first-child form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.fraktion-top-grid .card:first-child form label {
    margin: 0 0 4px;
}

/* Felder, die volle Breite brauchen */
.fraktion-top-grid .card:first-child textarea,
.fraktion-top-grid .card:first-child button {
    grid-column: 1 / -1;
}

/* Textareas etwas kleiner */
.fraktion-top-grid textarea {
    min-height: 100px;
}

/* Kataloginhalt / Mitglieder / Warns größer */
.fraktion-top-grid textarea[name="content"],
.fraktion-top-grid textarea[name="members"],
.fraktion-top-grid textarea[name="warns"] {
    min-height: 120px;
}

/* Kategorie-Box kompakt */
.fraktion-top-grid .card:nth-child(2) {
    min-height: 0;
}

/* Mobile */
@media (max-width: 1000px) {
    .fraktion-top-grid {
        grid-template-columns: 1fr;
    }

    .fraktion-top-grid .card:first-child form {
        grid-template-columns: 1fr;
    }

    .fraktion-top-grid .card:first-child textarea,
    .fraktion-top-grid .card:first-child button {
        grid-column: auto;
    }
}
/* Live Serverstatus */

.server-status {
    margin-top: 25px;
    padding: 18px 10px 0;
    border-top: 1px solid rgba(0, 217, 255, .22);
}

.server-status-title {
    margin-bottom: 12px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.server-row {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px;
    margin-bottom: 8px;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            rgba(0, 217, 255, .06),
            rgba(139, 61, 255, .05)
        );

    border: 1px solid rgba(0, 217, 255, .12);
}

.server-row strong {
    display: block;
    font-size: 13px;
    color: #fff;
}

.server-row small {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 11px;
}

.server-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #64748b;
}

.server-dot.online {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, .8);
}

.server-dot.offline {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, .7);
}
/* Rollen beim Benutzer erstellen */

.role-selection {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 8px 0 16px;
}

.role-option {
    margin: 0;
    cursor: pointer;
}

.role-option input {
    display: none;
}

.role-option span {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;
    padding: 8px 10px;

    background: #081426;
    border: 1px solid #334b68;
    border-radius: 9px;

    font-size: 12px;
    color: #fff;

    transition: .18s ease;
}

.role-option span:hover {
    border-color: #00d9ff;
    background: rgba(0, 217, 255, .08);
}

.role-option input:checked + span {
    background: linear-gradient(
        135deg,
        #00a8ff,
        #7647ff
    );

    border-color: #00d9ff;

    box-shadow:
        0 0 12px rgba(0, 217, 255, .30);
}


/* Rollenverwaltung */

.role-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.role-admin-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 14px;

    background: #111b31;
    border: 1px solid rgba(0, 217, 255, .25);
    border-radius: 12px;
}

.role-admin-card form {
    margin: 0;
}

.role-admin-card small {
    color: #94a3b8;
}
/* =========================
   Eigene Wünsche
========================= */

.wish-card {
    background:
        linear-gradient(
            145deg,
            #111b31,
            #12152d
        );

    border: 1px solid rgba(0, 217, 255, .25);
    border-radius: 14px;

    margin-bottom: 14px;

    overflow: hidden;
}

.wish-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;

    padding: 16px 18px;

    border-bottom: 1px solid rgba(0, 217, 255, .15);
}

.wish-header h3 {
    margin: 0 0 4px;
}

.wish-header small {
    color: #94a3b8;
}

.wish-content {
    padding: 18px;
    line-height: 1.6;
}

.wish-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;

    padding: 12px 18px;

    border-top: 1px solid rgba(0, 217, 255, .15);
}

.wish-footer small {
    color: #94a3b8;
}

.wish-status {
    display: inline-flex;
    padding: 6px 11px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
}

.wish-open {
    background: rgba(245, 158, 11, .18);
    color: #fbbf24;
}

.wish-progress {
    background: rgba(59, 130, 246, .18);
    color: #93c5fd;
}

.wish-done {
    background: rgba(34, 197, 94, .18);
    color: #86efac;
}

.wish-rejected {
    background: rgba(239, 68, 68, .18);
    color: #fca5a5;
}

.wish-locked {
    color: #64748b;
    font-size: 12px;
}