/* =========================================================
   custom-bs-header.css
   Kompakter Header für Bootstrap 5.3.8
   ========================================================= */

.reklamalandiswrap {
    display: block;
    width: 100%;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/*
 * Der Header-Wrapper liegt direkt vor dem Seiteninhalt.
 * Alte Layout-Regeln gaben #mt-main oberhalb pauschal Abstand und
 * erzeugten dadurch den sichtbaren Leerraum unter der Header-Linie.
 */
.reklamalandiswrap.ah-header-flow + #mt-main,
.reklamalandiswrap.ah-header-flow ~ #mt-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.reklamalandiswrap.ah-header-flow + #mt-main > :first-child,
.reklamalandiswrap.ah-header-flow ~ #mt-main > :first-child {
    margin-top: 0 !important;
}

#mt-header {
    position: relative;
    margin: 0 !important;
    background: #fff;
}

#mt-header .mt-bottom-bar {
    --hdr-h: 44px;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: .45rem 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    background: #fff !important;
}

/* Keine Trennlinie unter dem Hauptheader. */
#mt-header.ah-header-no-divider,
#mt-header.ah-header-no-divider .mt-bottom-bar {
    border-bottom: 0 !important;
    box-shadow: none !important;
}

#mt-header.ah-header-no-divider::after,
#mt-header.ah-header-no-divider .mt-bottom-bar::after {
    content: none !important;
    display: none !important;
}

#mt-header .mt-bottom-bar .ah-header-container {
    width: 100%;
    max-width: 1600px;
    min-height: 0 !important;
    margin: 0 auto;
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
}

#mt-header .mt-bottom-bar .row {
    --bs-gutter-x: 0;
    min-height: 0 !important;
    margin: 0 !important;
}

#mt-header .mt-bottom-bar .col-12 {
    min-height: 0 !important;
    padding: 0 !important;
}

#mt-header .mt-bottom-bar .header-row {
    width: 100%;
    min-width: 0;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

#mt-header.ah-header-compact .header-row > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* -------------------------
   Desktop Layout (>= 992px)
   ------------------------- */
