#topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030; /* höher als alles andere außer evtl. Modals */
}

/* Button wie die Theme-Links daneben (13px, 5px Rand), sonst größer */
.topbar .topbar-column > button.report-request-button {
    font-size: 13px;
    margin-top: 5px;
    margin-bottom: 5px;
}

/* Flex statt Theme-Tabelle: feste Spaltenbreiten (25/50/25 %) stapelten Icons und
   Text auf kleinen Bildschirmen untereinander, die Topbar wurde bis zu 300px hoch */
#topbar {
    display: flex;
    align-items: center;
    gap: 12px 24px;
    height: auto;
    padding: 15px 30px;
}
#topbar .topbar-column { width: auto; }
#topbar .contact { flex: none; display: flex; flex-direction: column; align-items: flex-start; }
#topbar .topbar-search { flex: 1 1 0; min-width: 0; max-width: 900px; margin: 0 auto; }
/* Theme reserviert 105-120px für Leeren/Schließen-Buttons, hier gibt es nur die Lupe */
#topbar #search-field { padding-right: 56px; }
#topbar > .topbar-column:last-child { flex: none; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
#topbar > .topbar-column:last-child > * { flex: none; margin: 0; }

@media (max-width: 991px) {
    #topbar { flex-wrap: wrap; padding: 10px 16px; }
    #topbar > .topbar-column:last-child { order: 3; flex-basis: 100%; overflow-x: auto; }
}

@media (max-width: 767px) {
    #topbar { gap: 8px; padding: 8px 12px; }
    #topbar .topbar-search { order: 1; margin: 0; }
    #topbar .contact { order: 2; flex-direction: row; gap: 8px; }
    #topbar .contact a { display: flex; align-items: center; justify-content: center; width: 42px; height: 38px; margin: 0; border-radius: 3px; background: rgba(255, 255, 255, .15); font-size: 18px; }
    /* Text bleibt für Screenreader erhalten */
    #topbar .contact a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

#site-menu.navbar-stick {
    position: fixed;
    top: 0px; /* positionHeaderBelowTopbar() in layout.js setzt die Höhe der Topbar */
    left: 0;
    right: 0;
    z-index: 1020;
}

/* Das Menü (~1010px) wird sonst über die volle Breite zentriert und liegt bis ~1500px
   unter Logo bzw. Icons. Unter 1071px übernimmt das Mobil-Menü (styles.min.css). */
@media (min-width: 1071px) and (max-width: 1599px) {
    #site-menu .site-menu { padding-left: 240px; padding-right: 150px; }
    #site-menu .site-menu > ul > li > a { padding: 0 10px; letter-spacing: .02em; }
}
@media (min-width: 1071px) and (max-width: 1365px) {
    #site-menu .site-menu > ul > li > a { padding: 0 7px; font-size: 13px; letter-spacing: 0; }
}
@media (min-width: 1071px) and (max-width: 1150px) {
    #site-menu .site-menu > ul > li > a { padding: 0 5px; }
}

.coolcart{
    display: inline-block;
    position: relative;
    width: 44px;
    height: 44px;
    margin-left: 6px;
    transition: background-color .35s;
    border: 1px solid #e1e7ec;
    border-radius: 50%;
    color: #606975;
    font-size: 17px;
    cursor: pointer;
    vertical-align: middle;
    text-align: center;
    text-decoration: none;
}

.user-menu ul>li:hover>.sub-menu {
    display: block;
    -webkit-animation: submenu-show 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: submenu-show 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    left: -99%;
}

.avanti-badge-container {
    position: relative;
    display: inline-block;
}

.avanti-badge {
    position: absolute;
    bottom: -8px;
    right: -10px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 2px;
}

.cart-counter {
    position: absolute;
    top: 5px;
    right: -10px;
    background-color: #2563eb;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden; /* loadCartCounter() blendet ein */
}
