/* =========================================================
   VN-BIKER – Kopfzeile
   Datei: /forum/oeffentlich/css/kopfzeile.css

   FINAL STABIL 2026-05-10
   Zuständigkeit:
   - Kopfzeile bleibt im normalen Seitenfluss
   - sticky statt absolute/fixed Overlay
   - Logo links, Icons rechts
   - Logo ausschließlich in der Kopfzeile
   - kein Hero-Logo
   - keine Bulma-Abhängigkeit
   - rechte Kopfzeilen-Icons standardmäßig weiß, Hover goldgelb
   ========================================================= */

/* =========================================================
   Grundrahmen: echte Kopfzeile mit eigener Höhe
   ========================================================= */

.forum-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    width: 100%;
    height: 152px;
    min-height: 152px;
    background: transparent;
    pointer-events: none;
    overflow: visible;
}

.forum-topbar-overlay,
.forum-topbar-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    pointer-events: none;
}

.forum-topbar-home-hitarea--full {
    display: none;
}

/* =========================================================
   Logo links – Klasse nur in kopfzeile.php verwenden
   ========================================================= */

.forum-topbar-left {
    position: absolute;
    z-index: 3;
    top: 14px;
    left: max(18px, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    width: 680px;
    max-width: calc(100vw - 360px);
    pointer-events: auto;
}

.forum-topbar-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 128px;
    color: var(--vn-text);
    text-decoration: none;
}

.forum-topbar-logo {
    display: block;
    width: auto;
    height: 128px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,.62));
}

/* Alte Textmarke sicher deaktivieren, falls sie im PHP/Cache noch auftaucht. */
.forum-topbar-brandline,
.forum-topbar-brandtext,
.forum-topbar-startlink,
.forum-topbar-brandsep {
    display: none;
}

/* =========================================================
   Icons rechts
   ========================================================= */

.forum-topbar-right {
    position: absolute;
    z-index: 4;
    top: 50px;
    right: max(34px, env(safe-area-inset-right));
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .95rem;
    pointer-events: auto;
}

.forum-topbar .forum-icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--vn-text);
    font-size: var(--vn-icon-size-lg, 1.75rem);
    line-height: 1;
    text-decoration: none;
    text-shadow: 0 3px 14px rgba(0,0,0,.72);
    cursor: pointer;
    appearance: none;
    transition: color var(--vn-transition), opacity var(--vn-transition), filter var(--vn-transition);
}

.forum-topbar .forum-icon-link i,
.forum-topbar .forum-icon-link svg {
    display: block;
    width: 1em;
    height: 1em;
    font-size: 1em;
    color: currentColor;
    line-height: 1;
}

.forum-topbar .forum-icon-link:hover,
.forum-topbar .forum-icon-link:focus,
.forum-topbar .forum-icon-link:active {
    color: var(--vn-gold);
    background: transparent;
    border: 0;
    box-shadow: none;
    filter: none;
    transform: none;
    text-decoration: none;
}

.forum-topbar .forum-icon-link:focus-visible,
.forum-topbar-logo-link:focus-visible {
    outline: 2px solid rgba(255,212,90,.72);
    outline-offset: 5px;
    border-radius: 8px;
}

/* Zähler bleiben Text, keine Kapsel. Die optische Textbasis kommt aus .vn-counter-text. */
.forum-message-link .forum-badge,
.forum-badge--profile {
    position: absolute;
    top: -.58rem;
    right: -.72rem;
    z-index: 5;
    pointer-events: none;
}

/* Sound nur in der Kopfzeile ausblenden. Hero/global bleibt frei. */
.forum-topbar .forum-sound-link,
.forum-topbar #headerAudioToggle {
    display: none;
    visibility: hidden;
    pointer-events: none;
}

/* =========================================================
   Login-Profilbild in der Kopfzeile
   ========================================================= */

.forum-profile-link--avatar {
    width: 34px;
    height: 34px;
}

.forum-profile-mini {
    position: relative;
    display: inline-flex;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0,0,0,.55);
}

.forum-profile-mini img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,.24);
}

.forum-profile-mini__stern {
    position: absolute;
    right: -.34rem;
    bottom: -.34rem;
    z-index: 3;
    font-size: .92rem;
    line-height: 1;
    margin: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.78));
}

.forum-profile-link--avatar .forum-badge--profile {
    top: -.68rem;
    right: -.82rem;
}

/* =========================================================
   Stabile Seitenlogik
   Die Kopfzeile reserviert ihre Höhe selbst.
   Darum keine künstlichen Topbar-Abstände auf Main/Body.
   ========================================================= */

