/* ==========================================
   MOBILE FIX - KOMPLETT NEU
   Lädt NACH style.css und überschreibt alles
   ========================================== */

/* Basis Reset für Mobile */
@media (max-width: 767px) {
    
    /* Body & HTML Fix */
    html, body {
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
        position: relative;
    }
    
    /* Container Fix */
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
        margin: 0 auto;
        overflow-x: hidden;
    }
    
    /* ========== HEADER FIX ========== */
    .header {
        width: 100vw;
        max-width: 100vw;
        height: 60px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 0, 85, 0.2);
        padding: 0;
        margin: 0;
    }
    
    .nav {
        width: 100%;
        max-width: 100%;
        height: 60px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
        margin: 0;
    }
    
    .nav-brand {
        flex-shrink: 0;
    }
    
    .logo {
        font-size: 1.25rem;
        font-weight: 900;
        color: #ff0055;
        text-decoration: none;
        white-space: nowrap;
    }
    
    /* Hamburger Button */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        margin: 0;
        gap: 6px;
        z-index: 1001;
    }
    
    .nav-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background: #ff0055;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Mobile Menu */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu li {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .nav-link {
        display: block;
        color: #ffffff;
        font-size: 1.75rem;
        font-weight: 600;
        text-decoration: none;
        padding: 1rem 2rem;
        text-align: center;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: #ff0055;
        text-shadow: 0 0 20px rgba(255, 0, 85, 0.6);
    }
    
    /* ========== HERO FIX ========== */
    .hero {
        position: relative;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        min-height: 100vh;
        margin: 0;
        padding: 0;
        padding-top: 60px;
        overflow: hidden;
        background: #1a1a1a;
    }
    
    .hero-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        background-image: url('https://www.genspark.ai/api/files/s/4uCB8Xdz') !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-color: transparent !important;
        z-index: 1 !important;
        opacity: 1 !important;
        filter: brightness(1) !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, rgba(10, 10, 10, 0.3) 0%, rgba(30, 30, 30, 0.5) 100%);
        z-index: 2;
        pointer-events: none;
    }
    
    .hero-content {
        position: relative;
        z-index: 3;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        font-weight: 900;
        color: #ff0055;
        margin-bottom: 1rem;
        text-shadow: 
            0 0 10px rgba(255, 0, 85, 0.8),
            0 0 20px rgba(255, 0, 85, 0.6),
            0 2px 4px rgba(0, 0, 0, 0.8);
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        color: #ffffff;
        margin-bottom: 2rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    }
    
    .hero-buttons-wrapper {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .hero-btn {
        width: 100%;
        min-height: 55px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        font-weight: 900;
        padding: 1rem 2rem;
    }
    
    /* ========== SECTIONS FIX ========== */
    .section {
        width: 100vw;
        max-width: 100vw;
        padding: 3rem 0;
        margin: 0;
        overflow-x: hidden;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
        padding: 0 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    /* ========== GRIDS FIX ========== */
    .ambiente-grid,
    .services-grid,
    .cooperation-grid,
    .contact-grid,
    .footer-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
    }
    
    /* ========== CARDS FIX ========== */
    .ambiente-card,
    .service-card,
    .cooperation-card,
    .contact-info {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .ambiente-card img {
        width: 100%;
        height: 300px;
        object-fit: cover;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        backface-visibility: hidden;
        transform: translateZ(0);
        -webkit-font-smoothing: subpixel-antialiased;
    }
    
    /* ========== BUTTONS FIX ========== */
    .btn {
        width: 100%;
        min-height: 56px;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* ========== FOOTER FIX ========== */
    .footer {
        width: 100vw;
        max-width: 100vw;
        padding: 2rem 0;
        margin: 0;
        overflow-x: hidden;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    /* ========== SCROLL TOP FIX ========== */
    .scroll-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 48px;
        height: 48px;
    }
    
    /* ========== PREVENT HORIZONTAL SCROLL ========== */
    * {
        max-width: 100vw;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}
