/**
 * css/ft-mobile.css — DEDIZIERTES MOBILE-STYLESHEET (Wave 28)
 *
 * Komplett eigenes Mobile-System. Wird NUR auf Mobile geladen via media-query.
 * Geraete-Coverage:
 *   iPhone SE (375x667)
 *   iPhone 12-15 (390x844)
 *   iPhone 14 Pro Max (430x932)
 *   Samsung Galaxy S20-S26 Ultra (412-440px)
 *   Samsung Galaxy A71 (412x914)
 *   Pixel 7-9 (412x915)
 *   Galaxy Z Fold 5 zu (344x882) / offen (882x1175)
 *   iPad mini (744x1133), iPad (810x1080), iPad Pro (834x1194 / 1024x1366)
 *   Surface Pro 7 (912x1368)
 *   Asus Zenbook Fold (1280x1920 / 1920x1280)
 *
 * @audit-reviewed 2026-05-08
 * @audit-status approved
 */

/* ====================================================================
   1. SCROLL-SAFETY (NIEMALS Y-Scroll blockieren)
   ==================================================================== */
html {
    overflow-x: hidden;
    overflow-y: auto;
}
body {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100vw;
}

/* ====================================================================
   2. NAVBAR — Glassmorphism + Fixed-Top
   ==================================================================== */
.navbar-custom {
    background: rgba(255, 255, 255, 0.92) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02), 0 4px 16px rgba(0, 0, 0, 0.04);
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    z-index: 1030;
}
body.dark-mode .navbar-custom {
    background: rgba(20, 22, 23, 0.92) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
.navbar-custom .container-fluid {
    height: 100%;
    padding: 0 12px !important;
    flex-wrap: nowrap !important;
}

/* Logo */
.navbar-custom .navbar-brand {
    padding: 0.4rem 0.5rem;
    border-radius: 10px;
    margin-right: 0.5rem;
}
.navbar-custom .navbar-brand img {
    height: 26px !important;
    margin-right: 6px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}
.navbar-custom .logo-friends,
.navbar-custom .logo-time {
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}
.navbar-custom .logo-friends { color: #00A0C6; font-weight: 700; }
.navbar-custom .logo-time { color: #1f2937; font-weight: 600; }
body.dark-mode .navbar-custom .logo-time { color: #f3f4f6; }

/* Header Icons (Bell, Messages, Search, Profile) */
.ft-iconbar {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 2px;
}
.ft-iconbar .nav-link {
    padding: 0.5rem !important;
    min-width: 38px;
    min-height: 38px;
    border-radius: 10px;
    color: #4b5563 !important;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.dark-mode .ft-iconbar .nav-link { color: #d4d6d8 !important; }
.ft-iconbar .nav-link:active {
    background: rgba(0, 0, 0, 0.06);
    transform: scale(0.92);
}
body.dark-mode .ft-iconbar .nav-link:active {
    background: rgba(255, 255, 255, 0.10);
}
.ft-iconbar .nav-link i { font-size: 1.05rem; }

/* Hide Desktop-only Icons on Mobile */
.ft-iconbar .nav-link[id$="Dropdown"][id^="friends"],
.ft-iconbar .nav-link[id="darkModeToggle"] {
    display: none !important;
}
.ft-iconbar > li.nav-item:has(.nav-link[id="friendsDropdown"]) { display: none !important; }
.ft-iconbar > li.nav-item:has(.nav-link[id="darkModeToggle"]) { display: none !important; }

/* Notification Badge */
.ft-iconbar .badge {
    font-size: 0.62rem !important;
    padding: 1px 5px !important;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
}
body.dark-mode .ft-iconbar .badge {
    box-shadow: 0 0 0 2px rgba(20, 22, 23, 0.95);
}

/* Mobile Profile Toggle */
#mobileProfileToggle {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 999px !important;
    padding: 0.25rem 0.5rem 0.25rem 0.3rem !important;
    display: flex !important;
    align-items: center;
    transition: background 0.18s, transform 0.12s;
}
#mobileProfileToggle:active {
    background: rgba(0, 160, 198, 0.10);
    transform: scale(0.96);
}
body.dark-mode #mobileProfileToggle {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.06);
}
#mobileProfileToggle img {
    width: 30px !important;
    height: 30px !important;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 6px rgba(0, 160, 198, 0.18);
    object-fit: cover;
}
body.dark-mode #mobileProfileToggle img { border-color: rgba(0, 0, 0, 0.5); }
#mobileProfileToggle i {
    color: #4b5563;
    font-size: 0.9rem;
    margin-left: 4px;
}
body.dark-mode #mobileProfileToggle i { color: #d4d6d8; }

