/* ==========================================================================
   Bedrijvenportaal - Het land van Stricken de Roover
   ========================================================================== */

/* -- knoppen ------------------------------------------------------------ */
.knop {
    background: var(--groen);
    color: var(--wit);
    cursor: pointer;
}
.knop:hover, .knop:focus { background: var(--groen-donker); color: var(--wit); }

.knop--leeg {
    background: transparent;
    color: var(--paneel);
    box-shadow: inset 0 0 0 1px var(--lijn);
}
.knop--leeg:hover, .knop--leeg:focus { background: var(--lijn); color: var(--paneel); }

.knop--klein { padding: 8px 16px; font-size: 14px; }
.knop--breed { width: 100%; justify-content: center; margin-top: 8px; }
.knop--rood { background: #b5372f; }
.knop--rood:hover, .knop--rood:focus { background: #972c25; }

/* -- balk boven het portaal --------------------------------------------- */
.portaal-balk { background: var(--paneel); color: var(--wit); }

.portaal-balk__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0;
}

.portaal-balk__welkom {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--wit);
    font-weight: 500;
}

.portaal-balk__links { display: flex; gap: 20px; }
.portaal-balk__links a { color: var(--goud); }
.portaal-balk__links a:hover, .portaal-balk__links a:focus { color: var(--wit); }

/* -- algemene opbouw ---------------------------------------------------- */
.portaal { padding: 48px 0 72px; }

