/* Base Styles */
:root {
    --primary-color: #333;
    --secondary-color: #666;
    --accent-color: #e0c9a6;      /* alleen als achtergrond of decoratie, niet als tekstkleur op wit */
    --background-color: #fff;
    --light-bg-color: #f8f8f8;
    --border-color: #ddd;         /* decoratieve lijnen */
    --input-border-color: #767676; /* formuliervelden: minimaal 3:1 op wit */
    --text-color: #333;
    --light-text-color: #666;
    --footer-bg-color: #f8f8f8;
    --footer-text-color: #333;
    --button-hover-color: #d4b78c;
    --error-color: #c0392b;
    --success-color: #2e7d32;
    --max-width: 1200px;
    --header-height: 80px;
    --section-spacing: 80px;
    --transition-speed: 0.3s;
    color-scheme: light;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

input,
textarea,
button,
select {
    font: inherit;
    color: inherit;
}

/* Zichtbare focus voor toetsenbordgebruikers */
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Alleen voor schermlezers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip-link: onzichtbaar tot hij focus krijgt */
.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2000;
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-120%);
    transition: transform var(--transition-speed) ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Inline SVG-iconen (symbolen staan bovenaan elke pagina) */
.icon-svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -0.125em;
    flex-shrink: 0;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.btn:hover {
    background-color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.header-hidden {
    transform: translateY(-100%);
}

.transparent-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--primary-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 60px;
    width: auto;
}

nav .menu {
    display: flex;
}

nav .menu li {
    margin-left: 30px;
}

nav .menu a {
    position: relative;
    display: inline-block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 0;
}

nav .menu a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

nav .menu a:hover::after,
nav .menu a.active::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    align-items: center;
}

/* Iconen en taalknoppen: tikdoelen van minimaal 44 x 44 px */
.nav-icons .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin-left: 4px;
    font-size: 20px;
}

.nav-icons .icon:hover {
    color: var(--secondary-color);
}

/* Language Selector Styles */
.language-selector {
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.language-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0 4px;
    color: var(--secondary-color);
    transition: color var(--transition-speed);
}

.language-btn.active {
    color: var(--primary-color);
    font-weight: 700;
}

.language-btn:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.language-divider {
    color: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 44px;
    height: 44px;
    padding: 7px;
    cursor: pointer;
    z-index: 1000;
    background: none;
    border: none;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Video Containers */
.fullscreen-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    z-index: -1; /* Achter de content; main en footer liggen erboven */
    /* Foto als achtergrond tot de video geladen is (en zonder JavaScript) */
    background: var(--light-bg-color) url('../images/jason-king-duurzaamheid.jpg') center / cover no-repeat;
    background-image: image-set(
        url('../images/jason-king-duurzaamheid-1600.webp') type('image/webp'),
        url('../images/jason-king-duurzaamheid.jpg') type('image/jpeg')
    );
}

/* De iframe behoudt zijn 16:9-verhouding en vult altijd het hele scherm (ook staand op een telefoon) */
.fullscreen-video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100vw, 177.78vh);
    height: max(100vh, 56.25vw);
    height: max(100dvh, 56.25vw);
    border: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background-color: var(--light-bg-color);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.contact-video {
    width: 100%;
    margin: 20px 0;
}

/* Main Content Styles */
main {
    position: relative;
    z-index: 2;
    margin-top: var(--header-height);
}

.hero-spacer {
    position: relative;
    height: calc(100vh - var(--header-height));
    height: calc(100svh - var(--header-height));
    min-height: 500px;
}

.hero-spacer h1 {
    margin: 0;
}

/* Section Styles */
section {
    padding: var(--section-spacing) 0;
}

/* Story Preview */
.story-preview {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: var(--light-bg-color);
}

.story-image,
.story-content {
    flex: 1;
    min-width: 300px;
}

.story-content {
    padding: 50px;
}

.story-content :is(h1, h2) {
    font-size: 32px;
    margin-bottom: 20px;
}

