/**
 * Mobile Optimizations
 * Verbesserte Mobile UX für Sedcard Single Pages
 * 
 * @package Noble_Frontend_Display
 * @since 2.19.0
 */

/* ═══════════════════════════════════════════════════════════ */
/*   WEITERE KONTAKTMÖGLICHKEITEN - Modern Styled               */
/* ═══════════════════════════════════════════════════════════ */

.additional-contact-methods-box {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.additional-contact-title {
    font-size: 13px;
    font-weight: 700;
    color: rgba(219, 193, 109, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.additional-contact-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-contact-method {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(20, 20, 20, 0.9) 100%);
    border: 1px solid rgba(219, 193, 109, 0.3);
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-contact-method:hover {
    background: linear-gradient(135deg, rgba(219, 193, 109, 0.15) 0%, rgba(219, 193, 109, 0.08) 100%);
    border-color: rgba(219, 193, 109, 0.5);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(219, 193, 109, 0.15);
}

.btn-contact-method .method-icon {
    font-size: 20px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(219, 193, 109, 0.9);
}

.btn-contact-method .method-text {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

/* WhatsApp spezifisches Styling */
.btn-contact-method.btn-whatsapp {
    border-color: rgba(37, 211, 102, 0.3);
}

.btn-contact-method.btn-whatsapp:hover {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.15) 0%, rgba(37, 211, 102, 0.08) 100%);
    border-color: rgba(37, 211, 102, 0.5);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-contact-method.btn-whatsapp .method-icon {
    color: rgba(37, 211, 102, 0.9);
}

/* Telefon spezifisches Styling */
.btn-contact-method.btn-phone .method-icon {
    color: rgba(52, 152, 219, 0.9);
}

.btn-contact-method.btn-phone:hover {
    border-color: rgba(52, 152, 219, 0.5);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

/* Threema spezifisches Styling (Grün) */
.btn-contact-method.btn-threema {
    border-color: rgba(62, 178, 73, 0.3);
}

.btn-contact-method.btn-threema:hover {
    background: linear-gradient(135deg, rgba(62, 178, 73, 0.15) 0%, rgba(62, 178, 73, 0.08) 100%);
    border-color: rgba(62, 178, 73, 0.5);
    box-shadow: 0 4px 12px rgba(62, 178, 73, 0.2);
}

.btn-contact-method.btn-threema .method-icon {
    color: rgba(62, 178, 73, 0.9);
}

/* Signal spezifisches Styling (Blau) */
.btn-contact-method.btn-signal {
    border-color: rgba(58, 134, 255, 0.3);
}

.btn-contact-method.btn-signal:hover {
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.15) 0%, rgba(58, 134, 255, 0.08) 100%);
    border-color: rgba(58, 134, 255, 0.5);
    box-shadow: 0 4px 12px rgba(58, 134, 255, 0.2);
}

.btn-contact-method.btn-signal .method-icon {
    color: rgba(58, 134, 255, 0.9);
}

/* Telegram spezifisches Styling (Hell-Blau) */
.btn-contact-method.btn-telegram {
    border-color: rgba(42, 171, 238, 0.3);
}

.btn-contact-method.btn-telegram:hover {
    background: linear-gradient(135deg, rgba(42, 171, 238, 0.15) 0%, rgba(42, 171, 238, 0.08) 100%);
    border-color: rgba(42, 171, 238, 0.5);
    box-shadow: 0 4px 12px rgba(42, 171, 238, 0.2);
}

.btn-contact-method.btn-telegram .method-icon {
    color: rgba(42, 171, 238, 0.9);
}

/* E-Mail spezifisches Styling (Grau) */
.btn-contact-method.btn-email .method-icon {
    color: rgba(169, 169, 169, 0.9);
}

@media (max-width: 768px) {
    .additional-contact-methods-box {
        margin-top: 14px;
        padding-top: 14px;
    }
    
    .additional-contact-title {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .btn-contact-method {
        padding: 11px 14px;
    }
    
    .btn-contact-method .method-icon {
        font-size: 16px;
    }
    
    .btn-contact-method .method-text {
        font-size: 13px;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/*   MOBILE: TOUCH-TARGETS & PERFORMANCE                        */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* Alle Buttons - mindestens 44px Touch Target (iOS Guidelines) */
    .btn-favorite,
    .btn-primary-compact,
    .btn-contact-grid,
    .btn-favorite-grid,
    .btn-contact-method {
        min-height: 44px;
        -webkit-tap-highlight-color: rgba(219, 193, 109, 0.2);
    }
    
    /* Smooth Scrolling */
    html {
        scroll-behavior: smooth;
    }
    
    /* Modal-Open: Verhindere Body-Scroll */
    body.modal-open {
        position: fixed;
        width: 100%;
        overflow: hidden;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/*   SINGLE PAGE: BREADCRUMBS & CONTAINER WIDTH (MOBILE)        */
/* ═══════════════════════════════════════════════════════════ */

.noble-single-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.noble-single-container .noble-breadcrumbs {
    padding: 16px;
}

@media (max-width: 768px) {
    /* Entfernt doppelte Side-Paddings (Theme/Plugin), damit Content nicht "zu schmal" wird */
    .noble-frontend-single {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .noble-single-container {
        padding-left: 8px;
        padding-right: 8px;
        box-sizing: border-box;
    }

    .noble-single-container .noble-breadcrumbs {
        padding: 10px 12px;
        margin-left: 0;
        margin-right: 0;
    }

    /* Breadcrumbs sollen mobil gar nicht erscheinen */
    .noble-breadcrumbs {
        display: none !important;
    }

    /* Wichtig: vorhandene Mobile-Paddings im Inneren neutralisieren (sonst "Container in Container") */
    .noble-single-container .sedcard-header,
    .noble-single-container .sedcard-content > * {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .noble-single-container .sedcard-sidebar > .sidebar-box,
    .noble-single-container .sedcard-sidebar > div {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .noble-single-container .sidebar-mobile-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Doppelte Scrollbar vermeiden: keine inneren Scroll-Container */
    .noble-sedcard-single {
        overflow-y: visible !important;
    }
}

