/* ft-bottom-nav.css — aus includes/ft_bottom_nav.php ausgelagert; Reihenfolge der Regeln unveraendert */
    /* === Wave 27.8: Mobile Bottom-Nav (5 Icons, fixed-bottom) === */
    .ft-bottom-nav {
        position: fixed; bottom: 0; left: 0; right: 0; z-index: 1040;
        display: flex; justify-content: space-around; align-items: stretch;
        background: rgba(255,255,255,0.96);
        backdrop-filter: blur(14px) saturate(180%);
        -webkit-backdrop-filter: blur(14px) saturate(180%);
        border-top: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    }
    body.dark-mode .ft-bottom-nav {
        background: rgba(24,26,27,0.92);
        border-top: 1px solid rgba(255,255,255,0.10);
    }
    .ft-bottom-item {
        flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
        text-decoration: none; color: #4b5563;
        padding: 8px 4px; border-radius: 10px;
        transition: all 0.15s ease; gap: 2px;
    }
    .ft-bottom-item i { font-size: 1.2rem; }
    .ft-bottom-item span { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.01em; }
    .ft-bottom-item:hover { background: rgba(0,160,198,0.06); color: #00A0C6; }
    .ft-bottom-item.active { color: #00A0C6; background: rgba(0,160,198,0.10); font-weight: 600; }
    body.dark-mode .ft-bottom-item { color: #d4d6d8; }
    body.dark-mode .ft-bottom-item:hover { background: rgba(0,160,198,0.16); }
    body.dark-mode .ft-bottom-item.active { color: #56ccf2; background: rgba(86,204,242,0.16); }

    /* Bottom-Nav: groessere Touch-Targets (mind. 56px Hoehe inkl. Label) */
    @media (max-width: 991.98px) {
        .ft-bottom-nav {
            padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
        }
        .ft-bottom-item {
            padding: 8px 4px;
            min-height: 50px;
            gap: 3px;
        }
        .ft-bottom-item i { font-size: 1.25rem; }
        .ft-bottom-item span { font-size: 0.68rem; font-weight: 600; }
        body:not(.page-landing-non-fixed-navbar) {
            padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
        }
    }

    /* === BOTTOM-NAV: Premium Active-Indicator mit smooth Slide === */
    @media (max-width: 991.98px) {
        .ft-bottom-nav {
            background: rgba(255,255,255,0.92);
            backdrop-filter: blur(20px) saturate(200%);
            -webkit-backdrop-filter: blur(20px) saturate(200%);
            border-top: 1px solid rgba(0,0,0,0.05);
            box-shadow: 0 -1px 0 rgba(0,0,0,0.03), 0 -8px 24px rgba(0,0,0,0.04);
            padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0px));
        }
        body.dark-mode .ft-bottom-nav {
            background: rgba(20,22,23,0.94);
            border-top-color: rgba(255,255,255,0.08);
            box-shadow: 0 -1px 0 rgba(255,255,255,0.04), 0 -8px 24px rgba(0,0,0,0.4);
        }

        .ft-bottom-item {
            position: relative;
            min-height: 54px;
            padding: 8px 4px 6px;
            border-radius: 12px;
            color: #6b7280;
            transition: color 0.2s ease, transform 0.15s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .ft-bottom-item:active { transform: scale(0.92); }
        .ft-bottom-item i {
            font-size: 1.3rem;
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        .ft-bottom-item:active i { transform: scale(0.85); }
        .ft-bottom-item span {
            font-size: 0.65rem;
            font-weight: 600;
            letter-spacing: 0.01em;
            margin-top: 2px;
            opacity: 0.85;
        }
        body.dark-mode .ft-bottom-item { color: #9ca3af; }

        /* Active-Indicator: kleiner Punkt oben + Cyan-Color + Bouncing-Icon */
        .ft-bottom-item.active {
            color: #00A0C6;
            background: transparent;
        }
        .ft-bottom-item.active i {
            transform: translateY(-2px) scale(1.08);
            filter: drop-shadow(0 2px 6px rgba(0,160,198,0.35));
        }
        .ft-bottom-item.active span {
            opacity: 1; font-weight: 700;
        }
        .ft-bottom-item.active::before {
            content: '';
            position: absolute; top: 4px; left: 50%;
            width: 4px; height: 4px;
            border-radius: 50%;
            background: #00A0C6;
            transform: translateX(-50%);
            box-shadow: 0 0 8px rgba(0,160,198,0.6);
            box-shadow: 0 0 6px rgba(0, 160, 198, 0.6);
        }
        body.dark-mode .ft-bottom-item.active { color: #56ccf2; }
        body.dark-mode .ft-bottom-item.active::before { background: #56ccf2; box-shadow: 0 0 10px rgba(86,204,242,0.7); }
        @keyframes ft-pulse {
            0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
            50% { opacity: 0.5; transform: translateX(-50%) scale(1.4); }
        }
    }

    /* Bottom-Nav fix gepinnt am unteren Rand */
    @media (max-width: 991.98px) {
        .ft-bottom-nav {
            position: fixed !important;
            bottom: 0 !important;
            left: 0 !important;
            right: 0 !important;
            z-index: 1040 !important;
            transform: translateZ(0);
        }
    }

    /* Bottom-Nav Background subtiler */
    @media (max-width: 991.98px) {
        .ft-bottom-nav { background: rgba(255,255,255,0.94) !important; }
        body.dark-mode .ft-bottom-nav { background: rgba(20,22,23,0.96) !important; }
    }

    /* ============ XS: 0-374px (iPhone SE alt, Galaxy Fold zu) ============= */
    @media (max-width: 374px) {
        .ft-bottom-item i { font-size: 1.15rem !important; }
        .ft-bottom-item span { font-size: 0.6rem !important; }
    }

    /* ============ SM-Phone: 375-413px (iPhone 12-15, Galaxy S20) ========== */
    @media (min-width: 375px) and (max-width: 413px) {
        .ft-bottom-item span { font-size: 0.65rem !important; }
    }

    /* ============ MD-Phone: 414-575px (iPhone Pro Max, Galaxy A71, Pixel 7) ========== */
    @media (min-width: 414px) and (max-width: 575px) {
        .ft-bottom-item span { font-size: 0.7rem !important; }
    }

    /* ============ Galaxy Z Fold 5 offen / Phablet: 576-767px =============== */
    @media (min-width: 576px) and (max-width: 767px) {
        .ft-bottom-item span { font-size: 0.72rem !important; }
        /* Bei breiten Phablets: Bottom-Nav etwas zentrierter */
        .ft-bottom-nav { max-width: 600px; margin: 0 auto; right: 0; left: 0; border-radius: 18px 18px 0 0; }
    }

    /* ============ Tablet-Klein: 768-991px (iPad mini, iPad portrait) ===== */
    @media (min-width: 768px) and (max-width: 991.98px) {
        /* Bottom-Nav: groesser auf Tablets */
        .ft-bottom-nav {
            max-width: 720px; margin: 0 auto; right: 0; left: 0;
            border-radius: 20px 20px 0 0;
            box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
        }
        .ft-bottom-item { min-height: 60px; padding: 10px 6px 8px; }
        .ft-bottom-item i { font-size: 1.4rem !important; }
        .ft-bottom-item span { font-size: 0.78rem !important; }
    }

    /* ============ Touch-spezifische Rules (Hardware-Detection) ============
       Stand vorher als vierter Selektor in einer Gruppe mit .nav-link,
       .dropdown-item und .action-btn; die drei anderen sind in header.php
       geblieben, weil sie nichts mit der unteren Navigation zu tun haben.
       Die Deklarationen sind unveraendert. */
    body.ft-touch .ft-bottom-item {
        -webkit-tap-highlight-color: rgba(0,160,198,0.15);
        cursor: pointer;
    }

    /* ============ Foldable / Faltbarer-Modus (Galaxy Z Fold zu) =========== */
    @media (max-width: 344px) {
        /* Bottom-Nav: kompakter */
        .ft-bottom-item { padding: 6px 2px 4px !important; }
        .ft-bottom-item i { font-size: 1rem !important; }
        .ft-bottom-item span { font-size: 0.55rem !important; }
    }

    /* === iOS Safe-Area + PWA-Standalone-Mode === */
    @supports (padding: max(0px)) {
        .ft-bottom-nav { padding-left: max(8px, env(safe-area-inset-left)); padding-right: max(8px, env(safe-area-inset-right)); }
    }