/* ====================================================================
   3. BODY-PADDING (Wave 33.1: 125px = Header 60 + Sub-Nav 60 + 5px Atemluft)
   ==================================================================== */
body:not(.page-landing-non-fixed-navbar):not(.ft-page-messages):not(.ft-page-live) {
    padding-top: 125px !important;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Wave 34.3: messages.php = nur Header. live.php auf Mobile = 0 (Vollbild-TikTok) */
body.ft-page-messages {
    padding-top: 60px !important;
    padding-bottom: 0 !important;
}
body.ft-page-live {
    padding-top: 0 !important;          /* Vollbild-Video */
    padding-bottom: 0 !important;
}
body.ft-page-messages .mobile-sub-nav,
body.ft-page-messages .ft-bottom-nav,
body.ft-page-messages #ftBottomNav,
body.ft-page-live .mobile-sub-nav,
body.ft-page-live .ft-bottom-nav,
body.ft-page-live #ftBottomNav {
    display: none !important;
}

/* ====================================================================
   3a. MOBILE SUB-NAV (Wave 33.3: Premium Animations + Glassmorphism)
   ==================================================================== */
.mobile-sub-nav {
    background: rgba(255, 255, 255, 0.92) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid rgba(0, 160, 198, 0.10) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 4px 20px rgba(0, 0, 0, 0.06) !important;
    height: 60px;
}
body.dark-mode .mobile-sub-nav {
    background: rgba(20, 22, 23, 0.94) !important;
    border-bottom-color: rgba(86, 204, 242, 0.12) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 4px 20px rgba(0, 0, 0, 0.40) !important;
}
.mobile-sub-nav .row > div {
    border-color: rgba(0, 0, 0, 0.06) !important;
    position: relative;
}
body.dark-mode .mobile-sub-nav .row > div {
    border-color: rgba(255, 255, 255, 0.06) !important;
}

/* Tab-Buttons: Premium-Style */
.mobile-tab-btn {
    color: #6b7280 !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    padding: 0.55rem 0.4rem !important;
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    transition:
        color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    letter-spacing: -0.005em;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    overflow: hidden;
}

/* Subtle Ripple-Hintergrund */
.mobile-tab-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 160, 198, 0.12) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
.mobile-tab-btn:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Icon Animation */
.mobile-tab-btn i {
    font-size: 1.25rem !important;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}
.mobile-tab-btn span,
.mobile-tab-btn {
    position: relative;
    z-index: 1;
}

/* Hover-State */
.mobile-tab-btn:hover {
    color: #00A0C6 !important;
}
.mobile-tab-btn:hover i {
    transform: translateY(-2px) scale(1.12);
}

/* Active-Press */
.mobile-tab-btn:active {
    transform: scale(0.94);
}
.mobile-tab-btn:active i {
    transform: scale(0.92);
}

