/* ================================================================
   Funkpresse – Mobile Stylesheet
   Vollständiges responsives Design für Smartphones & Tablets
   Breakpoints:
     • ≤ 1024px  → Tablet (landscape)
     • ≤ 768px   → Tablet (portrait) / großes Smartphone
     • ≤ 600px   → Smartphone
     • ≤ 420px   → Kleines Smartphone
   ================================================================ */

/* ─── MOBILE SCROLLBAR ausblenden ───────────────────────────── */
@media (max-width: 768px) {
    ::-webkit-scrollbar { display: none; }
    * { -ms-overflow-style: none; scrollbar-width: none; }
}

/* ════════════════════════════════════════════════════════════════
   TABLET (≤ 1024px)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

    /* Layout */
    .content-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .featured-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .featured-card.card-main {
        grid-column: 1 / -1;
    }
    .featured-card.card-main .card-banner { height: 220px; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    /* Content */
    .container { padding: 0 20px; }
    .main-content { padding: 24px 0 48px; }
}

/* ════════════════════════════════════════════════════════════════
   TABLET PORTRAIT & GROSSES SMARTPHONE (≤ 768px)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ─── HEADER ─────────────────────────────────────────────── */
    .site-header { padding: 12px 0; }

    .header-inner {
        padding: 0 16px;
        gap: 12px;
        flex-wrap: nowrap;
    }

    /* Logo verkleinern */
    .logo-icon {
        width: 46px;
        height: 46px;
    }
    .logo-text h1.site-name {
        font-size: 1.3rem !important;
        letter-spacing: -.01em;
    }
    .logo-text p { display: none; }

    /* Header-Actions */
    .header-actions { gap: 8px; }

    /* Suchfeld mobile */
    .search-box {
        border-radius: 24px;
    }
    .search-box input {
        width: 0;
        padding: 9px 0;
        transition: width .3s ease, padding .3s ease;
    }
    .search-box.expanded input {
        width: 160px;
        padding: 9px 14px;
    }
    .search-box button {
        padding: 9px 14px;
        min-width: 38px;
    }

    /* Sprachumschalter – nur Flaggen */
    .lang-code { display: none; }
    .lang-btn { padding: 5px 7px; }
    .lang-flag { font-size: 17px; }
    .lang-switcher { padding: 3px 4px; gap: 2px; }

    /* Hamburger-Button */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,.18);
        border: 1px solid rgba(255,255,255,.3);
        border-radius: 10px;
        color: #fff;
        font-size: 18px;
        flex-shrink: 0;
        transition: background .2s;
    }
    .mobile-menu-btn:hover { background: rgba(255,255,255,.28); }
    .mobile-menu-btn.is-open { background: rgba(255,255,255,.25); }

    /* ─── MOBILE NAV OVERLAY ─────────────────────────────────── */
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        background: rgba(26,58,92,.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        overflow-y: auto;
        padding-top: 0;
        animation: navFadeIn .25s ease;
    }
    .main-nav.open {
        display: flex;
        flex-direction: column;
    }
    @keyframes navFadeIn {
        from { opacity: 0; transform: translateX(-100%); }
        to   { opacity: 1; transform: translateX(0); }
    }

    /* Mobile Nav Header */
    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px;
        border-bottom: 1px solid rgba(255,255,255,.12);
        flex-shrink: 0;
    }
    .mobile-nav-logo {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #fff;
        font-size: 1.1rem;
        font-weight: 700;
    }
    .mobile-nav-logo img {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        object-fit: contain;
    }
    .mobile-nav-close {
        width: 38px;
        height: 38px;
        background: rgba(255,255,255,.12);
        border: 1px solid rgba(255,255,255,.2);
        border-radius: 50%;
        color: #fff;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background .2s;
    }
    .mobile-nav-close:hover { background: rgba(255,255,255,.22); }

    /* Nav-Liste im Mobile-Overlay */
    .nav-list {
        flex-direction: column;
        padding: 12px 0 24px;
        gap: 4px;
    }
    .nav-link {
        padding: 14px 24px;
        font-size: 15px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,.06);
        color: rgba(255,255,255,.85);
    }
    .nav-link .fas { font-size: 15px; width: 22px; }
    .nav-link:hover {
        background: rgba(255,255,255,.1);
        color: #fff;
        padding-left: 30px;
    }
    .nav-link.active {
        background: linear-gradient(90deg, rgba(52,152,219,.3), rgba(0,180,216,.15));
        border-left: 4px solid var(--teal);
        color: #fff;
        box-shadow: none;
    }

    /* Mobile Search in Nav */
    .mobile-nav-search {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,.1);
    }
    .mobile-nav-search .search-box {
        background: rgba(255,255,255,.12);
        border-color: rgba(255,255,255,.2);
    }
    .mobile-nav-search .search-box input {
        width: 100%;
        color: #fff;
        padding: 10px 16px;
    }
    .mobile-nav-search .search-box input::placeholder { color: rgba(255,255,255,.5); }

    /* ─── TICKERS ─────────────────────────────────────────────── */
    .bunker-ticker { height: 36px; }
    .news-ticker-bar { height: 36px; }
    .bticker-label { padding: 0 12px; }
    .bticker-label > span:not(.bticker-unit) { display: none; }
    .bticker-unit { display: none; }
    .bticker-date { display: none; }
    .nticker-label { padding: 0 12px; font-size: 9px; }

    /* ─── NAVIGATION ABSTAND ─────────────────────────────────── */
    .main-content { padding: 20px 0 48px; }
    .container { padding: 0 14px; }

    /* ─── FEATURED SECTION ───────────────────────────────────── */
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .featured-card.card-main { grid-column: auto; }
    .featured-card.card-main .card-banner { height: 180px; }
    .featured-card .card-banner { height: 120px; }
    .card-body { padding: 14px 16px; }
    .card-title { font-size: .95rem; }
    .card-summary { font-size: 13px; -webkit-line-clamp: 2; }
    .featured-section { margin-bottom: 24px; }

    /* ─── NEWS FEED ──────────────────────────────────────────── */
    .feed-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    .feed-header .section-title { font-size: 1.1rem; }
    #sort-select { font-size: 12px; padding: 7px 10px; }

    /* ─── NEWS CARDS ─────────────────────────────────────────── */
    .news-grid { gap: 12px; }
    .news-article-card {
        flex-direction: column;
        border-radius: var(--radius);
    }
    .nac-stripe {
        width: 100%;
        height: 48px;
        flex-direction: row;
        padding: 0 16px;
        align-items: center;
        padding-top: 0;
        gap: 10px;
    }
    .nac-stripe-icon { font-size: 17px; }
    .nac-body { padding: 12px 14px 14px; gap: 8px; }
    .nac-title {
        font-size: .95rem;
        line-height: 1.4;
    }
    .nac-content { font-size: 13px; line-height: 1.6; }
    .nac-footer { flex-wrap: wrap; gap: 8px; }
    .card-action-btn { padding: 8px 14px; font-size: 12.5px; }
    .card-inline-tags { gap: 5px; }
    .card-inline-tag { font-size: 10.5px; padding: 3px 8px; }

    /* ─── SIDEBAR ────────────────────────────────────────────── */
    .sidebar { grid-template-columns: 1fr; gap: 14px; }

    /* ─── SECTION TITLES ─────────────────────────────────────── */
    .section-title { font-size: 1.15rem; }

    /* ─── FOOTER ─────────────────────────────────────────────── */
    .site-footer { padding: 36px 0 0; margin-top: 40px; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        padding-bottom: 28px;
    }
    .footer-col h4 { margin-bottom: 10px; }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 16px 0;
    }

    /* ─── MODAL ──────────────────────────────────────────────── */
    .modal-overlay { padding: 12px; align-items: flex-end; }
    .modal-container {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 92vh;
    }
    .modal-inner { padding: 18px 18px 28px; }
    .modal-title { font-size: 1.2rem; }
    .modal-meta { gap: 10px; font-size: 12px; }

    /* ─── CONFLICT ALERT ─────────────────────────────────────── */
    .conflict-alert-inner { padding: 10px 14px; gap: 10px; }
    .conflict-alert-text { font-size: 12.5px; }
    .conflict-alert-icon { font-size: 18px; }

    /* ─── PSC WIDGET ─────────────────────────────────────────── */
    .psc-detained-layout { grid-template-columns: 1fr !important; }
    #psc-detained-map { min-height: 240px; }
    .psc-detained-section-header { padding: 10px 14px; }
    .psc-detained-section-title h2 { font-size: 13px; }

    /* ─── LOAD MORE ──────────────────────────────────────────── */
    .btn-load-more { width: 100%; justify-content: center; }
}

