/* Mobile4Ever - Performance & SEO Optimizations */
/* Ergänzt style.css */

/* ========================================
   ESC 2026 BANNER
   ======================================== */
.esc-banner {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    color: white;
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    font-weight: 500;
}

.esc-banner a {
    color: #FFD700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.esc-banner a:hover {
    text-decoration: underline;
}

.esc-cta {
    text-decoration: underline;
    margin-left: var(--space-sm);
}

/* Navigation Highlight (ESC 2026) */
.nav-highlight {
    background: var(--secondary) !important;
    color: white !important;
    border-radius: var(--radius-md);
}

.nav-highlight:hover {
    background: var(--secondary-dark) !important;
}

/* ========================================
   ADDITIONAL MOBILE OPTIMIZATIONS
   ======================================== */
@media (max-width: 768px) {
    .esc-banner {
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--font-size-sm);
    }

    .esc-banner strong {
        display: block;
        margin-bottom: 4px;
    }

    .esc-cta {
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }

    /* Verbesserte Touch-Targets */
    .footer-links a {
        display: block;
        padding: var(--space-xs) 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Größere Abstände auf Mobile */
    .section {
        padding: var(--space-xl) 0;
    }

    /* ========================================
       MOBILE FORM OPTIMIZATIONS
       ======================================== */

    /* Prevent iOS zoom on input focus (min 16px) */
    input, select, textarea {
        font-size: 16px !important;
    }

    /* Larger touch targets for form fields */
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 48px;
        padding: 12px 16px;
    }

    /* Form rows stack on mobile */
    .form-row {
        grid-template-columns: 1fr !important;
        gap: var(--space-sm);
    }

    /* Bigger submit button */
    button[type="submit"],
    .btn-lg {
        min-height: 52px;
        font-size: 18px;
    }

    /* Better placeholder visibility */
    input::placeholder {
        color: #999;
        opacity: 1;
    }

    /* ========================================
       MOBI CHATBOT MOBILE OPTIMIZATIONS
       ======================================== */

    /* Full-width chat on mobile */
    .assistant-chat {
        width: calc(100vw - 20px) !important;
        max-width: none !important;
        right: 10px !important;
        left: 10px !important;
        bottom: 80px !important;
    }

    /* Larger chat input */
    .assistant-input {
        font-size: 16px !important;
        min-height: 48px;
        padding: 12px 16px;
    }

    /* Larger send button */
    .assistant-send {
        min-width: 48px;
        min-height: 48px;
    }

    /* Better message readability */
    .assistant-message {
        font-size: 15px;
        line-height: 1.5;
        padding: 12px 14px;
    }

    /* Floating button larger for touch */
    .assistant-toggle {
        width: 60px !important;
        height: 60px !important;
        bottom: 90px !important;
    }

    /* Quick reply buttons bigger */
    .quick-reply {
        min-height: 44px;
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */
/* Optimize image rendering */
img {
    content-visibility: auto;
}

/* GPU acceleration for animations */
.btn,
.service-card,
.model-card,
.use-case {
    will-change: transform;
}

/* Reduce repaints */
.hero-image img,
.model-image {
    contain: layout style paint;
}

/* Lazy loading für Below-the-fold Bilder */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

/* ========================================
   VISUAL ENHANCEMENTS
   ======================================== */

/* Verbesserte Hero-Trust Items */
.hero-trust-item {
    background: rgba(255, 255, 255, 0.9);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Sanfte Hover-Effekte */
.service-card:hover .service-icon,
.model-card:hover .model-image {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Focus-Visible Verbesserungen */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Scroll-Margin für Anchor-Links */
[id] {
    scroll-margin-top: 100px;
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Höherer Kontrast für Links */
.footer a:hover,
.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Verbesserte Button-States */
.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Skip-Link Verbesserung */
.skip-link:focus {
    position: fixed;
    top: var(--space-sm);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(45, 139, 122, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(45, 139, 122, 0); }
}

/* ========================================
   COMPREHENSIVE MOBILE OPTIMIZATIONS
   Optimal für Touchscreens & kleine Displays
   ======================================== */

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Smooth momentum scrolling */
body {
    -webkit-overflow-scrolling: touch;
}

/* Remove tap highlight on mobile */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Better touch scrolling */
.nav-menu,
.assistant-messages,
.faq-list {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* ========================================
   TABLET BREAKPOINT (1024px)
   ======================================== */
@media (max-width: 1024px) {
    /* Trust badges kompakter */
    .trust-badges {
        gap: var(--space-xs);
    }

    .trust-badge {
        padding: 6px 10px;
        font-size: 13px;
    }

    /* Header contact kompakter */
    .header-phone {
        font-size: var(--font-size-base);
    }
}

/* ========================================
   MOBILE BREAKPOINT (768px) - KOMPAKT
   ======================================== */
@media (max-width: 768px) {

    /* === KOMPAKTE VARIABLEN === */
    :root {
        --space-xs: 6px;
        --space-sm: 10px;
        --space-md: 16px;
        --space-lg: 24px;
        --space-xl: 32px;
        --space-2xl: 40px;
    }

    /* === SAFE AREA SUPPORT (iPhone Notch) === */
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    }

    .contact-bar {
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    }

    /* === HEADER MOBILE - ULTRA SCHLANK === */
    .header {
        position: relative;
        padding: 4px 0;
    }

    /* ESC Banner kompakt */
    [style*="linear-gradient"][style*="Eurovision"],
    div[style*="ESC"] {
        padding: 4px 8px !important;
        font-size: 11px !important;
    }

    .header-content {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 6px;
    }

    .logo img {
        height: 32px;
    }

    /* ALLE Trust badges, Sterne, Google, Facebook auf Mobile VERSTECKEN */
    .trust-badges,
    .header-trust,
    .header-badges,
    [class*="trust"],
    [class*="badge"]:not(.hero-badge):not(.model-badge),
    .header-content > a[href*="google"],
    .header-content > a[href*="facebook"],
    .header-content > a[href*="tripadvisor"],
    .header .stars,
    .header [style*="stars"],
    .header-content > span:not(.header-phone):not(.header-email) {
        display: none !important;
    }

    /* Header contact - nur Telefon + Deutsch */
    .header-contact {
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }

    .header-phone {
        font-size: 12px;
        padding: 4px 8px;
        background: var(--primary);
        color: white;
        border-radius: 6px;
        min-height: 28px;
        display: flex;
        align-items: center;
    }

    .header-phone:hover {
        color: white;
        background: var(--primary-dark);
    }

    /* Email auf Mobile verstecken */
    .header-email {
        display: none !important;
    }

    /* Deutsch-Link mini */
    .header-lang {
        font-size: 9px !important;
        padding: 2px 5px;
        background: var(--bg-light);
        border-radius: 3px;
    }

    /* === NAVIGATION MOBILE - KOMPAKT === */
    .nav {
        position: relative;
        padding: 4px 0;
    }

    .nav .container {
        display: flex;
        justify-content: center;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 160px;
        background: rgba(255,255,255,0.1);
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        min-height: 40px;
        padding: 8px 16px;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 8px;
        gap: 2px;
        z-index: 100;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        display: flex;
        max-height: 400px;
        opacity: 1;
        padding: 10px;
    }

    .nav-menu li a {
        padding: 10px 14px;
        min-height: 44px;
        font-size: 15px;
        border-radius: 8px;
        background: rgba(255,255,255,0.05);
        margin-bottom: 2px;
    }

    .nav-menu li a:hover,
    .nav-menu li a.active {
        background: rgba(255,255,255,0.15);
    }

    /* === HERO MOBILE - KOMPAKT === */
    .hero {
        padding: 24px 0;
    }

    .hero-content {
        gap: 16px;
    }

    .hero h1 {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 4px 10px;
        margin-bottom: 10px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 8px;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-height: 200px;
        object-fit: cover;
        border-radius: 12px;
    }

    .hero-trust {
        margin-top: 12px;
        gap: 8px;
    }

    .hero-trust-item {
        font-size: 12px;
        padding: 4px 8px;
    }

    /* === BUTTONS MOBILE - KOMPAKT === */
    .btn {
        min-height: 44px;
        padding: 10px 16px;
        font-size: 15px;
        border-radius: 10px;
    }

    .btn-lg {
        min-height: 48px;
        font-size: 16px;
    }

    /* Active state für Touch */
    .btn:active {
        transform: scale(0.97);
        transition: transform 0.1s;
    }

    /* === SECTIONS MOBILE - KOMPAKT === */
    .section {
        padding: 28px 0;
    }

    .section-header {
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 22px;
        line-height: 1.25;
        margin-bottom: 8px;
    }

    .section-subtitle {
        font-size: 14px;
        line-height: 1.5;
    }

    /* === CARDS MOBILE - KOMPAKT === */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-card {
        padding: 16px;
    }

    .service-card h3 {
        font-size: 17px;
        margin-bottom: 6px;
    }

    .service-card p {
        font-size: 14px;
        line-height: 1.5;
    }

    .service-icon {
        width: 52px;
        height: 52px;
        font-size: 26px;
        margin-bottom: 12px;
    }

    .models-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .model-card {
        padding: 14px;
    }

    .model-card h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .model-image {
        height: 160px;
        margin-bottom: 12px;
    }

    .model-badge {
        font-size: 11px;
        padding: 6px 10px;
        top: 10px;
        right: 10px;
    }

    .model-specs {
        margin-bottom: 12px;
    }

    .model-specs li {
        padding: 8px 0;
        font-size: 14px;
    }

    /* === CTA SECTION MOBILE - KOMPAKT === */
    .cta-section {
        padding: 28px 0;
    }

    .cta-section h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .cta-section p {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .cta-buttons {
        gap: 8px;
    }

    .cta-buttons .btn {
        min-width: unset;
        width: 100%;
    }

    /* === CONTACT BAR MOBILE - KOMPAKT === */
    .contact-bar {
        display: block;
        padding: 8px;
        background: var(--bg-white);
        border-top: 2px solid var(--primary);
    }

    .contact-bar-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .contact-bar .btn {
        min-height: 42px;
        font-size: 14px;
        padding: 8px;
    }

    /* === FOOTER MOBILE - KOMPAKT === */
    .footer {
        padding: 20px 0;
    }

    .footer-bottom {
        padding-top: 12px;
        gap: 8px;
        font-size: 12px;
    }

    /* === TYPOGRAPHY MOBILE - KOMPAKT === */
    h1 { font-size: 24px; margin-bottom: 10px; }
    h2 { font-size: 20px; margin-bottom: 10px; }
    h3 { font-size: 18px; margin-bottom: 8px; }
    h4 { font-size: 16px; margin-bottom: 6px; }

    p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    /* === COVERAGE LIST MOBILE - KOMPAKT === */
    .coverage-list {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .coverage-list li {
        text-align: center;
        padding: 10px 14px;
        font-size: 14px;
    }

    /* === LOCATION CARDS MOBILE - KOMPAKT === */
    .location-card {
        padding: 14px;
    }

    .location-card h3 {
        font-size: 18px;
    }

    .location-card p {
        font-size: 14px;
    }

    .location-card .tagline {
        font-size: 13px;
    }

    /* === FAQ MOBILE - KOMPAKT === */
    .faq-item {
        margin-bottom: 8px;
    }

    .faq-question {
        padding: 14px;
    }

    .faq-question h3 {
        font-size: 15px;
        line-height: 1.4;
    }

    .faq-answer {
        padding: 0 14px 14px;
    }

    .faq-answer p {
        font-size: 14px;
        line-height: 1.5;
    }

    .faq-category-title {
        font-size: 18px;
        margin: 20px 0 12px;
    }

    /* === BOOKING ASSISTANT MOBILE - KOMPAKT === */
    #booking-assistant {
        bottom: calc(70px + env(safe-area-inset-bottom, 0px));
        right: 10px;
    }

    .assistant-button {
        width: 54px;
        height: 54px;
        font-size: 24px;
    }

    /* === CAROUSEL MOBILE - KOMPAKT === */
    .carousel-container {
        margin-left: -10px;
        margin-right: -10px;
        padding: 0 10px;
        margin-top: 20px !important;
    }

    .carousel-card {
        flex: 0 0 240px !important;
    }

    .carousel-card img {
        height: 160px !important;
    }

    .carousel-card div {
        padding: 10px !important;
    }

    .carousel-card h4 {
        font-size: 14px !important;
        margin-bottom: 2px !important;
    }

    .carousel-card p {
        font-size: 12px !important;
    }

    /* === PROCESS STEPS KOMPAKT === */
    .process-step {
        padding: 12px;
        margin-bottom: 8px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .process-step h4 {
        font-size: 15px;
    }

    .process-step p {
        font-size: 13px;
    }

    /* === FORMS KOMPAKT === */
    .form-group {
        margin-bottom: 12px;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 15px;
        min-height: 42px;
    }

    .field-hint {
        font-size: 11px;
        margin-top: 3px;
    }

    /* === BOOKING CARDS KOMPAKT === */
    .booking-card {
        padding: 16px;
    }

    .booking-card h3 {
        font-size: 17px;
    }

    .booking-card p {
        font-size: 13px;
    }
}

/* ========================================
   SMALL MOBILE BREAKPOINT (480px) - ULTRA KOMPAKT
   ======================================== */
@media (max-width: 480px) {

    /* Ultra kompaktes Layout */
    .container {
        padding: 0 10px;
    }

    /* Header ULTRA SCHLANK */
    .header {
        padding: 3px 0 !important;
    }

    .logo img {
        height: 28px;
    }

    .header-phone {
        font-size: 11px;
        padding: 3px 6px;
        min-height: 24px;
    }

    .header-phone svg,
    .header-phone::before {
        display: none;
    }

    .header-lang {
        font-size: 8px !important;
        padding: 2px 4px;
    }

    /* Trust badges KOMPLETT verstecken */
    .trust-badges,
    .header .trust-badge {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* Hero ultra kompakt */
    .hero {
        padding: 18px 0;
    }

    .hero h1 {
        font-size: 21px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 3px 8px;
    }

    .hero-image img {
        max-height: 160px;
    }

    /* Sections ultra kompakt */
    .section {
        padding: 22px 0;
    }

    .section-title {
        font-size: 19px;
    }

    .section-subtitle {
        font-size: 13px;
    }

    /* Cards ultra kompakt */
    .service-card,
    .model-card,
    .location-card,
    .booking-card {
        padding: 12px;
    }

    .service-card h3,
    .model-card h3 {
        font-size: 16px;
    }

    .service-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
        margin-bottom: 10px;
    }

    .model-image {
        height: 140px;
    }

    /* Buttons ultra kompakt */
    .btn {
        width: 100%;
        min-width: unset;
        min-height: 40px;
        font-size: 14px;
        padding: 8px 14px;
    }

    .btn-lg {
        min-height: 44px;
        font-size: 15px;
    }

    /* Model specs ultra kompakt */
    .model-specs li {
        padding: 6px 0;
        font-size: 13px;
    }

    /* CTA ultra kompakt */
    .cta-section {
        padding: 22px 0;
    }

    .cta-section h2 {
        font-size: 18px;
    }

    .cta-section p {
        font-size: 13px;
    }

    /* Carousel ultra kompakt */
    .carousel-card {
        flex: 0 0 200px !important;
    }

    .carousel-card img {
        height: 130px !important;
    }

    .carousel-card div {
        padding: 8px !important;
    }

    .carousel-card h4 {
        font-size: 13px !important;
    }

    .carousel-card p {
        font-size: 11px !important;
    }

    /* ESC Hero ultra kompakt */
    .esc-hero {
        padding: 40px 0 !important;
    }

    .esc-hero h1 {
        font-size: 24px !important;
    }

    .esc-hero h2 {
        font-size: 16px !important;
    }

    .esc-hero h3 {
        font-size: 14px !important;
    }

    .esc-hero p {
        font-size: 14px !important;
    }

    /* Contact Bar ultra kompakt */
    .contact-bar {
        padding: 6px;
    }

    .contact-bar .btn {
        min-height: 38px;
        font-size: 13px;
    }

    /* FAQ ultra kompakt */
    .faq-question {
        padding: 12px;
    }

    .faq-question h3 {
        font-size: 14px;
    }

    .faq-answer {
        padding: 0 12px 12px;
    }

    .faq-answer p {
        font-size: 13px;
    }

    /* Forms ultra kompakt */
    .form-group {
        margin-bottom: 10px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 14px;
        min-height: 38px;
    }

    /* Footer ultra kompakt */
    .footer {
        padding: 16px 0;
    }

    .footer-bottom {
        font-size: 11px;
    }

    /* Navigation ultra kompakt */
    .nav-toggle {
        min-height: 36px;
        font-size: 13px;
        max-width: 140px;
    }

    .nav-menu li a {
        padding: 8px 12px;
        min-height: 40px;
        font-size: 14px;
    }
}

/* ========================================
   TOUCH DEVICE OPTIMIZATIONS
   ======================================== */
@media (hover: none) and (pointer: coarse) {
    /* Entferne Hover-Effekte auf Touch-Geräten */
    .btn:hover {
        transform: none;
    }

    .service-card:hover,
    .model-card:hover,
    .use-case:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }

    /* Größere Touch-Targets */
    .nav-menu li a {
        min-height: 52px;
    }

    .footer-links a {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    /* Links mit mehr Abstand */
    a {
        padding: 2px 0;
    }
}

/* ========================================
   LANDSCAPE MOBILE
   ======================================== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: var(--space-lg) 0;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    .hero-image {
        order: 0;
    }

    .hero-image img {
        max-height: 200px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .section {
        padding: var(--space-lg) 0;
    }

    .contact-bar-inner {
        max-width: 400px;
    }
}

/* ========================================
   DARK MODE SUPPORT (Optional)
   ======================================== */
@media (prefers-color-scheme: dark) {
    /* Kann später aktiviert werden */
}