@media (min-width: 992px) {
    #mt-header .mt-bottom-bar .header-row {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 1.25rem !important;
    }

    #mt-header .mt-bottom-bar .mt-logo {
        position: static !important;
        float: none !important;
        flex: 0 0 82px !important;
        width: 82px !important;
        max-width: 82px !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #mt-header .mt-bottom-bar .mt-logo a {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100%;
        height: 58px !important;
        min-height: 0 !important;
        line-height: 1 !important;
    }

    #mt-header .mt-bottom-bar .mt-logo img {
        display: block !important;
        width: 82px !important;
        max-width: 82px !important;
        height: auto !important;
        max-height: 58px !important;
        object-fit: contain;
    }

    #mt-header .mt-bottom-bar form#tekkelimeilanarama.mt-search-box.header-search,
    #mt-header .mt-bottom-bar form#tekkelimeilanarama fieldset {
        display: flex !important;
        align-items: center !important;
    }

    #mt-header .mt-bottom-bar form#tekkelimeilanarama.mt-search-box.header-search {
        flex: 1 1 620px !important;
        width: auto !important;
        min-width: 320px !important;
        max-width: 950px !important;
        height: var(--hdr-h) !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        border: 0 !important;
        outline: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    #mt-header .mt-bottom-bar form#tekkelimeilanarama fieldset {
        position: relative !important;
        width: 100% !important;
        height: var(--hdr-h) !important;
        min-height: var(--hdr-h) !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 1px solid rgba(15, 23, 42, .14) !important;
        border-radius: 999px !important;
        background: #fff !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, .06) !important;
        overflow: hidden !important;
    }

    #mt-header .mt-bottom-bar form#tekkelimeilanarama fieldset::before,
    #mt-header .mt-bottom-bar form#tekkelimeilanarama fieldset::after {
        content: none !important;
        display: none !important;
    }

    #mt-header .mt-bottom-bar form#tekkelimeilanarama fieldset:hover {
        border-color: rgba(15, 23, 42, .23) !important;
        box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .08) !important;
    }

    #mt-header .mt-bottom-bar form#tekkelimeilanarama fieldset:focus-within {
        border-color: rgba(245, 159, 0, .75) !important;
        box-shadow: 0 0 0 .2rem rgba(245, 159, 0, .14) !important;
    }

    #mt-header .mt-bottom-bar #tekkelimeilanaramainput {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        height: var(--hdr-h) !important;
        line-height: normal !important;
        margin: 0 !important;
        padding: 0 56px 0 18px !important;
        border: 0 !important;
        border-radius: 0 !important;
        outline: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #172033 !important;
        font-size: .95rem !important;
        font-weight: 500 !important;
        text-align: left !important;
        text-indent: 0 !important;
    }

    #mt-header .mt-bottom-bar #tekkelimeilanaramainput::placeholder {
        color: #7b8492 !important;
        font-weight: 500 !important;
        opacity: 1;
    }

    #mt-header .mt-bottom-bar #tekkelimeilanaramabutton.fa-search {
        position: absolute !important;
        top: 50% !important;
        right: 5px !important;
        z-index: 2 !important;
        width: 36px !important;
        height: 36px !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: translateY(-50%) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 0 !important;
        border-radius: 999px !important;
        outline: 0 !important;
        background: transparent !important;
        color: #f08c00 !important;
        cursor: pointer !important;
        box-shadow: none !important;
        transition: background-color .15s ease, transform .05s ease;
    }

    #mt-header .mt-bottom-bar #tekkelimeilanaramabutton.fa-search:hover,
    #mt-header .mt-bottom-bar #tekkelimeilanaramabutton.fa-search:focus-visible {
        background: rgba(245, 159, 0, .11) !important;
        color: #d97706 !important;
    }

    #mt-header .mt-bottom-bar #tekkelimeilanaramabutton.fa-search:active {
        transform: translateY(-50%) scale(.97) !important;
    }

    #mt-header .mt-bottom-bar .header-right {
        display: flex !important;
        align-items: center !important;
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: var(--hdr-h) !important;
        margin: 0 0 0 auto !important;
        padding: 0 !important;
        gap: .65rem !important;
        float: none !important;
        white-space: nowrap !important;
    }

    #mt-header .mt-bottom-bar .mt-shoplist-header.hederdildis,
    #mt-header .mt-bottom-bar .mt-shoplist-header.hederdildis > .d-inline-flex {
        display: inline-flex !important;
        align-items: center !important;
        width: auto !important;
        height: var(--hdr-h) !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        gap: .65rem !important;
    }

    #mt-header .mt-bottom-bar .ah-dd--lang .dropdown-toggle,
    #mt-header .mt-bottom-bar .header-post-ad-btn,
    #mt-header .mt-bottom-bar .ah-qm-trigger,
    #mt-header .mt-bottom-bar .cart-opener {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: var(--hdr-h) !important;
        min-height: var(--hdr-h) !important;
        margin: 0 !important;
        line-height: 1 !important;
    }

    #mt-header .mt-bottom-bar .ah-dd--lang .dropdown-toggle {
        min-width: 76px !important;
        padding: 0 .85rem !important;
    }

    #mt-header .mt-bottom-bar .header-post-ad-btn,
    #mt-header .mt-bottom-bar .header-post-ad-btn:link,
    #mt-header .mt-bottom-bar .header-post-ad-btn:visited,
    #mt-header .mt-bottom-bar .header-post-ad-btn:hover,
    #mt-header .mt-bottom-bar .header-post-ad-btn:focus,
    #mt-header .mt-bottom-bar .header-post-ad-btn:active {
        padding: 0 1.05rem !important;
        gap: .45rem !important;
        border: 0 !important;
        border-radius: 999px !important;
        background: linear-gradient(135deg, #f5a000 0%, #e88b00 100%) !important;
        color: #fff !important;
        font-size: .92rem !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        box-shadow: 0 .35rem .9rem rgba(232, 139, 0, .20) !important;
    }

    #mt-header .mt-bottom-bar .header-post-ad-btn:hover,
    #mt-header .mt-bottom-bar .header-post-ad-btn:focus-visible {
        background: linear-gradient(135deg, #ec9800 0%, #d98000 100%) !important;
        color: #fff !important;
    }

    #mt-header .mt-bottom-bar .mt-icon-list {
        display: flex !important;
        align-items: center !important;
        flex: 0 0 auto !important;
        width: auto !important;
        height: var(--hdr-h) !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: .55rem !important;
        float: none !important;
    }

    #mt-header .mt-bottom-bar .mt-icon-list > li {
        display: flex !important;
        align-items: center !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    #mt-header .mt-bottom-bar .mt-icon-list > li.mobilarama,
    #mt-header .mt-bottom-bar .mt-icon-list > li.mobilarama.d-lg-none {
        display: none !important;
    }

    #mt-header .mt-bottom-bar .ah-qm-trigger,
    #mt-header .mt-bottom-bar .cart-opener {
        flex: 0 0 var(--hdr-h) !important;
        width: var(--hdr-h) !important;
        min-width: var(--hdr-h) !important;
        padding: 0 !important;
        border: 1px solid rgba(15, 23, 42, .12) !important;
        border-radius: 999px !important;
        background: #fff !important;
        color: #343a40 !important;
        text-decoration: none !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, .06) !important;
    }

    #mt-header .mt-bottom-bar .ah-qm-trigger:hover,
    #mt-header .mt-bottom-bar .ah-qm-trigger:focus-visible,
    #mt-header .mt-bottom-bar .cart-opener:hover,
    #mt-header .mt-bottom-bar .cart-opener:focus-visible {
        border-color: rgba(15, 23, 42, .2) !important;
        background: #fffaf0 !important;
        color: #d97706 !important;
    }
}

