/* Official Design System for Hamburger Verein für Briefmarkenkunde e.V. */
:root {
    --brand-turquoise: #55c3dc;
    --brand-turquoise-dark: #3ba8c1;
    --brand-turquoise-light: #e9f6f9;
    --brand-navy: #22313f;
    --brand-navy-dark: #0f172a;
    --bg-light: #f4f8fb;
    --bg-white: #ffffff;
    --border-color: #dbe7ef;
    --text-main: #22313f;
    --text-muted: #5a6d7c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background-color: var(--bg-light); color: var(--text-main); line-height: 1.6; }
h1, h2, h3, h4 { color: var(--brand-navy); line-height: 1.25; font-weight: 700; font-family: 'Lora', serif; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }

/* Top Bar */
.top-bar { background-color: var(--brand-navy); color: #ffffff; font-size: 0.85rem; padding: 0.6rem 0; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1400px !important; }
.top-bar-left { display: flex; align-items: center; gap: 1rem; }
.bdph-badge { background-color: rgba(255, 255, 255, 0.15); padding: 0.2rem 0.6rem; border-radius: 4px; font-weight: 600; font-size: 0.78rem; }
.top-bar-right { display: flex; align-items: center; gap: 1rem; }
.search-box { display: flex; align-items: center; background: rgba(255,255,255,0.12); border-radius: 20px; padding: 4px 12px; }
.search-box input { background: transparent; border: none; color: #fff; font-size: 0.82rem; outline: none; width: 120px; }
.search-box input::placeholder { color: rgba(255,255,255,0.7); }
.btn-top-login { background-color: var(--brand-turquoise); color: var(--brand-navy) !important; padding: 5px 14px; border-radius: 20px; font-weight: 700; font-size: 0.82rem; text-decoration: none !important; }

/* Header Navigation */
header { background-color: var(--bg-white); border-bottom: 2px solid var(--border-color); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(34, 49, 63, 0.06); }
.header-inner { max-width: 1400px !important; width: 100%; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; height: 76px; }
.brand-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; flex-shrink: 0; }
.brand-logo img { height: 48px; width: 48px; border-radius: 50%; border: 2px solid var(--brand-turquoise); flex-shrink: 0; }
.logo-titles { display: flex; flex-direction: column; justify-content: center; line-height: 1.25; flex-shrink: 0; }
.logo-titles .logo-main { font-size: 1.05rem; font-weight: 800; color: var(--brand-navy); white-space: nowrap; }
.logo-titles .logo-sub { font-size: 0.78rem; font-weight: 600; color: var(--brand-turquoise-dark); white-space: nowrap; }

.main-nav { display: flex; gap: 1.4rem; list-style: none; align-items: center; }
.main-nav li { position: relative; white-space: nowrap; }
.main-nav a { text-decoration: none; color: var(--brand-navy); font-weight: 600; font-size: 0.88rem; padding: 0.5rem 0.2rem; position: relative; }
.main-nav a:hover, .main-nav a.active { color: var(--brand-turquoise-dark); }
.main-nav a.active::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px; background-color: var(--brand-turquoise-dark); }

/* Dropdown Menu */
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background-color: #ffffff; min-width: 190px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); border-radius: 6px; border: 1px solid var(--border-color); list-style: none; padding: 0.5rem 0; z-index: 200; }
.dropdown-menu li { width: 100%; }
.dropdown-menu a { display: block; padding: 0.5rem 1rem; color: var(--brand-navy); font-size: 0.88rem; font-weight: 500; }
.dropdown-menu a:hover { background-color: var(--brand-turquoise-light); color: var(--brand-turquoise-dark); }
.main-nav li:hover .dropdown-menu { display: block; }

.btn-join { background-color: var(--brand-turquoise); color: var(--brand-navy); padding: 0.55rem 1.1rem; border-radius: 6px; font-weight: 700; font-size: 0.88rem; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.btn-join:hover { background-color: var(--brand-turquoise-dark); color: #ffffff; }

/* Member Sub-Navigation Bar */
.member-sub-nav { background: var(--brand-navy); border-bottom: 3px solid var(--brand-turquoise); padding: 0.75rem 0; box-shadow: inset 0 -2px 10px rgba(0,0,0,0.15); }
.member-nav-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.member-nav-links { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.member-nav-item { color: #cbd5e1; font-weight: 600; font-size: 0.88rem; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 6px; transition: all 0.2s; }
.member-nav-item:hover, .member-nav-item.active { color: #ffffff; background: rgba(255,255,255,0.1); }
.member-nav-item.active { color: var(--brand-turquoise); font-weight: 700; }

/* Vector Icon Card Component */
.action-box-card { background: #ffffff; border: 1px solid var(--border-color); border-radius: 12px; padding: 1.5rem; text-decoration: none; color: var(--brand-navy); transition: all 0.25s ease; display: flex; flex-direction: column; justify-content: space-between; }
.action-box-card:hover { transform: translateY(-3px); border-color: var(--brand-turquoise-dark); box-shadow: 0 10px 25px rgba(59, 168, 193, 0.12); }
.vector-icon-badge { width: 46px; height: 46px; border-radius: 10px; background: var(--brand-turquoise-light); color: var(--brand-turquoise-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; flex-shrink: 0; border: 1px solid rgba(85, 195, 220, 0.25); }

/* Footer */
footer { background-color: var(--brand-navy); color: #a0b2c6; padding: 3.5rem 0 2rem; font-size: 0.88rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand h3 { color: #ffffff; font-size: 1.2rem; margin-bottom: 0.75rem; }
.footer-brand p { color: #c0d1e2; line-height: 1.55; margin-bottom: 1rem; }
.footer-col h4 { color: #ffffff; font-size: 0.95rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: #c0d1e2; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--brand-turquoise); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.75rem; display: flex; justify-content: space-between; align-items: center; color: #788d9e; font-size: 0.82rem; }


/* Arge Ostgebiete Member Portal Reference Styling */
.member-hero-banner {
    background: #0b1e47;
    padding: 3.5rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.member-hero-title {
    font-family: 'Lora', serif;
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.member-hero-sub {
    color: #55c3dc;
    font-size: 1.15rem;
    font-weight: 500;
}

.board-actions-row {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
    flex-wrap: wrap;
}
.btn-board-cockpit {
    background: #0b1e47;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(11,30,71,0.2);
}
.btn-board-cockpit:hover {
    background: #051334;
}
.btn-kassenbuch {
    background: #55c3dc;
    color: #0b1e47;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(212,175,55,0.25);
}
.btn-kassenbuch:hover {
    background: #3ba8c1;
}

.profile-avatar-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.avatar-img-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid #55c3dc;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.data-card-ost {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-top: 4px solid #55c3dc;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 2rem;
}
.data-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
    margin-top: 1.25rem;
}
@media (max-width: 900px) {
    .data-grid-4col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .data-grid-4col { grid-template-columns: 1fr; }
}
.data-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}
.data-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0b1e47;
}



/* Breadcrumb & Editorial Hero Styling Fix */
.editorial-hero {
    background: #ffffff;
    border-bottom: 1px solid #cbd5e1;
    padding: 3rem 0 2.5rem;
}
.hero-meta-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}
.breadcrumb-nav {
    margin-bottom: 1.25rem !important;
    width: 100% !important;
    display: block !important;
}
.breadcrumb-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
}
.breadcrumb-list::-webkit-scrollbar {
    display: none !important;
}
.breadcrumb-item,
.breadcrumb-separator {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    width: auto !important;
    flex: none !important;
    font-size: 0.88rem !important;
    line-height: 1.4 !important;
}
.breadcrumb-item a {
    color: #0b1e47 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}
.breadcrumb-item a:hover {
    color: #3ba8c1 !important;
    text-decoration: underline !important;
}
.breadcrumb-separator {
    color: #d4af37 !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    padding: 0 2px !important;
}



/* ==========================================================================
   STATE-OF-THE-ART BULLETPROOF RESPONSIVE MOBILE NAVIGATION
   ========================================================================== */

/* 1. Prevent stray injected button from ever displaying */
.mobile-menu-btn {
    display: none !important;
}

/* 2. Desktop Defaults (> 992px) */
.mobile-nav-toggle-btn {
    display: none !important;
}
.mobile-nav-cta-item {
    display: none !important;
}

/* 3. Mobile Screens (<= 992px) */
@media (max-width: 992px) {
    /* Top Bar Mobile Optimization */
    .top-bar {
        padding: 0.5rem 0 !important;
        font-size: 0.8rem !important;
    }
    .top-bar-inner {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.4rem !important;
        padding: 0 1rem !important;
        text-align: center !important;
    }
    .top-bar-left {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        font-size: 0.78rem !important;
        flex-wrap: wrap !important;
    }
    .top-bar-right {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 340px !important;
    }
    .top-bar .search-box {
        flex: 1 1 auto !important;
        max-width: 170px !important;
        min-width: 110px !important;
        padding: 4px 10px !important;
    }
    .top-bar .search-box input {
        width: 100% !important;
        font-size: 0.78rem !important;
    }
    .btn-top-login {
        flex-shrink: 0 !important;
        padding: 4px 12px !important;
        font-size: 0.78rem !important;
        white-space: nowrap !important;
    }

    /* Main Header Bar Mobile */
    header, .site-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 9999 !important;
        background: #ffffff !important;
        border-bottom: 2px solid var(--border-color) !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important;
    }
    .header-inner {
        height: 68px !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        padding: 0 1rem !important;
        max-width: 100% !important;
        position: relative !important;
    }
    .brand-logo {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        flex-shrink: 0 !important;
        text-decoration: none !important;
        max-width: calc(100% - 110px) !important;
    }
    .brand-logo img {
        height: 40px !important;
        width: 40px !important;
        flex-shrink: 0 !important;
    }
    .logo-titles {
        display: flex !important;
        flex-direction: column !important;
        line-height: 1.2 !important;
        overflow: hidden !important;
    }
    .logo-titles .logo-main {
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        color: var(--brand-navy) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .logo-titles .logo-sub {
        font-size: 0.72rem !important;
        font-weight: 600 !important;
        color: var(--brand-turquoise-dark) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Hide desktop CTA button in header row */
    .header-inner > .btn-join {
        display: none !important;
    }

    /* Single Mobile Hamburger Button */
    .mobile-nav-toggle-btn {
        display: inline-flex !important;
        align-items: center !important;
        gap: 7px !important;
        background: #f8fafc !important;
        border: 1.5px solid #cbd5e1 !important;
        border-radius: 8px !important;
        padding: 7px 13px !important;
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        color: var(--brand-navy) !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        flex-shrink: 0 !important;
        outline: none !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    }
    .mobile-nav-toggle-btn:hover,
    .mobile-nav-toggle-btn.active {
        background: var(--brand-navy) !important;
        color: #ffffff !important;
        border-color: var(--brand-navy) !important;
    }

    /* Mobile Navigation Dropdown Panel */
    .main-nav {
        display: none !important;
        position: fixed !important;
        top: 68px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: calc(100vh - 68px) !important;
        max-height: calc(100vh - 68px) !important;
        background: #ffffff !important;
        border-top: 1px solid #e2e8f0 !important;
        border-bottom: 4px solid var(--brand-turquoise) !important;
        box-shadow: 0 20px 40px rgba(11, 30, 71, 0.25) !important;
        padding: 1rem 1.25rem 3.5rem !important;
        flex-direction: column !important;
        gap: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        z-index: 99998 !important;
        box-sizing: border-box !important;
    }

    .main-nav.mobile-active {
        display: flex !important;
        animation: navSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    @keyframes navSlideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .main-nav > li {
        width: 100% !important;
        border-bottom: 1px solid #f1f5f9 !important;
        list-style: none !important;
        margin: 0 !important;
        position: relative !important;
    }
    .main-nav > li > a {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 13px 12px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: var(--brand-navy) !important;
        text-decoration: none !important;
        border-radius: 8px !important;
        transition: all 0.15s ease !important;
    }
    .main-nav > li > a:hover,
    .main-nav > li > a.active {
        color: var(--brand-turquoise-dark) !important;
        background: var(--brand-turquoise-light) !important;
    }
    .main-nav > li > a.active::after {
        display: none !important;
    }

    /* Submenus in Mobile: Accordion Style */
    .main-nav .dropdown-menu {
        display: none !important;
        position: static !important;
        width: 100% !important;
        background: #f8fafc !important;
        border-left: 3px solid var(--brand-turquoise) !important;
        border-radius: 0 8px 8px 0 !important;
        margin: 4px 0 10px 10px !important;
        padding: 6px 0 !important;
        box-shadow: none !important;
        border-top: none !important;
        border-right: none !important;
        border-bottom: none !important;
    }
    .main-nav > li.open .dropdown-menu {
        display: flex !important;
        flex-direction: column !important;
    }
    .main-nav .dropdown-menu li {
        width: 100% !important;
        list-style: none !important;
    }
    .main-nav .dropdown-menu a {
        display: block !important;
        padding: 9px 16px !important;
        font-size: 0.92rem !important;
        font-weight: 500 !important;
        color: #334155 !important;
        text-decoration: none !important;
        border-radius: 4px !important;
    }
    .main-nav .dropdown-menu a:hover {
        color: var(--brand-turquoise-dark) !important;
        background: rgba(85, 195, 220, 0.12) !important;
        font-weight: 600 !important;
    }

    /* Mobile CTA Box inside the open menu */
    .mobile-nav-cta-item {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 1.25rem !important;
        padding-top: 1.25rem !important;
        border-top: 2px dashed #e2e8f0 !important;
        border-bottom: none !important;
    }
    .mobile-cta-btn-join {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: var(--brand-turquoise) !important;
        color: var(--brand-navy) !important;
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        padding: 12px 18px !important;
        border-radius: 8px !important;
        text-decoration: none !important;
        box-shadow: 0 4px 12px rgba(85, 195, 220, 0.25) !important;
    }
    .mobile-cta-btn-login {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        background: var(--brand-navy) !important;
        color: #ffffff !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        padding: 10px 18px !important;
        border-radius: 8px !important;
        text-decoration: none !important;
    }
}




/* High Legibility Field Labels & Values Fix */
.data-lbl, .data-label {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #475569 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    margin-bottom: 0.35rem !important;
    display: block !important;
    line-height: 1.3 !important;
}

.data-val-bold, .data-val {
    font-size: 1.05rem !important;
    font-weight: 400 !important;
    color: #0b1e47 !important;
    line-height: 1.4 !important;
}


/* Redesigned Sleek Logout Pill Button */
.top-bar-logout-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}
.top-bar-logout-btn:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
    transform: translateY(-1px);
}


/* Footer Logo Strict Sizing Fix */
footer img, .footer-dark img, .footer-partner-logo {
    max-height: 52px !important;
    max-width: 160px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}