body.dark-mode .mobile-tab-btn { color: #9ca3af !important; }
body.dark-mode .mobile-tab-btn:hover { color: #56ccf2 !important; }
body.dark-mode .mobile-tab-btn::before {
    background: radial-gradient(circle at center, rgba(86, 204, 242, 0.18) 0%, transparent 70%);
}

/* === ACTIVE-TAB Premium-State === */
.mobile-tab-btn.active-tab {
    color: #00A0C6 !important;
    font-weight: 700 !important;
    background: linear-gradient(180deg, rgba(0, 160, 198, 0.04) 0%, rgba(0, 160, 198, 0.10) 100%) !important;
}
.mobile-tab-btn.active-tab::before {
    opacity: 0;
}

/* Static Underline (keine infinite animation = kein CPU-Burn) */
.mobile-tab-btn.active-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 40%;
    height: 3px;
    background: linear-gradient(90deg, #00A0C6 0%, #0dcaf0 100%);
    border-radius: 3px 3px 0 0;
    transform: translateX(-50%);
    box-shadow: 0 -2px 10px rgba(0, 160, 198, 0.40);
}

/* Active-Icon Premium */
.mobile-tab-btn.active-tab i {
    transform: translateY(-2px) scale(1.15);
    filter:
        drop-shadow(0 2px 6px rgba(0, 160, 198, 0.40))
        drop-shadow(0 0 12px rgba(0, 160, 198, 0.20));
    animation: ft-tab-icon-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes ft-tab-icon-pop {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.25) rotate(-5deg); }
    100% { transform: translateY(-2px) scale(1.15) rotate(0); }
}

/* Active-Label leicht hochgezogen */
.mobile-tab-btn.active-tab {
    /* Label moved up via icon transform */
}

body.dark-mode .mobile-tab-btn.active-tab {
    color: #56ccf2 !important;
    background: linear-gradient(180deg, rgba(86, 204, 242, 0.06) 0%, rgba(86, 204, 242, 0.14) 100%) !important;
}
body.dark-mode .mobile-tab-btn.active-tab::after {
    background: linear-gradient(90deg, #56ccf2 0%, #7ddfff 50%, #56ccf2 100%);
    background-size: 200% 100%;
    box-shadow: 0 -2px 10px rgba(86, 204, 242, 0.50);
}
body.dark-mode .mobile-tab-btn.active-tab i {
    filter:
        drop-shadow(0 2px 6px rgba(86, 204, 242, 0.45))
        drop-shadow(0 0 12px rgba(86, 204, 242, 0.25));
}

/* Static Glow-Effekt unter active-Tab (kein infinite animation = kein CPU) */
.mobile-tab-btn.active-tab::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 50px;
    height: 8px;
    background: radial-gradient(ellipse, rgba(0, 160, 198, 0.25) 0%, transparent 70%);
    transform: translateX(-50%);
    opacity: 0.8;
    pointer-events: none;
}
body.dark-mode .mobile-tab-btn.active-tab::before {
    background: radial-gradient(ellipse, rgba(86, 204, 242, 0.35) 0%, transparent 70%);
}

/* Wave 33.4: col-left ganze Section 5px tiefer = 130px from top
   (Body padding-top 125px + col-left margin-top 5px = 130px) */
.col-left { margin-top: 5px !important; }
/* Sticky-Sidebar: top: 85px statt 80px (5px tiefer) auf Desktop bleibt unverändert */

/* ====================================================================
   4. BOTTOM-NAV — Fixed mit Active-Pulse
   ==================================================================== */
.ft-bottom-nav {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
    padding: 6px 4px calc(8px + env(safe-area-inset-bottom, 0px));
}
body.dark-mode .ft-bottom-nav {
    background: rgba(20, 22, 23, 0.96);
    border-top-color: 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: #6b7280;
    padding: 8px 4px;
    border-radius: 10px;
    transition: color 0.2s;
    min-height: 50px;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}
.ft-bottom-item:active { transform: scale(0.94); }
.ft-bottom-item i {
    font-size: 1.25rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ft-bottom-item span {
    font-size: 0.65rem;
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: 0.01em;
}
body.dark-mode .ft-bottom-item { color: #9ca3af; }

/* Active-Indicator: Pulsierender Cyan-Punkt */
.ft-bottom-item.active {
    color: #00A0C6;
    font-weight: 700;
}
.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::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #00A0C6;
    transform: translateX(-50%);
    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; }
@keyframes ft-pulse {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.5; transform: translateX(-50%) scale(1.4); }
}

/* ====================================================================
   5. PROFILE-DROPDOWN — Floating Centered Overlay
   ==================================================================== */
#mobileProfileToggle + .dropdown-menu {
    position: fixed !important;
    top: 68px !important;
    left: 12px !important;
    right: 12px !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 16px 36px rgba(0, 0, 0, 0.16),
        0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 0.6rem !important;
    animation: ft-dd-slide 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
body.dark-mode #mobileProfileToggle + .dropdown-menu {
    background: rgba(28, 30, 32, 0.98);
    border-color: rgba(255, 255, 255, 0.08);
}
@keyframes ft-dd-slide {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* User-Banner mit Avatar im Profile-Dropdown */
#mobileProfileToggle + .dropdown-menu > li:first-child {
    display: flex !important;
    align-items: center;
    gap: 14px;
    padding: 1rem 1.2rem !important;
    background: linear-gradient(135deg, rgba(0, 160, 198, 0.12) 0%, rgba(0, 130, 163, 0.04) 100%);
    border-radius: 12px !important;
    margin-bottom: 0.5rem;
}
body.dark-mode #mobileProfileToggle + .dropdown-menu > li:first-child {
    background: linear-gradient(135deg, rgba(86, 204, 242, 0.16) 0%, rgba(56, 182, 212, 0.06) 100%);
}
#mobileProfileToggle + .dropdown-menu > li:first-child > strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.01em;
}
body.dark-mode #mobileProfileToggle + .dropdown-menu > li:first-child > strong { color: #f3f4f6; }
#mobileProfileToggle + .dropdown-menu > li:first-child > small {
    color: #6b7280;
    font-size: 0.82rem;
}
body.dark-mode #mobileProfileToggle + .dropdown-menu > li:first-child > small { color: #9ca3af; }