/* Mobile: nur kleine Typo-Anpassung (optional) */
@media (max-width: 991.98px) {
    #mt-header .mt-bottom-bar .header-row,
    #mt-header .mt-bottom-bar .header-right,
    #mt-header .mt-bottom-bar .mt-icon-list {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }

    #mt-header .mt-bottom-bar .ah-dd--lang .dropdown-toggle,
    #mt-header .mt-bottom-bar .header-post-ad-btn,
    #mt-header .mt-bottom-bar .ah-mobile-search-btn,
    #mt-header .mt-bottom-bar .ah-qm-trigger,
    #mt-header .mt-bottom-bar .cart-opener {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #mt-header .mt-bottom-bar #tekkelimeilanaramainput {
        font-size: .95rem !important;
    }

    #mt-header .mt-bottom-bar {
        --hdr-h: 42px;
        padding: .55rem 0 !important;
    }

    #mt-header .mt-bottom-bar .container-fluid {
        padding-right: .75rem !important;
        padding-left: .75rem !important;
    }

    #mt-header .mt-bottom-bar .header-row {
        width: 100% !important;
        min-width: 0 !important;
        gap: .5rem !important;
    }

    #mt-header .mt-bottom-bar .mt-logo {
        position: static !important;
        float: none !important;
        flex: 0 0 62px !important;
        width: 62px !important;
        max-width: 62px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #mt-header .mt-bottom-bar .mt-logo a {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    #mt-header .mt-bottom-bar .mt-logo img {
        display: block !important;
        width: 62px !important;
        max-width: 62px !important;
        height: auto !important;
        max-height: 54px !important;
        object-fit: contain;
    }

    /* Große Suchleiste mobil ausblenden */
    #mt-header .mt-bottom-bar form#tekkelimeilanarama {
        display: none !important;
    }

    #mt-header .mt-bottom-bar .header-right {
        flex: 1 1 auto !important;
        justify-content: flex-end !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 0 0 auto !important;
        padding: 0 !important;
        gap: .4rem !important;
        float: none !important;
        white-space: nowrap !important;
    }

    #mt-header .mt-bottom-bar .mt-shoplist-header.hederdildis {
        display: block !important;
        flex: 0 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
    }

    #mt-header .mt-bottom-bar .mt-shoplist-header.hederdildis > .d-inline-flex {
        display: inline-flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: .4rem !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #mt-header .mt-bottom-bar .ah-dd--lang .dropdown-toggle {
        width: 54px !important;
        min-width: 54px !important;
        height: var(--hdr-h) !important;
        min-height: var(--hdr-h) !important;
        padding: 0 .55rem !important;
        gap: .3rem !important;
        border-radius: 999px !important;
        font-size: .88rem !important;
        line-height: 1 !important;
    }

    #mt-header .mt-bottom-bar .header-post-ad-btn {
        width: auto !important;
        height: var(--hdr-h) !important;
        min-height: var(--hdr-h) !important;
        margin: 0 !important;
        padding: 0 .75rem !important;
        gap: .35rem !important;
        border-radius: 999px !important;
        font-size: .84rem !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    #mt-header .mt-bottom-bar .mt-icon-list {
        flex: 0 0 auto !important;
        width: auto !important;
        height: var(--hdr-h) !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: .4rem !important;
        float: none !important;
    }

    #mt-header .mt-bottom-bar .mt-icon-list > li {
        display: flex !important;
        align-items: center !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #mt-header .mt-bottom-bar .ah-mobile-search-btn,
    #mt-header .mt-bottom-bar .ah-qm-trigger,
    #mt-header .mt-bottom-bar .cart-opener {
        flex: 0 0 var(--hdr-h) !important;
        width: var(--hdr-h) !important;
        min-width: var(--hdr-h) !important;
        height: var(--hdr-h) !important;
        min-height: var(--hdr-h) !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 999px !important;
    }
}
@media (max-width: 430px) {
    #mt-header .mt-bottom-bar {
        --hdr-h: 38px;
    }

    #mt-header .mt-bottom-bar .container-fluid {
        padding-right: .5rem !important;
        padding-left: .5rem !important;
    }

    #mt-header .mt-bottom-bar .header-row,
    #mt-header .mt-bottom-bar .header-right,
    #mt-header .mt-bottom-bar .mt-icon-list,
    #mt-header .mt-bottom-bar .mt-shoplist-header.hederdildis > .d-inline-flex {
        gap: .25rem !important;
    }

    #mt-header .mt-bottom-bar .mt-logo {
        flex-basis: 50px !important;
        width: 50px !important;
        max-width: 50px !important;
    }

    #mt-header .mt-bottom-bar .mt-logo img {
        width: 50px !important;
        max-width: 50px !important;
    }

    #mt-header .mt-bottom-bar .ah-dd--lang .dropdown-toggle {
        width: 47px !important;
        min-width: 47px !important;
        padding: 0 .35rem !important;
        font-size: .78rem !important;
    }

    #mt-header .mt-bottom-bar .header-post-ad-btn {
        padding: 0 .55rem !important;
        gap: .25rem !important;
        font-size: .76rem !important;
    }
}
/* -----------------------------------------
   Dropdown + „Yeni ilan ver“ Pill (Header)
   ----------------------------------------- */