/* ════════════════════════════════════════════════════════════════
   SMARTPHONE (≤ 600px)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {

    /* ─── HEADER ─────────────────────────────────────────────── */
    .site-header { padding: 10px 0; }
    .header-inner { padding: 0 12px; }

    .logo-icon { width: 40px; height: 40px; }
    .logo-text h1.site-name { font-size: 1.15rem !important; }

    /* Lang-Switcher nur Icons */
    .lang-switcher { gap: 1px; padding: 2px 3px; }
    .lang-btn { padding: 4px 6px; }
    .lang-flag { font-size: 16px; }

    /* Search-Box ausgeblendet bis Klick */
    .search-box { display: none; }
    .search-box.mobile-visible { display: flex; }
    .mobile-search-btn-toggle {
        width: 36px;
        height: 36px;
        background: rgba(255,255,255,.18);
        border: 1px solid rgba(255,255,255,.25);
        border-radius: 8px;
        color: #fff;
        font-size: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    /* Mobile Search Bar (aufgeklappt, voll-breit) */
    .mobile-search-bar {
        display: none;
        background: linear-gradient(90deg, #1e4976, #2563a8);
        padding: 10px 14px;
        gap: 8px;
        border-top: 1px solid rgba(255,255,255,.1);
    }
    .mobile-search-bar.open { display: flex; }
    .mobile-search-bar .search-box {
        display: flex;
        flex: 1;
        background: rgba(255,255,255,.18);
        border-color: rgba(255,255,255,.3);
    }
    .mobile-search-bar .search-box input {
        width: 100%;
        color: #fff;
        padding: 9px 14px;
    }
    .mobile-search-bar .search-box input::placeholder { color: rgba(255,255,255,.55); }

    /* ─── FEATURED ───────────────────────────────────────────── */
    .featured-card.card-main .card-banner { height: 150px; }
    .featured-card .card-banner { height: 100px; }
    .featured-section { margin-bottom: 20px; }
    .card-body { padding: 12px 14px; }
    .card-title { font-size: .9rem; }

    /* ─── NEWS CARDS ─────────────────────────────────────────── */
    .nac-stripe { height: 42px; }
    .nac-stripe-icon { font-size: 15px; }
    .nac-body { padding: 10px 12px 12px; }
    .nac-title { font-size: .9rem; }
    .nac-content { font-size: 12.5px; }
    .nac-badges { gap: 4px; }
    .nac-date { font-size: 11px; }

    /* Card-Actions */
    .nac-footer { padding-top: 10px; }
    .card-action-btn { padding: 7px 12px; font-size: 12px; gap: 5px; }
    .card-action-btn .fas { font-size: 11px; }

    /* ─── TICKER ─────────────────────────────────────────────── */
    .btick { padding: 4px 8px; }
    .btick-price { font-size: 13px; }
    .btick-delta { display: none; }

    /* ─── SIDEBAR WIDGETS ────────────────────────────────────── */
    .widget-title { font-size: 11px; padding: 12px 16px; }
    .reg-info strong { font-size: 12.5px; }
    .bunker-row { font-size: 12px; padding: 8px 14px; }
    .tag-cloud { padding: 10px 14px 14px; gap: 6px; }
    .tag-item { font-size: 11px; padding: 4px 10px; }

    /* ─── FEED HEADER ────────────────────────────────────────── */
    .feed-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .feed-header .section-title { font-size: 1rem; margin-bottom: 0; }
    #sort-select { width: 100%; }

    /* ─── SECTION TITLE ──────────────────────────────────────── */
    .section-title { font-size: 1.05rem; margin-bottom: 14px; }

    /* ─── PSC WIDGET ─────────────────────────────────────────── */
    .psc-banned-table { min-width: 360px; }
    .psc-tag { font-size: 8.5px; }

    /* ─── FOOTER ─────────────────────────────────────────────── */
    .site-footer { padding: 28px 0 0; }
    .footer-inner { padding: 0 14px; }
    .footer-col ul { gap: 7px; }
    .footer-col ul a { font-size: 13px; }
    .footer-disclaimer { font-size: 11.5px; }
    .footer-bottom { font-size: 11.5px; }

    /* ─── MODAL ──────────────────────────────────────────────── */
    .modal-overlay { padding: 8px; }
    .modal-container { max-height: 95vh; }
    .modal-inner { padding: 14px 14px 24px; }
    .modal-title { font-size: 1.1rem; line-height: 1.3; }
    .modal-meta { flex-direction: column; gap: 6px; margin-bottom: 16px; padding-bottom: 16px; }
    .modal-content { font-size: 14px; line-height: 1.75; }
    .modal-close { margin: 12px 12px 0 0; width: 32px; height: 32px; font-size: 13px; }
    .modal-tags { gap: 6px; }
    .modal-tag { font-size: 11px; }

    /* ─── CONFLICT BAR ───────────────────────────────────────── */
    .conflict-alert-bar { border-radius: var(--radius-sm); }
    .conflict-alert-inner { flex-wrap: wrap; }
    .conflict-alert-text { font-size: 12px; }
    .conflict-link { font-size: 12px; }

    /* ─── LOAD MORE ──────────────────────────────────────────── */
    .load-more-wrap { margin-top: 20px; }
    .btn-load-more { padding: 11px 24px; font-size: 13.5px; }

    /* ─── GPS MAP ────────────────────────────────────────────── */
    .gpsjam-map-wrap { height: 160px; }
    #gpsjam-map { height: 280px !important; }
    .gpsjam-legend { gap: 8px; font-size: 10px; }

    /* ─── LIVE BADGE ─────────────────────────────────────────── */
    .live-update-badge { font-size: 12.5px; padding: 10px 18px; bottom: 20px; }

    /* ─── CONSENT BANNER ─────────────────────────────────────── */
    #fp-consent-box { border-radius: 12px 12px 0 0; }
    #fp-consent-overlay { align-items: flex-end; padding: 0; }
    #fp-consent-header { padding: 16px 18px 13px; }
    #fp-consent-header h2 { font-size: 15px; }
    #fp-consent-body { padding: 16px 18px 8px; }
    #fp-consent-footer { padding: 0 18px 24px; gap: 8px; }
    .fp-btn-accept { padding: 12px 18px; font-size: 13.5px; }

    /* ─── ADMIN BUTTON ───────────────────────────────────────── */
    .btn-admin-panel .admin-btn-label { display: none; }

    /* ─── FRACHTRATEN BAND ───────────────────────────────────── */
    .fband-header { padding: 8px 14px; }
    .fband-title { font-size: 12.5px; }
    .fband-title .fas { font-size: 12px; }
}

/* ════════════════════════════════════════════════════════════════
   KLEINES SMARTPHONE (≤ 420px)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 420px) {

    .logo-icon { width: 36px; height: 36px; }
    .logo-text h1.site-name { font-size: 1.05rem !important; }
    .header-inner { gap: 8px; }

    .lang-btn { padding: 3px 5px; }
    .lang-flag { font-size: 14px; }

    .mobile-menu-btn { width: 34px; height: 34px; font-size: 15px; }

    .container { padding: 0 10px; }
    .main-content { padding: 14px 0 40px; }

    .nac-title { font-size: .85rem; }
    .nac-content { font-size: 12px; }
    .card-action-btn { font-size: 11.5px; padding: 6px 10px; }

    .featured-card.card-main .card-banner { height: 130px; }
    .card-title { font-size: .85rem; }

    .modal-inner { padding: 12px 12px 20px; }
    .modal-title { font-size: 1rem; }

    .footer-col h4 { font-size: 12px; }
    .footer-col ul a { font-size: 12.5px; }

    .site-footer { padding: 22px 0 0; }
    .footer-inner { padding: 0 10px; }
}

/* ════════════════════════════════════════════════════════════════
   MOBILE NAV HEADER – wird per JS injiziert, Styles hier
   ════════════════════════════════════════════════════════════════ */
.mobile-nav-header {
    display: none; /* Desktop: versteckt */
}
@media (max-width: 768px) {
    .mobile-nav-header {
        display: flex;
    }
}

/* Mobile-Menu-Button: Desktop versteckt */
.mobile-menu-btn { display: none; }
@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
}

