/* ============================================================
   SHARED PAGE COMPONENTS  (load after style.css, before page css)
   Hero banner + grunge building blocks used by every sub page.
   ============================================================ */

/* ---- HERO BANNER (identiek op alle pagina's; stijl van Media) ---- */
.ph {
    position: relative;
    margin-top: 90px; /* = hoogte .nav-inner, zodat de vaste navbar niet over de foto valt */
    min-height: clamp(400px, 34vw, 720px); /* groeit mee met de breedte, zodat er niet steeds meer van de foto wegvalt */
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
}
.ph-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 0%; /* bovenkant vast: hoofden blijven in beeld */
}
.ph::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to right, rgba(0,0,0,.92) 0%, rgba(0,0,0,.65) 5%, rgba(0,0,0,0) 70%),
        linear-gradient(to bottom, transparent 55%, #000 100%);
}
.ph-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 50px;
    padding-bottom: 60px;
}
.ph-title {
    font-family: var(--font-display);
    font-size: clamp(5rem, 14vw, 10rem);
    line-height: .85;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #ececec;
    transform: rotate(-3deg);
    transform-origin: left bottom;
    text-shadow: 4px 4px 0 rgba(0,0,0,.6);
}
.ph-tag {
    display: inline-block;
    margin: 18px 0 14px;
    padding: 4px 16px 4px 12px;
    background: #ec1580;
    color: #fff;
    font-family: var(--font-ui);
    font-style: italic;
    font-weight: 700;
    font-size: clamp(1rem, 2.4vw, 1.5rem);
    letter-spacing: .06em;
    text-transform: uppercase;
    transform: rotate(-3deg);
    transform-origin: left center;
    clip-path: polygon(0 8%, 100% 0, 98% 100%, 1% 92%);
}
.ph-intro {
    max-width: 380px;
    color: #ddd;
    font-size: .95rem;
}
@media (max-width: 768px) {
    .ph { min-height: 380px; }
    .ph::before {
        background:
            linear-gradient(to right, rgba(0,0,0,.9) 0%, rgba(0,0,0,.6) 60%, rgba(0,0,0,.25) 100%),
            linear-gradient(to bottom, transparent 55%, #000 100%);
    }
}

/* ---- SECTIEKOPPEN (display font van Media overal) ---- */
.sec-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3rem);
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1;
}
/* gele penseelstreek achter een kop, zoals "Aankomende shows" op home */
.brush-title {
    display: inline-block;
    background: url('../images/background-title.svg') center / cover no-repeat;
    color: #000;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 8px 90px 8px 38px;
}

/* ---- GRUNGE ACHTERGRONDEN ---- */
/* Verfwolk die bovenaan een zwarte sectie zichtbaar is en uitfade naar zwart. */
.paint-top { position: relative; isolation: isolate; }
.paint-top::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 480px;
    background: url('../images/background.jpg') center top / cover no-repeat;
    opacity: .6;
    -webkit-mask-image: linear-gradient(#000 30%, transparent);
            mask-image: linear-gradient(#000 30%, transparent);
    z-index: -1;
    pointer-events: none;
}
/* Verfwolk als vol-brede band (zoals "Aankomende shows" / "Let's make it a night to remember"). */
.paint-band {
    position: relative;
    isolation: isolate;
    padding: 80px 0;
    background: #000 url('../images/background-3.jpg') center top / cover no-repeat;
}
.paint-band::before,
.paint-band::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 80px;
    background: url('../images/divider.png') center / auto 100% repeat-x;
    pointer-events: none;
    z-index: 0;
}
.paint-band::before { top: 0; transform: translateY(-50%); }
.paint-band::after  { bottom: 0; transform: translateY(50%) scaleY(-1); }
.paint-band > * { position: relative; z-index: 1; }

