/* Mall Manager: vrolijk low-poly, net als de POLYGON-wereld en de UI van het spel. De achtergrond is de supermarkt zelf. */

@font-face { font-family: Fredoka; font-weight: 500 700; font-display: swap; src: url(fonts/fredoka.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-weight: 500 800; font-display: swap; src: url(fonts/nunito.woff2) format("woff2"); }

:root {
    --lucht: #4fb7e8;
    --lucht-d: #2f93c4;
    --gras: #6cc24a;
    --gras-d: #4d9c30;
    --zon: #ffc93c;
    --zon-d: #e0a31a;
    --koraal: #ff7a59;
    --koraal-d: #d95a3b;
    --teal: #2fb5a6;
    --teal-d: #1e8c80;
    --tekst: #2b3a4a;
    --zacht: #5a6b7a;
    --creme: #fff8ea;
    --creme-d: #e8d8b6;
    --vloer: #c9c2b4;
    --kop: Fredoka, "Trebuchet MS", Verdana, sans-serif;
    --lees: Nunito, "Trebuchet MS", Verdana, sans-serif;
}

* { box-sizing: border-box; }
html { background: #0b2632; scroll-behavior: smooth; scroll-padding-top: 14px; }
body {
    margin: 0;
    color: var(--tekst);
    font: 500 16px/1.6 var(--lees);
}
/* Het winkelcentrum uit het spel in avondlicht staat vast achter de pagina: zacht vervaagd en donker getint, zodat
   de blokken erop rustig en leesbaar blijven. */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100lvh;
    background: #0b2632 url(achtergrond-1920.webp?v=5af92da9) center / cover no-repeat;
}
@media (min-width: 1921px), (min-width: 1200px) and (min-resolution: 1.5dppx) {
    body::before { background-image: url(achtergrond.webp?v=5af92da9); }
}
@media (max-aspect-ratio: 1/1) {
    body::before { background-image: url(achtergrond-mobiel.webp?v=5af92da9); }
}
img { display: block; max-width: 100%; height: auto; }
/* Een <picture> met WebP gedraagt zich als het beeld zelf. */
picture { display: block; }
a { color: var(--teal-d); font-weight: 700; }
a:hover { color: var(--koraal-d); }
:focus-visible { outline: 3px solid var(--tekst); outline-offset: 2px; }
::selection { background: var(--zon); color: var(--tekst); }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: var(--kop); font-weight: 700; line-height: 1.15; }

.overslaan {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 10;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--zon);
    color: var(--tekst);
}
.overslaan:focus { top: 12px; }

/* ---------- Knoppen en vlakken: facetten plus een donkerdere onderrand in dezelfde kleur ---------- */
.knop {
    display: inline-block;
    padding: 11px 24px 12px;
    border-radius: 16px;
    background: var(--zon) url(facet.svg) 0 0 / 240px 240px;
    box-shadow: 0 6px 0 var(--zon-d);
    color: var(--tekst);
    font: 700 1.2rem/1.2 var(--kop);
    text-align: center;
    text-decoration: none;
}
.knop:hover { background-color: #ffd764; color: var(--tekst); }
.knop:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--zon-d); }