/* Mobile Search Toggle Button */
.mobile-search-toggle { display: none; }
@media (max-width: 600px) {
    .mobile-search-toggle { display: flex; }
}

/* ════════════════════════════════════════════════════════════════
   SMOOTH SCROLL LOCK beim offenen Menü
   ════════════════════════════════════════════════════════════════ */
body.nav-open {
    overflow: hidden;
}

/* ════════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV BAR (Schnellnavigation)
   ════════════════════════════════════════════════════════════════ */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 99;
        background: linear-gradient(180deg, #1e4976, #1a3a5c);
        border-top: 1px solid rgba(255,255,255,.15);
        box-shadow: 0 -4px 20px rgba(26,58,92,.4);
        padding: 6px 0 max(6px, env(safe-area-inset-bottom));
        gap: 0;
    }
    .mobile-bottom-nav-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 6px 4px;
        color: rgba(255,255,255,.6);
        font-size: 10px;
        font-weight: 600;
        letter-spacing: .03em;
        border: none;
        background: none;
        cursor: pointer;
        transition: color .2s;
        border-radius: 8px;
        margin: 0 2px;
    }
    .mobile-bottom-nav-btn .fas {
        font-size: 17px;
        margin-bottom: 1px;
    }
    .mobile-bottom-nav-btn.active,
    .mobile-bottom-nav-btn:hover {
        color: #fff;
        background: rgba(255,255,255,.1);
    }
    .mobile-bottom-nav-btn .mbn-label {
        font-size: 9.5px;
        line-height: 1;
    }

    /* Platz für die Bottom-Nav */
    body { padding-bottom: 62px; }
    .live-update-badge { bottom: 72px; }
}

