/* Responsive Design - Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    :root {
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.25rem;
        --font-size-xl: 1.125rem;
        --font-size-lg: 1rem;
        --spacing-4xl: 2rem;
        --spacing-3xl: 1.5rem;
        --spacing-2xl: 1rem;
        --spacing-xl: 1rem;
    }
    
    /* Fix layout overflow issues */
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 1rem;
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* Body adjustments for mobile */
    body {
        font-size: 0.9rem;
        line-height: 1.5;
        position: relative;
    }
    
    /* Prevent horizontal scroll issues */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Navigation - Fixed Mobile Menu */
    .header {
        padding: 0.75rem 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        z-index: 1000;
        border-bottom: 1px solid var(--border-light);
    }
    
    .nav {
        padding: 0 1rem;
        position: relative;
    }
    
    .nav-brand .brand-text {
        font-size: 1rem;
        font-weight: 600;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        gap: 1.5rem;
        z-index: 999;
        visibility: hidden;
        opacity: 0;
        transform: scale(0.95);
        transition: all 0.3s ease;
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        width: 100vw;
        display: flex;
        overflow: hidden;
    }
    
    .nav-menu.active {
        visibility: visible;
        opacity: 1;
        transform: scale(1);
    }
    
    .nav-link {
        padding: 1rem 2rem;
        text-align: center;
        border-radius: var(--border-radius);
        font-size: 1.125rem;
        font-weight: 500;
        width: auto;
        min-width: 200px;
        display: block;
        background-color: transparent !important;
        transition: all 0.2s ease;
        color: #000;
    }
    
    .nav-link:hover {
        background-color: var(--primary-color);
        color: white;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
        position: relative;
        width: 30px;
        height: 30px;
        cursor: pointer;
        padding: 5px;
    }
    
    .hamburger span {
        width: 20px;
        height: 2px;
        background-color: var(--text-dark);
        border-radius: 1px;
        transition: all 0.3s ease;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hamburger span:nth-child(1) {
        top: 8px;
    }
    
    .hamburger span:nth-child(2) {
        top: 14px;
    }
    
    .hamburger span:nth-child(3) {
        top: 20px;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateX(-50%) rotate(45deg);
        top: 14px;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateX(-50%) rotate(-45deg);
        top: 14px;
    }
    
    /* Hero Section */
    .hero {
        padding: calc(70px + 1.5rem) 0 2rem;
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .hero-headline {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-subheadline {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .trust-badge {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 0.25rem 0.75rem;
    }
    
    .hero-visual {
        padding: 1rem;
        gap: 1rem;
    }
    
    .visual-element {
        padding: 1rem 1.25rem;
        flex-direction: row;
        justify-content: center;
        text-align: center;
        gap: 0.75rem;
        border-radius: 12px;
        backdrop-filter: blur(15px);
    }
    
    .visual-element .icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
    
    .visual-element .icon svg {
        width: 18px;
        height: 18px;
    }
    
    .visual-element .text {
        font-size: 0.95rem;
        font-weight: 700;
    }
    
    .visual-element:hover {
        transform: none; /* Disable hover effects on mobile */
    }
    
    /* Sections */
    section {
        padding: 2rem 0;
    }
    
    .section-headline {
        font-size: 1.25rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
        text-align: left;
        padding: 0 0.5rem;
    }
    
    /* Problem Section */
    .problem-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: left;
    }
    
    .problem-description {
        font-size: 0.95rem;
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .problem-points {
        gap: 1rem;
    }
    
    .problem-point {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .problem-icon {
        font-size: 1.5rem;
    }
    
    .problem-text {
        font-size: 0.9rem;
        font-weight: 500;
    }
    
    /* Solution Section */
    .success-proof {
        margin-bottom: 1.5rem;
    }
    
    .proof-badge {
        padding: 1rem;
        font-size: 0.9rem;
        text-align: center;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .proof-icon {
        font-size: 1.5rem;
    }
    
    .solution-intro {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        text-align: left;
        padding: 0 0.5rem;
    }
    
    /* Benefits Grid */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .benefit-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .benefit-card:hover {
        transform: none; /* Disable hover effects on mobile */
    }
    
    .benefit-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 0.75rem;
        border-radius: 15px;
    }
    
    .benefit-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .benefit-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .benefit-description {
        font-size: 0.9rem;
        text-align: left;
    }
    
    .solution-summary {
        font-size: 0.95rem;
        padding: 1rem;
        margin: 1.5rem 0;
        text-align: left;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .about-image {
        position: static;
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .image-placeholder {
        width: 200px;
        height: 200px;
    }
    
    .placeholder-icon {
        font-size: 2.5rem;
    }
    
    .placeholder-text {
        font-size: 0.9rem;
    }
    
    .about-description {
        font-size: 0.95rem;
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .about-cta {
        margin-top: 1.5rem;
        text-align: center;
    }
    
    /* Reviews */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .review-card {
        padding: 1.5rem;
    }
    
    .review-card::before {
        font-size: 4rem;
        top: -5px;
        left: 1rem;
    }
    
    .review-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .author-name {
        font-size: 1rem;
    }
    
    .reviews-cta {
        padding: 1.5rem;
    }
    
    .reviews-cta-text {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .btn-outline {
        width: 100%;
        max-width: 320px;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Form */
    .form-section {
        padding: 2rem 0;
    }
    
    .form-content {
        padding: 0 1rem;
    }
    
    .form-header {
        margin-bottom: 1.5rem;
    }
    
    .form-headline {
        font-size: 1.25rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    .form-subheadline {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .lead-form {
        padding: 1.5rem;
        border-radius: var(--border-radius);
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .form-input {
        padding: 0.875rem;
        font-size: 1rem; /* Prevents zoom on iOS */
        border-radius: var(--border-radius);
    }
    
    .checkbox-label {
        font-size: 0.85rem;
        line-height: 1.4;
        gap: 0.75rem;
    }
    
    .checkbox-custom {
        width: 22px;
        height: 22px;
        margin-top: 1px;
    }
    
    .form-note {
        font-size: 0.8rem;
        margin-top: 0.75rem;
        text-align: center;
    }
    
    .success-message {
        padding: 1.5rem;
        margin-top: 1rem;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 0.75rem;
    }
    
    .success-icon svg {
        width: 36px;
        height: 36px;
    }
    
    /* Buttons */
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        min-height: 48px;
        border-radius: var(--border-radius);
        font-weight: 600;
    }
    
    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 52px;
    }
    
    .btn:hover {
        transform: none; /* Disable hover transform on mobile */
    }
    
    .solution-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .solution-cta .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Final CTA Section Mobile */
    .final-content-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        text-align: center;
    }
    
    .final-text {
        text-align: center;
    }
    
    /* Verstecke das originale Bild im Grid auf Mobile */
    .final-image {
        display: none;
    }
    
    .final-cta-image {
        max-width: 300px;
    }
    
    .final-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: var(--spacing-2xl);
    }
    
    .final-cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Zeige das mobile Bild unter den Buttons */
    .final-image-mobile {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: var(--spacing-xl);
    }
    
    .final-cta-image-mobile {
        max-width: 300px;
    }
    
    /* Final CTA Section */
    .final-description {
        font-size: 0.95rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .final-signature {
        margin: 1.5rem 0;
        text-align: left;
        font-size: 0.95rem;
    }
    
    /* Contact */
    .contact {
        padding: 1.5rem 0;
    }
    
    .contact-content h3 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .contact-content p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    .contact-info .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Footer */
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-info p {
        font-size: 0.85rem;
        margin: 0;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
    
    /* Sticky CTA */
    .sticky-cta {
        bottom: 15px;
        right: 15px;
        left: 15px;
        text-align: center;
    }
    
    .btn-sticky {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
        border-radius: 25px;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    /* Typography adjustments */
    h1 { font-size: 1.5rem; line-height: 1.3; }
    h2 { font-size: 1.25rem; line-height: 1.3; }
    h3 { font-size: 1.125rem; line-height: 1.3; }
    
    p { 
        font-size: 0.95rem; 
        line-height: 1.5; 
        margin-bottom: 1rem;
    }
    
    /* Spacing adjustments */
    .mb-lg { margin-bottom: 1rem; }
    .mb-xl { margin-bottom: 1.5rem; }
    .mt-lg { margin-top: 1rem; }
    .mt-xl { margin-top: 1.5rem; }
    
    /* Touch improvements */
    .btn, .nav-link, .checkbox-label {
        touch-action: manipulation;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    /* Improve readability */
    .text-left { text-align: left !important; }
    .text-center { text-align: center !important; }
    
    /* Form improvements */
    input[type="text"],
    input[type="email"] {
        -webkit-appearance: none;
        appearance: none;
        border-radius: var(--border-radius);
    }
    
    /* Better focus states for mobile */
    .form-input:focus {
        transform: scale(1.02);
        transition: transform 0.15s ease;
    }
}

/* Fix for very small phones (<430px) */
@media (max-width: 430px) {
    html {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    body {
        max-width: 100vw;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }
    
    .container {
        padding: 0 0.75rem;
        max-width: calc(100vw - 1.5rem);
        margin: 0 auto;
    }
    
    /* Ensure all content stays within viewport */
    * {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Fix for wide elements */
    .hero-content,
    .problem-content,
    .about-content,
    .benefits-grid {
        max-width: 100%;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Smaller text for very small screens */
    .hero-headline {
        font-size: 1.25rem;
        line-height: 1.3;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .section-headline {
        font-size: 1.125rem;
        line-height: 1.3;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    /* Ensure buttons don't overflow */
    .btn {
        max-width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        white-space: normal;
        text-align: center;
    }
    
    /* Fix form width */
    .form-content {
        padding: 0 0.75rem;
    }
    
    .lead-form {
        padding: 1rem;
        max-width: 100%;
    }
    
    /* Fix sticky CTA */
    .sticky-cta {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 15px;
    }
    
    .btn-sticky {
        width: 100%;
        max-width: none;
        font-size: 0.8rem;
        padding: 0.75rem 0.5rem;
    }
    
    /* Navigation adjustments for small screens */
    .nav-brand .brand-text {
        font-size: 0.9rem;
    }
    
    .hamburger {
        width: 25px;
        height: 25px;
    }
    
    .hamburger span {
        width: 18px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Header fixes for small tablets - gleiche Logik wie Mobile */
    .header {
        padding: 0.75rem 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        z-index: 1000;
        border-bottom: 1px solid var(--border-light);
    }
    
    .nav {
        padding: 0 1rem;
        position: relative;
    }
    
    .nav-brand .brand-text {
        font-size: 1rem;
        font-weight: 600;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        gap: 1.5rem;
        z-index: 999;
        visibility: hidden;
        opacity: 0;
        transform: scale(0.95);
        transition: all 0.3s ease;
        height: 100vh;
        width: 100vw;
        display: flex;
    }
    
    .nav-menu.active {
        visibility: visible;
        opacity: 1;
        transform: scale(1);
    }
    
    .nav-link {
        padding: 1rem 2rem;
        text-align: center;
        border-radius: var(--border-radius);
        font-size: 1.125rem;
        font-weight: 500;
        width: auto;
        min-width: 200px;
        display: block;
        background-color: var(--bg-light);
        transition: all 0.2s ease;
    }
    
    .nav-link:hover {
        background-color: var(--primary-color);
        color: white;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
        position: relative;
        width: 30px;
        height: 30px;
        cursor: pointer;
        padding: 5px;
    }
    
    .hamburger span {
        width: 20px;
        height: 2px;
        background-color: var(--text-dark);
        border-radius: 1px;
        transition: all 0.3s ease;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hamburger span:nth-child(1) {
        top: 8px;
    }
    
    .hamburger span:nth-child(2) {
        top: 14px;
    }
    
    .hamburger span:nth-child(3) {
        top: 20px;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateX(-50%) rotate(45deg);
        top: 14px;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateX(-50%) rotate(-45deg);
        top: 14px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .problem-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .problem-description {
        text-align: left;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-description {
        text-align: left;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Header fixes for tablets - gleiche Logik wie Mobile */
    .header {
        padding: 0.75rem 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        z-index: 1000;
        border-bottom: 1px solid var(--border-light);
    }
    
    .nav {
        padding: 0 1rem;
        position: relative;
    }
    
    .nav-brand .brand-text {
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        gap: 1.5rem;
        z-index: 999;
        visibility: hidden;
        opacity: 0;
        transform: scale(0.95);
        transition: all 0.3s ease;
        height: 100vh;
        width: 100vw;
        display: flex;
    }
    
    .nav-menu.active {
        visibility: visible;
        opacity: 1;
        transform: scale(1);
    }
    
    .nav-link {
        padding: 1rem 2rem;
        text-align: center;
        border-radius: var(--border-radius);
        font-size: 1.125rem;
        font-weight: 500;
        width: auto;
        min-width: 200px;
        display: block;
        background-color: var(--bg-light);
        transition: all 0.2s ease;
    }
    
    .nav-link:hover {
        background-color: var(--primary-color);
        color: white;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
        position: relative;
        width: 30px;
        height: 30px;
        cursor: pointer;
        padding: 5px;
    }
    
    .hamburger span {
        width: 20px;
        height: 2px;
        background-color: var(--text-dark);
        border-radius: 1px;
        transition: all 0.3s ease;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hamburger span:nth-child(1) {
        top: 8px;
    }
    
    .hamburger span:nth-child(2) {
        top: 14px;
    }
    
    .hamburger span:nth-child(3) {
        top: 20px;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateX(-50%) rotate(45deg);
        top: 14px;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateX(-50%) rotate(-45deg);
        top: 14px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        text-align: center;
    }
    
    .problem-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .about-content {
        grid-template-columns: 250px 1fr;
        gap: var(--spacing-2xl);
    }
    
    .image-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .solution-cta {
        flex-direction: row;
        justify-content: center;
    }
    
    .final-cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Ensure all desktop navigation is visible and properly positioned */
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
        background-color: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        padding: 1rem 0 !important;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
        height: auto !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .nav {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 1rem !important;
        position: relative !important;
    }
    
    .nav-brand {
        display: block !important;
    }
    
    .nav-brand .brand-text {
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        color: #132A49 !important;
    }
    
    .nav-menu {
        position: static !important;
        display: flex !important;
        align-items: center !important;
        gap: 1.5rem !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        background: none !important;
        backdrop-filter: none !important;
        padding: 0 !important;
        height: auto !important;
        width: auto !important;
        flex-direction: row !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem !important;
        font-weight: 500 !important;
        color: #1f2937 !important;
        background: none !important;
        min-width: auto !important;
        width: auto !important;
        display: inline-block !important;
        border-radius: 8px !important;
        font-size: 0.95rem !important;
        text-align: left !important;
        white-space: nowrap !important;
        transition: all 0.15s ease-in-out !important;
    }
    
    .nav-link:hover {
        color: #132A49 !important;
        background-color: #f9fafb !important;
    }
    
    .nav-link.btn {
        background-color: #132A49 !important;
        color: white !important;
        padding: 0.75rem 1.5rem !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
    }
    
    .nav-link.btn:hover {
        background-color: #0f1f35 !important;
        color: white !important;
    }
    
    .hamburger {
        display: none !important;
    }
    
    /* Ensure body content starts below header */
    body {
        padding-top: 0 !important;
    }
    
    /* Hero section positioning */
    .hero {
        padding-top: calc(80px + 3rem) !important;
        padding-bottom: 3rem !important;
        min-height: 100vh !important;
        display: flex !important;
        align-items: center !important;
    }

    .hero-content {
        grid-template-columns: 1.2fr 0.8fr;
    }
    
    .problem-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-content {
        grid-template-columns: 280px 1fr;
    }
    
    .image-placeholder {
        width: 280px;
        height: 280px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Ensure all desktop navigation is visible and properly positioned */
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
        background-color: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        padding: 1rem 0 !important;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
        height: auto !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .nav {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 2rem !important;
        position: relative !important;
    }
    
    .nav-brand {
        display: block !important;
    }
    
    .nav-brand .brand-text {
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        color: #132A49 !important;
    }
    
    .nav-menu {
        position: static !important;
        display: flex !important;
        align-items: center !important;
        gap: 1rem !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        background: none !important;
        backdrop-filter: none !important;
        padding: 0 !important;
        height: auto !important;
        width: auto !important;
        flex-direction: row !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .nav-link {
        padding: 0.5rem 1rem !important;
        font-weight: 500 !important;
        color: #1f2937 !important;
        background: none !important;
        min-width: auto !important;
        width: auto !important;
        display: inline-block !important;
        border-radius: 8px !important;
        font-size: 1rem !important;
        text-align: left !important;
        white-space: nowrap !important;
        transition: all 0.15s ease-in-out !important;
    }
    
    .nav-link:hover {
        color: #132A49 !important;
        background-color: #f9fafb !important;
    }
    
    .nav-link.btn {
        background-color: #6e8da9 !important;
        color: white !important;
        padding: 1rem 2rem !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
    }
    
    .nav-link.btn:hover {
        background-color: #0f1f35 !important;
        color: white !important;
    }
    
    .hamburger {
        display: none !important;
    }
    
    /* Ensure body content starts below header */
    body {
        padding-top: 0 !important;
    }
    
    /* Hero section positioning */
    .hero {
        padding-top: calc(80px + 4rem) !important;
        padding-bottom: 4rem !important;
        min-height: 100vh !important;
        display: flex !important;
        align-items: center !important;
    }

    .container {
        padding: 0 var(--spacing-xl);
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .problem-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-content {
        grid-template-columns: 300px 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Landscape phone specific adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: calc(80px + var(--spacing-xl)) 0 var(--spacing-xl);
    }
    
    .hero-headline {
        font-size: var(--font-size-2xl);
    }
    
    .hero-subheadline {
        font-size: var(--font-size-sm);
    }
    
    .visual-element {
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
        border-radius: 10px;
    }
    
    section {
        padding: var(--spacing-2xl) 0;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp icons and borders on high DPI displays */
    .benefit-icon,
    .problem-icon,
    .contact-icon,
    .placeholder-icon {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .visual-element:hover {
        transform: none;
    }
    
    .benefit-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .header,
    .sticky-cta,
    .nav,
    .form-section,
    .contact {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    .hero,
    .problem,
    .solution,
    .about,
    .final-cta {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
    
    .btn {
        border: 1px solid black;
        background: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .container {
        max-width: none;
        margin: 0;
        padding: 0;
    }
}

/* Focus states for better accessibility */
@media (hover: none) and (pointer: coarse) {
    /* Touch device optimizations */
    .btn {
        min-height: 48px;
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .nav-link {
        padding: var(--spacing-md);
        min-height: 44px;
    }
    
    .checkbox-custom {
        width: 24px;
        height: 24px;
    }
    
    .form-input {
        padding: var(--spacing-lg);
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Dark mode support (if user prefers dark mode) */
@media (prefers-color-scheme: dark) {
    /* Optional: Add dark mode styles here if needed */
    /* For now, we'll keep the light theme as default */
}

/* Animation keyframes for responsive design */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Container queries for future-proofing (when supported) */
@supports (container-type: inline-size) {
    .benefit-card {
        container-type: inline-size;
    }
    
    @container (max-width: 250px) {
        .benefit-title {
            font-size: var(--font-size-lg);
        }
    }
}

/* Alternative Mobile Menu positioning for problematic devices */
@supports not (backdrop-filter: blur(10px)) {
    .nav-menu {
        background-color: rgba(255, 255, 255, 0.95);
    }
}

/* Ensure menu is always within viewport */
@media (max-width: 991.98px) {
    .nav-menu {
        min-height: 100vh !important;
        max-height: 100vh !important;
        height: 100vh !important;
        overflow: hidden;
        -webkit-overflow-scrolling: touch;
    }
}

/* Fix for iOS Safari and other mobile browsers */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 991.98px) {
        .nav-menu {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100vw;
            height: 100vh;
            min-height: 100vh;
            max-height: 100vh;
            min-height: -webkit-fill-available;
        }
    }
}

/* Menu content wrapper to ensure centering */
.nav-menu::before {
    content: '';
    flex: 1;
}

.nav-menu::after {
    content: '';
    flex: 1;
}