#mt-header .mt-bottom-bar .mt-shoplist-header.hederdildis .dropdown.ah-dd .dropdown-toggle {
  appearance:none !important;
  -webkit-appearance:none !important;

  border-radius:999px !important;
  border:1px solid rgba(0, 0, 0, .12) !important;
  background:#fff !important;
  color:#222 !important;

  font-weight:600 !important;
  box-shadow:0 1px 2px rgba(0, 0, 0, .08) !important;

  gap:.5rem !important;
  padding:0 .9rem !important;
  text-decoration:none !important;
  white-space:nowrap !important;
}
#mt-header .mt-bottom-bar .mt-shoplist-header.hederdildis .dropdown.ah-dd .dropdown-toggle::after {
  display:none !important;
}

#mt-header .mt-bottom-bar .mt-shoplist-header.hederdildis .dropdown.ah-dd .dropdown-menu {
  border-radius:14px !important;
  border:1px solid rgba(0, 0, 0, .12) !important;
  box-shadow:0 .35rem 1rem rgba(0, 0, 0, .12) !important;
  padding:.35rem !important;
  margin-top:.4rem !important;
  width:max-content !important;
  min-width:0 !important;
}

/* =========================================
   TOP BAR – kompakte Werbefläche
   ========================================= */
.mt-top-bar.mt-top-bar--placeholder {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: .7rem 0 !important;
    background: #fff;
}

.mt-top-bar--placeholder .ah-top-ad-container {
    max-width: 1320px;
    padding-right: .75rem;
    padding-left: .75rem;
}

.mt-top-bar--placeholder .ah-top-adbox {
    min-height: 66px;
    margin: 0;
    padding: .55rem .75rem !important;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px !important;
    background: linear-gradient(180deg, rgba(255, 193, 7, .12) 0%, #fff 78%);
    box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .05);
}

