/* Alleen voor de server-gerenderde publieke pagina's (PublicShell): wat in de Blazor-app scoped CSS of
   interactieve componenten zijn, is hier gewone CSS. Kleuren komen uit de MudBlazor-themavariabelen. */
html[data-theme="dark"] body {
    background-color: var(--mud-palette-background);
    color: var(--mud-palette-text-primary);
}

/* Toegankelijkheid: de sneltoetslink naar de inhoud is alleen zichtbaar met de toetsenbordfocus. */
.site-skip {
    position: absolute;
    left: -10000px;
    top: 0;
}

.site-skip:focus {
    left: 1rem;
    top: 1rem;
    z-index: 2000;
    padding: 0.5rem 1rem;
    background: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
}

/* Voetregel (Footer.razor.css in de app is scoped en geldt hier niet). */
.footer .mud-toolbar p {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.footer a {
    color: white !important;
}

.footer-small {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-small .mud-text,
.footer-small .mud-link {
    display: block;
    margin-bottom: 10px;
    color: white !important;
}

/* Themaschakelaar: één van de twee knoppen is zichtbaar, afhankelijk van het thema. */
.site-theme-light { display: none !important; }
html[data-theme="dark"] .site-theme-light { display: inline-flex !important; }
html[data-theme="dark"] .site-theme-dark { display: none !important; }

/* Taalwisselaar in de balk: kleine links, de huidige taal vet. */
.site-lang {
    display: inline-flex;
    gap: 0.5rem;
    margin: 0 0.5rem;
    white-space: nowrap;
}

/* De balk mag op een telefoon nooit breder worden dan het scherm. */
.mud-appbar .mud-toolbar {
    overflow-x: clip;
}

.site-lang a {
    color: inherit;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.site-lang a.site-lang-current {
    font-weight: 700;
    opacity: 1;
    text-decoration: underline;
}

/* Mobiel menu als <details>: opent zonder JavaScript en klapt de lijst over de inhoud heen. */
.site-menu {
    position: relative;
}

.site-menu summary {
    list-style: none;
    cursor: pointer;
    color: inherit;
}

.site-menu summary::-webkit-details-marker {
    display: none;
}

.site-menu ul {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 12rem;
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    border-radius: var(--mud-default-borderradius);
    z-index: 1300;
}

.site-menu ul a {
    display: block;
    padding: 0.5rem 1rem;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.site-menu ul a:hover {
    background: var(--mud-palette-action-default-hover);
}

/* Telefoon: de contentafbeeldingen op de volle kolombreedte (de inline breedtes van 80-95% zijn voor de brede
   layout naast de tekst) en de tekstkolom zonder extra inspringing. */
@media (max-width: 959.98px) {
    main .mud-grid .mud-image {
        width: 100% !important;
        height: auto !important;
    }
}
