html, body {
    height: 100%;
    margin: 0;
}

.site-shell {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100%;
}

.site-main {
    flex: 1;
    min-width: 0;
    height: 100%;
    overflow-y: auto; /* GEÄNDERT: die ganze Seite scrollt hier, nicht nur ein Teilbereich */
    display: block; /* GEÄNDERT: kein flex-column mehr nötig, normaler Dokumentfluss */
}

.site-content:has(.forum-container) {
    height: calc(100vh - 0px); /* Platzhalter, siehe unten */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
/* NEU: Ausnahme nur fürs Forum */
.site-content:has(.forum-container) {
    overflow: hidden;
}

.fixed-roster {
    position: relative;
    width: 0;
    flex-shrink: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-left: 0 solid rgba(13, 55, 71, 0.8); /* GEÄNDERT: war border-right */
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-left-width 0.35s cubic-bezier(0.16, 1, 0.3, 1); /* GEÄNDERT */
}

.fixed-roster.open {
    width: 280px;
    border-left-width: 8px; /* GEÄNDERT: war border-right-width */
}

.fixed-roster-inner {
    width: 280px; /* fixe Innenbreite, damit Inhalt nicht "quetscht" während der Animation */
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.fixed-roster-header {
    background: var(--brand-primary);
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    padding: 14px;
    position: sticky;
    top: 0;
    z-index: 2;
}

.fixed-roster-toggle {
    position: fixed;
    top: 50%;
    right: 0; /* GEÄNDERT: war left: 0 */
    transform: translateY(-50%);
    width: 18px;
    height: 60px;
    background: rgba(13, 55, 71, 0.85);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 8px 0 0 8px; /* GEÄNDERT: gespiegelt */
    color: #ffffff;
    cursor: pointer;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease; /* GEÄNDERT: left → right */
}

.fixed-roster-toggle:hover {
    background: rgba(13, 54, 71, 0.136);
}

.fixed-roster-toggle-icon {
    display: inline-block;
    transition: transform 0.35s ease;
    font-size: 0.9rem;
}

.fixed-roster.open .fixed-roster-toggle-icon {
    transform: rotate(180deg);
}

.fixed-roster-toggle.roster-open {
    right: 280px; /* GEÄNDERT: war left: 280px */
}

.fixed-roster-toggle.roster-open .fixed-roster-toggle-icon {
    transform: rotate(180deg);
}

/* Auf Mobile: fixierte Sidebar komplett deaktivieren, Platz ist zu knapp */
@media screen and (max-width: 1100px) {
    .fixed-roster {
        display: none;
    }
}