/* ---------- Menu ---------- */
.menu {
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    width: calc(100% - 28px);
    max-width: 1160px;
    margin: 0 auto;
    padding: 8px 12px 8px 16px;
    border-radius: 20px;
    background: var(--creme);
    box-shadow: 0 6px 0 var(--creme-d);
}
.menu-logo img { width: 170px; }
.menu-links { display: flex; flex-wrap: wrap; gap: 4px 2px; margin-left: auto; }
.menu-links a {
    padding: 5px 12px;
    border-radius: 12px;
    color: var(--tekst);
    font: 600 1.02rem/1.3 var(--kop);
    text-decoration: none;
}
.menu-links a:hover { background: var(--lucht); color: var(--tekst); }
.taalknop {
    flex: 0 0 auto;
    padding: 6px 14px;
    border-radius: 12px;
    background: var(--teal) url(facet.svg) 0 0 / 240px 240px;
    box-shadow: 0 4px 0 var(--teal-d);
    color: var(--tekst);
    font: 700 1rem/1.3 var(--kop);
    text-decoration: none;
}
.taalknop:hover { color: var(--tekst); background-color: #47c9ba; }

/* ---------- Discord: in de eigen paarsblauwe kleur, zodat je hem meteen herkent ---------- */
.discord-icoon { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -.24em; }
.discordknop {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 12px;
    background: #5865f2 url(facet.svg) 0 0 / 240px 240px;
    box-shadow: 0 4px 0 #3c45a5;
    color: #ffffff;
    font: 700 1rem/1.3 var(--kop);
    text-decoration: none;
}
.discordknop:hover { color: #ffffff; background-color: #6d78f5; }
.discordknop .discord-icoon { vertical-align: 0; }
.knop-discord { background-color: #5865f2; box-shadow: 0 6px 0 #3c45a5; color: #ffffff; }
.knop-discord:hover { background-color: #6d78f5; color: #ffffff; }
.knop-discord:active { box-shadow: 0 2px 0 #3c45a5; }
.knop-discord .discord-icoon { margin-right: .45em; }
.held-knoppen { display: flex; flex-wrap: wrap; gap: 16px 14px; }
.voet-discord .discord-icoon { margin-right: .3em; }

/* ---------- Held: een bord in de winkel met de kop, naast een beeld uit het spel ---------- */
.held {
    position: relative;
    padding: 118px 16px 74px;
    overflow-x: clip;
}
.held-binnen {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 34px;
    max-width: 1160px;
    margin: 0 auto;
}
.held-tekst, .blogheld .held-binnen {
    padding: 22px 24px 24px;
    border-radius: 22px;
    background: var(--creme);
    box-shadow: 0 7px 0 var(--creme-d);
}
.held h1 {
    margin: 0 0 12px;
    color: var(--tekst);
    font-size: 2.6rem;
}
.held-tekst p { margin-bottom: 20px; color: var(--tekst); font-size: 1.14rem; font-weight: 700; }
.held-tekst p:last-child { margin-bottom: 0; }
.held-beeld { position: relative; transform: rotate(1.2deg); }
.held-beeld img {
    width: 100%;
    border: 8px solid var(--creme);
    border-radius: 22px;
    box-shadow: 0 9px 0 var(--creme-d);
}
.sticker {
    position: absolute;
    top: -22px;
    right: -14px;
    display: grid;
    place-items: center;
    width: 146px;
    height: 146px;
    color: var(--tekst);
    font: 700 1.02rem/1.1 var(--kop);
    text-align: center;
    transform: rotate(8deg);
}
.sticker::before, .sticker::after {
    content: "";
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 0, 85% 15%, 100% 50%, 85% 85%, 50% 100%, 15% 85%, 0 50%, 15% 15%);
}
.sticker::before { top: 7px; bottom: -7px; background: var(--koraal-d); }
.sticker::after { background: var(--koraal) url(facet.svg) 0 0 / 240px 240px; }
.sticker span { position: relative; z-index: 1; width: 112px; }

/* ---------- Inhoud ---------- */
.inhoud { display: grid; gap: 30px; max-width: 1160px; margin: -28px auto 0; padding: 0 16px 34px; position: relative; }
.doos {
    min-width: 0;
    border-radius: 22px;
    background: var(--creme);
    box-shadow: 0 7px 0 var(--creme-d);
    overflow: hidden;
}
.doos > h2 {
    margin: 0;
    padding: 12px 22px 13px;
    background: var(--kleur, var(--koraal)) url(facet.svg) 0 0 / 240px 240px;
    box-shadow: inset 0 -5px 0 var(--kleur-d, var(--koraal-d));
    color: var(--tekst);
    font-size: 1.7rem;
}
.doos-binnen { padding: 20px 22px 24px; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; }
.intro p { font-size: 1.06rem; }
.intro strong { color: var(--koraal-d); font-weight: 800; }

.schermen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.schermen a {
    display: block;
    border: 5px solid #ffffff;
    border-radius: 16px;
    box-shadow: 0 5px 0 var(--creme-d);
    overflow: hidden;
    transition: transform .15s;
}
.schermen a:hover { transform: translateY(-3px); }
.schermen img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.klein { margin: 14px 0 0; color: var(--zacht); font-size: .84rem; }

.straat { min-width: 0; border-radius: 22px; box-shadow: 0 7px 0 var(--gras-d); overflow: hidden; }
.straat img { width: 100%; }

.tegels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tegel {
    min-width: 0;
    padding: 14px 16px 16px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 5px 0 var(--kleur);
}
.tegel h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 1.3rem; }
.tegel h3 svg { flex: 0 0 auto; width: 40px; height: 40px; }
.tegel p { font-size: .95rem; line-height: 1.5; }

.feiten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 30px; margin: 0; }
.feiten div { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 10px; padding: 8px 2px; border-bottom: 2px solid var(--creme-d); }
.feiten dt { color: var(--teal-d); font: 600 1.06rem/1.4 var(--kop); }
.feiten dd { margin: 0; font-weight: 700; }

.vragen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 30px; }
.vragen h3 { margin: 0 0 3px; color: var(--koraal-d); font-size: 1.2rem; }
.vragen p { font-size: .95rem; line-height: 1.5; }

.slot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 20px;
    row-gap: 16px;
    padding: 18px 22px 22px;
    background: var(--lucht) url(facet.svg) 0 0 / 240px 240px;
    box-shadow: 0 7px 0 var(--lucht-d);
}
.slot > div { flex: 1 1 320px; min-width: 0; }
.slot img { width: 92px; border-radius: 18px; }
.slot h2 { margin: 0 0 2px; font-size: 1.9rem; }
.slot p { font-weight: 700; }