/* Dropdown-Items */
#mobileProfileToggle + .dropdown-menu .dropdown-item {
    padding: 0.7rem 0.85rem !important;
    font-size: 0.95rem;
    border-radius: 10px;
    margin-bottom: 2px;
    color: #1f2937;
    -webkit-tap-highlight-color: transparent;
}
body.dark-mode #mobileProfileToggle + .dropdown-menu .dropdown-item { color: #e5e7eb; }
#mobileProfileToggle + .dropdown-menu .dropdown-item:active {
    background: rgba(0, 160, 198, 0.12);
    transform: scale(0.97);
}
#mobileProfileToggle + .dropdown-menu .dropdown-item i {
    color: #6b7280;
    font-size: 1rem;
}
body.dark-mode #mobileProfileToggle + .dropdown-menu .dropdown-item i { color: #9ca3af; }
#mobileProfileToggle + .dropdown-menu .dropdown-item.text-danger:active {
    background: rgba(220, 53, 69, 0.10);
}
#mobileProfileToggle + .dropdown-menu .dropdown-divider {
    border-top-color: rgba(0, 0, 0, 0.06);
    margin: 0.4rem 0;
}
body.dark-mode #mobileProfileToggle + .dropdown-menu .dropdown-divider {
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* ====================================================================
   6. NOTIFICATIONS / MESSAGES DROPDOWNS — Floating Centered
   ==================================================================== */
#notificationsDropdown + .dropdown-menu,
#messagesDropdown + .dropdown-menu {
    position: fixed !important;
    top: 68px !important;
    left: 12px !important;
    right: 12px !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
    max-height: calc(100vh - 80px - 70px);
    overflow-y: auto;
    padding: 0.6rem !important;
}
body.dark-mode #notificationsDropdown + .dropdown-menu,
body.dark-mode #messagesDropdown + .dropdown-menu {
    background: rgba(28, 30, 32, 0.98);
}

/* ====================================================================
   7. MOBILE-SEARCH — Hidden by default, opens via Lupe-Toggle
   ==================================================================== */
.ft-search-wrap-mobile {
    width: 100%;
    padding: 0 8px;
}
.ft-search-wrap-mobile #search_input_mobile {
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.04);
    border: 1.5px solid transparent;
    font-size: 0.95rem;
    padding: 0.55rem 2.2rem 0.55rem 2.4rem !important;
    transition: all 0.18s;
}
.ft-search-wrap-mobile #search_input_mobile:focus {
    background: #fff;
    border-color: rgba(0, 160, 198, 0.4);
    box-shadow: 0 0 0 4px rgba(0, 160, 198, 0.12);
}
body.dark-mode .ft-search-wrap-mobile #search_input_mobile {
    background: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
}
body.dark-mode .ft-search-wrap-mobile #search_input_mobile:focus {
    background: rgba(255, 255, 255, 0.12);
}

/* ====================================================================
   8. POST-CARDS + ACTION-BUTTONS
   ==================================================================== */