.mt-top-bar--placeholder .ah-top-adbox__main,
.mt-top-bar--placeholder .ah-top-adbox__copy {
    min-width: 0;
}

.mt-top-bar--placeholder .ah-top-adbox__main {
    flex: 1 1 auto;
    overflow: hidden;
}

.mt-top-bar--placeholder .ah-top-adbox__copy {
    overflow: hidden;
}

.mt-top-bar--placeholder .ah-top-adbox__icon {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(245, 159, 0, .30);
    border-radius: 13px;
    background: rgba(245, 159, 0, .12);
    color: #4b4b42;
    font-size: 1rem;
}

.mt-top-bar--placeholder .ah-top-adbox__title {
    overflow: hidden;
    color: #172033;
    font-size: .98rem;
    font-weight: 750;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mt-top-bar--placeholder .ah-top-adbox__text {
    overflow: hidden;
    margin-top: .12rem;
    color: #6b7280;
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mt-top-bar--placeholder .ah-top-adbox__btn,
.mt-top-bar--placeholder .ah-top-adbox__btn:link,
.mt-top-bar--placeholder .ah-top-adbox__btn:visited {
    min-height: 40px;
    padding: 0 .9rem !important;
    border: 1px solid rgba(15, 23, 42, .11);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: #404040;
    font-size: .86rem;
    font-weight: 750;
    letter-spacing: .035em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 .2rem .65rem rgba(15, 23, 42, .05);
}

.mt-top-bar--placeholder .ah-top-adbox__btn:hover,
.mt-top-bar--placeholder .ah-top-adbox__btn:focus-visible {
    border-color: rgba(245, 159, 0, .42);
    background: #fffaf0;
    color: #c96f00;
}

@media (max-width: 767.98px) {
    .mt-top-bar.mt-top-bar--placeholder {
        padding: .45rem 0 !important;
    }

    .mt-top-bar--placeholder .ah-top-adbox {
        min-height: 56px;
        padding: .4rem .5rem !important;
        border-radius: 14px !important;
    }

    .mt-top-bar--placeholder .ah-top-adbox__icon {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .mt-top-bar--placeholder .ah-top-adbox__title {
        font-size: .9rem;
    }

    .mt-top-bar--placeholder .ah-top-adbox__text {
        font-size: .78rem;
    }

    .mt-top-bar--placeholder .ah-top-adbox__btn {
        min-height: 38px;
        padding: 0 .7rem !important;
        font-size: .78rem;
    }
}

@media (max-width: 480px) {
    .mt-top-bar--placeholder .ah-top-adbox__text,
    .mt-top-bar--placeholder .ah-top-adbox__btn-label {
        display: none;
    }

    .mt-top-bar--placeholder .ah-top-adbox__btn {
        flex: 0 0 38px;
        width: 38px;
        padding: 0 !important;
    }
}

/* Header bleibt über Content-Karten */
#mt-header.is-fixed,
#mt-header.fixed,
#mt-header.header-fixed,
#mt-header.sticky,
#mt-header.navbar-fixed {
  z-index:1056 !important;
  background:#fff !important;
}

/* QUICK MENU / OFFCANVAS muss ÜBER dem Header liegen */
.offcanvas.ah-qm,
#quickMenu.offcanvas {
  z-index:1061 !important;  /* > 1056 */
}

.offcanvas-backdrop {
  z-index:1060 !important;  /* knapp unter Offcanvas */
}


/*
 * Kein pauschaler Header-Offset: Der Header befindet sich in diesem
 * Layout bereits im Dokumentfluss. Der fruehere 88-px-Ausgleich war
 * die Ursache fuer den unnoetigen Leerraum vor dem Seiteninhalt.
 */
body.ah-header-fixed #mt-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* =========================================================
   MOBILER HEADER – kompakter CTA ohne Überlappung
   ========================================================= */
@media (max-width: 991.98px) {
    /* Sprachwahl + CTA vor Suche und Quick-Menü anzeigen */
    #mt-header .mt-bottom-bar .mt-shoplist-header.hederdildis {
        order: 1 !important;
    }

    #mt-header .mt-bottom-bar .mt-icon-list {
        order: 2 !important;
    }

    #mt-header .mt-bottom-bar .header-post-ad-btn,
    #mt-header .mt-bottom-bar .header-post-ad-btn:link,
    #mt-header .mt-bottom-bar .header-post-ad-btn:visited,
    #mt-header .mt-bottom-bar .header-post-ad-btn:hover,
    #mt-header .mt-bottom-bar .header-post-ad-btn:focus,
    #mt-header .mt-bottom-bar .header-post-ad-btn:active {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        height: var(--hdr-h) !important;
        min-height: var(--hdr-h) !important;
        margin: 0 !important;
        padding: 0 .72rem !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: .35rem !important;

        border: 0 !important;
        border-radius: 999px !important;
        background: linear-gradient(135deg, #f5a000 0%, #e88b00 100%) !important;
        color: #fff !important;

        font-size: .82rem !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        text-decoration: none !important;
        white-space: nowrap !important;

        box-shadow: 0 .35rem .9rem rgba(232, 139, 0, .22) !important;
    }

    #mt-header .mt-bottom-bar .header-post-ad-btn:hover,
    #mt-header .mt-bottom-bar .header-post-ad-btn:focus-visible {
        background: linear-gradient(135deg, #ec9800 0%, #d98000 100%) !important;
        color: #fff !important;
        box-shadow: 0 .45rem 1rem rgba(217, 128, 0, .28) !important;
    }

    #mt-header .mt-bottom-bar .header-post-ad-btn i {
        flex: 0 0 auto !important;
        margin: 0 !important;
        font-size: .9rem !important;
        line-height: 1 !important;
    }

    #mt-header .mt-bottom-bar .header-post-ad-label {
        display: inline-block !important;
        min-width: 0 !important;
        line-height: 1 !important;
    }
}

