/* Discgolf Haarlem – Schoterbos
   Zelfde look als de oude site op Mijndomein (kleuren uit poster en logo).
   Opnieuw opgebouwd op 17 november 2026. */

:root {
    --dark-green: #29422a;
    --light-green: #599849;
    --accent-green: #8cc453;
    --bg-color: #f6f8f5;
    --text-color: #333333;
    --white: #ffffff;
    --orange: #e07a3c;
    --orange-dark: #c7672e;
}

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

html {
    min-height: 100%;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    background-color: var(--dark-green);
    background-image: linear-gradient(rgba(41, 66, 42, 0.45), rgba(41, 66, 42, 0.45)), url('img/achtergrond.jpg');
    background-size: cover;
    background-position: left calc(50% + 50px);
    background-attachment: fixed;
    background-repeat: no-repeat;
}

a { color: var(--light-green); }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--white);
    color: var(--dark-green);
    padding: 8px 12px;
    z-index: 2000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Menubalk */
.header-wrapper {
    background-color: rgba(41, 66, 42, 0.70);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 2rem;
    flex-wrap: wrap;
}

.logo-link img {
    width: 75px;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

nav a, nav button {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.82rem;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
    font-family: inherit;
    background: none;
    border: none;
    display: inline-block;
}

nav a:hover, nav a.active, nav a:focus-visible {
    background-color: var(--light-green);
    color: var(--white);
}

nav .lang-btn {
    background-color: var(--orange);
    border-radius: 20px;
    padding: 6px 12px;
}
nav .lang-btn:hover { background-color: var(--orange-dark); }

/* Inhoud */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-section {
    display: none;
    background: var(--white);
    padding: 2.2rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    text-align: left;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease-in-out;
}
.page-section.zichtbaar { display: block; }

/* Zonder JavaScript: alle secties onder elkaar tonen */
.no-js .page-section { display: block; margin-bottom: 2rem; }
.no-js .container { display: block; }

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

@media (prefers-reduced-motion: reduce) {
    .page-section { animation: none; }
    html { scroll-behavior: auto; }
    .btn-large:hover, .btn-secondary:hover, .qr-img:hover { transform: none; }
}

#home, #steun-ons { text-align: center; }

.knoppen {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 14px;
}

h1 {
    color: var(--dark-green);
    margin-bottom: 1rem;
    font-size: 2.2rem;
    line-height: 1.25;
}

h2 {
    color: var(--dark-green);
    border-bottom: 3px solid var(--light-green);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.7rem;
    display: inline-block;
    line-height: 1.3;
}

h3 {
    color: var(--light-green);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

p { margin-bottom: 1rem; }

.page-section ul, .page-section ol {
    margin: 1rem 0 1rem 20px;
}

.home-intro {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 1rem auto;
}

.home-logo {
    width: 130px;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

/* Steun ons */
#steun-ons {
    background-color: var(--light-green);
    color: var(--white);
    border: 4px solid var(--dark-green);
}
#steun-ons h2 { color: var(--white); border-bottom: none; }

/* Knoppen */
.btn-large, .btn-secondary, .btn {
    display: inline-block;
    color: var(--white);
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s, background-color 0.3s;
}

.btn-large {
    background-color: var(--orange);
    padding: 14px 26px;
    font-size: 1.1rem;
    border-radius: 50px;
    margin-top: 1rem;
}
.btn-large:hover { background-color: var(--orange-dark); transform: scale(1.05); }
.btn-large.groen { background-color: var(--dark-green); }
.btn-large.groen:hover { background-color: #1a2a1a; }

.btn-secondary {
    background-color: var(--dark-green);
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 50px;
    margin-top: 1rem;
}
.btn-secondary:hover { background-color: #1a2a1a; transform: scale(1.05); }

.btn {
    background-color: var(--dark-green);
    padding: 10px 20px;
    border-radius: 6px;
    margin: 10px 10px 0 0;
    font-size: 1rem;
    box-shadow: none;
}
.btn:hover { background-color: var(--light-green); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
}

/* Twee kolommen */
.flex-row {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}
.flex-row > div { flex: 1; min-width: 250px; width: 100%; }

.info-lijst { list-style: none; margin: 0 0 1rem 0 !important; padding: 0; }
.info-lijst li { margin-bottom: 0.3rem; }

/* Voordelen */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.benefit-card {
    background-color: var(--white);
    border-top: 5px solid var(--light-green);
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow-wrap: break-word;
}

.benefit-card h4 {
    color: var(--dark-green);
    margin-bottom: 0.8rem;
    font-size: 1rem;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(0,0,0,0.05);
    padding-bottom: 0.4rem;
}

.benefit-card p {
    font-size: 0.88rem;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

/* Video's: eerst een plaatje, pas na klikken laadt YouTube */
.video-container {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.video-wrapper { flex: 1 1 250px; min-width: 0; max-width: 100%; }
.video-wrapper h4 { margin-bottom: 10px; font-size: 1.1rem; }

.video {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 1.5rem 0;
    background: #000;
}
.video-wrapper .video { margin-top: 0; }

.video button {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: none;
}
.video button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video button img { transition: filter 0.2s; }
.video button:hover img { filter: brightness(1.08); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Afbeeldingen */
.content-img {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.qr-img {
    width: 187px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}
.qr-img:hover { transform: scale(1.05); }

/* Formulier */
.club-form {
    margin: 1.5rem 0 2rem 0;
    background: rgba(89, 152, 73, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--light-green);
}

.form-group { margin-bottom: 1rem; display: flex; flex-direction: column; }
.form-group label { font-weight: bold; color: var(--dark-green); margin-bottom: 0.4rem; font-size: 0.95rem; }
.form-group input, .form-group textarea {
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
    background: var(--white);
}
.form-group textarea { resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--light-green); }

.verborgen-veld { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-melding {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    font-weight: bold;
}
.form-melding[hidden] { display: none; }
.form-melding.goed { background: rgba(89, 152, 73, 0.15); color: var(--dark-green); }
.form-melding.fout { background: rgba(224, 122, 60, 0.15); color: #8a3b10; }

/* Footer */
footer {
    background-color: rgba(41, 66, 42, 0.70);
    color: var(--white);
    text-align: center;
    padding: 1.5rem 1rem;
    width: 100%;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
footer p { margin: 0; }
footer a { color: var(--accent-green); text-decoration: none; }

@media (max-width: 850px) {
    body { background-image: linear-gradient(rgba(41, 66, 42, 0.45), rgba(41, 66, 42, 0.45)), url('img/achtergrond-mobiel.jpg'); }
    /* Op mobiel compacter, zodat het vaste menu niet te veel van het scherm kost */
    .header-wrapper { flex-direction: column; align-items: center; padding: 0.5rem 0.6rem; }
    .logo-link img { width: 48px; }
    nav ul { gap: 2px 4px; }
    nav a, nav button { font-size: 0.74rem; padding: 5px 8px; }
    nav { margin-top: 0.3rem; }
    nav ul { justify-content: center; }
    .flex-row { flex-direction: column; }
    .flex-row > div { min-width: 0; }
}

@media (max-width: 560px) {
    .page-section { padding: 1.5rem 1.2rem; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.45rem; }
    .btn-large { font-size: 1rem; padding: 12px 20px; }
}

/* iPhone/iPad: vaste achtergrond werkt daar niet goed */
@supports (-webkit-touch-callout: none) {
    body { background-attachment: scroll; }
}

/* Flyer: klikken = groot bekijken */
.vergroot { display: block; cursor: zoom-in; text-decoration: none; }
.vergroot-hint { display: block; text-align: center; font-size: 0.85rem; color: #666; margin-top: 0.5rem; }
.lightbox {
    border: none;
    padding: 0;
    background: transparent;
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
}
.lightbox::backdrop { background: rgba(20, 30, 20, 0.88); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img {
    max-width: 94vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    cursor: zoom-out;
}
.lightbox-sluit {
    position: fixed;
    top: 14px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--orange);
    color: var(--white);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}
