/* Responsive Design - Mobile First */

/* Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    /* Diensten */
    .diensten-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .dienst-card {
        padding: 28px 24px;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 14px;
    }
    
    .dienst-card h3 {
        font-size: 1.25rem;
        color: #1a1a1a;
    }
    
    .icon-bg {
        width: 52px;
        height: 52px;
    }
    
    .icon-bg.blue {
        background: linear-gradient(135deg, #0046FF 0%, #0066FF 100%) !important;
    }
    
    .icon-bg.purple {
        background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%) !important;
    }
    
    .icon-bg.green {
        background: linear-gradient(135deg, #10B981 0%, #22C55E 100%) !important;
    }
    
    .icon-bg {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }
    
    .icon-bg svg {
        width: 28px;
        height: 28px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .pakketten-table {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 32px;
    }
    
    .diensten-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 16px;
    }
    
    .service-card {
        padding: 20px 16px;
        background: #fff;
        border: 1px solid #e9ecef;
    }
    
    .service-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
    }
    
    .service-icon svg {
        width: 20px;
        height: 20px;
        color: #fff;
    }
    
    .kennisbank-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: left 0.3s ease;
        padding-top: 48px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 32px;
    }
    
    .nav-links a {
        font-size: 1.125rem;
        padding: 12px 0;
        color: rgba(255, 255, 255, 0.8);
    }
    
    .nav-links a:hover {
        color: #fff;
    }
    
    .nav-buttons {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        max-width: 280px;
    }
    
    .nav-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .nav-buttons .btn-outline {
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: rgba(255, 255, 255, 0.9);
    }
    
    .nav-buttons .btn-outline:hover {
        border-color: rgba(255, 255, 255, 0.4);
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .nav-buttons-desktop {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Header adjustments */
    .navbar {
        padding: 16px 20px;
        min-height: 80px;
    }
    
    .hamburger span {
        background: #fff;
    }
    
    /* Hero Section */
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 32px;
    }
    
    /* Hero USPs */
    .hero-usps {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 32px;
    }
    
    .usp-item {
        padding: 12px 16px;
        text-align: left;
    }
    
    .usp-icon {
        width: 28px;
        height: 28px;
    }
    
    .usp-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .usp-item span {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        margin-bottom: 32px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .section-header h2 {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .section-header p {
        font-size: 1.125rem;
    }
    
    /* Diensten */
    .diensten .section-header h2 {
        font-size: 2rem;
    }
    
    .diensten-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .dienst-card {
        padding: 24px 20px;
        border-radius: 12px;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
    }
    
    .dienst-card h3 {
        font-size: 1.125rem;
        color: #1a1a1a;
        margin-bottom: 12px;
    }
    
    .dienst-card p {
        margin-bottom: 20px;
        font-size: 0.95rem;
        color: #6c757d;
    }
    
    .icon-bg {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }
    
    .icon-bg.blue {
        background: linear-gradient(135deg, #0046FF 0%, #0066FF 100%) !important;
    }
    
    .icon-bg.purple {
        background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%) !important;
    }
    
    .icon-bg.green {
        background: linear-gradient(135deg, #10B981 0%, #22C55E 100%) !important;
    }
    
    .dienst-card .btn {
        font-size: 0.85rem;
        padding: 8px 14px;
        background: #e9ecef;
        color: #1a1a1a;
        border: 1px solid #e9ecef;
    }
    
    .icon-bg svg {
        width: 24px;
        height: 24px;
    }
    
    .dienst-card p {
        margin-bottom: 24px;
        font-size: 0.95rem;
    }
    
    /* Pakketten */
    .pakketten-table {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .pakket-card {
        padding: 20px 18px;
        text-align: left;
        border-radius: 10px;
    }
    
    .pakket-card.featured {
        padding-top: 32px;
    }
    
    .pakket-header {
        margin-bottom: 16px;
        padding-bottom: 14px;
    }
    
    .pakket-header h3 {
        font-size: 1rem;
    }
    
    .price {
        font-size: 1.75rem;
    }
    
    .pakket-features li {
        padding: 5px 0;
        font-size: 0.8rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .service-card {
        padding: 20px 16px;
        border-radius: 10px;
        background: #fff;
        border: 1px solid #e9ecef;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
        border-radius: 10px;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
    }
    
    .service-icon svg {
        width: 20px;
        height: 20px;
        color: #6c757d;
    }
    
    .service-card h4 {
        font-size: 1rem;
        color: #1a1a1a;
    }
    
    .service-price {
        font-size: 1.1rem;
        color: #1a1a1a;
    }
    
    .service-card p:not(.service-price) {
        font-size: 0.85rem;
        margin-bottom: 16px;
        color: #6c757d;
    }
    
    .service-card .btn {
        font-size: 0.75rem;
        padding: 6px 10px;
        background: #e9ecef;
        color: #1a1a1a;
        border: 1px solid #e9ecef;
    }
    
    .extra-services {
        padding: 32px 20px;
        margin: 32px 0;
    }
    
    .extra-services h3 {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }
    
    /* Quiz */
    .quiz h2 {
        font-size: 1.875rem;
        margin-bottom: 12px;
    }
    
    .quiz p {
        font-size: 1.125rem;
        margin-bottom: 24px;
    }
    
    /* Kennisbank */
    .search-bar {
        flex-direction: column;
        margin-bottom: 32px;
    }
    
    .search-input {
        border-radius: 12px 12px 0 0;
        border-bottom: none;
    }
    
    .search-btn {
        border-radius: 0 0 12px 12px;
    }
    
    .kennisbank-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-content h3 {
        font-size: 1.125rem;
    }
    
    /* Footer */
    .footer {
        padding: 60px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 32px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    /* Chat Button */
    .chat-button {
        bottom: 90px;
    }
    
    /* Mobile Sticky CTA */
    .mobile-sticky-cta {
        display: block;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 1rem;
        min-height: 52px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .dienst-card,
    .pakket-card {
        padding: 24px 16px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .price {
        font-size: 2.25rem;
    }
    
    .quiz h2 {
        font-size: 2.25rem;
    }
    
    .chat-button {
        bottom: 80px;
        right: 16px;
    }
    
    .chat-btn {
        width: 48px;
        height: 48px;
        border-radius: 24px;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .pakketten-table {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Hover effects disabled on touch devices */
@media (hover: none) {
    .dienst-card:hover,
    .pakket-card:hover,
    .knowledge-card:hover {
        transform: none;
        box-shadow: initial;
    }
    
    .btn-cta:hover,
    .btn-outline:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .header,
    .chat-button,
    .mobile-sticky-cta,
    .hero-buttons,
    .btn {
        display: none;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
        color: #000;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-outline {
        border-width: 2px;
    }
    
    .pakket-card {
        border-width: 2px;
    }
    
    .dienst-card,
    .knowledge-card {
        border-width: 2px;
        border-color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-links a:focus,
.search-input:focus,
.search-btn:focus {
    outline: 2px solid #0046FF;
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #0046FF;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
}

.skip-link:focus {
    top: 6px;
}
