/* ================================================================== */
/* Google Fonts                                                         */
/* ================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

/* ================================================================== */
/* Reset & basis                                                        */
/* ================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2c2c2c;
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: #F5F7FA;
}

/* ================================================================== */
/* SIDEBAR                                                              */
/* ================================================================== */
.sidebar {
    width: 220px;
    flex-shrink: 0;
    height: 100vh;
    overflow-y: auto;
    background: #F5F7FA;
    border-right: 1px solid #dce0e8;
    display: flex;
    flex-direction: column;
}

/* Logo-gebied: precies even hoog als de topbalk (50px) */
.sidebar-logo {
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 0.92em;
    font-weight: 700;
    color: #1F1B42;
    letter-spacing: 0.01em;
    border-bottom: 1px solid #dce0e8;
    flex-shrink: 0;
}

/* ---- Navigatie ---- */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 10px;
}

.sidebar-navitem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 13px;
    background: #ffffff;
    border: 1px solid #dce0e8;
    border-radius: 4px;
    color: #1F1B42;
    text-decoration: none;
    font-size: 0.88em;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.sidebar-navitem:hover {
    background: #eef6fa;
    border-color: #93C5D7;
}

.sidebar-navitem-actief {
    background: #1F1B42;
    border-color: #1F1B42;
    color: #ffffff;
}

.sidebar-navitem-actief:hover {
    background: #1F1B42;
    border-color: #1F1B42;
    color: #ffffff;
}

.sidebar-pijl {
    font-size: 0.68em;
    opacity: 0.55;
}

/* ---- Submenu Beheer ---- */
.sidebar-groep {
    display: flex;
    flex-direction: column;
}

.sidebar-submenu {
    display: flex;
    flex-direction: column;
    margin: 3px 0 0 12px;
    padding: 2px 0;
    border-left: 2px solid #dce0e8;
}

.sidebar-submenu.verborgen {
    display: none;
}

.sidebar-subitem {
    display: block;
    padding: 7px 12px;
    color: #555;
    text-decoration: none;
    font-size: 0.84em;
    font-weight: 600;
    border-radius: 3px;
    transition: color 0.12s, background 0.12s;
}

.sidebar-subitem:hover {
    color: #1F1B42;
    background: #eef6fa;
}

.sidebar-subitem-actief {
    color: #1F1B42;
    background: #eef6fa;
}

/* ================================================================== */
/* RECHTER KOLOM                                                        */
/* ================================================================== */
.content-kolom {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    min-width: 0;
}

/* ---- Topbalk: grijs, sluit aan op sidebar-logo hoogte ---- */
.topbalk {
    height: 50px;
    flex-shrink: 0;
    background: #F5F7FA;
    border-bottom: 1px solid #dce0e8;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 28px;
}

.topbalk-rechts {
    font-size: 0.85em;
    color: #888;
    font-weight: 600;
}

/* ---- Main: wit werkgebied ---- */
main {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 28px 36px 60px;
}

/* ================================================================== */
/* ZOEKBALK: lichtblauw                                                 */
/* ================================================================== */
.zoekbalk-kaart {
    background: #eef6fa;
    border: 1px solid #93C5D7;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(147,197,215,0.20);
    margin-bottom: 24px;
    max-width: 800px;
}

.zoekbalk-form {
    display: flex;
    align-items: center;
    padding: 6px 6px 6px 16px;
    gap: 8px;
}

.zoekbalk-icoon {
    color: #93C5D7;
    font-size: 1em;
    flex-shrink: 0;
    line-height: 1;
}

.zoekbalk-form input[type=text] {
    flex: 1;
    padding: 10px 8px;
    font-size: 1em;
    font-family: 'Nunito', sans-serif;
    border: none;
    outline: none;
    background: transparent;
    color: #1F1B42;
    min-width: 0;
}

.zoekbalk-form input[type=text]::placeholder {
    color: #93C5D7;
}

.zoekbalk-form button {
    padding: 10px 20px;
    background: #1F1B42;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}

.zoekbalk-form button:hover {
    background: #93C5D7;
    color: #1F1B42;
}

/* ================================================================== */
/* INHOUD-KAART (menu, recept, etc.)                                   */
/* ================================================================== */
.inhoud-kaart {
    background: #ffffff;
    border: 1px solid #dce0e8;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(31,27,66,0.06);
    padding: 32px 36px 36px;
    max-width: 960px;
}

/* ================================================================== */
/* RESULTATEN                                                           */
/* ================================================================== */
.welkom-tekst {
    color: #888;
    font-size: 0.92em;
    margin: 0;
}

.resultaten-header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #93C5D7;
    max-width: 960px;
}