/* Kader met rafelige penseelrand in een accentkleur (--c). */
.grunge-panel {
    --c: var(--yellow);
    position: relative;
    padding: 28px;
    background: rgba(10,10,10,.82);
}
.grunge-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid var(--c);
    filter: url('../images/rough-edges.svg#rough-edges');
    pointer-events: none;
}
.grunge-panel--pink   { --c: #ec1580; }
.grunge-panel--yellow { --c: var(--yellow); }
.grunge-panel--green  { --c: #75c201; }
.grunge-panel--blue   { --c: #0097ec; }

/* Foto's met witte, rafelige rand en lichte kanteling (zoals "Live in actie"). */
/* LET OP: het kartelfilter vervormt alles wat erin zit. Zet het daarom nooit op het
   element met de foto/tekst zelf, maar alleen op een apart laagje voor de rand
   (::before/::after, zoals .grunge-panel doet). */
.photo-frame {
    position: relative;
    border: 4px solid #eee;
    box-shadow: 0 4px 14px rgba(0,0,0,.6);
}
/* Kartelrand over een foto of kaart heen, zonder de inhoud te vervormen.
   Gebruik op een element met position:relative en zonder eigen border. */
.rough-ring::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 4px solid var(--ring, #eee);
    filter: url('../images/rough-edges.svg#rough-edges');
    pointer-events: none;
    z-index: 3;
}

/* ---- VERFBAND TEGEN DE FOOTER ---- */
/* De scheurrand onderaan een verfband hangt 40px buiten de band; laat hem niet over de footer vallen. */
main > .paint-band:last-child { margin-bottom: 70px; }
/* Media: de lightbox staat na het verfband, dus :last-child geldt daar niet (op alle schermbreedtes). */
.media-cta { margin-bottom: 70px; }

/* ---- FOOTER OP MOBIEL (style.css heeft hier geen regels voor) ---- */
@media (max-width: 768px) {
    .footer-right-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    .footer-contacts {
        flex-wrap: wrap;
        justify-content: flex-start;
        row-gap: 16px;
        width: 100%;
    }
    .footer-contact-item { padding: 0 16px 0 0; }
    .contact-value { overflow-wrap: anywhere; }
    .footer-logo-horizontal { max-width: 100%; align-self: flex-start; }
}

/* ---- KNOPPEN: hover-vulling over de volledige knop (inclusief rand) ----
   In style.css dekt .btn::before alleen de padding-box af (inset:0 + overflow:hidden),
   waardoor bij hover een vlakke rand rond de korrelige vulling blijft staan. */
.btn { --btn-bw: 2px; overflow: visible; }
.btn::before {
    inset: calc(-1 * var(--btn-bw));
    border-radius: inherit;
}
/* knoppen zonder rand */
.footer-cta .btn { --btn-bw: 0px; }

/* ---- Basis voor alle pagina's: focus, skip-link, taalwisselaar (uit de pagina-CSS hierheen verplaatst) ---- */
:root { --green: #75c201; --blue: #0097ec; --pink2: #ec1580; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 300;
    background: var(--yellow); color: var(--black);
    font-family: var(--font-ui); font-weight: 700; text-transform: uppercase;
    padding: 10px 18px; border-radius: 4px;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Language switcher */
.lang-switch {
    display: flex; align-items: center; gap: 2px;
    margin-left: 8px; padding-left: 20px;
    border-left: 2px solid rgba(255,255,255,0.15);
    font-family: var(--font-ui); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em;
}
.lang-switch a { padding: 4px 6px; color: #cfcfcf; transition: color .15s; }
.lang-switch a:hover { color: var(--yellow); }
.lang-switch a[aria-current="true"] { color: var(--black); background: var(--yellow); border-radius: 3px; }
.lang-switch .sep { color: #777; }
.nav-link .ext { display: inline-block; width: .7em; height: .7em; margin-left: 4px; }
@media (max-width: 1100px) {
    .nav-links { gap: 14px; }
    .nav-link { font-size: .8rem; letter-spacing: .06em; }
    .lang-switch { padding-left: 12px; }
}
@media (max-width: 768px) {
    .nav-link { font-size: .88rem; letter-spacing: .1em; }
    .lang-switch { margin: 0; padding: 12px 24px; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); width: 100%; font-size: 1rem; }
}

/* Vervangt inline styles (CSP zonder 'unsafe-inline') */
.pos-high { object-position: 50% 30%; }
.sec-title--blue { color: #0097ec; }
.feature-divider--pink   { background: #ec1580; }
.feature-divider--yellow { background: #f5c518; }
.feature-divider--green  { background: #75c201; }

/* ============================================================
   MOBIEL MENU + HERO-OVERLOOP (mobiele audit)
   ============================================================ */
/* Tablet/smal laptop: contactblok en socials stonden in een rij met white-space:nowrap en maakten de pagina tot ~1050px breder dan het scherm. */
@media (max-width: 1060px) {
    .footer-right-top { flex-wrap: wrap; gap: 24px 32px; }
    .footer-contacts { flex-wrap: wrap; row-gap: 16px; }
    .footer-social { padding-left: 0; }
    .footer-contacts .contact-divider:last-child { display: none; }
    .hero { overflow-x: clip; } /* schaduw van het hero-logo */
}
@media (max-width: 768px) {
    /* De schaduw van het hero-logo steekt rechts buiten beeld en maakte de pagina (en dus de navbar) breder dan het scherm. */
    .hero { overflow-x: clip; }

    /* Uitklap: begint onder de navbar (90px, niet 70), past altijd in beeld en scrolt als hij te hoog is. */
    .navbar .nav-links {
        top: 90px;
        align-items: stretch;
        padding: 8px 0 16px;
        max-height: calc(100vh - 90px);
        max-height: calc(100dvh - 90px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .navbar .nav-links > li { width: 100%; }
    /* Hele rij is het aanraakdoel (volle breedte, minimaal 48px). */
    .navbar .nav-link {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 0 24px;
        width: 100%;
    }
    .navbar .nav-link::after { display: none; }
    .navbar .nav-link.active { box-shadow: inset 4px 0 0 var(--yellow); }
    /* Taalwisselaar: rij met twee grote aanraakdoelen. */
    .navbar .lang-switch { padding: 6px 24px; gap: 4px; align-items: center; }
    .navbar .lang-switch a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 48px;
        min-height: 48px;
        padding: 0 12px;
    }
    /* Vaste navbar (90px) mag de hero niet afdekken: home had 70px marge, dus 20px van de foto lag eronder. */
    .hero { margin-top: 90px; }
    /* Ankers en gefocuste velden verdwijnen niet onder de vaste navbar. */
    [id], .field input, .field textarea { scroll-margin-top: 104px; }

    /* Penseelkoppen die over meerdere regels breken: het penseel is 150% van de hoogte (met "cover" viel de tekst van meerregelige koppen buiten de verfstreek), strakke regelafstand, kleiner lettertype. */
    body .brush-title {
        background-size: auto 150%;
        line-height: 1.2;
        font-size: clamp(1.5rem, 6.4vw, 1.9rem);
        padding: 10px 64px 10px 40px;
        max-width: 100%;
    }
    /* Leesbaarheid van koppen op de kleurrijke verfbanden. */
    .paint-band .sec-title, .paint-band .sl-cta-title { text-shadow: 2px 2px 0 #000, 0 0 14px rgba(0,0,0,.85); }

    /* Aanraakdoelen minimaal 44px */
    .gig-route, .tool-btn, .contact-value, .side-value { min-height: 44px; }
    .tool-btn { padding-top: 0; padding-bottom: 0; }
    .side-value { display: inline-flex; align-items: center; }
    .book-alt { padding: 0 14px; }
    .book-alt a { display: inline-flex; align-items: center; min-height: 44px; }
    .side-card .social-btn, .side-social .social-btn { width: 44px; height: 44px; }
    /* Te kleine tekst (< 12px) */
    body .hg-wd, body .gig-wd, body .gig-tag { font-size: .75rem; }

    /* Footer: alles links uitgelijnd op dezelfde rand als de kop en de knop, geen losse scheidingslijnen. */
    .footer-contacts { gap: 16px 32px; }
    .contact-divider { display: none; }
    .footer-contact-item { align-items: flex-start; text-align: left; padding: 0; }
    .footer-social { align-items: flex-start; padding-left: 0; text-align: left; }
    .contact-value {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        white-space: normal;
    }
    .social-links { gap: 12px; flex-wrap: wrap; }
    .social-btn { width: 44px; height: 44px; }
    .footer-logo-horizontal { max-width: 280px; }

    /* Hamburger: 44x44 aanraakdoel, icoon blijft op dezelfde plek. */
    .hamburger {
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        margin-right: -10px;
        padding: 0;
    }
}

/* ---- COOKIEMELDING (alleen aanwezig als analytics_id is ingesteld) ---- */
.cookie-banner[hidden] { display: none; }
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1000;
    background: #0d0d0d;
    color: #fff;
    border-top: 4px solid var(--yellow);
    box-shadow: 0 -6px 24px rgba(0,0,0,.6);
    padding: 18px 0;
}
.cookie-banner-wrap { display: flex; align-items: center; gap: 24px 36px; flex-wrap: wrap; }
.cookie-banner-text { flex: 1 1 380px; font-size: .95rem; line-height: 1.5; }
.cookie-banner-text p { margin: 0; }
.cookie-banner-title { font-family: var(--font-display); font-size: 1.8rem; line-height: 1; letter-spacing: .04em; color: var(--yellow); margin-bottom: 6px !important; }
.cookie-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 11px 26px; }
@media (max-width: 600px) {
    .cookie-banner { padding: 14px 0; max-height: 80vh; overflow-y: auto; }
    .cookie-banner-actions { width: 100%; }
    .cookie-banner-actions .btn { flex: 1 1 0; text-align: center; padding-left: 12px; padding-right: 12px; }
}
.footer-legal { background: #000; text-align: center; padding: 0 0 24px; }
.cookie-settings-link {
    background: none; border: 0; padding: 4px 8px; cursor: pointer;
    font-family: var(--font-ui); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
    color: #bbb; text-decoration: underline;
}
.cookie-settings-link:hover, .cookie-settings-link:focus-visible { color: var(--yellow); }
