/*
 * ============================================================
 * PLUKTUIN APELDOORN - GEKOMBINEERDE SITE
 * ============================================================
 * Kleuren: nl.pluktuinapeldoorn.eu (origineel)
 * Fonts + structuur: media-dork (vernieuwd)
 * Laatste update: 2026-08-11
 */

:root {
    /* Logo kleuren (.eu) */
    --klassiek-groen: #4A5D4E;
    --logo-donker: #489100;
    --logo-licht: #97D700;
    --logo-midden: #8BC34A;
    --logo-accent: #A8D14D;

    /* Overige kleuren van de originele .eu site */
    --eu-wit: #F5F7F0;              /* paginatitel op groen */
    --eu-koraal: #f06c5b;           /* status "Nu gesloten" */
    --eu-knop-bg: #b9e87b;          /* knoppen achtergrond */
    --eu-knop-tekst: #35513a;       /* knoppen tekst */
    --eu-knop-rand: #a6d96b;        /* knoppen rand */
    --eu-knop-bg-hover: #c9ef94;    /* knoppen hover achtergrond */
    --eu-knop-tekst-hover: #2b4a32; /* knoppen hover tekst */
    --eu-olijf: #5f7a38;            /* meta-tekst (dates, subtitles) */
    --eu-groen-licht: #DFF4B6;      /* lichte verloop-tonen */
    --eu-groen-donker: #102B0B;     /* hero-copy overlay */
    --eu-groen-donkerst: #0A1A08;   /* img-box gradient */

    /* Neutrale achtergronden */
    --bg-wit: #ffffff;
    --bg-warm: #FAFAF8;
    --bg-card: #f9fbf2;
    --card-bg: #f9fbf2;
    --card-bg-alt: #edfbd2;
    --card-bg-alt-hover: #DFF4B6;   /* iets donkerder groen voor hover */
    --border-subtiel: rgba(72, 145, 0, 0.15);

    /* Text kleuren */
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --white: #ffffff;

    --navbar-height: 90px;

    /* Spacing scale (8px base) */
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 3rem;
    --space-6: 4rem;

    /* Accessible text colors */
    --text-link: #427a00;        /* .eu-toned groen, ≥4.5:1 op wit en de lichtgroene kaartjes */
    --subtitle-on-green: #d8f7a1; /* .eu-toned limoengroen, ≥4.5:1 op --klassiek-groen */
    --focus-ring: #2f5d00;

    /* De site is altijd licht — geen donkere modus (besluit 2026-11-16) */
    color-scheme: light;
}

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

/* Skip link (WCAG 2.4.1) */
.skip-link {
    position: absolute;
    top: -100px;
    left: var(--space-2);
    z-index: 1100;
    padding: var(--space-2) var(--space-3);
    background: var(--klassiek-groen);
    color: var(--white);
    font-weight: 700;
    border-radius: 0 0 12px 12px;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus-visible {
    top: 0;
    color: var(--white);
}

/* Global visible focus (WCAG 2.4.7 / 2.4.13) */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
iframe:focus-visible,
iframe:focus {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Skip-link doel: focus krijgt <main>, maar een kader om de hele pagina-inhoud
   is geen zinvolle focusindicator (main is geen bedienbaar element).
   (main[tabindex] is specifieker dan '[tabindex]:focus-visible' hierboven.) */
main[tabindex]:focus,
main[tabindex]:focus-visible {
    outline: none;
}

/* Focuskader rond de Google Maps-iframe: Chromium geeft cross-origin iframes geen
   ':focus'; script.js zet deze klas op basis van document.activeElement. */
.iframe-focused {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
    border-radius: 4px;
}

address {
    font-style: normal;
}

html, body { height: 100%; }

html { scrollbar-gutter: stable; }

body {
    font-family: 'Nunito', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-wit);
    color: var(--text-dark);
    line-height: 1.6;
}

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

/* Voor tekstpagina's (niet voor de home) */
.content-wrapper {
    flex: 1 0 auto;
    display: flex;
    justify-content: center;
    padding-top: var(--navbar-height);
}

/* Reduced motion (WCAG 2.2.2 / 2.3.3) */
@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;
    }
}
