/* ========================================================= */
/* 1. Algemene instellingen & variabelen */
/* ========================================================= */

:root {
    --brand-orange: #FC6B0C;
    --brand-orange-hover: #ff6a2d;
    --brand-orange-transparent: rgba(252, 107, 12, 0.5);
    --header-dark: #000000;
    --nav-height: 50px;
    --color-text-light: #fff;
    --color-bg-dark: #1a1a1a;
    --color-bg-darker: #111;
    --color-bg-darkest: #000000;
}    

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Calibri, sans-serif;
    color: white;
    background: var(--color-bg-darkest);
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h2,
h3,
h4 {
    color: var(--brand-orange);
}

.page-text-container {
    position: relative;
    padding: 20px;
}

/* ========================================================= */
/* 2. Lay-out & wrappers */
/* ========================================================= */

.main-wrapper {
    flex-grow: 1;
}

.page-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 15px;
}

.home-wrapper,
.main-content {
    background: var(--color-bg-darkest);
    color: white;
}

.main-content {
    padding: 5px 15px;
}

.contributie-pagina .page-text-container,
.inschrijven-pagina .page-text-container,
.bedankt-pagina .page-text-container,
.page-header-contributie {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* ========================================================= */
/* 3. Header & Navigatie (Desktop) */
/* ========================================================= */
.site-header {
    background-color: var(--header-dark);
    padding: 10px 20px;
    position: relative;
    z-index: 1000;
}

.site-header .logo-wrap {
    text-align: center;
    padding-top: 10px;
}

.site-logo {
    max-width: 100%;
    height: 150px;
    display: block;
    margin: 0 auto;
}

/* Desktop navigatie is standaard zichtbaar */
.main-nav {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: block;
}

.nav-links li a:hover,
.nav-links li a.active {
    background-color: var(--brand-orange);
    color: black;
}

.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--brand-orange);
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
}

.nav-links li.has-submenu:hover .submenu,
.nav-links li.has-submenu:focus-within .submenu {
    display: block;
}

.nav-links li.has-submenu .submenu li a {
    padding: 10px 15px;
    color: black;
    font-weight: normal;
    border-radius: 0;
    margin: 0;
    font-size: 1em;
    text-align: left;
}

.nav-links li.has-submenu .submenu li a:hover {
    background-color: var(--brand-orange-hover);
    color: white;
}

/* Mobiele navigatie elementen standaard verbergen */
.hamburger,
.mobile-text,
.overlay {
    display: none;
}

.desktop-text {
    display: block;
}

/* ========================================================= */
/* 4. Hoofdsecties & componenten */
/* ========================================================= */

.intro-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0px auto;
    gap: 0px;
    padding: 0 15px;
    font-size: 1.2rem;
}

.intro-text {
    flex: 1 1 45%;
    background: var(--color-bg-darkest);
    padding-top: 0px;
    padding-right: 15px;
    color: white;
}

.intro-slider {
    flex: 1 1 45%;
    position: relative;
    overflow: hidden;
}

.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    color: white;
    font-size: 24px;
    user-select: none;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s;
}