.card-custom {
    border-radius: 14px !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 0.75rem;
    overflow: hidden;
}
body.dark-mode .card-custom {
    background: #242526 !important;
    border-color: #3a3c3e !important;
}
.card-custom .card-body { padding: 0.85rem 0.95rem !important; }
.card-custom .post-text-content {
    line-height: 1.55;
    color: #1f2937;
    font-size: 0.95rem;
}
body.dark-mode .card-custom .post-text-content { color: #e5e7eb; }

/* Action-Buttons (Gefällt mir / Kommentieren / Teilen) */
.card-custom-footer {
    padding: 0.5rem 0.5rem 0.7rem !important;
}
.card-custom-footer .small.text-muted {
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem 0.5rem;
}
.card-custom-footer .small.text-muted i.fa-thumbs-up {
    background: #00A0C6;
    color: #fff !important;
    border-radius: 50%;
    padding: 4px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    margin-right: 4px;
}
.card-custom-footer hr { display: none; }

.action-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    padding: 0.6rem 0.3rem !important;
    border-radius: 10px !important;
    color: #6b7280 !important;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.action-btn i {
    font-size: 1rem;
    margin-right: 0.3rem !important;
}
.action-btn:active {
    transform: scale(0.96);
    background: rgba(0, 160, 198, 0.10) !important;
}
.action-btn.text-primary {
    color: #00A0C6 !important;
    background: rgba(0, 160, 198, 0.08) !important;
}
body.dark-mode .action-btn { color: #b0b3b8 !important; }

/* Like-Animation */
.action-btn.text-primary i.fa-thumbs-up {
    animation: ft-like-bounce 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes ft-like-bounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.4); }
    60% { transform: scale(0.95); }
    100% { transform: scale(1.1); }
}

/* Sehr enge Phones: Action-Buttons ohne Label (nur Icons) */
@media (max-width: 360px) {
    .action-btn { font-size: 0 !important; padding: 0.5rem 0.2rem !important; }
    .action-btn i { font-size: 1.15rem !important; margin-right: 0 !important; }
}

/* ====================================================================
   9. COMPOSER-CARD
   ==================================================================== */
.composer-trigger-card {
    margin-top: 0.5rem;
    border-radius: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
}
body.dark-mode .composer-trigger-card {
    background: #242526 !important;
    border-color: #3a3c3e !important;
}
.composer-trigger-card .card-body { padding: 0.95rem 1rem !important; }
.composer-trigger-card .form-control {
    border-radius: 999px !important;
    background: rgba(0, 0, 0, 0.04);
    font-size: 0.95rem;
    padding: 0.7rem 1.1rem !important;
    font-weight: 500;
    color: #4b5563;
}
body.dark-mode .composer-trigger-card .form-control {
    background: rgba(255, 255, 255, 0.06);
    color: #d4d6d8;
}
.composer-trigger-card img.rounded-circle {
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
}
body.dark-mode .composer-trigger-card img.rounded-circle { border-color: rgba(0, 0, 0, 0.4); }
.composer-trigger-card .border-top {
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}
body.dark-mode .composer-trigger-card .border-top { border-top-color: rgba(255, 255, 255, 0.06) !important; }
.composer-trigger-card .btn-link {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 0.5rem !important;
    border-radius: 10px;
    color: #6b7280 !important;
}
.composer-trigger-card .btn-link:active {
    background: rgba(0, 0, 0, 0.04);
    transform: scale(0.96);
}
body.dark-mode .composer-trigger-card .btn-link { color: #b0b3b8 !important; }

/* ====================================================================
   10. CREATE-POST-MODAL
   ==================================================================== */
#createPostModal .modal-dialog {
    margin: 8px;
    max-width: calc(100vw - 16px);
}
#createPostModal .modal-content {
    border-radius: 18px;
    background: #fff;
}
body.dark-mode #createPostModal .modal-content { background: #242526; }
#createPostModal .modal-header,
#createPostModal .modal-body { background: transparent !important; }
#createPostModal .modal-title { color: #1f2937 !important; font-weight: 700; }
body.dark-mode #createPostModal .modal-title { color: #f3f4f6 !important; }
body.dark-mode #createPostModal .btn-close { filter: invert(1); }

