/* ===== BBR Mobile Flyout Menu ===== */

/* Hamburger */
.bbr-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 9px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 0;
}
.bbr-hamburger svg {
    display: block;
    flex-shrink: 0;
}

/* Overlay */
.bbr-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99980;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.bbr-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

/* Flyout panel */
.bbr-flyout {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: 320px;
    max-width: 90vw;
    height: 100dvh;
    background: #fff;
    z-index: 99990;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: -6px 0 32px rgba(0,0,0,0.18);
    overflow: hidden;
}
.bbr-flyout.is-open {
    transform: translateX(0) !important;
}

/* Flyout header bar */
.bbr-flyout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 0 20px;
    height: 52px;
    border-bottom: 1px solid #ebebeb;
    flex-shrink: 0;
}
.bbr-flyout-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    letter-spacing: 0.02em;
}

/* Close button */
.bbr-flyout-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #444;
    border-radius: 50%;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.bbr-flyout-close:hover {
    background: #f0f0f0;
}
.bbr-flyout-close:hover svg {
    stroke: #ac0018 !important;
}

/* Scrollable body */
.bbr-flyout-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0 8px;
    overscroll-behavior: contain;
}

/* Search */
.bbr-flyout-search {
    padding: 4px 16px 12px;
}
.bbr-flyout-search form {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 0 12px;
    gap: 8px;
}
.bbr-flyout-search input[type="search"] {
    flex: 1;
    border: none;
    background: none;
    padding: 11px 0;
    font-size: 14px;
    outline: none;
    color: inherit;
    min-width: 0;
}
.bbr-flyout-search input[type="search"]::placeholder {
    color: #aaa;
}
.bbr-flyout-search button[type="submit"] {
    background: none;
    border: none;
    cursor: pointer;
    color: #777;
    padding: 8px 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.bbr-flyout-search button[type="submit"]:hover {
    color: #ac0018;
}

/* Divider */
.bbr-divider {
    border: none;
    border-top: 1px solid #ebebeb;
    margin: 8px 0;
}

/* Section labels */
.bbr-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #aaa;
    padding: 10px 20px 4px;
}

/* Quick links */
.bbr-flyout-items {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bbr-flyout-items li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.bbr-flyout-items li a:hover {
    background: #fdf0f1;
    color: #ac0018;
}
.bbr-item-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ac0018;
}