/* ════════════════════════════════════════════════════════════════
   MOBILE SEARCH OVERLAY (Vollbild)
   ════════════════════════════════════════════════════════════════ */
.mobile-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
    background: linear-gradient(135deg, #1a3a5c, #2980b9);
    flex-direction: column;
    padding: 20px 16px;
    animation: searchOverlayIn .2s ease;
}
.mobile-search-overlay.open {
    display: flex;
}
@keyframes searchOverlayIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mobile-search-overlay-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.mobile-search-overlay-title {
    color: rgba(255,255,255,.7);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.mobile-search-overlay-close {
    margin-left: auto;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.mobile-search-overlay-input-wrap {
    display: flex;
    background: rgba(255,255,255,.15);
    border: 1.5px solid rgba(255,255,255,.3);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
}
.mobile-search-overlay-input-wrap input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    padding: 14px 18px;
    color: #fff;
    font-size: 16px;
    font-family: var(--font-main);
}
.mobile-search-overlay-input-wrap input::placeholder {
    color: rgba(255,255,255,.5);
}
.mobile-search-overlay-input-wrap button {
    padding: 14px 18px;
    color: rgba(255,255,255,.7);
    font-size: 18px;
}
.mobile-search-overlay-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mobile-search-overlay-hints span {
    padding: 7px 14px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.8);
    font-size: 12.5px;
    border-radius: 20px;
    cursor: pointer;
    transition: background .2s;
}
.mobile-search-overlay-hints span:hover {
    background: rgba(255,255,255,.22);
    color: #fff;
}