#createPostModal textarea,
#createPostModal input[type="text"] {
    background: rgba(0, 0, 0, 0.03) !important;
    color: #1f2937 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    font-size: 1rem;
    padding: 0.7rem 0.9rem !important;
}
#createPostModal textarea:focus,
#createPostModal input[type="text"]:focus {
    background: #fff !important;
    border-color: rgba(0, 160, 198, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(0, 160, 198, 0.10) !important;
}
body.dark-mode #createPostModal textarea,
body.dark-mode #createPostModal input[type="text"] {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #e5e7eb !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}

/* Action-Buttons im Modal: 2 Buttons pro Zeile */
#createPostModal .d-flex.gap-2.flex-wrap {
    gap: 6px !important;
}
#createPostModal .d-flex.gap-2.flex-wrap > * {
    flex: 1 1 calc(50% - 4px) !important;
    min-width: 0 !important;
    padding: 0.65rem 0.4rem !important;
    border-radius: 10px !important;
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    color: #1f2937 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    justify-content: center !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#createPostModal .d-flex.gap-2.flex-wrap > * i {
    margin-right: 0.35rem !important;
    font-size: 1rem !important;
}
#createPostModal .d-flex.gap-2.flex-wrap > *:active {
    transform: scale(0.95);
    background: rgba(0, 160, 198, 0.10) !important;
}
body.dark-mode #createPostModal .d-flex.gap-2.flex-wrap > * {
    background: #3a3b3c !important;
    border-color: #4a4b4c !important;
    color: #f3f4f6 !important;
}

/* Inner-Container "Fuege deinem Beitrag etwas hinzu:" */
#createPostModal .border.rounded {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    border-radius: 14px !important;
    padding: 0.85rem !important;
}
#createPostModal .border.rounded .fw-bold { color: #1f2937 !important; }
body.dark-mode #createPostModal .border.rounded {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}
body.dark-mode #createPostModal .border.rounded .fw-bold { color: #f3f4f6 !important; }

/* Posten-Button: Full-Width, Premium-Style */
#createPostModal #btnSubmitPost,
#createPostModal #submitPostBtn {
    padding: 0.85rem 1rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    box-shadow: 0 4px 14px rgba(0, 160, 198, 0.28);
    background: linear-gradient(135deg, #00A0C6 0%, #0082a3 100%) !important;
    border: none !important;
    color: #fff !important;
}
#createPostModal #btnSubmitPost:active,
#createPostModal #submitPostBtn:active { transform: scale(0.98); }

/* Sehr enge Phones: 1 Button pro Zeile */
@media (max-width: 374px) {
    #createPostModal .d-flex.gap-2.flex-wrap > * {
        flex: 1 1 100% !important;
        font-size: 0.92rem !important;
    }
}

/* ====================================================================
   11. RESPONSIVE-BREAKPOINTS fuer alle Geraete
   ==================================================================== */

/* iPhone SE alt + Galaxy Z Fold zu (320-374px) */
@media (max-width: 374px) {
    .navbar-custom .navbar-brand img { height: 22px !important; }
    .navbar-custom .logo-friends,
    .navbar-custom .logo-time { font-size: 0.85rem !important; }
    .ft-iconbar .nav-link { padding: 0.4rem !important; min-width: 34px; }
    .ft-iconbar .nav-link i { font-size: 0.95rem !important; }
    #mobileProfileToggle img { width: 26px !important; height: 26px !important; }
    .ft-bottom-item i { font-size: 1.15rem !important; }
    .ft-bottom-item span { font-size: 0.6rem !important; }
}

/* Foldable zu (≤344px) */
@media (max-width: 344px) {
    .navbar-custom .logo-time { display: none !important; }
}

/* iPhone 12-15 + Galaxy S20 (375-413px) */
@media (min-width: 375px) and (max-width: 413px) {
    .navbar-custom .navbar-brand img { height: 24px !important; }
}

/* iPhone Pro Max + Galaxy S24-S26 Ultra (414-575px) */
@media (min-width: 414px) and (max-width: 575px) {
    .navbar-custom .navbar-brand img { height: 26px !important; }
    #mobileProfileToggle img { width: 32px !important; height: 32px !important; }
    .ft-bottom-item span { font-size: 0.7rem !important; }
}