.story-content p {
    margin-bottom: 30px;
}

/* Footer Styles */
footer {
    position: relative;
    z-index: 2;
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    padding: 60px 0 0;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-column p,
.footer-column ul {
    margin-bottom: 20px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}


.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 20px;
    background-color: #ececec;
    border-radius: 50%;
    transition: background-color var(--transition-speed) ease;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

/* Story Page Styles */
.story-section {
    padding: var(--section-spacing) 0;
}

.alt-section {
    background-color: var(--light-bg-color);
}

.story-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.story-text {
    flex: 1;
    min-width: 300px;
    padding: 30px;
}

.story-text :is(h1, h2) {
    font-size: 28px;
    margin-bottom: 20px;
}

.story-text p {
    margin-bottom: 20px;
}

/* Sustainability & Service Page */
.care-block :is(h1, h2),
.repair-block :is(h1, h2) {
    margin-bottom: 20px;
    font-size: 2rem;
}

.care-block p,
.repair-block p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.care-image,
.repair-image {
    margin-top: 30px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.care-tips {
    margin: 20px 0 30px;
    padding-left: 20px;
}

.care-tips li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.5;
    position: relative;
    padding-left: 15px;
}

.care-tips li::before {
    content: '•';
    position: absolute;
    left: -15px;
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info :is(h1, h2) {
    font-size: 28px;
    margin-bottom: 20px;
}

.contact-info {
    max-width: 800px;
}

.contact-info p {
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    margin-bottom: 20px;
}

.contact-item > .icon-svg {
    font-size: 24px;
    margin-right: 20px;
    margin-top: 2px;
    color: var(--secondary-color);
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.social-contact h3 {
    margin-bottom: 15px;
}

.map-section {
    background-color: var(--light-bg-color);
}

.map-container {
    margin-top: 30px;
}

.map-container iframe {
    display: block;
    width: 100%;
    border: 0;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 300px;
    padding: 40px 20px;
    text-align: center;
    background-color: #fff;
    border: 1px solid var(--border-color);
}

.map-placeholder p {
    max-width: 560px;
    color: var(--light-text-color);
}

.map-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    margin: 0;
}

.faq-question-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 15px 0;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
}

.faq-toggle {
    display: inline-flex;
    font-size: 20px;
    flex-shrink: 0;
}

.faq-toggle .icon-svg {
    transition: transform var(--transition-speed) ease;
}

.faq-item.open .faq-toggle .icon-svg {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 0 15px;
    display: none;
}

.faq-answer.open {
    display: block;
}

/* Algemene hulpelementen */
.text-link {
    text-decoration: underline;
}

.text-bold {
    font-weight: 700;
}

/* Fade-in animatie bij scrollen */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Openingstijden op de contactpagina */
.opening-hours-list {
    max-width: 320px;
}

.opening-hours-list li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 3px 0;
}

/* Radio Transit overlay op Ons Verhaal */
.overlay-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 10;
    pointer-events: none;
}

.radio-transit-overlay {
    background-image: url('../images/radio-transit-4.png');
    background-image: image-set(
        url('../images/radio-transit-4.webp') type('image/webp'),
        url('../images/radio-transit-4.png') type('image/png')
    );
}

/* Cookiebanner */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 20px;
    padding-bottom: calc(15px + env(safe-area-inset-bottom, 0px));
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-banner-text {
    margin: 0;
    font-size: 14px;
    max-width: 640px;
}

.cookie-banner .text-link {
    color: #fff;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
}

/* Akkoord en Weigeren zijn bewust even opvallend */
.cookie-banner .cookie-btn {
    padding: 10px 18px;
    font-size: 13px;
    background-color: #fff;
    color: var(--primary-color);
    border: 1px solid #fff;
}

.cookie-banner .cookie-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.cookie-banner :focus-visible {
    outline-color: #fff;
}