/* ════════════════════════════════════════════════════════════════
   MOBILE KATEGORIE-CHIPS (unter Header, horizontal scroll)
   ════════════════════════════════════════════════════════════════ */
.mobile-cat-chips {
    display: none;
}
@media (max-width: 768px) {
    .mobile-cat-chips {
        display: flex;
        gap: 8px;
        padding: 10px 14px;
        overflow-x: auto;
        scrollbar-width: none;
        background: #eef3f9;
        border-bottom: 1px solid var(--border-light);
        -webkit-overflow-scrolling: touch;
    }
    .mobile-cat-chips::-webkit-scrollbar { display: none; }
    .mobile-cat-chip {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 6px 14px;
        background: #fff;
        border: 1.5px solid var(--border);
        color: var(--text-muted);
        font-size: 12px;
        font-weight: 600;
        border-radius: 20px;
        white-space: nowrap;
        cursor: pointer;
        transition: all .2s;
        flex-shrink: 0;
    }
    .mobile-cat-chip .fas { font-size: 11px; }
    .mobile-cat-chip.active,
    .mobile-cat-chip:hover {
        background: var(--sea);
        border-color: var(--sea);
        color: #fff;
    }
    .mobile-cat-chip.chip-war {
        border-color: rgba(192,57,43,.4);
        color: #c0392b;
    }
    .mobile-cat-chip.chip-war.active {
        background: #c0392b;
        border-color: #c0392b;
        color: #fff;
    }
}