/* ---------- Voet ---------- */
.voet {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    width: calc(100% - 32px);
    max-width: 1128px;
    margin: 0 auto 26px;
    padding: 10px 20px 11px;
    border-radius: 16px;
    background: var(--creme);
    box-shadow: 0 5px 0 var(--creme-d);
    color: var(--tekst);
    font-weight: 700;
    font-size: .92rem;
}
.voet a { color: var(--tekst); }
.voet a:hover { color: var(--koraal-d); }

.voet-knop {
    padding: 0;
    border: 0;
    background: none;
    color: var(--tekst);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.voet-knop:hover { color: var(--koraal-d); }

/* ---------- Toestemming ---------- */
.toestemming {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 20px 20px;
    border-radius: 16px;
    background: #fff8ea;
    box-shadow: 0 6px 0 var(--lucht-d), 0 10px 24px rgba(43, 58, 74, .25);
    color: var(--tekst);
}

.toestemming[hidden] { display: none; }
.toestemming p { flex: 1 1 320px; margin: 0; }
.toestemming-knoppen { display: flex; flex-wrap: wrap; gap: 14px; }
.toestemming .knop { border: 0; font-size: 1.05rem; cursor: pointer; }

/* ---------- Tekstpagina ---------- */
.tekstpagina { width: calc(100% - 32px); max-width: 760px; margin: 40px auto; padding: 30px 26px 34px; }
.tekstpagina h1 { margin: 0 0 10px; color: var(--koraal-d); font-size: 2.6rem; }
.tekstpagina h2 { margin: 24px 0 6px; font-size: 1.4rem; }

/* ---------- 404 ---------- */
.nietgevonden { max-width: 620px; margin: 60px auto; padding: 34px 22px 38px; text-align: center; }
.nietgevonden h1 { margin: 0 0 8px; color: var(--koraal-d); font-size: 2.6rem; }
.nietgevonden p { margin-bottom: 20px; }

/* ---------- Blog ---------- */
.menu-links a[aria-current] { background: var(--zon); }
.blogheld { padding-bottom: 66px; }
.blogheld .held-binnen { display: block; max-width: 860px; }
.blogheld h1 { font-size: 2.5rem; overflow-wrap: anywhere; }
.kruimels ol { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 0 0 10px; padding: 0; list-style: none; font: 600 1rem/1.3 var(--kop); }
.kruimels li { min-width: 0; overflow-wrap: anywhere; }
.kruimels li + li::before { content: "\203A"; margin-right: 8px; }
.kruimels a { color: var(--tekst); }
.kruimels a:hover { color: var(--koraal-d); }
.blog-meta { margin: 0; color: var(--tekst); font-size: 1.08rem; font-weight: 700; }
.blog-meta a { color: var(--tekst); }
.blog-meta a:hover { color: var(--koraal-d); }
.inhoud.smal { max-width: 892px; }

.bericht-beeld { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.bericht-tekst { padding: 24px 30px 30px; font-size: 1.08rem; line-height: 1.7; overflow-wrap: break-word; }
.bericht-tekst p { margin-bottom: 16px; }
.bericht-tekst h2 { margin: 28px 0 8px; color: var(--koraal-d); font-size: 1.6rem; }
.bericht-tekst > h2:first-child { margin-top: 0; }
.bericht-tekst strong { font-weight: 800; }

.kaarten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.kaarten.buren { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kaart {
    position: relative;
    min-width: 0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 5px 0 var(--creme-d);
    overflow: hidden;
    transition: transform .15s;
}
.kaart:hover { transform: translateY(-3px); }
.kaart:focus-within { outline: 3px solid var(--tekst); outline-offset: 2px; }
.kaart img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.kaart-tekst { padding: 12px 16px 16px; }
.kaart-label { display: block; color: var(--teal-d); font: 600 1rem/1.3 var(--kop); }
.kaart time { display: block; color: var(--zacht); font-size: .86rem; font-weight: 700; }
.kaart h3 { margin: 2px 0 6px; font-size: 1.3rem; overflow-wrap: anywhere; }
.kaart h3 a { color: var(--tekst); text-decoration: none; }
.kaart h3 a::after { content: ""; position: absolute; inset: 0; }
.kaart h3 a:focus-visible { outline: none; }
.kaart:hover h3 a { color: var(--koraal-d); }
.kaart p { font-size: .95rem; line-height: 1.5; }

.blog-alles { margin: 22px 0 0; }
.paginering { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; font-weight: 700; }
.paginering span { flex: 1 1 auto; text-align: center; }
.slot-knoppen { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; margin: 0 0 0 auto; }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
    .menu { top: 10px; width: calc(100% - 24px); }
    .held { padding-bottom: 66px; }
    .held-binnen { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .held h1 { font-size: 2.5rem; }
    .tegels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feiten, .vragen { grid-template-columns: minmax(0, 1fr); }
    .slot { grid-template-columns: minmax(0, 1fr) auto; }
    .slot img { display: none; }
    .blogheld h1 { font-size: 2.1rem; }
    .slot-knoppen { flex-direction: column; }
    .kaarten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Telefoon ---------- */
@media (max-width: 620px) {
    .menu { top: 8px; flex-wrap: wrap; justify-content: space-between; width: calc(100% - 16px); padding: 8px 10px 10px; }
    .menu-logo img { width: 150px; }
    .discordknop { margin-left: auto; padding: 6px 10px; }
    .discordknop span { display: none; }
    .held-knoppen { flex-direction: column; }
    .menu-links { order: 3; width: 100%; justify-content: center; margin-left: 0; }
    .menu-links a { padding: 3px 6px; font-size: .92rem; }
    .held { padding: 172px 12px 56px; }
    .held h1 { font-size: 1.85rem; }
    .held-tekst, .blogheld .held-binnen { padding: 16px 16px 18px; border-radius: 18px; }
    .held-tekst .knop, .intro .knop, .slot .knop { display: block; }
    .held-beeld img { border-width: 5px; border-radius: 16px; }
    .sticker { top: -20px; right: -8px; width: 108px; height: 108px; font-size: .78rem; }
    .sticker span { width: 84px; }
    .inhoud { gap: 22px; margin-top: -22px; padding: 0 12px 26px; }
    .doos > h2 { padding: 10px 16px 11px; font-size: 1.45rem; }
    .doos-binnen { padding: 16px; }
    .intro, .slot { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .schermen, .tegels { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .feiten div { grid-template-columns: 104px minmax(0, 1fr); }
    .voet { justify-content: center; width: calc(100% - 24px); margin-bottom: 20px; padding: 10px 12px 11px; text-align: center; }
    .blogheld { padding-bottom: 50px; }
    .blogheld h1 { font-size: 1.7rem; }
    .bericht-tekst { padding: 18px 16px 22px; font-size: 1.02rem; }
    .bericht-tekst h2 { font-size: 1.35rem; }
    .kaarten, .kaarten.buren { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .blog-alles .knop, .paginering .knop { display: block; width: 100%; }
    .slot-knoppen { flex-direction: column; }
}

@media (max-width: 360px) {
    .held { padding-top: 200px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .schermen a, .kaart { transition: none; }
}

.demo-knoppen { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0; }
.demo-noot { font-size: .9em; opacity: .8; }

/* ---------- Trailer ---------- */
.trailer-kader {
    border: 6px solid #ffffff;
    border-radius: 18px;
    box-shadow: 0 6px 0 var(--creme-d);
    background: #0b2632;
    overflow: hidden;
}
.trailer-start,
.trailer-kader iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}
.trailer-start { position: relative; }
.trailer-start picture { height: 100%; }
.trailer-start img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.trailer-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 88px;
    height: 88px;
    margin: -44px 0 0 -44px;
    border-radius: 50%;
    background: var(--koraal);
    box-shadow: 0 6px 0 var(--koraal-d);
    transition: transform .15s ease;
}
.trailer-play::after {
    content: '';
    position: absolute;
    left: 34px;
    top: 26px;
    border-style: solid;
    border-width: 18px 0 18px 28px;
    border-color: transparent transparent transparent #ffffff;
}
.trailer-start:hover .trailer-play,
.trailer-start:focus-visible .trailer-play { transform: scale(1.08); }
@media (max-width: 620px) {
    .trailer-kader { border-width: 4px; border-radius: 14px; }
    .trailer-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
    .trailer-play::after { left: 25px; top: 19px; border-width: 13px 0 13px 20px; }
}