/* WordPress nav menu inside flyout */
.bbr-flyout-nav > div > ul,
.bbr-flyout-nav > ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bbr-flyout-nav ul li {
    border-bottom: 1px solid #f2f2f2;
}
.bbr-flyout-nav ul li a {
    display: block;
    padding: 11px 20px;
    font-size: 15px;
    color: #222;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.bbr-flyout-nav ul li a:hover,
.bbr-flyout-nav ul li.current-menu-item > a,
.bbr-flyout-nav ul li.current-menu-ancestor > a {
    background: #fdf0f1;
    color: #ac0018;
}
.bbr-flyout-nav ul ul {
    padding-left: 16px;
    background: #fafafa;
}
.bbr-flyout-nav ul ul li a {
    font-size: 14px;
    color: #555;
}

/* Social */
.bbr-flyout-social {
    display: flex;
    gap: 10px;
    padding: 12px 20px;
}
.bbr-flyout-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    font-size: 18px;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.bbr-flyout-social a:hover {
    background: #ac0018;
    color: #fff;
}

/* Sticky footer */
.bbr-flyout-footer {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid #ebebeb;
    background: #fff;
}
.bbr-flyout-footer a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.bbr-flyout-footer .bbr-btn-abo {
    background: #ac0018;
    color: #fff !important;
}
.bbr-flyout-footer .bbr-btn-abo:hover {
    background: #8a0013;
    color: #fff !important;
}
.bbr-flyout-footer .bbr-btn-anmelden {
    background: #f0f0f0;
    color: #222 !important;
    border: 1px solid #e0e0e0;
}
.bbr-flyout-footer .bbr-btn-anmelden:hover {
    background: #e4e4e4;
    color: #222 !important;
}

/* ── Always hide search icon and user/login link from header ── */
.br-actions .af-search-wrap,
.br-actions .br-user-link {
    display: none !important;
}

/* ── Mobile header actions ── */
.br-mobile-actions {
    display: none;
    align-items: center;
    gap: 8px;
}
.bbr-header-anmelden {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #222 !important;
    text-decoration: none;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.bbr-header-anmelden:hover {
    background: #e0e0e0;
}
.bbr-header-abo {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    background: #ac0018;
    white-space: nowrap;
    transition: background 0.2s;
}
.bbr-header-abo:hover {
    background: #8a0013;
    color: #fff !important;
}

/* ── Breakpoint: show mobile, hide desktop nav ── */
@media (max-width: 992px) {
    /* Layout: [Logo (flex)] [Abo] [☰] */
    .br-main-row {
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 0 !important;
    }
    .bbr-hamburger {
        display: flex !important;
        order: 3 !important;
        margin-left: 4px !important;
    }
    .br-logo {
        flex: 1 !important;
        order: 1 !important;
    }
    .br-cta {
        display: none !important;
    }
    .br-nav {
        display: none !important;
    }
    .br-actions {
        order: 2 !important;
        margin-left: 0 !important;
    }
    .br-actions .morenews-dark-mode-wrapper {
        display: none !important;
    }
    .br-mobile-actions {
        display: flex !important;
        align-items: center !important;
    }
}
@media (min-width: 993px) {
    .br-mobile-actions {
        display: none !important;
    }
    /* Hamburger sits after the existing actions on desktop */
    .bbr-hamburger {
        order: 10;
        margin-left: 4px;
    }
}

/* ── Dark mode ── */
body.aft-dark-mode .bbr-flyout,
body.aft-dark-mode .bbr-flyout-footer {
    background: #1c1c1c;
    color: #e8e8e8;
}
body.aft-dark-mode .bbr-flyout-close {
    color: #ccc;
}
body.aft-dark-mode .bbr-flyout-header {
    border-bottom-color: #2e2e2e;
}
body.aft-dark-mode .bbr-flyout-title {
    color: #e8e8e8;
}
body.aft-dark-mode .bbr-flyout-close {
    color: #ccc;
}
body.aft-dark-mode .bbr-flyout-close:hover {
    background: #2a2a2a;
}
body.aft-dark-mode .bbr-flyout-search form {
    background: #2a2a2a;
}
body.aft-dark-mode .bbr-flyout-search input[type="search"] {
    color: #e8e8e8;
}
body.aft-dark-mode .bbr-divider {
    border-color: #2e2e2e;
}
body.aft-dark-mode .bbr-section-label {
    color: #666;
}
body.aft-dark-mode .bbr-flyout-items li a {
    color: #e8e8e8;
}
body.aft-dark-mode .bbr-flyout-items li a:hover {
    background: #2a2a2a;
}
body.aft-dark-mode .bbr-flyout-nav ul li {
    border-bottom-color: #2a2a2a;
}
body.aft-dark-mode .bbr-flyout-nav ul li a {
    color: #e8e8e8;
}
body.aft-dark-mode .bbr-flyout-nav ul li a:hover {
    background: #2a2a2a;
}
body.aft-dark-mode .bbr-flyout-nav ul ul {
    background: #1a1a1a;
}
body.aft-dark-mode .bbr-flyout-nav ul ul li a {
    color: #bbb;
}
body.aft-dark-mode .bbr-flyout-social a {
    background: #2a2a2a;
    color: #ccc;
}
body.aft-dark-mode .bbr-flyout-footer {
    border-top-color: #2e2e2e;
}
body.aft-dark-mode .bbr-flyout-footer .bbr-btn-anmelden {
    background: #2a2a2a;
    color: #e8e8e8 !important;
    border-color: #3a3a3a;
}
body.aft-dark-mode .bbr-flyout-footer .bbr-btn-anmelden:hover {
    background: #333;
}
body.aft-dark-mode .bbr-header-anmelden {
    background: #2a2a2a;
    color: #e8e8e8 !important;
    border-color: #3a3a3a;
}

/* ── Topline alignment fix ── */
.br-topline {
    display: block !important;
    width: 100% !important;
}
.br-topline .container-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    min-height: 34px;
    padding-left: 20px !important;
    padding-right: 20px !important;
}
.br-topline-left {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
}
.br-topline-right {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0;
    margin-left: auto;
}