.resultaten-term {
    font-size: 1.2em;
    font-weight: 700;
    color: #1F1B42;
    letter-spacing: 0.02em;
}

.resultaten-teller {
    color: #888;
    font-size: 0.88em;
}

.zoekresultaten {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 960px;
}

.zoekresultaat {
    padding: 10px 0;
    border-bottom: 1px solid #e8ecf0;
}

.zoekresultaat:last-child {
    border-bottom: none;
}

.zoekresultaat-regel1 {
    font-size: 1em;
    font-weight: 600;
    color: #1F1B42;
    margin-bottom: 2px;
}

.zoekresultaat-gang {
    font-weight: 700;
    color: #1F1B42;
    margin-right: 4px;
}

.zoekresultaat-regel2 {
    font-size: 0.85em;
    color: #888;
}

.recept-link {
    font-weight: 700;
    color: #1F1B42;
    text-decoration: none;
}

.recept-link:hover {
    color: #93C5D7;
    text-decoration: underline;
}

.menu-link {
    color: #1F1B42;
    font-weight: 600;
    text-decoration: none;
}

.menu-link:hover {
    color: #93C5D7;
    text-decoration: underline;
}

.recept-bron {
    color: #999;
    font-style: italic;
}

.recept-context {
    font-size: 0.88em;
    color: #777;
}

/* ---- Seizoen filter ---- */
.filter-rij {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    max-width: 960px;
}

.filter-label {
    font-size: 0.78em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #aaa;
    min-width: 52px;
}