.prev {
    left: 0;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.next {
    right: 0;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.fade {
    animation: fade 1s;
}

@keyframes fade {
    from {
        opacity: .4
    }
    to {
        opacity: 1
    }
}

.dots-container {
    text-align: center;
    padding: 10px 0;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active-dot,
.dot:hover {
    background-color: #fff;
}

/* ========================================================= */
/* 5. Herbruikbare componenten */
/* ========================================================= */

.big-button-base {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--color-bg-darkest);
    color: white;
    text-decoration: none;
    min-height: 100px;
    border-radius: 18px;
    border: 2px solid var(--brand-orange);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s, color 0.2s, border-color 0.2s ease;
    overflow: hidden;
    flex-direction: column;
    padding: 20px;
}

.big-button-base:hover {
    background-color: var(--brand-orange);
    color: black;
    transform: scale(1.03);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border-color: white;
}

.big-button-base .button-title {
    color: var(--brand-orange);
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.big-button-base:hover .button-title {
    color: black;
}

.big-button-base small {
    font-size: 1.2rem;
    line-height: 1.4;
    color: var(--color-text-light);
}

.big-button-base:hover small {
    color: black;
}

.map-button {
    flex-basis: auto;
    padding: 10px 20px;
    min-height: auto;
    width: 250px;
    flex-direction: row;
    gap: 10px;
}

.map-button .maps-logo {
    height: 30px;
    width: auto;
    filter: invert(1);
    transition: filter 0.2s ease;
}

.map-button:hover .maps-logo {
    filter: invert(0);
}

.contact-button {
    flex-basis: auto;
    padding: 15px 30px;
    min-height: auto;
    width: 300px;
}

.cta-button {
    background-color: var(--brand-orange);
    color: black;
    padding: 12px 25px;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #ff8c00;
}

.delete-button {
    background-color: #a42c2c;
    border-color: #a42c2c;
    margin-top: 10px;
    margin-bottom: 0;
}

.cta-button-small {
    background-color: black;
    color: white;
    border: 2px solid var(--brand-orange);
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    padding: 8px 15px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.cta-button-small:hover {
    background-color: var(--brand-orange);
    color: white;
    border-color: black;
}

.cta-button.add-button,
.cta-button.delete-button {
    color: white;
}

.button-group {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.button-group .cta-button,
.button-group .secondary-button {
    flex-grow: 1;
    max-width: 200px;
}

.message {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}

.message.success {
    background-color: #2c6e49;
    color: white;
}

.message.error {
    background-color: #a42c2c;
    color: white;
}

/* Dropdown menu styling */
.nav-links li.has-submenu {
    position: relative;
}

.nav-links li.has-submenu:hover .submenu,
.nav-links li.has-submenu:focus-within .submenu {
    display: block;
}

.nav-links li.has-submenu .submenu li a {
    padding: 15px;
    color: black;
    font-weight: normal;
    border-radius: 0;
    margin: 0;
}

.nav-links li.has-submenu .submenu li a:hover {
    background-color: var(--brand-orange-hover);
    color: white;
}

/* GECORRIGEERDE SECTIE VOOR KNOPPEN */
.button-section,
.button-section-1,
.button-section-2,
.button-section-3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px auto;
    padding: 0 15px;
    max-width: 1100px;
    gap: 15px;
}

.button-section-1 .big-button-base {
    flex-basis: 100%;
    max-width: 100%;
}

.button-section-2 .big-button-base {
    flex-basis: calc(33.333% - 10px); /* 3 knoppen naast elkaar */
    max-width: calc(33.333% - 10px);
}

.button-section-3 .big-button-base {
    flex-basis: calc(50% - 8px); /* 2 knoppen naast elkaar */
    max-width: calc(50% - 8px);
}

.big-button-section {
    flex-direction: column;
}

.big-button-section .big-button-base {
    width: 100%;
    max-width: 100%;
    min-height: 100px;
}

/* ========================================================= */
/* 6. Footer Stijlen */
/* ========================================================= */
.footer {
    background-color: var(--color-bg-darkest);
    color: white;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--brand-orange);
    margin-top: auto;
}

.footer-content-colored {
    background-color: var(--brand-orange);
    color: black;
    padding: 10px 0;
}

.footer-content-colored p {
    margin: 0;
    font-weight: bold;
}

.footer-content, .footer-webdesign {
    padding: 10px 0;
}

.footer-webdesign a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.footer-webdesign a[href^="mailto:"]:hover {
    color: var(--brand-orange);
    text-decoration: underline;
}

.footer-content p, .footer-webdesign p {
    margin: 0;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 50% transparant zwart */
    z-index: -1;
}

/* Standaardstijl voor de mobiele tekst (verbergen op desktop) */
.mobile-text {
    display: none;
}