/* PRACHTPLAN MAKLERSERVICE - Mobile Enhancements */
/* Comprehensive Mobile Optimization & Overflow Prevention */

/* Mobile Container Fixes - Prevent Horizontal Scroll */
@media (max-width: 768px) {
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        margin: 0 auto;
    }
    
    /* Fix any element that might cause horizontal scroll */
    img, video, iframe, object, embed, table, pre, code {
        max-width: 100%;
        height: auto;
    }
}

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
    .header {
        padding: 0.75rem 0;
    }
    
    .nav {
        position: relative;
    }
    
    .logo {
        height: 40px;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 40px 20px;
        transition: left 0.3s ease;
        z-index: 999;
        gap: 20px;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
        color: var(--text-dark);
        border-radius: 12px;
        transition: all 0.3s ease;
        width: 100%;
    }
    
    .nav-links a:hover {
        background: var(--bg-light);
        color: var(--primary-color);
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: none;
        background: none;
        color: var(--text-dark);
        font-size: 1.2rem;
        cursor: pointer;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: var(--bg-light);
        color: var(--primary-color);
    }
}

/* Mobile Hero Enhancements */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 50px;
        text-align: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }
    
    .subtitle {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 30px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-stats {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        margin: 25px 0;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-text {
        font-size: 1rem;
        max-width: 280px;
    }
}

/* Mobile Button Optimizations */
@media (max-width: 768px) {
    .btn {
        width: 100%;
        max-width: 280px;
        min-height: 48px;
        padding: 14px 24px;
        font-size: 1rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn-lg {
        min-height: 52px;
        font-size: 1.1rem;
        padding: 16px 28px;
    }
    
    .cta-group {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .quick-contact,
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

/* Mobile Target Selection */
@media (max-width: 768px) {
    .target-selection {
        padding: 60px 0;
    }
    
    .target-selection-header {
        margin-bottom: 40px;
    }
    
    .target-buttons-enhanced {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 40px;
    }
    
    .target-card-enhanced {
        padding: 30px 20px;
        margin: 0 auto;
        max-width: 350px;
        width: 100%;
    }
    
    .target-icon-wrapper {
        width: 60px;
        height: 60px;
        border-radius: 15px;
        margin-bottom: 20px;
    }
    
    .target-icon {
        font-size: 2rem;
    }
    
    .target-content h3 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .target-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .target-features {
        margin-bottom: 25px;
    }
    
    .target-features li {
        font-size: 0.95rem;
        padding: 6px 0;
    }
    
    .target-cta-bottom {
        margin-top: 40px;
    }
}

/* Mobile Trust Section */
@media (max-width: 768px) {
    .trust-section {
        padding: 60px 0;
    }
    
    .trust-section .lead {
        margin-bottom: 40px;
        font-size: 1rem;
    }
    
    .trust-badges {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    
    .trust-badge {
        padding: 25px 20px;
        margin: 0 auto;
        max-width: 320px;
        text-align: center;
    }
    
    .trust-icon {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .trust-badge h4 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .trust-badge p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* Mobile Product Sections */
@media (max-width: 768px) {
    .product-section {
        padding: 50px 0;
    }
    
    .product-header {
        margin-bottom: 40px;
    }
    
    .product-header h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .product-header .lead {
        font-size: 1rem;
    }
    
    .service-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-hook {
        font-size: 1.2rem;
        margin-bottom: 25px;
        line-height: 1.3;
    }
    
    .service-stats {
        padding: 20px;
        margin: 25px 0;
    }
    
    .big-number {
        font-size: 2.5rem;
        margin-bottom: 8px;
    }
    
    .service-icon {
        font-size: 3.5rem;
        margin-bottom: 20px;
    }
}

/* Mobile Victor Cards & Tips */
@media (max-width: 768px) {
    .victor-card,
    .team-card {
        padding: 25px 20px;
        margin: 0 auto;
        max-width: 300px;
    }
    
    .victor-photo {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }
    
    .victor-badges {
        justify-content: center;
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 3px 10px;
    }
    
    .victor-note {
        padding: 20px;
        margin-top: 25px;
    }
    
    .victor-tips,
    .victor-quote {
        padding: 20px;
        margin: 25px 0;
    }
    
    .victor-tips h4,
    .victor-quote h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .tip-list li {
        padding: 6px 0;
        font-size: 0.95rem;
    }
    
    .partner-badge {
        padding: 15px;
        margin-top: 15px;
    }
}

/* Mobile Calculator Widgets */
@media (max-width: 768px) {
    .calculator-widget {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .calculator-widget h4 {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .slider-container {
        margin: 15px 0;
    }
    
    .slider-container label {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .slider-container input[type="range"] {
        height: 6px;
        margin-bottom: 8px;
    }
    
    .slider-container input[type="range"]::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
    }
    
    .calculation-result {
        padding: 15px;
        margin-top: 15px;
    }
    
    .shock-statistics {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 25px;
    }
    
    .shock-stat {
        padding: 20px;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .shock-number {
        font-size: 2rem;
        margin-bottom: 8px;
    }
}

/* Mobile Contact Sections */
@media (max-width: 768px) {
    .contact-section,
    .contact-section-minimal {
        padding: 50px 0;
    }
    
    .contact-minimal h2 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .contact-minimal .lead {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .contact-quick {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 25px;
    }
    
    .contact-item {
        font-size: 1rem;
        justify-content: center;
        padding: 10px;
        border-radius: 8px;
        transition: background 0.3s ease;
    }
    
    .contact-item:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .contact-note {
        font-size: 0.9rem;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 40px 0;
    }
    
    .contact-card {
        padding: 30px 20px;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .contact-icon i {
        font-size: 1.8rem;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    
    .contact-detail {
        padding: 15px;
        text-align: left;
    }
    
    .contact-detail i {
        font-size: 1.2rem;
    }
}

/* Mobile Floating Elements */
@media (max-width: 768px) {
    .floating-app {
        display: none;
    }
    
    .floating-whatsapp {
        right: 15px;
        bottom: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    
    .floating-whatsapp:hover {
        transform: translateY(-2px) scale(1.02);
    }
}

/* Mobile Urgency Bar */
@media (max-width: 768px) {
    .urgency-bar {
        padding: 10px 15px;
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .urgency-bar i {
        margin-right: 6px;
    }
}

/* Mobile Typography Improvements */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    h3 {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 0.6rem;
    }
    
    h4 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 0.8rem;
    }
    
    .lead {
        font-size: 1.1rem;
        line-height: 1.5;
    }
}

/* Mobile Spacing Adjustments */
@media (max-width: 768px) {
    .section-lg {
        padding: 50px 0;
    }
    
    .section-md {
        padding: 40px 0;
    }
    
    .section-sm {
        padding: 30px 0;
    }
    
    .mb-1 { margin-bottom: 0.8rem; }
    .mb-2 { margin-bottom: 1.2rem; }
    .mb-3 { margin-bottom: 1.8rem; }
    
    .mt-1 { margin-top: 0.8rem; }
    .mt-2 { margin-top: 1.2rem; }
    .mt-3 { margin-top: 1.8rem; }
}

/* Mobile Touch Improvements */
@media (max-width: 768px) {
    /* Improve touch targets */
    a, button, input, textarea, select {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Improve input fields on mobile */
    input[type="range"] {
        -webkit-appearance: none;
        height: 8px;
        border-radius: 4px;
        background: var(--bg-light);
        outline: none;
        touch-action: manipulation;
    }
    
    input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: var(--primary-color);
        cursor: pointer;
        border: 2px solid white;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }
    
    /* Smooth scrolling on mobile */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    h1 {
        font-size: 1.9rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero {
        padding: 90px 0 40px;
    }
    
    .trust-section,
    .product-section,
    .contact-section {
        padding: 40px 0;
    }
    
    .trust-badge,
    .victor-card,
    .team-card,
    .contact-card {
        padding: 20px 15px;
    }
    
    .calculator-widget {
        padding: 15px;
    }
    
    .btn {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .floating-whatsapp {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        right: 12px;
        bottom: 12px;
    }
    
    .urgency-bar {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    /* Tighter spacing for very small screens */
    .service-stats,
    .victor-tips,
    .victor-quote {
        padding: 15px;
        margin: 20px 0;
    }
    
    .big-number {
        font-size: 2.2rem;
    }
    
    .shock-number {
        font-size: 1.8rem;
    }
    
    .target-card-enhanced {
        max-width: 100%;
        padding: 25px 15px;
    }
    
    .trust-badge {
        max-width: 100%;
    }
}

/* Landscape Mobile Optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-lg {
        padding: 40px 0;
    }
    
    .nav-links {
        height: calc(100vh - 60px);
        padding: 20px;
    }
    
    .floating-whatsapp {
        right: 10px;
        bottom: 10px;
    }
}

/* High DPI Display Improvements */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .victor-photo,
    .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support (respects system preference) */
@media (prefers-color-scheme: dark) {
    .trust-badge,
    .victor-card,
    .team-card,
    .contact-card,
    .calculator-widget {
        background: rgba(255, 255, 255, 0.95);
    }
    
    .nav-links {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-whatsapp,
    .floating-app {
        animation: none;
    }
    
    .urgency-bar i {
        animation: none;
    }
}

/* Focus Improvements for Accessibility */
@media (max-width: 768px) {
    a:focus,
    button:focus,
    input:focus,
    textarea:focus,
    select:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
        border-radius: 4px;
    }
    
    .btn:focus {
        outline: 2px solid white;
        outline-offset: 2px;
    }
    
    .nav-links a:focus {
        background: var(--bg-light);
        color: var(--primary-color);
        outline: 2px solid var(--primary-color);
    }
}