.portaal__kop {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.portaal__titel { font-size: 30px; margin-bottom: 6px; }
.portaal__intro { margin: 0; max-width: 620px; }

.portaal-melding,
.portaal__melding,
.portaal-fout {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.portaal-melding, .portaal__melding { background: #eef5e2; color: #4a6b16; }
.portaal-fout { background: #fbeceb; color: #8f2b24; }
.portaal-fout p { color: inherit; margin: 4px 0 0; }

/* -- lijst met eigen evenementen ---------------------------------------- */
.portaal__rij {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 16px;
    margin-bottom: 12px;
    background: var(--wit);
    border: 1px solid var(--lijn);
    border-radius: var(--radius);
}

.portaal__rij-beeld {
    flex: 0 0 96px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--lijn);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tekst);
}
.portaal__rij-beeld img { width: 100%; height: 100%; object-fit: cover; }

.portaal__rij-info { flex: 1 1 240px; }
.portaal__rij-titel { font-size: 18px; margin-bottom: 4px; }
.portaal__rij-meta { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.portaal__rij-meta .material-icons-outlined { font-size: 16px; }
.portaal__rij-meta .material-icons-outlined:not(:first-child) { margin-left: 10px; }

.portaal__rij-acties { display: flex; gap: 8px; flex-wrap: wrap; }

.portaal__leeg {
    text-align: center;
    padding: 64px 24px;
    border: 1px dashed var(--lijn);
    border-radius: var(--radius);
}
.portaal__leeg .material-icons-outlined { font-size: 40px; color: var(--tekst); }
.portaal__leeg p { margin: 12px 0 20px; }

/* -- formulier ---------------------------------------------------------- */
.portaal-formulier {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}
.portaal-formulier--smal { max-width: 620px; }

.veldgroep {
    border: 1px solid var(--lijn);
    background: var(--wit);
    border-radius: var(--radius);
    padding: 0 28px 8px;
    margin: 0 0 20px;
}
.veldgroep__kop {
    display: flex;
    align-items: center;
    gap: 12px;
    float: left;
    box-sizing: border-box;
    width: calc(100% + 56px);
    max-width: none;
    margin: 0 -28px 22px;
    padding: 20px 28px 14px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
    border: none;
    border-bottom: 1px solid var(--lijn);
}
.veldgroep::after {
    content: "";
    display: table;
    clear: both;
}
.veldgroep__nr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--groen);
    color: var(--wit);
    font-size: 14px;
    font-weight: 600;
    flex: 0 0 28px;
}

.datumkeuze {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.datumkeuze__opt { display: block; margin: 0; font-weight: 400; cursor: pointer; }
.datumkeuze__opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.datumkeuze__kaart {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 100%;
    padding: 14px 14px 12px;
    border: 1px solid var(--lijn);
    border-radius: 8px;
    background: #faf9f4;
    color: var(--ink);
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.datumkeuze__kaart i { color: var(--groen); font-size: 22px; }
.datumkeuze__kaart strong { font-size: 15px; }
.datumkeuze__kaart small {
    color: var(--tekst);
    font-size: 13px;
    line-height: 1.35;
}
.datumkeuze__opt input:focus-visible + .datumkeuze__kaart {
    box-shadow: 0 0 0 3px rgba(90, 122, 58, .25);
}
.datumkeuze__opt input:checked + .datumkeuze__kaart {
    border-color: var(--groen);
    background: #eef5e2;
    box-shadow: inset 0 0 0 1px var(--groen);
}

.datumlijst__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 0;
    margin-bottom: 10px;
}
.datumlijst__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px 5px 12px;
    border-radius: 999px;
    background: #eef5e2;
    color: #4a6b16;
    font-size: 14px;
}
.datumlijst__chip button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.datumlijst__chip button:hover,
.datumlijst__chip button:focus { background: rgba(74, 107, 22, .12); }
.datumlijst__toevoegen {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.datumlijst__toevoegen .veld__invoer { max-width: 220px; }

.js-datumlijst-bron.is-verborgen {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.veld { margin-bottom: 20px; }

.veldrij {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    margin-bottom: 20px;
}
.veldrij .veld { margin-bottom: 0; width: auto; }

.veld__label { display: block; font-weight: 500; margin-bottom: 6px; }
.veld__ster { color: #b5372f; }

.veld__invoer {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--lijn);
    border-radius: 6px;
    font-size: 16px;
    line-height: 42px;
    font-family: inherit;
    color: var(--ink);
    background: var(--wit);
    box-sizing: border-box;
}
.veld__invoer:focus { outline: none; border-color: var(--groen); }
.veld__invoer--tekst { height: auto; min-height: 90px; padding: 10px 12px; line-height: 1.5; resize: vertical; }

input.veld__invoer[type="date"],
input.veld__invoer[type="time"] {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    line-height: normal;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
}

.veld__bestand { display: block; font-size: 14px; }
.veld__keuze { font-weight: 400; display: block; margin-bottom: 16px; }
.veld__hulp { font-size: 13px; margin: 6px 0 0; color: var(--tekst); }

.locatie-vast {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--lijn);
    border-radius: 6px;
    background: #f4f3ec;
    line-height: 1.45;
}

.locatie-custom {
    margin-top: 4px;
}

.locatie-custom .veld:last-child {
    margin-bottom: 0;
}

.typekeuze {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.typekeuze__opt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #d8d6cc;
    border-radius: 8px;
    background: var(--wit);
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.typekeuze__opt input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--groen);
    cursor: pointer;
}

.typekeuze__tekst {
    font-size: 14px;
    color: var(--ink);
    text-box: trim-both cap alphabetic;
    line-height: 1.2;
}

.typekeuze__opt:hover {
    border-color: #c4c2b6;
}

.typekeuze__opt:has(input:checked) {
    border-color: var(--groen);
    background: #f3f7ea;
}

#js-herhaling-extra { margin-top: 0; }

.beeld-rij { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }

.beeld-huidig {
    width: 140px;
    margin-bottom: 12px;
    border: 1px solid var(--lijn);
    border-radius: 6px;
    overflow: hidden;
}
.beeld-huidig img { display: block; width: 100%; height: 96px; object-fit: cover; }
.beeld-huidig__weg {
    display: block;
    font-size: 12px;
    font-weight: 400;
    margin: 0;
    padding: 6px 8px;
    background: #faf9f6;
}

.portaal-formulier__acties {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 8px 4px 0;
    border-top: none;
}
.portaal-formulier__weg { color: #b5372f; font-size: 14px; }
.portaal-formulier__weg:hover, .portaal-formulier__weg:focus { color: #8f2b24; text-decoration: underline; }

/* -- inloggen ----------------------------------------------------------- */
.portaal-inlog { padding: 64px 0 88px; }

.portaal-inlog__kaart {
    max-width: 420px;
    margin: 0 auto;
    background: var(--wit);
    border: 1px solid var(--lijn);
    border-radius: var(--radius);
    padding: 36px;
}

.portaal-inlog__titel { font-size: 26px; margin-bottom: 6px; }
.portaal-inlog__intro { margin-bottom: 24px; }
.portaal-inlog__hulp { display: block; text-align: center; margin-top: 18px; font-size: 14px; }

/* -- responsive --------------------------------------------------------- */
@media (min-width: 768px) {
}

@media (max-width: 767px) {
    .portaal-formulier { padding: 0; }
    .veldgroep { padding: 0 18px 4px; }
    .veldgroep__kop {
        width: calc(100% + 36px);
        margin: 0 -18px 18px;
        padding: 18px 18px 12px;
    }
    .portaal__rij-acties { width: 100%; }
    .veldrij { grid-template-columns: 1fr; }
    .datumkeuze { grid-template-columns: 1fr; }
}
