/* ===== BASIS LAYOUT ===== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    min-height: 100vh;
}

/* ===== DESKTOP NAVIGATIE ===== */
nav.desktop-nav {
    width: 200px;
    background-color: #0078d7;
    color: white;
    padding: 2rem 1rem;
    box-sizing: border-box;
    flex-shrink: 0;
    animation: slideInLeft 0.5s ease-out;
}

nav.desktop-nav a {
    display: block;
    color: white;
    text-decoration: none;
    margin-bottom: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

nav.desktop-nav a:hover {
    text-decoration: none;
}

nav.desktop-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

nav.desktop-nav a:hover::before {
    left: 0;
}

/* ===== CONTENT LAYOUT ===== */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.6s ease-in;
}

header.desktop-header {
    background-color: #005fa3;
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    animation: slideInTop 0.5s ease-out 0.2s both;
    position: relative; /* Voor correcte header-positionering */

    min-height: 100px;
}

.logo-small {
    height: 82px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-small:hover {
    transform: scale(1.05);
}

header.desktop-header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
    text-align: left;
}

/* ===== MAIN CONTENT ===== */
main {
    padding: 2rem;
    flex: 1;
    background-color: #f5f5f5;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    animation: fadeIn 0.5s ease-out 0.5s both;
}

.logo {
    max-width: 300px;
    height: auto;
    display: block;
    margin: 2rem auto 0 auto;
}

/* Voor extra zekerheid - centreer ook h1 elementen buiten header */
h1 {
    text-align: center;
}

/* ===== MENU ICON ===== */
.menu-icon {
    height: 16px;
    width: 16px;
    vertical-align: middle;
    margin-right: 8px;
    transition: transform 0.3s ease;
}

nav.desktop-nav a:hover .menu-icon {
    transform: scale(1.2) rotate(5deg);
}

/* ===== NAVIGATIE KNOP ===== */
.route-knop {
    display: inline-block;
    background-color: #0078d7;
    color: white !important;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.route-knop:hover {
    background-color: #005fa3;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.route-knop-container {
    margin-top: 20px;
    text-align: center;
}

/* ===== ANIMATIES ===== */
html {
    scroll-behavior: smooth;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FORM STYLING ===== */
form {
    animation: slideInUp 0.6s ease-out 0.4s both;
}

input, textarea {
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(0, 120, 215, 0.3);
}

button {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== MOBILE HEADER - STANDAARD VERBORGEN ===== */
.mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #005fa3;
    color: white;
    position: relative;
    z-index: 1002;

    min-height: 78px;
}

.mobile-header .logo-small {
    height: 60px;
    width: auto;
}

.mobile-header h1 {
    font-size: 1.2rem;
    margin: 0;
    flex: 1;
    text-align: center;
}

/* ===== HAMBURGER KNOP - STANDAARD VERBORGEN ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
    z-index: 1003;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hamburger animatie wanneer actief */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ===== MOBILE NAVIGATION OVERLAY ===== */
.nav-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background-color: #0078d7;
    z-index: 2001;
    transition: left 0.3s ease;
    padding-top: 60px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.nav-overlay.active {
    left: 0;
}

.nav-overlay a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.3s ease;
}

.nav-overlay a:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-overlay .menu-icon {
    height: 16px;
    width: 16px;
    margin-right: 10px;
    vertical-align: middle;
}

/* ===== BACKDROP VOOR HET SLUITEN VAN MENU ===== */
.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
}