@media (max-width: 430px) {
    #mt-header .mt-bottom-bar .header-post-ad-btn,
    #mt-header .mt-bottom-bar .header-post-ad-btn:link,
    #mt-header .mt-bottom-bar .header-post-ad-btn:visited,
    #mt-header .mt-bottom-bar .header-post-ad-btn:hover,
    #mt-header .mt-bottom-bar .header-post-ad-btn:focus,
    #mt-header .mt-bottom-bar .header-post-ad-btn:active {
        padding: 0 .55rem !important;
        gap: .25rem !important;
        font-size: .74rem !important;
        box-shadow: 0 .25rem .65rem rgba(232, 139, 0, .20) !important;
    }

    #mt-header .mt-bottom-bar .header-post-ad-btn i {
        font-size: .82rem !important;
    }
}

/* Auf sehr schmalen Geräten bleibt der CTA als klarer Plus-Button erhalten. */
@media (max-width: 350px) {
    #mt-header .mt-bottom-bar .header-post-ad-btn {
        flex: 0 0 var(--hdr-h) !important;
        width: var(--hdr-h) !important;
        min-width: var(--hdr-h) !important;
        padding: 0 !important;
    }

    #mt-header .mt-bottom-bar .header-post-ad-label {
        display: none !important;
    }
}

/* =========================================================
   MOBILE SUCHE – Lupe öffnet die einfache Stichwortsuche
   ========================================================= */
#mt-header .ah-mobile-search-panel {
    display: none;
}

