/* =====================================================================
   BoktGeblokt.nl - één pagina, geen build-stap, geen externe fonts.
   ===================================================================== */

:root {
    --paper:       #fbf6ec;   /* warme gebroken witte achtergrond */
    --ink:         #0d0d0d;   /* zwart voor randen en tekst        */
    --ink-soft:    #3d3a35;
    --accent:      #ef4a23;   /* oranjerood uit het logo           */
    --field:       #ffffff;

    --border:      3px;
    --drop:        7px;       /* harde slagschaduw onder/rechts    */

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
            Arial, "Noto Sans", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    /* Het ontwerp is bewust licht. Zonder dit maken sommige browsers in
       donkere modus eigenhandig het invoerveld donker. */
    color-scheme: light;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;

    /* Zoekblok in het midden, onderschrift onderaan. */
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;   /* de beeldverhouding van het bestand blijft leidend */
}

a { color: inherit; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Zichtbare toetsenbordfocus, overal. */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ------------------------------------------------------------- zoekblok */

.home {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Het onderschrift neemt onderaan ruimte in, waardoor het zoekblok
       vanzelf omhoog zou schuiven. Met meer ruimte boven dan onder komt het
       terug op ongeveer 45% van de vensterhoogte - daar staat het ook in
       `website voorbeeld.png`. */
    padding: 8vh 24px 2vh;
    gap: clamp(28px, 4.6vw, 52px);
}

.home__logo {
    margin: 0;
    width: min(74vw, 660px);
    line-height: 0;
}

.home__logo img {
    width: 100%;
    display: block;
}

.searchform {
    width: 100%;
    display: flex;
    justify-content: center;
}

.searchform__shell {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 760px;
    height: clamp(58px, 5.2vw, 76px);
    padding: 0 8px 0 clamp(22px, 2.4vw, 34px);
    background: var(--field);
    border: var(--border) solid var(--ink);
    border-radius: 999px;
    /* Harde slagschaduw onder en rechts, geen vervaging. */
    box-shadow: var(--drop) var(--drop) 0 0 var(--accent);
}

.searchform__input {
    flex: 1 1 auto;
    min-width: 0;
    /* Vult de volledige hoogte van de pill. Zonder dit is alleen de
       tekstregel aanklikbaar terwijl het veld er veel hoger uitziet. */
    align-self: stretch;
    background: transparent;
    border: 0;
    font-family: inherit;
    color: var(--ink);
    /* 16px of groter: voorkomt inzoomen op iOS. */
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.3;
    padding: 0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.searchform__input::placeholder {
    /* 4,9:1 op wit. Blijft grijs zoals in het ontwerp, maar leesbaar. */
    color: #767068;
    opacity: 1;
}

.searchform__input::-webkit-search-cancel-button,
.searchform__input::-webkit-search-decoration { -webkit-appearance: none; }

.searchform__input:focus-visible { outline: none; }

/* De hele schil licht op als het veld focus heeft. */
.searchform__shell:focus-within {
    box-shadow: var(--drop) var(--drop) 0 0 var(--accent),
                0 0 0 3px rgba(239, 74, 35, 0.35);
}

.searchform__button {
    flex: 0 0 auto;
    height: clamp(42px, 3.2vw, 48px);
    padding: 0 clamp(20px, 1.8vw, 27px);
    background: var(--ink);
    color: #fff;
    border: 0;
    border-radius: 999px;
    font-family: inherit;
    font-size: clamp(15px, 1.15vw, 17px);
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
}

.searchform__button:hover { background: #262320; }
.searchform__button:active { transform: translateY(1px); }

/* --------------------------------------------------------- onderschrift */

.claim {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 0 24px 40px;
    text-align: center;
}

.claim__text {
    margin: 0;
    max-width: 36em;
    color: var(--ink-soft);
    font-size: clamp(14px, 1.15vw, 16px);
    text-wrap: balance;
}

.claim__lubach {
    display: block;
    line-height: 0;
    border-radius: 6px;
}

.claim__lubach img {
    display: block;
    width: auto;
    /* De hoogte is leidend, zodat elk aangeleverd logobestand past. */
    height: clamp(30px, 3.4vw, 42px);
}

.claim__lubach:hover img { opacity: 0.75; }

/* ---------------------------------------------------------------- mobiel */

@media (max-width: 640px) {
    .home {
        padding: 7vh 18px 2vh;
        gap: 30px;
    }

    .home__logo { width: min(84vw, 420px); }

    .searchform__shell {
        height: 58px;
        padding: 0 6px 0 18px;
        --drop: 5px;
        box-shadow: 5px 5px 0 0 var(--accent);
    }

    .searchform__button {
        height: 44px;
        padding: 0 18px;
        font-size: 15px;
    }

    .claim { gap: 14px; padding: 0 18px 32px; }
}

@media (max-width: 380px) {
    .home__logo { width: 88vw; }
    .searchform__shell { padding-left: 14px; }
    .searchform__button { padding: 0 14px; }
}

/* Lage schermen (telefoon liggend): alles compacter zodat er niets
   weggedrukt wordt en de pagina niet hoeft te scrollen. */
@media (max-height: 560px) {
    .home {
        padding: 2vh 24px 3vh;
        gap: clamp(16px, 3vh, 28px);
    }

    .home__logo { width: min(52vw, 460px); }

    .claim { gap: 10px; padding: 0 24px 16px; }
    .claim__lubach img { height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* ------------------------------------------------------------ foutpagina */

.fout {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8vh 24px 10vh;
    gap: 6px;
}

.fout__code {
    margin: 0;
    font-size: clamp(56px, 12vw, 104px);
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.fout__kop {
    margin: 10px 0 0;
    font-size: clamp(20px, 3.2vw, 30px);
    line-height: 1.25;
    max-width: 18em;
    text-wrap: balance;
}

.fout__tekst {
    margin: 0;
    max-width: 32em;
    color: var(--ink-soft);
    text-wrap: balance;
}

.fout__link {
    display: inline-block;
    margin-top: 22px;
    min-height: 44px;
    padding: 11px 24px;
    border: var(--border) solid var(--ink);
    border-radius: 999px;
    background: var(--field);
    box-shadow: 5px 5px 0 0 var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.fout__link:hover { background: var(--ink); color: #fff; }

/* Lage schermen: de foutpagina compacter zodat hij blijft passen. */
@media (max-height: 560px) {
    .fout { padding: 4vh 24px 4vh; gap: 2px; }
    .fout__code { font-size: clamp(40px, 9vh, 64px); }
    .fout__kop { font-size: clamp(17px, 4vh, 22px); margin-top: 4px; }
    .fout__link { margin-top: 12px; }
}