.nav-backdrop.active {
    display: block;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Verberg desktop navigatie */
    nav.desktop-nav {
        display: none;
    }
    
    /* Verberg desktop header */
    header.desktop-header {
        display: none;
    }
    
    /* Toon mobile header */
    .mobile-header {
        display: flex;
    }
    
    /* Toon hamburger knop */
    .hamburger {
        display: flex;
    }
    
    /* Body aanpassingen voor mobiel */
    body {
        flex-direction: column;
    }
    
    .content {
        margin-left: 0;
    }
    
    main {
        padding: 1rem;
    }
    
    .logo {
        max-width: 90%;
    }

    table {
        width: 100%;
        font-size: 0.95rem;
    }

    table th, table td {
        padding: 0.5rem;
    }
    
    /* Toggle container aanpassing voor mobiel */
    .toggle-container {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    /* Versie 2 styling voor mobile */
/* Snellere animaties op mobiel */
    .content, nav.desktop-nav, header.desktop-header, main {
        animation-duration: 0.3s;
    }
    
    /* Minder hover effecten op touch devices */
    nav.desktop-nav a:hover::before,
    nav.desktop-nav a:hover .menu-icon,
    .logo-small:hover {
        transform: none;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .content, nav.desktop-nav, header.desktop-header, main, footer, form, .toggle-container {
        animation: none;
    }
    
    nav.desktop-nav a, .menu-icon, .logo-small, input, textarea, button, .route-knop {
        transition: none;
    }
}

/* ===== FOTOGALERIJ STYLING ===== */

/* Welkom sectie */
.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.welcome-section h2 {
    color: #0078d7;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.welcome-section p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Gallery sectie */
.gallery-section {
    margin-bottom: 3rem;
}

.gallery-section h2 {
    text-align: center;
    color: #0078d7;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Photo Gallery Grid */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 120, 215, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Services sectie */
.services-section {
    margin-top: 3rem;
}

.services-section h2 {
    text-align: center;
    color: #0078d7;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #0078d7;
}

.service-card h3 {
    color: #0078d7;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ===== LIGHTBOX STYLING ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
    user-select: none;
}

.lightbox-close:hover {
    color: #0078d7;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.lightbox-btn {
    background: rgba(0, 120, 215, 0.8);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: all;
    user-select: none;
}

.lightbox-btn:hover {
    background: rgba(0, 120, 215, 1);
    transform: scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Lightbox animaties */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Versie 2 styling voor gallery */
/* ===== RESPONSIVE GALLERY ===== */
@media (max-width: 768px) {
    .welcome-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .welcome-section h2 {
        font-size: 1.8rem;
    }
    
    .welcome-section p {
        font-size: 1rem;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .gallery-section h2,
    .services-section h2 {
        font-size: 1.6rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-close {
        top: -40px;
        font-size: 2.5rem;
    }
    
    .lightbox-btn {
        font-size: 1.5rem;
        padding: 0.8rem 1.2rem;
    }
    
    .lightbox-counter {
        bottom: -40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .photo-gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        min-height: 250px;
    }
}


/* ===== KNMI WIDGET IN BANNER ===== */
.knmi-banner-widget {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.75rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: white;
    font-size: 0.9rem;
    line-height: 1.15;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.knmi-weather-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
}

.knmi-weather-lines {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.knmi-temp,
.knmi-wind {
    display: block;
}

.knmi-temp strong,
.knmi-wind strong {
    font-weight: 700;
}

@media (max-width: 900px) {
    .knmi-banner-widget {
        display: none;
    }
}

@media (min-width: 901px) and (max-width: 1200px) {
    header.desktop-header {
        padding-right: 13rem;
    }

    .knmi-banner-widget {
        right: 0.75rem;
        font-size: 0.78rem;
        padding: 0.35rem 0.55rem;
    }

    .knmi-weather-icon {
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 1201px) {
    header.desktop-header {
        padding-right: 15rem;
    }

    .knmi-weather-icon {
        width: 48px;
        height: 48px;
    }
}


/* ===== DIENSTEN KLIKBAAR NAAR CONTACT ===== */
.service-card.service-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.service-card.service-link:hover {
    text-decoration: none;
}

#contactformulier {
    scroll-margin-top: 90px;
}

/* ===== CONTACTFORMULIER STATUS ===== */
.contact-status {
    display: none;
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
    font-weight: bold;
}

.contact-status.success {
    display: block;
    background: #e7f7ec;
    color: #146c2e;
    border: 1px solid #9ed7ad;
}

.contact-status.error {
    display: block;
    background: #fdeaea;
    color: #9f1c1c;
    border: 1px solid #e0a3a3;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}


/* ===== WELKOMSTVERHAAL HOMEPAGINA ===== */
.welcome-story-section {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-story-section h2 {
    color: #0078d7;
    font-size: 2.3rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.welcome-intro {
    max-width: 850px;
    margin: 0 auto 2rem auto;
    font-size: 1.2rem;
    color: #444;
    line-height: 1.6;
    font-weight: 500;
}

.welcome-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    text-align: left;
}

.welcome-card,
.welcome-footer-card {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
    border: 1px solid #e9ecef;
}

.welcome-card h3,
.welcome-footer-card h3 {
    color: #0078d7;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.welcome-card p,
.welcome-footer-card p {
    color: #555;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.welcome-card p:last-child,
.welcome-footer-card p:last-child {
    margin-bottom: 0;
}

.welcome-footer-card {
    margin-top: 1.5rem;
    text-align: left;
    background: linear-gradient(135deg, #ffffff 0%, #f3f8fc 100%);
}

.welcome-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.welcome-highlights span {
    display: inline-block;
    background: #0078d7;
    color: white;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font-weight: bold;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

@media (max-width: 900px) {
    .welcome-grid {
        grid-template-columns: 1fr;
    }

    .welcome-story-section h2 {
        font-size: 1.8rem;
    }

    .welcome-intro {
        font-size: 1.05rem;
    }

    .welcome-card,
    .welcome-footer-card {
        padding: 1.35rem;
    }
}


/* ===== TARIEVEN PAGINA ===== */
.tarieven-section {
    max-width: 950px;
    margin: 0 auto;
}

.tarieven-section h2 {
    color: #0078d7;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
}

.tarieven-intro {
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.65;
    text-align: center;
}

.tarieven-table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
    border: 1px solid #e9ecef;
}

.tarieven-tabel {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 520px;
}

.tarieven-tabel th {
    background: #005fa3;
    color: white;
    padding: 1rem;
    text-align: left;
    font-size: 1rem;
}

.tarieven-tabel td {
    padding: 1rem;
    border-bottom: 1px solid #e1e7ef;
    color: #444;
    line-height: 1.5;
}

.tarieven-tabel tbody tr:nth-child(even) {
    background: #f5f9ff;
}

.tarieven-tabel tbody tr:hover {
    background: #eaf4ff;
}

.tarieven-tabel tbody tr:last-child td {
    border-bottom: none;
}

.tarieven-opmerking {
    margin-top: 1rem;
    color: #555;
    font-size: 0.95rem;
    text-align: center;
}

@media (max-width: 768px) {
    .tarieven-section h2 {
        font-size: 1.6rem;
    }

    .tarieven-intro {
        font-size: 1rem;
        text-align: left;
    }

    .tarieven-table-wrapper {
        border-radius: 10px;
    }
}


/* ===== LOKAAL NIEUWS ===== */
.news-intro {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
}

.news-intro h2 {
    color: #0078d7;
    font-size: 2rem;
    margin: 0 0 1rem 0;
}

.news-intro p {
    margin: 0;
    color: #666;
    font-size: 1.05rem;
}

.local-news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.news-block {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.news-block-header {
    background: #0078d7;
    color: white;
    padding: 1.25rem;
}

.news-block-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.35rem;
    color: white;
}

.news-block-header p {
    margin: 0;
    opacity: 0.9;
}

.news-list {
    padding: 1rem;
}

.news-card {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.news-card:last-child {
    border-bottom: none;
}

.news-card h3 {
    color: #0078d7;
    font-size: 1.05rem;
    margin: 0.25rem 0 0.5rem 0;
    line-height: 1.3;
}

.news-card p {
    margin: 0 0 0.75rem 0;
    color: #555;
    line-height: 1.45;
}

.news-card a {
    display: inline-block;
    color: #0078d7;
    font-weight: bold;
    text-decoration: none;
}

.news-card a:hover {
    text-decoration: underline;
}

.news-date {
    display: inline-block;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.news-loading {
    color: #666;
    margin: 0;
}

.news-sources-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

@media (max-width: 900px) {
    .local-news-grid {
        grid-template-columns: 1fr;
    }

    .news-intro {
        padding: 1.5rem;
    }

    .news-intro h2 {
        font-size: 1.6rem;
    }
}


/* ===== REPARATIE & ONDERHOUD PAGINA ===== */
.onderhoud-section {
    max-width: 1050px;
    margin: 0 auto;
}

.onderhoud-section h2 {
    color: #0078d7;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
}

.onderhoud-intro {
    max-width: 850px;
    margin: 0 auto 2rem auto;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.65;
    text-align: center;
}

.onderhoud-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.onderhoud-card {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
    border: 1px solid #e9ecef;
}

.onderhoud-card h3 {
    color: #0078d7;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.onderhoud-card p {
    color: #555;
    line-height: 1.65;
    margin: 0;
}

.onderhoud-cta {
    background: linear-gradient(135deg, #ffffff 0%, #f3f8fc 100%);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
    border: 1px solid #e9ecef;
}

.onderhoud-cta h3 {
    color: #0078d7;
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.onderhoud-cta p {
    color: #555;
    line-height: 1.65;
    margin: 0 auto 1.25rem auto;
    max-width: 700px;
}

@media (max-width: 900px) {
    .onderhoud-grid {
        grid-template-columns: 1fr;
    }

    .onderhoud-section h2 {
        font-size: 1.7rem;
    }

    .onderhoud-intro {
        font-size: 1rem;
        text-align: left;
    }

    .onderhoud-card,
    .onderhoud-cta {
        padding: 1.35rem;
    }
}


/* ===== FORMULE 1 PAGINA ===== */
.f1-intro {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
}

.f1-intro h2 {
    color: #0078d7;
    font-size: 2rem;
    margin: 0 0 1rem 0;
}

.f1-intro p {
    margin: 0;
    color: #666;
    font-size: 1.05rem;
}

.f1-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.f1-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.f1-card-header {
    background: #0078d7;
    color: white;
    padding: 1.25rem;
}

.f1-card-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.35rem;
    color: white;
}

.f1-card-header p {
    margin: 0;
    opacity: 0.9;
}

.f1-card-body {
    padding: 1.25rem;
}

.f1-race-title,
.f1-circuit-name {
    color: #0078d7;
    font-size: 1.35rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.f1-info-list {
    display: grid;
    gap: 0.65rem;
    color: #555;
    line-height: 1.45;
}

.f1-map-button {
    margin-top: 1rem;
}

.f1-standings-card {
    margin-top: 1.5rem;
}

.f1-table-wrapper {
    overflow-x: auto;
}

.f1-standings-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.f1-standings-table th {
    background: #005fa3;
    color: white;
    padding: 0.85rem;
    text-align: left;
}

.f1-standings-table td {
    padding: 0.85rem;
    border-bottom: 1px solid #e1e7ef;
    color: #444;
}

.f1-standings-table tbody tr:nth-child(even) {
    background: #f5f9ff;
}

.f1-standings-table tbody tr:hover {
    background: #eaf4ff;
}

.f1-loading {
    color: #666;
    margin: 0;
}

.f1-source-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

@media (max-width: 900px) {
    .f1-grid {
        grid-template-columns: 1fr;
    }

    .f1-intro {
        padding: 1.5rem;
    }

    .f1-intro h2 {
        font-size: 1.6rem;
    }
}


/* ===== MOBIELE HEADER MET WEERWIDGET ===== */
.mobile-header {
    gap: 0.5rem;
}

.mobile-header .hamburger {
    flex: 0 0 auto;
}

.mobile-header .logo-small,
.mobile-header h1 {
    display: none;
}

.mobile-header .mobile-knmi-widget {
    position: static;
    transform: none;
    display: flex;
    margin-left: auto;
    max-width: calc(100% - 60px);
    font-size: 0.72rem;
    padding: 0.35rem 0.5rem;
    gap: 0.35rem;
}

.mobile-header .mobile-knmi-widget .knmi-weather-icon {
    width: 30px;
    height: 30px;
}

.mobile-header .mobile-knmi-widget .knmi-weather-lines {
    gap: 0.05rem;
}

.mobile-header .mobile-knmi-widget .knmi-temp,
.mobile-header .mobile-knmi-widget .knmi-wind {
    white-space: nowrap;
}

/* ===== FORMULE 1 AFTELKLOK IN BANNER ===== */
.f1-banner-countdown {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.55rem 0.85rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    color: white;
    line-height: 1.15;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    max-width: 230px;
}

.f1-countdown-label {
    font-size: 0.78rem;
    opacity: 0.9;
    font-weight: 600;
}

.f1-countdown-time {
    font-size: 1.15rem;
    font-weight: 800;
    white-space: nowrap;
}

.f1-countdown-race {
    font-size: 0.78rem;
    opacity: 0.95;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body:has(.f1-banner-countdown) header.desktop-header {
    padding-left: 16rem;
}

@media (max-width: 900px) {
    .mobile-header {
        justify-content: space-between;
    }

    .mobile-header .knmi-banner-widget {
        display: flex;
    }

    .mobile-header .f1-banner-countdown {
        position: static;
        transform: none;
        display: flex;
        max-width: 45%;
        padding: 0.35rem 0.45rem;
        border-radius: 12px;
        margin-left: 0;
        margin-right: auto;
    }

    .mobile-header .f1-countdown-label {
        font-size: 0.65rem;
    }

    .mobile-header .f1-countdown-time {
        font-size: 0.9rem;
    }

    .mobile-header .f1-countdown-race {
        font-size: 0.65rem;
    }

    .mobile-header .f1-banner-countdown + .mobile-knmi-widget {
        max-width: 47%;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .mobile-header {
        padding: 0.7rem;
        gap: 0.35rem;
    }

    .mobile-header .mobile-knmi-widget {
        font-size: 0.62rem;
        padding: 0.28rem 0.35rem;
        gap: 0.25rem;
    }

    .mobile-header .mobile-knmi-widget .knmi-weather-icon {
        width: 26px;
        height: 26px;
    }

    .mobile-header .f1-banner-countdown {
        max-width: 44%;
        padding: 0.28rem 0.35rem;
    }

    .mobile-header .f1-countdown-time {
        font-size: 0.78rem;
    }

    .mobile-header .f1-countdown-label,
    .mobile-header .f1-countdown-race {
        font-size: 0.58rem;
    }
}

@media (min-width: 901px) and (max-width: 1200px) {
    .f1-banner-countdown {
        left: 0.75rem;
        max-width: 190px;
        padding: 0.45rem 0.65rem;
    }

    .f1-countdown-time {
        font-size: 1rem;
    }

    .f1-countdown-label,
    .f1-countdown-race {
        font-size: 0.72rem;
    }

    body:has(.f1-banner-countdown) header.desktop-header {
        padding-left: 13rem;
    }
}


/* ===== SEO: MOBIELE TITEL ZONDER EXTRA H1 ===== */
.mobile-page-title {
    font-size: 1.2rem;
    margin: 0;
    flex: 1;
    text-align: center;
    font-weight: bold;
}
