/* Obere Menüleiste – einheitlich auf allen Seiten */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 6, 10, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.topbar__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 68px;
    padding: 0.35rem 0;
}

.topbar__brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.topbar__brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

.topbar__burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.topbar__burger-icon {
    width: 18px;
    height: 2px;
    background: #f4f4f6;
    border-radius: 2px;
    position: relative;
    display: block;
}

.topbar__burger-icon::before,
.topbar__burger-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: #f4f4f6;
    border-radius: 2px;
}

.topbar__burger-icon::before {
    top: -6px;
}

.topbar__burger-icon::after {
    top: 6px;
}

.topbar__panel {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.topbar__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
}

.topbar__link {
    display: inline-flex;
    align-items: center;
    color: #a8a8b3;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: none;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}

.topbar__link:hover,
.topbar__link:focus-visible {
    color: #f4f4f6;
    background: rgba(255, 255, 255, 0.07);
}

.topbar__sep {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.topbar .btn-pwa {
    flex-shrink: 1;
    min-width: 0;
}

.topbar .btn-pwa-text {
    white-space: nowrap;
}

@media (max-width: 960px) {
    .topbar__burger {
        display: inline-flex;
    }

    .topbar__panel {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex: none;
        display: none;
        padding: 0.75rem;
        background: rgba(8, 8, 14, 0.98);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    }

    .topbar__panel.is-open {
        display: block;
    }

    .topbar__row {
        position: relative;
        flex-wrap: nowrap;
    }

    .topbar__nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .topbar__sep {
        display: none;
    }

    .topbar__link,
    .topbar .btn-pwa,
    .topbar .btn-primary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .topbar__brand img {
        width: 46px;
        height: 46px;
    }
}

@media (min-width: 961px) {
    .topbar .btn-pwa-text {
        max-width: 9rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.admin-badge-count {
    display: inline-flex;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #ff6b7a;
    color: #fff;
    font-size: 0.68rem;
    align-items: center;
    justify-content: center;
    margin-left: 0.3rem;
}