/* ════════════════════════════════════════════════════════════════
   TABLET LANDSCAPE (768px – 1024px) Verbesserungen
   ════════════════════════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-inner { padding: 0 20px; }
    .search-box input { width: 180px; }
    .logo-icon { width: 52px; height: 52px; }
    .logo-text h1.site-name { font-size: 1.5rem !important; }
    .nav-list { gap: 1px; }
    .nav-link { padding: 8px 12px; font-size: 12.5px; }
    .featured-grid { gap: 14px; }
    .sidebar { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════════════════════════════
   TOUCH-VERBESSERUNGEN
   ════════════════════════════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {

    /* Größere Touch-Targets */
    .nav-link { min-height: 48px; }
    .lang-btn { min-width: 36px; min-height: 36px; }
    .card-action-btn { min-height: 40px; }
    .mobile-bottom-nav-btn { min-height: 48px; }
    .tag-item { padding: 7px 14px; font-size: 12.5px; }

    /* Hover-Effekte deaktivieren */
    .news-article-card:hover { transform: none; }
    .featured-card:hover { transform: none; }

    /* Aktiver Zustand für Touch */
    .news-article-card:active { transform: scale(.99); }
    .featured-card:active { transform: scale(.99); }
    .card-action-btn:active { transform: scale(.97); }
    .mobile-bottom-nav-btn:active { background: rgba(255,255,255,.18) !important; }
}

/* ════════════════════════════════════════════════════════════════
   SAFE AREA (iPhone X / Notch / Dynamic Island)
   ════════════════════════════════════════════════════════════════ */
@supports (padding-top: env(safe-area-inset-top)) {
    @media (max-width: 768px) {
        .site-header {
            padding-top: max(12px, env(safe-area-inset-top));
        }
        .mobile-bottom-nav {
            padding-bottom: max(6px, env(safe-area-inset-bottom));
        }
    }
}

/* ════════════════════════════════════════════════════════════════
   PRINT (Druckansicht)
   ════════════════════════════════════════════════════════════════ */
@media print {
    .site-header, .main-nav, .bunker-ticker, .news-ticker-bar,
    .mobile-bottom-nav, .mobile-search-overlay, .modal-overlay,
    #fp-consent-overlay, .live-update-badge, .conflict-alert-bar,
    .sidebar, .load-more-wrap { display: none !important; }

    body { font-size: 12pt; color: #000; background: #fff; }
    .content-layout { grid-template-columns: 1fr; }
    .news-article-card { border: 1px solid #ccc; margin-bottom: 12px; break-inside: avoid; }
    .nac-title { color: #000; font-size: 14pt; }
    .nac-content { font-size: 11pt; color: #333; }
}