@media (max-width: 991.98px) {
    #mt-header .ah-mobile-search-panel.is-open {
        display: block;
        width: 100%;
        padding-top: .75rem;
        animation: ahMobileSearchIn .16s ease-out;
    }

    #mt-header .ah-mobile-search-form {
        width: 100%;
        padding: .75rem;
        border: 1px solid rgba(15, 23, 42, .09);
        border-radius: 18px;
        background: linear-gradient(180deg, #fff 0%, #fffaf0 100%);
        box-shadow: 0 .55rem 1.4rem rgba(15, 23, 42, .08);
    }

    #mt-header .ah-mobile-search-field {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
    }

    #mt-header .ah-mobile-search-field__icon {
        position: absolute;
        left: 1rem;
        z-index: 2;
        color: #64748b;
        pointer-events: none;
    }

    #mt-header #ahMobileSearchInput {
        width: 100%;
        min-height: 50px;
        padding: .75rem 3.75rem .75rem 2.75rem;
        border: 1px solid rgba(15, 23, 42, .16);
        border-radius: 14px;
        background: #fff;
        color: #172033;
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.2;
        box-shadow: none;
    }

    #mt-header #ahMobileSearchInput::placeholder {
        color: #7b8492;
        font-weight: 500;
        opacity: 1;
    }

    #mt-header #ahMobileSearchInput:focus {
        border-color: rgba(245, 159, 0, .85);
        outline: 0;
        box-shadow: 0 0 0 .22rem rgba(245, 159, 0, .16);
    }

    #mt-header .ah-mobile-search-submit {
        position: absolute;
        top: 50%;
        right: .35rem;
        z-index: 3;
        width: 42px;
        height: 42px;
        padding: 0;
        transform: translateY(-50%);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 11px;
        background: linear-gradient(135deg, #f5a000 0%, #e88b00 100%);
        color: #fff;
        box-shadow: 0 .35rem .8rem rgba(232, 139, 0, .24);
    }

    #mt-header .ah-mobile-search-submit:hover,
    #mt-header .ah-mobile-search-submit:focus-visible {
        background: linear-gradient(135deg, #ec9800 0%, #d98000 100%);
        color: #fff;
    }

    #mt-header .ah-mobile-search-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .5rem;
        margin-top: .6rem;
    }

    #mt-header .ah-mobile-detail-search-btn {
        min-height: 38px;
        padding: .4rem .7rem;
        display: inline-flex;
        align-items: center;
        gap: .45rem;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: #4b5563;
        font-size: .88rem;
        font-weight: 700;
        text-decoration: none;
    }

    #mt-header .ah-mobile-detail-search-btn:hover,
    #mt-header .ah-mobile-detail-search-btn:focus-visible {
        background: rgba(245, 159, 0, .10);
        color: #d97706;
    }

    #mt-header .ah-mobile-search-close {
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(15, 23, 42, .10);
        border-radius: 999px;
        background: #fff;
        color: #4b5563;
    }

    #mt-header .ah-mobile-search-btn[aria-expanded="true"] {
        border-color: rgba(245, 159, 0, .55) !important;
        background: rgba(245, 159, 0, .11) !important;
        color: #d97706 !important;
        box-shadow: 0 0 0 .18rem rgba(245, 159, 0, .11) !important;
    }
}

@keyframes ahMobileSearchIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* =========================================================
   FIX: Mobiler Header darf die erste Inhaltsleiste nicht überdecken
   ========================================================= */
@media (max-width: 991.98px) {
    #mt-header.is-fixed,
    #mt-header.fixed,
    #mt-header.header-fixed,
    #mt-header.sticky,
    #mt-header.navbar-fixed {
        position: sticky !important;
        top: 0 !important;
        right: auto !important;
        left: auto !important;
        width: 100% !important;
    }

    /* Ein sticky Header bleibt im Dokumentfluss; zusätzlicher Abstand
       würde den Inhalt unnötig verschieben. */
    body.ah-header-fixed #mt-main {
        padding-top: 0 !important;
    }
}

/* =========================================================
   HEADER-FEINSCHLIFF
   - keine Linie oberhalb der Logozeile
   - weniger vertikaler Leerraum unter dem Logo
   - leerer mobiler Ergebnis-Slot belegt keinen Platz
   ========================================================= */
#mt-header.ah-header-tight,
#mt-header.ah-header-tight .mt-bottom-bar {
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

#mt-header.ah-header-tight::before,
#mt-header.ah-header-tight::after,
#mt-header.ah-header-tight .mt-bottom-bar::before,
#mt-header.ah-header-tight .mt-bottom-bar::after {
    content: none !important;
    display: none !important;
}

/* Desktop: Headerzeile etwas niedriger, ohne Bedienelemente zu verkleinern. */
@media (min-width: 992px) {
    #mt-header.ah-header-tight .mt-bottom-bar {
        padding-top: .22rem !important;
        padding-bottom: .22rem !important;
    }

    #mt-header.ah-header-tight .mt-bottom-bar .mt-logo a {
        height: 52px !important;
    }

    #mt-header.ah-header-tight .mt-bottom-bar .mt-logo img {
        max-height: 52px !important;
    }
}