/* Phablets + Galaxy Z Fold offen (576-767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .ft-bottom-nav {
        max-width: 600px;
        margin: 0 auto;
        right: 0;
        left: 0;
        border-radius: 18px 18px 0 0;
    }
}

/* iPad mini + Tablets portrait (768-991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .navbar-custom .navbar-brand img { height: 28px !important; }
    .ft-iconbar .nav-link { padding: 0.55rem !important; min-width: 42px; }
    .ft-iconbar .nav-link i { font-size: 1.15rem !important; }
    #mobileProfileToggle img { width: 34px !important; height: 34px !important; }
    .ft-bottom-nav {
        max-width: 720px;
        margin: 0 auto;
        right: 0;
        left: 0;
        border-radius: 20px 20px 0 0;
    }
    .ft-bottom-item { min-height: 56px; }
    .ft-bottom-item i { font-size: 1.3rem !important; }
    .ft-bottom-item span { font-size: 0.74rem !important; }
}

/* ====================================================================
   12. SAFE-AREA-INSETS (iPhone X+, Pixel mit Notch)
   ==================================================================== */
@supports (padding: max(0px)) {
    .navbar-custom { padding-top: env(safe-area-inset-top, 0px); }
    .ft-bottom-nav {
        padding-left: max(8px, env(safe-area-inset-left, 0px));
        padding-right: max(8px, env(safe-area-inset-right, 0px));
        padding-bottom: max(8px, calc(8px + env(safe-area-inset-bottom, 0px)));
    }
}

/* ====================================================================
   13. TOUCH-OPTIMIZATIONS
   ==================================================================== */
.action-btn,
.nav-link,
.dropdown-item,
.btn,
.ft-bottom-item {
    -webkit-tap-highlight-color: rgba(0, 160, 198, 0.15);
}

/* Touch-Devices: kein Hover-Lift (verhindert Sticky-Hover) */
.action-btn:hover { transform: none !important; }
.action-btn:hover i { transform: none !important; }

/* ====================================================================
   13a. SAFETY-NET: col-mid darf NIE d-none haben (col-left/right haben
        Bootstrap d-none d-lg-block was korrekt ist auf Mobile)
   ==================================================================== */
.col-mid,
.col-mid.d-none {
    display: block !important;
}

/* ====================================================================
   14. CONTAINER-SPACING fuer Mobile
   ==================================================================== */
#mainContainer.container,
body > .container.mt-4 {
    padding-left: 8px !important;
    padding-right: 8px !important;
    margin-top: 0.5rem !important;
}

/* ====================================================================
   14a. SIDEBAR auf Mobile — Premium-Stack-Layout
   ==================================================================== */

/* Sticky-Sidebar auf Mobile DEAKTIVIEREN */
.ft-sidebar-sticky {
    position: static !important;
    top: auto !important;
}

.col-left { margin-bottom: 0.85rem; }