body,
.vn-page-with-topbar,
.forum-main,
.profil-main,
.nachrichten-main,
.suche-main,
.forumansicht-main,
.treffen-main,
.termin-main,
.thema-main,
.info-main,
.welcome-main,
.wartung-main,
.forum-main--start,
.start-main,
.start-page,
main.forum-main--start,
main.start-main,
main.start-page {
    padding-top: 0;
}

main,
.forum-main,
.vn-main,
.forum-footer {
    position: relative;
    z-index: 2;
    background: transparent;
}

html {
    scroll-padding-top: 164px;
}

[id] {
    scroll-margin-top: 164px;
}

/* =========================================================
   Tablet / schmale Screens
   ========================================================= */

@media (max-width: 820px) {
    .forum-topbar {
        height: 110px;
        min-height: 110px;
    }

    .forum-topbar-left {
        top: 10px;
        left: max(12px, env(safe-area-inset-left));
        width: 410px;
        max-width: calc(100vw - 210px);
    }

    .forum-topbar-logo-link,
    .forum-topbar-logo {
        height: 90px;
    }

    .forum-topbar-right {
        top: 36px;
        right: max(18px, env(safe-area-inset-right));
        gap: .78rem;
    }

    .forum-topbar .forum-icon-link {
        font-size: var(--vn-icon-size-lg, 1.68rem);
    }

    html {
        scroll-padding-top: 122px;
    }

    [id] {
        scroll-margin-top: 122px;
    }
}

/* =========================================================
   Mobile Kopfzeile final
   ========================================================= */

@media (max-width: 560px) {
    .forum-topbar {
        height: 92px;
        min-height: 92px;
    }

    .forum-topbar-left {
        top: 8px;
        left: max(8px, env(safe-area-inset-left));
        width: 260px;
        max-width: calc(100vw - 152px);
    }

    .forum-topbar-logo-link,
    .forum-topbar-logo {
        height: 76px;
    }

    .forum-topbar-right {
        top: 28px;
        right: max(14px, env(safe-area-inset-right));
        gap: .72rem;
    }

    .forum-topbar .forum-icon-link {
        font-size: var(--vn-icon-size-lg, 1.75rem);
    }

    .forum-message-link .forum-badge,
    .forum-badge--profile {
        top: -.46rem;
        right: -.48rem;
    }

    .forum-profile-link--avatar,
    .forum-profile-mini {
        width: 32px;
        height: 32px;
    }

    html {
        scroll-padding-top: 104px;
    }

    [id] {
        scroll-margin-top: 104px;
    }
}

/* =========================================================
   Sehr schmale Screens
   ========================================================= */

@media (max-width: 390px) {
    .forum-topbar {
        height: 86px;
        min-height: 86px;
    }

    .forum-topbar-left {
        top: 8px;
        left: max(6px, env(safe-area-inset-left));
        width: 235px;
        max-width: calc(100vw - 138px);
    }

    .forum-topbar-logo-link,
    .forum-topbar-logo {
        height: 70px;
    }

    .forum-topbar-right {
        top: 28px;
        right: max(10px, env(safe-area-inset-right));
        gap: .62rem;
    }

    .forum-topbar .forum-icon-link {
        font-size: var(--vn-icon-size-md, 1.5rem);
    }

    html {
        scroll-padding-top: 98px;
    }

    [id] {
        scroll-margin-top: 98px;
    }
}

/* =========================================================
   VN-BIKER – Kopfzeile Konsistenzpatch 2026-05-11
   Ziel:
   - Profilbild nach Login nicht mehr mikrig
   - gleiche Kopfzeile auf Start, Suche, Nachrichten und Folgeseiten
   - Page-CSS darf die Kopfzeile nicht unterschiedlich skalieren
   ========================================================= */

body .forum-topbar .forum-topbar-right {
    align-items: center !important;
}

body .forum-topbar .forum-icon-link,
body .forum-topbar a.forum-icon-link,
body .forum-topbar button.forum-icon-link {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--vn-text, #fff) !important;
    font-size: var(--vn-icon-size-lg, 1.82rem) !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transform: none !important;
}

