/* Website Optimalisaties - Consistente Blauwe Badges & Performance */

/* ===== BADGE KLEUREN - BLAUW THEME ===== */

/* Overschrijf badge kleuren naar blauw theme */
.badge-success {
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
    color: white !important;
}

.badge-rating {
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
    color: white !important;
}

/* Zorg voor consistente badge styling op alle schermen */
.badge {
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* ===== PERFORMANCE OPTIMALISATIES ===== */

/* Verbeter font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* GPU acceleratie voor animaties */
.hero,
.package-card,
.feature-card,
.nav-menu,
.badge {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Optimaliseer afbeeldingen */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Reduceer layout shifts */
.hero-image img,
.package-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== ACCESSIBILITY VERBETERINGEN ===== */

/* Focus states voor toetsenbord navigatie */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid #0ea5e9;
    outline-offset: 2px;
}

/* Skip link voor screen readers */
.skip-to-main:focus {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: #0ea5e9;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ===== RESPONSIVE OPTIMALISATIES ===== */

/* Verbeter touch targets op mobiel */
@media (max-width: 768px) {
    .btn,
    .nav-link,
    .package-card .btn {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Optimaliseer spacing op kleine schermen */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Verbeter leesbaarheid op mobiel */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
}

/* ===== LOADING OPTIMALISATIES ===== */

/* Lazy loading voor afbeeldingen */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Preload kritieke fonts */
@font-face {
    font-family: 'Inter';
    font-display: swap;
}

/* ===== ANIMATIE OPTIMALISATIES ===== */

/* Reduceer animaties voor gebruikers met voorkeur */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== PRINT OPTIMALISATIES ===== */

@media print {
    /* Verberg niet-essentiële elementen bij printen */
    .navbar,
    .nav-menu,
    .btn,
    .footer-social {
        display: none !important;
    }
    
    /* Optimaliseer voor zwart-wit printen */
    body {
        color: black;
        background: white;
    }
    
    a {
        text-decoration: underline;
    }
    
    /* Toon URLs bij links */
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* ===== DARK MODE VOORBEREIDING ===== */

@media (prefers-color-scheme: dark) {
    /* Optioneel: Dark mode support voor toekomst */
    /* Momenteel uitgeschakeld, kan later geactiveerd worden */
}

/* ===== SCROLL OPTIMALISATIES ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Scroll padding voor fixed navbar */
html {
    scroll-padding-top: 100px;
}

/* ===== FORM OPTIMALISATIES ===== */

/* Verbeter form styling */
input,
textarea,
select {
    font-size: 16px; /* Voorkomt zoom op iOS */
}

/* Autocomplete styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px white inset;
    -webkit-text-fill-color: #1f2937;
}

/* ===== BROWSER COMPATIBILITY ===== */

/* Safari specifieke fixes */
@supports (-webkit-appearance: none) {
    .badge,
    .btn {
        -webkit-appearance: none;
    }
}

/* Firefox specifieke fixes */
@-moz-document url-prefix() {
    .badge,
    .btn {
        -moz-appearance: none;
    }
}