/* Privacybeleid-pagina */
.privacy-container {
    max-width: 800px;
}

.privacy-container h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.privacy-container h2 {
    font-size: 22px;
    margin: 30px 0 10px;
}

.privacy-container p {
    margin-bottom: 15px;
}

.privacy-updated {
    color: var(--light-text-color);
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    :root {
        --section-spacing: 60px;
    }

    .story-content {
        padding: 30px;
    }
}

@media (max-width: 767.98px) {
    :root {
        --header-height: 70px;
        --section-spacing: 50px;
    }

    nav .menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        padding: 20px 0;
    }

    .menu.active li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .menu.active li a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .menu.active li a::after {
        display: none;
    }

    .menu.active li:last-child a {
        border-bottom: none;
    }

    .story-content :is(h1, h2),
    .contact-info :is(h1, h2) {
        font-size: 24px;
    }

    .story-text {
        padding: 20px;
    }

    .story-container {
        flex-direction: column;
    }

    .story-container .story-image,
    .story-container .story-text {
        width: 100%;
    }

    .story-container .story-image {
        margin-bottom: 20px;
    }

    .contact-info {
        width: 100%;
    }

    .contact-info {
        margin-bottom: 30px;
    }

    .nav-icons {
        margin-right: 8px;
    }
}

@media (max-width: 576px) {
    :root {
        --section-spacing: 40px;
    }

    .btn {
        padding: 10px 18px;
    }

    .header-container {
        padding: 0 12px;
    }

    .logo-image {
        height: 40px;
    }

    .nav-icons .icon {
        margin-left: 0;
        min-width: 40px;
        font-size: 18px;
    }

    .language-selector {
        margin-left: 0;
    }

    .language-btn {
        min-width: 36px;
        font-size: 13px;
    }

    .footer-column {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }

    .footer-container {
        padding: 30px 15px;
    }

    .story-text :is(h1, h2),
    .care-block :is(h1, h2),
    .repair-block :is(h1, h2) {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .story-text p,
    .care-block p,
    .repair-block p {
        font-size: 15px;
        line-height: 1.5;
    }

    .care-tips li {
        margin-bottom: 8px;
        font-size: 15px;
    }

    .faq-question-btn {
        font-size: 16px;
    }

    .faq-answer p {
        font-size: 15px;
    }
}

/* Extra kleine schermen zoals iPhone SE */
@media (max-width: 375px) {
    .header-container {
        padding: 0 8px;
    }

    .logo-image {
        height: 36px;
    }

    .nav-icons {
        margin-right: 4px;
    }

    .language-btn {
        min-width: 32px;
        padding: 0 2px;
    }

    .story-text :is(h1, h2),
    .care-block :is(h1, h2),
    .repair-block :is(h1, h2) {
        font-size: 20px;
    }

    .footer-container {
        padding: 25px 10px;
    }
}

/* Minder beweging voor wie daar de voorkeur aan geeft */
@media (prefers-reduced-motion: reduce) {
    .fullscreen-video-container {
        display: none;
    }

    .hero-spacer {
        background: url('../images/jason-king-duurzaamheid.jpg') center / cover no-repeat;
        background-image: image-set(
            url('../images/jason-king-duurzaamheid-1600.webp') type('image/webp'),
            url('../images/jason-king-duurzaamheid.jpg') type('image/jpeg')
        );
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    header,
    .skip-link,
    .faq-toggle .icon-svg,
    .mobile-menu-toggle span {
        transition: none;
    }
}

/* Afdrukken */
@media print {
    header,
    footer .social-icons,
    .skip-link,
    .cookie-banner,
    .fullscreen-video-container,
    .hero-spacer,
    .video-wrapper,
    .contact-video,
    .map-section,
    .mobile-menu-toggle,
    .language-selector,
    .btn {
        display: none;
    }

    main {
        margin-top: 0;
    }

    section {
        padding: 20px 0;
    }

    .faq-answer {
        display: block;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 90%;
    }
}