/* Tablet und Smartphone ebenfalls etwas kompakter halten. */
@media (max-width: 991.98px) {
    #mt-header.ah-header-tight .mt-bottom-bar {
        padding-top: .35rem !important;
        padding-bottom: .35rem !important;
    }
}

/* Dieses Legacy-Element darf nur Platz einnehmen, wenn JS Inhalte einfügt. */
.ah-mobile-results-slot:empty {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

/* =========================================================
   DESKTOP-HEADER: unnötige Resthöhe unter Logo/Suche entfernen
   ========================================================= */
@media (min-width: 992px) {
    /*
     * Einige ältere Theme-Regeln geben #mt-header bzw. seinen inneren
     * Wrappern eine feste Mindesthöhe. Deshalb wird die komplette
     * Desktop-Zeile hier bewusst auf eine kompakte Gesamthöhe begrenzt.
     */
    #mt-header.ah-header-height-compact {
        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    #mt-header.ah-header-height-compact .mt-bottom-bar {
        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;
        margin: 0 !important;
        padding: 3px 0 !important;
        box-sizing: border-box !important;
    }

    #mt-header.ah-header-height-compact .ah-header-container,
    #mt-header.ah-header-height-compact .mt-bottom-bar > .container-fluid,
    #mt-header.ah-header-height-compact .mt-bottom-bar .row,
    #mt-header.ah-header-height-compact .mt-bottom-bar .col-12,
    #mt-header.ah-header-height-compact .ah-header-row-tight {
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        box-sizing: border-box !important;
    }

    #mt-header.ah-header-height-compact .mt-logo,
    #mt-header.ah-header-height-compact .mt-logo a {
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #mt-header.ah-header-height-compact .mt-logo img {
        max-height: 52px !important;
    }
}

/* =========================================================
   NAHTLOSER ÜBERGANG: Werbefläche -> Hauptheader
   Entfernt die horizontale Linie oberhalb der Logozeile.
   ========================================================= */

.reklamalandiswrap.ah-header-seamless-wrap {
    border: 0 !important;
    box-shadow: none !important;
}

.reklamalandiswrap.ah-header-seamless-wrap::before,
.reklamalandiswrap.ah-header-seamless-wrap::after {
    content: none !important;
    display: none !important;
}

/* Unterkante der oberen Werbeleiste vollständig neutralisieren. */
.reklamalandiswrap.ah-header-seamless-wrap > .mt-top-bar,
.reklamalandiswrap.ah-header-seamless-wrap > a > .mt-top-bar,
.reklamalandiswrap.ah-header-seamless-wrap > .mt-top-bar.mt-top-bar--placeholder {
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.reklamalandiswrap.ah-header-seamless-wrap > .mt-top-bar::before,
.reklamalandiswrap.ah-header-seamless-wrap > .mt-top-bar::after,
.reklamalandiswrap.ah-header-seamless-wrap > a > .mt-top-bar::before,
.reklamalandiswrap.ah-header-seamless-wrap > a > .mt-top-bar::after {
    content: none !important;
    display: none !important;
}

/* Oberkante der Logo-/Suchzeile ebenfalls ohne Trennlinie. */
.reklamalandiswrap.ah-header-seamless-wrap > #mt-header,
.reklamalandiswrap.ah-header-seamless-wrap > #mt-header .mt-bottom-bar,
.reklamalandiswrap.ah-header-seamless-wrap > #mt-header .ah-header-container,
.reklamalandiswrap.ah-header-seamless-wrap > #mt-header .header-row {
    border-top: 0 !important;
    outline: 0 !important;
}

.reklamalandiswrap.ah-header-seamless-wrap > #mt-header {
    box-shadow: none !important;
}

.reklamalandiswrap.ah-header-seamless-wrap > #mt-header::before,
.reklamalandiswrap.ah-header-seamless-wrap > #mt-header::after,
.reklamalandiswrap.ah-header-seamless-wrap > #mt-header .mt-bottom-bar::before,
.reklamalandiswrap.ah-header-seamless-wrap > #mt-header .mt-bottom-bar::after,
.reklamalandiswrap.ah-header-seamless-wrap > #mt-header .ah-header-container::before,
.reklamalandiswrap.ah-header-seamless-wrap > #mt-header .ah-header-container::after {
    content: none !important;
    display: none !important;
}
