/* =========================================================
   01 - Sidebar Grundlayout
   ========================================================= */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;

    width: var(--sidebar-width);
    height: 100vh;
    height: 100dvh;

    padding: 28px 22px;

    display: flex;
    flex-direction: column;

    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;

    background: rgba(5, 8, 17, 0.94);
    border-right: 1px solid var(--border);
    backdrop-filter: blur(14px);

    scrollbar-width: thin;
    scrollbar-color: rgba(80, 190, 255, 0.35) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(80, 190, 255, 0.28);
    border-radius: 999px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(80, 190, 255, 0.45);
}


/* =========================================================
   02 - Sidebar Branding
   Logo + Projektname
   ========================================================= */

.sidebar-brand {
    padding-bottom: 15px;
    margin-bottom: 16px;

    border-bottom: 2px solid rgba(74, 163, 255, 0.22);
}

.sidebar-brand-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}


/* ---------------------------------------------------------
   Klickbarer Brandbereich
   --------------------------------------------------------- */

.sidebar-brand-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;

    width: 100%;
    min-width: 0;

    padding: 4px 0 2px;

    color: var(--text);
    text-align: center;
    text-decoration: none;
}


/* ---------------------------------------------------------
   Großes Logo
   --------------------------------------------------------- */

.sidebar-logo-img {
    display: block;

    width: min(225px, 100%);
    height: auto;
    aspect-ratio: 1 / 1;

    flex: 0 0 auto;

    object-fit: cover;
    object-position: center;

    border-radius: 22px;

    box-shadow:
        0 0 28px rgba(74, 163, 255, 0.14),
        0 0 52px rgba(0, 0, 0, 0.35);
}


/* ---------------------------------------------------------
   Text unter dem Logo
   --------------------------------------------------------- */

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;

    width: 100%;
    min-width: 0;

    text-align: center;
}


/* ---------------------------------------------------------
   CIR-Schriftzug
   Farbe bewusst näher am Logo: helles Metallic
   --------------------------------------------------------- */

.sidebar-logo-text {
    display: block;

    color: #dbe3f0;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.22em;
}


/* ---------------------------------------------------------
   Untertitel
   Farbe bewusst näher am Logo: dezentes Gold
   --------------------------------------------------------- */

.sidebar-subtitle {
    display: block;

    max-width: 250px;

    color: #b7a36a;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}


/* =========================================================
   03 - Mobile Menü Button
   Wird auf Desktop ausgeblendet
   ========================================================= */

.mobile-menu-toggle {
    display: none;

    padding: 10px 14px;

    color: var(--text);
    background: rgba(74, 163, 255, 0.08);

    border: 1px solid rgba(74, 163, 255, 0.28);
    border-radius: 10px;

    font-size: 0.92rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(74, 163, 255, 0.14);
    border-color: rgba(74, 163, 255, 0.4);
}


/* =========================================================
   04 - Sidebar Menü
   Hauptnavigation
   ========================================================= */

.sidebar-menu {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
}

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

.sidebar-nav a {
    display: block;

    padding: 12px 14px;

    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;

    border: 1px solid transparent;
    border-radius: 10px;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease;
}

.sidebar-nav a:hover {
    color: var(--text);
    background: rgba(74, 163, 255, 0.08);
    border-color: rgba(74, 163, 255, 0.18);
}

.sidebar-nav a.active {
    color: var(--text);
    background: linear-gradient(
        135deg,
        rgba(74, 163, 255, 0.22),
        rgba(74, 163, 255, 0.06)
    );
    border-color: rgba(74, 163, 255, 0.35);
}

/* =========================================================
   05 - Sidebar Footer
   =========================================================
   Der frühere Sidebar-Footer wurde in die globale Top-Meta-Bar
   oberhalb der Latest-Update-Zeile verschoben.
   ========================================================= */