/* === Profile-Card === */
.col-left a[href*="profil.php"] { display: block; text-decoration: none !important; }
.col-left .card.hover-shadow {
    border-radius: 16px !important;
    border: 1px solid rgba(0, 160, 198, 0.15) !important;
    background: linear-gradient(135deg, rgba(0, 160, 198, 0.10) 0%, rgba(0, 130, 163, 0.02) 100%) !important;
    margin-bottom: 0.85rem !important;
    box-shadow: 0 2px 8px rgba(0, 160, 198, 0.10) !important;
}
body.dark-mode .col-left .card.hover-shadow {
    background: linear-gradient(135deg, rgba(86, 204, 242, 0.14) 0%, rgba(56, 182, 212, 0.04) 100%) !important;
    border-color: rgba(86, 204, 242, 0.20) !important;
}
.col-left .card.hover-shadow .card-body {
    padding: 1rem 1.1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px;
}
.col-left .card.hover-shadow .position-relative {
    flex-shrink: 0;
    margin-right: 0 !important;
}
.col-left .card.hover-shadow img.rounded-circle {
    width: 52px !important;
    height: 52px !important;
    border: 3px solid #fff !important;
    box-shadow: 0 4px 14px rgba(0, 160, 198, 0.30), 0 1px 4px rgba(0, 0, 0, 0.08) !important;
    object-fit: cover;
}
body.dark-mode .col-left .card.hover-shadow img.rounded-circle { border-color: #1c1e1f !important; }
.col-left .card.hover-shadow .overflow-hidden {
    flex: 1; min-width: 0;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
}
.col-left .card.hover-shadow .fw-bold {
    font-size: 1.05rem !important;
    line-height: 1.2;
    color: #1f2937 !important;
    letter-spacing: -0.01em;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.dark-mode .col-left .card.hover-shadow .fw-bold { color: #f3f4f6 !important; }
.col-left .card.hover-shadow .small.text-muted {
    font-size: 0.82rem !important;
    color: #00A0C6 !important;
    font-weight: 600;
}
body.dark-mode .col-left .card.hover-shadow .small.text-muted { color: #56ccf2 !important; }

/* === Nav-Items als 2-Spalten-Grid (Premium-Tiles) === */
.col-left .list-group {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 0.85rem !important;
}
.col-left .list-group-item {
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 14px !important;
    padding: 0.85rem 0.7rem !important;
    background: #fff !important;
    color: #1f2937 !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center;
    transition: all 0.18s ease;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
body.dark-mode .col-left .list-group-item {
    background: #2a2c2e !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #e5e7eb !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.col-left .list-group-item:active {
    transform: scale(0.96);
    background: rgba(0, 160, 198, 0.08) !important;
    border-color: rgba(0, 160, 198, 0.25) !important;
    color: #00A0C6 !important;
}
.col-left .list-group-item.bg-light {
    background: linear-gradient(135deg, rgba(0, 160, 198, 0.14) 0%, rgba(0, 130, 163, 0.04) 100%) !important;
    border-color: rgba(0, 160, 198, 0.25) !important;
    color: #00A0C6 !important;
}
.col-left .list-group-item i.fa-fw {
    margin-right: 0.6rem !important;
    font-size: 1.05rem;
    width: auto !important;
    flex-shrink: 0;
}

/* === Section-Headlines "Apps", "Workplace" === */
.col-left h6.text-uppercase {
    font-size: 0.7rem !important;
    letter-spacing: 0.08em;
    margin: 1rem 0.3rem 0.4rem !important;
    font-weight: 700;
    color: #6b7280 !important;
    text-transform: uppercase;
}
body.dark-mode .col-left h6.text-uppercase { color: #9ca3af !important; }

/* Workplace-Section: kein border-left */
.col-left .border-start.border-primary { border-left: none !important; }

/* Datenschutz-Footer in der Sidebar */
.col-left > .small.text-muted,
.col-left .small.text-muted:not(.card .small) {
    text-align: center;
    padding: 0.6rem !important;
    font-size: 0.72rem !important;
    color: #9ca3af !important;
}

/* === RIGHT-SIDEBAR (Trending + Online Kontakte) auf Mobile === */
.col-right { margin-top: 0.5rem; margin-bottom: 80px; }
.col-right .card,
.col-right .list-group,
.col-right > .card {
    border-radius: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 0.85rem;
    overflow: hidden;
}
body.dark-mode .col-right .card,
body.dark-mode .col-right .list-group,
body.dark-mode .col-right > .card {
    background: #242526 !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}
.col-right .card-header {
    background: linear-gradient(135deg, rgba(0, 160, 198, 0.08) 0%, transparent 100%) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    padding: 0.8rem 1rem !important;
    font-weight: 700;
    color: #1f2937;
}
body.dark-mode .col-right .card-header {
    background: linear-gradient(135deg, rgba(86, 204, 242, 0.12) 0%, transparent 100%) !important;
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
    color: #f3f4f6;
}
.col-right .list-group-item {
    border: none !important;
    padding: 0.6rem 1rem !important;
    background: transparent !important;
}
body.dark-mode .col-right .list-group-item { color: #d4d6d8; }

/* ====================================================================
   15. LEGACY-CLEANUP (alte Drawer + Tab-Bar Reste falls Cache)
   ==================================================================== */
#ftFeedDrawer,
.ft-feed-burger,
.ft-drawer-tabs,
.ft-offcanvas-feed,
.ft-mobile-tabbar,
#ftMobileTabbar,
.ft-tabbar-item,
[id^="ftMenueTab"],
[id^="ftFeedTab"],
[id^="ftContactsTab"] {
    display: none !important;
}