.filterknop {
    padding: 4px 12px;
    border: 1px solid #dce0e8;
    color: #555;
    text-decoration: none;
    font-size: 0.83em;
    font-weight: 600;
    background: #fff;
    border-radius: 3px;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.filterknop:hover {
    border-color: #1F1B42;
    color: #1F1B42;
}

.filterknop.actief {
    background: #1F1B42;
    border-color: #1F1B42;
    color: white;
}

/* ---- Leeg / tip ---- */
.zoek-leeg {
    padding: 28px 0;
    color: #555;
    max-width: 560px;
}

.zoek-tip {
    color: #888;
    font-size: 0.9em;
    margin-top: 6px;
}

/* ================================================================== */
/* KOPPEN                                                               */
/* ================================================================== */
h1 {
    color: #1F1B42;
    font-size: 1.55em;
    font-weight: 700;
    margin: 0 0 4px;
}

h2.gang-type {
    color: #1F1B42;
    font-size: 0.95em;
    font-weight: 700;
    margin: 24px 0 6px;
    padding-bottom: 5px;
    border-bottom: 2px solid #93C5D7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ================================================================== */
/* MENU-DETAILPAGINA                                                    */
/* ================================================================== */
.menu-header {
    margin-bottom: 24px;
}

.menu-header-rij {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.menu-meta {
    color: #666;
    margin-top: 2px;
    font-size: 0.92em;
}

.gang {
    margin-bottom: 20px;
}

.gang-omschrijving-inline {
    font-weight: 600;
    font-size: 0.92em;
    color: #1F1B42;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 8px;
}

.recept-blokjes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 6px;
}

.recept-blokje {
    display: inline-block;
    padding: 6px 14px;
    background: #F5F7FA;
    border: 1px solid #dce0e8;
    color: #1F1B42;
    text-decoration: none;
    font-size: 0.88em;
    font-weight: 600;
    border-radius: 3px;
    transition: background 0.12s, border-color 0.12s;
}

.recept-blokje:hover {
    background: #eef6fa;
    border-color: #93C5D7;
}

/* ================================================================== */
/* RECEPT-DETAILPAGINA                                                  */
/* ================================================================== */
.recept-detail-header {
    margin-bottom: 20px;
}

.recept-sectie {
    margin-bottom: 24px;
}

.recept-sectie-kop {
    color: #1F1B42;
    font-size: 0.88em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px;
    padding-bottom: 4px;
    border-bottom: 2px solid #93C5D7;
}

.bereiding-tekst {
    font-size: 0.92em;
    line-height: 1.75;
    color: #333;
    white-space: pre-wrap;
    max-width: 720px;
    margin-top: 6px;
}

.gang-context {
    background: #eef6fa;
    border-left: 3px solid #93C5D7;
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 0.88em;
}

.gang-context-label {
    color: #555;
    margin: 0 0 6px;
    font-weight: 600;
}

.gang-recepten-lijst {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gang-recepten-lijst li {
    padding: 3px 10px;
    background: #fff;
    border: 1px solid #dce0e8;
    font-size: 0.86em;
    border-radius: 3px;
}

.gang-recepten-lijst li.huidig {
    background: #1F1B42;
    color: white;
    border-color: #1F1B42;
}

.gang-recepten-lijst a {
    color: #1F1B42;
    text-decoration: none;
}

.gang-recepten-lijst a:hover { color: #93C5D7; }

.recept-navigatie {
    margin-top: 32px;
    padding-top: 14px;
    border-top: 1px solid #e0e4ea;
    font-size: 0.9em;
}

.recept-navigatie a {
    color: #1F1B42;
    text-decoration: none;
    font-weight: 600;
}

.recept-navigatie a:hover { color: #93C5D7; }

.recept-naam-link {
    color: #1F1B42;
    text-decoration: none;
}

.recept-naam-link:hover {
    color: #93C5D7;
    text-decoration: underline;
}

/* ================================================================== */
/* TABELLEN (algemeen)                                                  */
/* ================================================================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    font-size: 0.92em;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(31,27,66,0.07);
}

th {
    background: #1F1B42;
    color: white;
    padding: 9px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.86em;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

td {
    padding: 8px 14px;
    border-bottom: 1px solid #e8ecf0;
    color: #2c2c2c;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: #eef6fa; }

td a {
    color: #1F1B42;
    text-decoration: none;
    font-weight: 600;
}

td a:hover { color: #93C5D7; }

.ingredienten-tabel {
    margin-top: 6px;
    margin-bottom: 10px;
    font-size: 0.86em;
    width: auto;
    min-width: 320px;
}

.ingredienten-tabel th {
    background: #93C5D7;
    color: #1F1B42;
    padding: 5px 12px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.84em;
}

.ingredienten-tabel td { padding: 4px 12px; }
.ingredienten-tabel tr:hover td { background: #eef6fa; }

/* ================================================================== */
/* KNOPPEN                                                              */
/* ================================================================== */
.knop {
    display: inline-block;
    padding: 8px 18px;
    background: #1F1B42;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88em;
    font-family: 'Nunito', sans-serif;
    border: 1px solid #1F1B42;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.15s;
}

.knop:hover {
    background: #93C5D7;
    border-color: #93C5D7;
    color: #1F1B42;
}

.knop-secundair {
    background: #ffffff;
    color: #1F1B42;
}

.knop-secundair:hover {
    background: #eef6fa;
    border-color: #93C5D7;
}

.knop-waarschuwing {
    background: #fff;
    color: #b04020;
    border-color: #b04020;
}

.knop-waarschuwing:hover {
    background: #b04020;
    color: white;
}

.knop-klein {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.80em;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    background: #1F1B42;
    color: white;
    text-decoration: none;
    border: 1px solid #1F1B42;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 4px;
    transition: background 0.15s;
}

.knop-klein:hover {
    background: #93C5D7;
    border-color: #93C5D7;
    color: #1F1B42;
}

.knop-klein.knop-secundair {
    background: #fff;
    color: #1F1B42;
}

.knop-klein.knop-waarschuwing {
    background: #fff;
    color: #b04020;
    border-color: #b04020;
}

.knop-klein.knop-waarschuwing:hover {
    background: #b04020;
    color: white;
    border-color: #b04020;
}

/* ================================================================== */
/* DIVERSEN                                                             */
/* ================================================================== */
.terug {
    margin-top: 28px;
}

.terug a {
    color: #1F1B42;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88em;
    cursor: pointer;
}

.terug a:hover { color: #93C5D7; }

.geen-data {
    color: #888;
    font-style: italic;
    font-size: 0.9em;
}

.teller {
    color: #666;
    font-size: 0.88em;
    margin: 4px 0 10px;
}

.broodkruimel {
    font-size: 0.83em;
    color: #888;
    margin-bottom: 16px;
}

.broodkruimel a {
    color: #1F1B42;
    text-decoration: none;
    font-weight: 600;
}

.broodkruimel a:hover { color: #93C5D7; }

.terug-link {
    color: #1F1B42;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88em;
}

.terug-link:hover { color: #93C5D7; }

.externe-link {
    color: #1F1B42;
    text-decoration: none;
}

.externe-link:hover {
    color: #93C5D7;
    text-decoration: underline;
}

/* ================================================================== */
/* PAGINERING                                                           */
/* ================================================================== */
.paginering {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-top: 20px;
    font-size: 0.86em;
}

.paginering a {
    padding: 5px 11px;
    border: 1px solid #dce0e8;
    color: #1F1B42;
    text-decoration: none;
    background: #fff;
    border-radius: 3px;
    transition: background 0.12s;
}

.paginering a:hover {
    background: #eef6fa;
    border-color: #93C5D7;
}

.pagina-huidig {
    padding: 5px 11px;
    background: #1F1B42;
    color: white;
    font-weight: 700;
    border-radius: 3px;
}

.pagina-ellipsis {
    padding: 5px 4px;
    color: #999;
}

/* ================================================================== */
/* BEHEER                                                               */
/* ================================================================== */
.beheer-acties {
    margin-bottom: 18px;
}

.beheer-sectie-kop {
    color: #1F1B42;
    font-size: 0.88em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 20px 0 10px;
    padding-bottom: 4px;
    border-bottom: 2px solid #93C5D7;
}

.acties { white-space: nowrap; }
tr.inactief td { opacity: 0.5; }

.status-actief {
    color: #2a7a2a;
    font-weight: 600;
    font-size: 0.86em;
}

.status-inactief {
    color: #999;
    font-size: 0.86em;
}

.datum-badge {
    background: #eef6fa;
    border: 1px solid #93C5D7;
    color: #1F1B42;
    padding: 2px 8px;
    font-size: 0.83em;
    font-weight: 600;
    border-radius: 3px;
}

.fout-melding {
    color: #b04020;
    font-size: 0.80em;
    cursor: help;
}

.context-type-link {
    color: #555;
    text-decoration: none;
    font-weight: 600;
}

.context-type-link:hover {
    color: #1F1B42;
    text-decoration: underline;
}

.context-gang-link {
    color: #1F1B42;
    text-decoration: none;
    font-weight: 600;
}

.context-gang-link:hover { color: #93C5D7; }

.externe-link {
    color: #1F1B42;
    text-decoration: none;
}

.externe-link:hover {
    color: #93C5D7;
    text-decoration: underline;
}

/* ================================================================== */
/* BEHEER FORMULIER                                                     */
/* ================================================================== */
.beheer-formulier {
    max-width: 540px;
    margin-bottom: 28px;
}

.veld { margin-bottom: 18px; }

.veld label {
    display: block;
    font-weight: 700;
    color: #1F1B42;
    margin-bottom: 4px;
    font-size: 0.92em;
}

.veld input[type=text],
.veld input[type=url] {
    width: 100%;
    padding: 9px 12px;
    font-size: 0.95em;
    font-family: 'Nunito', sans-serif;
    border: 1px solid #dce0e8;
    border-radius: 3px;
    background: #fff;
    color: #1F1B42;
    outline: none;
}

.veld input:focus { border-color: #93C5D7; }

.veld-hint {
    display: block;
    font-size: 0.80em;
    color: #888;
    margin-top: 4px;
}

.veld-acties {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.fout-melding-blok {
    background: #fde8e0;
    border-left: 4px solid #b04020;
    padding: 10px 14px;
    color: #b04020;
    font-weight: 600;
    margin-bottom: 18px;
    font-size: 0.88em;
    border-radius: 0 3px 3px 0;
}

.info-blok {
    background: #eef6fa;
    border-left: 4px solid #93C5D7;
    padding: 12px 16px;
    max-width: 540px;
    font-size: 0.88em;
    color: #333;
    border-radius: 0 3px 3px 0;
}

.info-blok ul {
    margin: 6px 0 0 0;
    padding-left: 18px;
}

.info-blok li { margin-bottom: 4px; }

/* ================================================================== */
/* ZOEKFORMULIER (beheer-pagina's intern)                              */
/* ================================================================== */
.zoekformulier {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
}

.zoekformulier input[type=text] {
    padding: 9px 14px;
    width: 400px;
    font-size: 0.95em;
    font-family: 'Nunito', sans-serif;
    border: 1px solid #dce0e8;
    border-right: none;
    border-radius: 3px 0 0 3px;
    background: #fff;
    color: #1F1B42;
    outline: none;
}

.zoekformulier input[type=text]:focus { border-color: #93C5D7; }

.zoekformulier button {
    padding: 9px 20px;
    background: #1F1B42;
    color: white;
    border: 1px solid #1F1B42;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    font-size: 0.95em;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: background 0.15s;
}

.zoekformulier button:hover {
    background: #93C5D7;
    border-color: #93C5D7;
    color: #1F1B42;
}

/* ---- Filter-balk (beheer) ---- */
.filter-balk {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}