body .forum-topbar .forum-icon-link:hover,
body .forum-topbar .forum-icon-link:focus,
body .forum-topbar .forum-icon-link:active {
    color: var(--vn-gold, #ffd44f) !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

body .forum-topbar .forum-profile-link--avatar {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body .forum-topbar .forum-profile-mini {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    border-radius: 12px !important;
    overflow: visible !important;
}

body .forum-topbar .forum-profile-mini img {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    object-fit: cover !important;
    object-position: center top !important;
}

body .forum-topbar .forum-profile-mini__stern {
    position: absolute !important;
    right: -.45rem !important;
    bottom: -.45rem !important;
    z-index: 4 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1.08rem !important;
    height: 1.08rem !important;
    font-size: 1.05rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    color: var(--vn-gold, #ffd44f);
    text-shadow: 0 2px 7px rgba(0,0,0,.82) !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.82)) !important;
}

body .forum-topbar .forum-profile-mini__stern::before {
    content: none !important;
}

body .forum-topbar .forum-profile-mini__stern.vn-stern--administrator,
body .forum-topbar .forum-profile-mini__stern.vn-profilstern--administrator,
body .forum-topbar .forum-profile-mini__stern.is-admin {
    color: var(--vn-stern-administrator, #123e8a) !important;
}

body .forum-topbar .forum-profile-mini__stern.vn-stern--moderation,
body .forum-topbar .forum-profile-mini__stern.vn-profilstern--moderation,
body .forum-topbar .forum-profile-mini__stern.is-moderation,
body .forum-topbar .forum-profile-mini__stern.is-mod {
    color: var(--vn-stern-moderation, #2f7fd6) !important;
}

body .forum-topbar .forum-profile-mini__stern.vn-stern--vn-biker,
body .forum-topbar .forum-profile-mini__stern.vn-profilstern--vn-biker,
body .forum-topbar .forum-profile-mini__stern.is-vn-biker,
body .forum-topbar .forum-profile-mini__stern.is-vulcan-biker {
    color: var(--vn-stern-vn-biker, #d83232) !important;
}

body .forum-topbar .forum-profile-mini__stern.vn-stern--orga,
body .forum-topbar .forum-profile-mini__stern.vn-profilstern--orga,
body .forum-topbar .forum-profile-mini__stern.is-orga {
    color: var(--vn-stern-orga, #8a4bd8) !important;
}

body .forum-topbar .forum-profile-mini__stern.vn-stern--rip,
body .forum-topbar .forum-profile-mini__stern.vn-profilstern--rip,
body .forum-topbar .forum-profile-mini__stern.is-rip {
    color: var(--vn-stern-rip, #050505) !important;
}

body .forum-topbar .forum-profile-mini__stern.vn-stern--pink,
body .forum-topbar .forum-profile-mini__stern.vn-profilstern--pink,
body .forum-topbar .forum-profile-mini__stern.is-pink {
    color: var(--vn-stern-pink, #ff5cc8) !important;
}

@media (max-width: 820px) {
    body .forum-topbar .forum-topbar-right {
        gap: 1.06rem !important;
    }

    body .forum-topbar .forum-profile-link--avatar,
    body .forum-topbar .forum-profile-mini {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }

    body .forum-topbar .forum-profile-mini img {
        width: 44px !important;
        height: 44px !important;
    }
}

@media (max-width: 560px) {
    body .forum-topbar .forum-topbar-right {
        top: 24px !important;
        gap: 1rem !important;
    }

    body .forum-topbar .forum-profile-link--avatar,
    body .forum-topbar .forum-profile-mini {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
    }

    body .forum-topbar .forum-profile-mini img {
        width: 42px !important;
        height: 42px !important;
    }

    body .forum-topbar .forum-profile-mini__stern {
        right: -.42rem !important;
        bottom: -.42rem !important;
        width: 1rem !important;
        height: 1rem !important;
        font-size: .98rem !important;
    }
}

@media (max-width: 390px) {
    body .forum-topbar .forum-topbar-right {
        top: 23px !important;
        gap: .88rem !important;
        right: max(12px, env(safe-area-inset-right)) !important;
    }

    body .forum-topbar .forum-icon-link,
    body .forum-topbar a.forum-icon-link,
    body .forum-topbar button.forum-icon-link {
        font-size: 1.58rem !important;
    }

    body .forum-topbar .forum-profile-link--avatar,
    body .forum-topbar .forum-profile-mini {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }

    body .forum-topbar .forum-profile-mini img {
        width: 40px !important;
        height: 40px !important;
    }
}


/* =========================================================
   FINAL LOCK V4 – Kopfzeile seitenübergreifend gleich
   Muss nach Start/Suche/Nachrichten/Profil-CSS geladen werden.
   ========================================================= */
body .forum-topbar,
body header.forum-topbar,
body .start-page .forum-topbar,
body .suche-main .forum-topbar,
body .nachrichten-main .forum-topbar,
body .profil-main .forum-topbar,
body .forumansicht-main .forum-topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 4000 !important;
    width: 100% !important;
    height: 152px !important;
    min-height: 152px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    pointer-events: none !important;
    overflow: visible !important;
    transform: none !important;
}

body .forum-topbar .forum-topbar-overlay,
body .forum-topbar .forum-topbar-inner {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    pointer-events: none !important;
    overflow: visible !important;
}

body .forum-topbar .forum-topbar-left {
    position: absolute !important;
    z-index: 3 !important;
    top: 14px !important;
    left: max(18px, env(safe-area-inset-left)) !important;
    display: flex !important;
    align-items: center !important;
    width: 680px !important;
    max-width: calc(100vw - 360px) !important;
    height: auto !important;
    pointer-events: auto !important;
}

body .forum-topbar .forum-topbar-logo-link,
body .forum-topbar a.forum-topbar-logo-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: 128px !important;
    min-height: 128px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--vn-text, #fff) !important;
    text-decoration: none !important;
}

body .forum-topbar .forum-topbar-logo {
    display: block !important;
    width: auto !important;
    height: 128px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: left center !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,.62)) !important;
}

body .forum-topbar .forum-topbar-right,
body .forum-topbar nav.forum-topbar-right {
    position: absolute !important;
    z-index: 5 !important;
    top: 48px !important;
    right: max(34px, env(safe-area-inset-right)) !important;
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 1.12rem !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    pointer-events: auto !important;
    overflow: visible !important;
    transform: none !important;
}

body .forum-topbar .forum-icon-link,
body .forum-topbar a.forum-icon-link,
body .forum-topbar button.forum-icon-link {
    position: relative !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--vn-text, #fff) !important;
    font-size: 1.78rem !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-shadow: 0 3px 14px rgba(0,0,0,.72) !important;
    cursor: pointer !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    overflow: visible !important;
}

body .forum-topbar .forum-icon-link:hover,
body .forum-topbar .forum-icon-link:focus,
body .forum-topbar .forum-icon-link:active {
    color: var(--vn-gold, #ffd44f) !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    text-decoration: none !important;
}

body .forum-topbar .forum-icon-link i,
body .forum-topbar .forum-icon-link svg {
    display: block !important;
    width: 1em !important;
    height: 1em !important;
    min-width: 1em !important;
    min-height: 1em !important;
    padding: 0 !important;
    margin: 0 !important;
    color: currentColor !important;
    font-size: 1em !important;
    line-height: 1 !important;
}

body .forum-topbar .forum-profile-link--avatar,
body .forum-topbar a.forum-profile-link--avatar,
body .forum-topbar .forum-profile-mini {
    display: inline-flex !important;
    flex: 0 0 52px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    transform: none !important;
}

body .forum-topbar .forum-profile-mini {
    position: relative !important;
    box-shadow: 0 5px 18px rgba(0,0,0,.58) !important;
}

body .forum-topbar .forum-profile-mini img {
    display: block !important;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 0 !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center top !important;
    border: 1px solid rgba(255,255,255,.28) !important;
    border-radius: 13px !important;
    background: rgba(0,0,0,.22) !important;
    box-shadow: none !important;
}

body .forum-topbar .forum-profile-mini__stern {
    position: absolute !important;
    right: -.48rem !important;
    bottom: -.48rem !important;
    z-index: 8 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1.22rem !important;
    height: 1.22rem !important;
    min-width: 1.22rem !important;
    min-height: 1.22rem !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    color: var(--vn-gold, #ffd44f) !important;
    font-size: 1.16rem !important;
    line-height: 1 !important;
    text-shadow: 0 2px 7px rgba(0,0,0,.86) !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.86)) !important;
    transform: none !important;
    pointer-events: none !important;
}

body .forum-topbar .forum-profile-mini__stern::before,
body .forum-topbar .forum-profile-mini__stern::after {
    content: none !important;
}

body .forum-topbar .forum-message-link .forum-badge,
body .forum-topbar .forum-badge--profile {
    position: absolute !important;
    top: -.62rem !important;
    right: -.78rem !important;
    z-index: 9 !important;
    pointer-events: none !important;
}

body .forum-topbar .forum-profile-link--avatar .forum-badge--profile {
    top: -.72rem !important;
    right: -.86rem !important;
}

body .forum-topbar .forum-sound-link,
body .forum-topbar #headerAudioToggle {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (max-width: 820px) {
    body .forum-topbar,
    body header.forum-topbar {
        height: 112px !important;
        min-height: 112px !important;
    }

    body .forum-topbar .forum-topbar-left {
        top: 10px !important;
        left: max(12px, env(safe-area-inset-left)) !important;
        width: 410px !important;
        max-width: calc(100vw - 230px) !important;
    }

    body .forum-topbar .forum-topbar-logo-link,
    body .forum-topbar .forum-topbar-logo {
        height: 92px !important;
        min-height: 92px !important;
    }

    body .forum-topbar .forum-topbar-right {
        top: 34px !important;
        right: max(20px, env(safe-area-inset-right)) !important;
        gap: 1.18rem !important;
    }

    body .forum-topbar .forum-icon-link,
    body .forum-topbar a.forum-icon-link,
    body .forum-topbar button.forum-icon-link {
        font-size: 1.76rem !important;
    }

    body .forum-topbar .forum-profile-link--avatar,
    body .forum-topbar a.forum-profile-link--avatar,
    body .forum-topbar .forum-profile-mini,
    body .forum-topbar .forum-profile-mini img {
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
        border-radius: 12px !important;
        flex-basis: 48px !important;
    }
}

@media (max-width: 560px) {
    body .forum-topbar,
    body header.forum-topbar {
        height: 96px !important;
        min-height: 96px !important;
    }

    body .forum-topbar .forum-topbar-left {
        top: 8px !important;
        left: max(8px, env(safe-area-inset-left)) !important;
        width: 260px !important;
        max-width: calc(100vw - 166px) !important;
    }

    body .forum-topbar .forum-topbar-logo-link,
    body .forum-topbar .forum-topbar-logo {
        height: 80px !important;
        min-height: 80px !important;
    }

    body .forum-topbar .forum-topbar-right {
        top: 24px !important;
        right: max(15px, env(safe-area-inset-right)) !important;
        gap: 1.02rem !important;
    }

    body .forum-topbar .forum-icon-link,
    body .forum-topbar a.forum-icon-link,
    body .forum-topbar button.forum-icon-link {
        font-size: 1.72rem !important;
    }

    body .forum-topbar .forum-profile-link--avatar,
    body .forum-topbar a.forum-profile-link--avatar,
    body .forum-topbar .forum-profile-mini,
    body .forum-topbar .forum-profile-mini img {
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        height: 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;
        border-radius: 12px !important;
        flex-basis: 46px !important;
    }

    body .forum-topbar .forum-profile-mini__stern {
        right: -.44rem !important;
        bottom: -.44rem !important;
        width: 1.12rem !important;
        height: 1.12rem !important;
        min-width: 1.12rem !important;
        min-height: 1.12rem !important;
        font-size: 1.06rem !important;
    }
}

@media (max-width: 390px) {
    body .forum-topbar,
    body header.forum-topbar {
        height: 92px !important;
        min-height: 92px !important;
    }

    body .forum-topbar .forum-topbar-left {
        width: 235px !important;
        max-width: calc(100vw - 154px) !important;
    }

    body .forum-topbar .forum-topbar-logo-link,
    body .forum-topbar .forum-topbar-logo {
        height: 76px !important;
        min-height: 76px !important;
    }

    body .forum-topbar .forum-topbar-right {
        top: 25px !important;
        right: max(12px, env(safe-area-inset-right)) !important;
        gap: .9rem !important;
    }

    body .forum-topbar .forum-icon-link,
    body .forum-topbar a.forum-icon-link,
    body .forum-topbar button.forum-icon-link {
        font-size: 1.58rem !important;
    }

    body .forum-topbar .forum-profile-link--avatar,
    body .forum-topbar a.forum-profile-link--avatar,
    body .forum-topbar .forum-profile-mini,
    body .forum-topbar .forum-profile-mini img {
        width: 43px !important;
        min-width: 43px !important;
        max-width: 43px !important;
        height: 43px !important;
        min-height: 43px !important;
        max-height: 43px !important;
        border-radius: 11px !important;
        flex-basis: 43px !important;
    }
}


/* =========================================================
   FINAL LOCK V6 – Nachrichtenbadge im Icon
   Ziel:
   - PC etwas größer
   - Mobile keine lose weiße Zahl
   - einheitlich: grüne kleine Fläche direkt am Nachrichtenicon
   - robust für PHP- und JS-erzeugte Badges
   ========================================================= */
body .forum-topbar .forum-message-link,
body .forum-topbar [data-vn-message-link],
body .forum-topbar [data-nachrichten-link],
body .forum-topbar a[href*="nachrichten.php"] {
    position: relative !important;
    overflow: visible !important;
}

body .forum-topbar .forum-message-link .forum-badge,
body .forum-topbar .forum-message-link .forum-badge--message,
body .forum-topbar .forum-message-link .vn-message-badge,
body .forum-topbar .forum-message-link .forum-nachrichten-badge,
body .forum-topbar [data-vn-message-badge],
body .forum-topbar [data-nachrichten-badge],
body .forum-topbar [data-message-badge] {
    position: absolute !important;
    top: -.48rem !important;
    right: -.48rem !important;
    z-index: 30 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    min-width: 1.42rem !important;
    height: 1.42rem !important;
    padding: 0 .34rem !important;
    margin: 0 !important;
    border: 1px solid rgba(7, 33, 17, .72) !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #6eea94 0%, #2fbf69 56%, #0f7b3a 100%) !important;
    color: #07130b !important;
    box-shadow:
        0 0 0 2px rgba(0,0,0,.36),
        0 5px 13px rgba(0,0,0,.52),
        inset 0 1px 0 rgba(255,255,255,.48) !important;
    font-family: inherit !important;
    font-size: .82rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    letter-spacing: -.035em !important;
    text-align: center !important;
    text-shadow: none !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    transform: none !important;
    opacity: 1 !important;
}

body .forum-topbar .forum-message-link .forum-badge:empty,
body .forum-topbar .forum-message-link .forum-badge--message:empty,
body .forum-topbar .forum-message-link .vn-message-badge:empty,
body .forum-topbar .forum-message-link .forum-nachrichten-badge:empty,
body .forum-topbar [data-vn-message-badge]:empty,
body .forum-topbar [data-nachrichten-badge]:empty,
body .forum-topbar [data-message-badge]:empty,
body .forum-topbar .forum-message-link .forum-badge[hidden],
body .forum-topbar [data-vn-message-badge][hidden],
body .forum-topbar [data-nachrichten-badge][hidden] {
    display: none !important;
}

body .forum-topbar .forum-message-link .forum-badge.is-delta,
body .forum-topbar .forum-message-link .vn-message-badge.is-delta,
body .forum-topbar .forum-message-link .forum-nachrichten-badge.is-delta,
body .forum-topbar [data-vn-message-badge].is-delta,
body .forum-topbar [data-nachrichten-badge].is-delta {
    animation: vn-message-badge-pop .52s ease-out 1;
}

@keyframes vn-message-badge-pop {
    0% { transform: scale(.86) !important; }
    46% { transform: scale(1.14) !important; }
    100% { transform: scale(1) !important; }
}

@media (max-width: 820px) {
    body .forum-topbar .forum-message-link .forum-badge,
    body .forum-topbar .forum-message-link .forum-badge--message,
    body .forum-topbar .forum-message-link .vn-message-badge,
    body .forum-topbar .forum-message-link .forum-nachrichten-badge,
    body .forum-topbar [data-vn-message-badge],
    body .forum-topbar [data-nachrichten-badge],
    body .forum-topbar [data-message-badge] {
        top: -.44rem !important;
        right: -.46rem !important;
        min-width: 1.34rem !important;
        height: 1.34rem !important;
        padding: 0 .31rem !important;
        font-size: .78rem !important;
    }
}

@media (max-width: 560px) {
    body .forum-topbar .forum-message-link .forum-badge,
    body .forum-topbar .forum-message-link .forum-badge--message,
    body .forum-topbar .forum-message-link .vn-message-badge,
    body .forum-topbar .forum-message-link .forum-nachrichten-badge,
    body .forum-topbar [data-vn-message-badge],
    body .forum-topbar [data-nachrichten-badge],
    body .forum-topbar [data-message-badge] {
        top: -.36rem !important;
        right: -.38rem !important;
        min-width: 1.26rem !important;
        height: 1.26rem !important;
        padding: 0 .28rem !important;
        font-size: .74rem !important;
        border-width: 1px !important;
    }
}

@media (max-width: 390px) {
    body .forum-topbar .forum-message-link .forum-badge,
    body .forum-topbar .forum-message-link .forum-badge--message,
    body .forum-topbar .forum-message-link .vn-message-badge,
    body .forum-topbar .forum-message-link .forum-nachrichten-badge,
    body .forum-topbar [data-vn-message-badge],
    body .forum-topbar [data-nachrichten-badge],
    body .forum-topbar [data-message-badge] {
        top: -.32rem !important;
        right: -.34rem !important;
        min-width: 1.18rem !important;
        height: 1.18rem !important;
        padding: 0 .25rem !important;
        font-size: .69rem !important;
    }
}


/* =========================================================
   FINAL LOCK V7 – Nachrichtenzahl direkt im Icon
   Ziel:
   - keine lose weiße Zahl auf Mobile
   - kein großes Pill am PC
   - eigene Klasse ohne vn-counter-Vererbung
   ========================================================= */
body .forum-topbar .forum-message-link {
    position: relative !important;
    isolation: isolate !important;
    overflow: visible !important;
}

body .forum-topbar .forum-message-link > .vn-topbar-message-count,
body .forum-topbar .forum-message-link > [data-vn-message-badge],
body .forum-topbar .forum-message-link > [data-nachrichten-badge] {
    position: absolute !important;
    top: -0.42rem !important;
    right: -0.50rem !important;
    z-index: 99 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 1.18rem !important;
    height: 1.18rem !important;
    min-height: 1.18rem !important;
    max-height: 1.18rem !important;
    padding: 0 .28rem !important;
    margin: 0 !important;
    border: 1px solid rgba(164,255,188,.34) !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #5de58a 0%, #25b85e 58%, #0c7134 100%) !important;
    color: #031107 !important;
    box-shadow:
        0 0 0 2px rgba(0,0,0,.44),
        0 4px 11px rgba(0,0,0,.58),
        inset 0 1px 0 rgba(255,255,255,.48) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: .72rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: -.04em !important;
    text-align: center !important;
    text-shadow: none !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    opacity: 1 !important;
    transform: none !important;
    appearance: none !important;
}

body .forum-topbar .forum-message-link > .vn-topbar-message-count[hidden],
body .forum-topbar .forum-message-link > .vn-topbar-message-count:empty,
body .forum-topbar .forum-message-link > [data-vn-message-badge][hidden],
body .forum-topbar .forum-message-link > [data-vn-message-badge]:empty {
    display: none !important;
}

body .forum-topbar .forum-message-link > .vn-topbar-message-count.is-delta,
body .forum-topbar .forum-message-link > [data-vn-message-badge].is-delta {
    animation: vn-message-badge-pop .48s ease-out 1;
}

@media (max-width: 560px) {
    body .forum-topbar .forum-message-link > .vn-topbar-message-count,
    body .forum-topbar .forum-message-link > [data-vn-message-badge],
    body .forum-topbar .forum-message-link > [data-nachrichten-badge] {
        top: -0.34rem !important;
        right: -0.40rem !important;
        min-width: 1.08rem !important;
        height: 1.08rem !important;
        min-height: 1.08rem !important;
        max-height: 1.08rem !important;
        padding: 0 .23rem !important;
        font-size: .66rem !important;
    }
}

@media (max-width: 390px) {
    body .forum-topbar .forum-message-link > .vn-topbar-message-count,
    body .forum-topbar .forum-message-link > [data-vn-message-badge],
    body .forum-topbar .forum-message-link > [data-nachrichten-badge] {
        top: -0.30rem !important;
        right: -0.34rem !important;
        min-width: 1.02rem !important;
        height: 1.02rem !important;
        min-height: 1.02rem !important;
        max-height: 1.02rem !important;
        padding: 0 .20rem !important;
        font-size: .62rem !important;
    }
}


/* =========================================================
   VN-BIKER – mobile Kopfzeile Feinschliff 2026-05-17
   PC bleibt unverändert; mobile hängt weniger tief.
   ========================================================= */
@media (max-width: 560px) {
    body .forum-topbar,
    body header.forum-topbar {
        height: 82px !important;
        min-height: 82px !important;
    }

    body .forum-topbar .forum-topbar-left {
        top: 6px !important;
        left: max(8px, env(safe-area-inset-left)) !important;
        width: 236px !important;
        max-width: calc(100vw - 168px) !important;
    }

    body .forum-topbar .forum-topbar-logo-link,
    body .forum-topbar .forum-topbar-logo {
        height: 68px !important;
        min-height: 68px !important;
    }

    body .forum-topbar .forum-topbar-right {
        top: 18px !important;
        right: max(14px, env(safe-area-inset-right)) !important;
        gap: .94rem !important;
    }

    body .forum-topbar .forum-icon-link,
    body .forum-topbar a.forum-icon-link,
    body .forum-topbar button.forum-icon-link {
        font-size: 1.62rem !important;
    }

    body .forum-topbar .forum-profile-link--avatar,
    body .forum-topbar a.forum-profile-link--avatar,
    body .forum-topbar .forum-profile-mini,
    body .forum-topbar .forum-profile-mini img {
        width: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
        border-radius: 11px !important;
        flex-basis: 42px !important;
    }
}

@media (max-width: 390px) {
    body .forum-topbar,
    body header.forum-topbar {
        height: 78px !important;
        min-height: 78px !important;
    }

    body .forum-topbar .forum-topbar-left {
        width: 220px !important;
        max-width: calc(100vw - 150px) !important;
    }

    body .forum-topbar .forum-topbar-logo-link,
    body .forum-topbar .forum-topbar-logo {
        height: 64px !important;
        min-height: 64px !important;
    }

    body .forum-topbar .forum-topbar-right {
        top: 17px !important;
        gap: .82rem !important;
    }
}


/* =========================================================
   Final Delta V4 – Mobile Nachrichtenkopf etwas höher/freier
   ========================================================= */
@media (max-width: 560px) {
    body.nachrichten-body .forum-topbar,
    body.nachrichten-body header.forum-topbar {
        height: 88px !important;
        min-height: 88px !important;
    }
    body.nachrichten-body .forum-topbar .forum-topbar-left {
        top: 6px !important;
    }
    body.nachrichten-body .forum-topbar .forum-topbar-logo-link,
    body.nachrichten-body .forum-topbar .forum-topbar-logo {
        height: 72px !important;
        min-height: 72px !important;
    }
    body.nachrichten-body .forum-topbar .forum-topbar-right {
        top: 21px !important;
    }
}
@media (max-width: 390px) {
    body.nachrichten-body .forum-topbar,
    body.nachrichten-body header.forum-topbar {
        height: 84px !important;
        min-height: 84px !important;
    }
    body.nachrichten-body .forum-topbar .forum-topbar-logo-link,
    body.nachrichten-body .forum-topbar .forum-topbar-logo {
        height: 68px !important;
        min-height: 68px !important;
    }
    body.nachrichten-body .forum-topbar .forum-topbar-right {
        top: 20px !important;
    }
}


/* =========================================================
   FINAL 2026-05-24 – Mobile Kopfzeile proportional größer
   Ziel: Mobile hochkant nicht zu klein gegenüber Hero/Forenblöcken.
   ========================================================= */
@media (max-width: 560px) {
    body .forum-topbar,
    body header.forum-topbar {
        height: 108px !important;
        min-height: 108px !important;
    }

    body .forum-topbar .forum-topbar-left {
        top: 9px !important;
        left: max(9px, env(safe-area-inset-left)) !important;
        width: 282px !important;
        max-width: calc(100vw - 170px) !important;
    }

    body .forum-topbar .forum-topbar-logo-link,
    body .forum-topbar .forum-topbar-logo {
        height: 90px !important;
        min-height: 90px !important;
    }

    body .forum-topbar .forum-topbar-right {
        top: 29px !important;
        right: max(15px, env(safe-area-inset-right)) !important;
        gap: 1.08rem !important;
    }

    body .forum-topbar .forum-icon-link,
    body .forum-topbar a.forum-icon-link,
    body .forum-topbar button.forum-icon-link {
        font-size: 1.82rem !important;
    }

    body .forum-topbar .forum-profile-link--avatar,
    body .forum-topbar a.forum-profile-link--avatar,
    body .forum-topbar .forum-profile-mini,
    body .forum-topbar .forum-profile-mini img {
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
        flex-basis: 48px !important;
    }

    html { scroll-padding-top: 116px !important; }
    [id] { scroll-margin-top: 116px !important; }
}

@media (max-width: 390px) {
    body .forum-topbar,
    body header.forum-topbar {
        height: 102px !important;
        min-height: 102px !important;
    }

    body .forum-topbar .forum-topbar-left {
        width: 250px !important;
        max-width: calc(100vw - 154px) !important;
    }

    body .forum-topbar .forum-topbar-logo-link,
    body .forum-topbar .forum-topbar-logo {
        height: 84px !important;
        min-height: 84px !important;
    }

    body .forum-topbar .forum-topbar-right {
        top: 29px !important;
        gap: .94rem !important;
    }

    body .forum-topbar .forum-icon-link,
    body .forum-topbar a.forum-icon-link,
    body .forum-topbar button.forum-icon-link {
        font-size: 1.66rem !important;
    }
}
