/* Einwilligungs-Banner (wwwroot/js/consent.js). Liegt über MudBlazor-Dialogen, verdeckt aber nie die ganze Seite. */
.yse-consent {
    --yse-consent-ink: #16283a;
    --yse-consent-muted: #52606d;
    --yse-consent-ground: #ffffff;
    --yse-consent-line: #d5dde6;
    --yse-consent-accent: #0b4f7c;
    --yse-consent-accent-ink: #ffffff;

    position: fixed;
    inset: auto 0 0 0;
    z-index: 2000;
    display: flex;
    justify-content: center;
    padding: 0 1rem calc(1rem + env(safe-area-inset-bottom));
    pointer-events: none;
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.yse-consent[hidden] { display: none; }

.yse-consent__box {
    pointer-events: auto;
    width: min(44rem, 100%);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    background: var(--yse-consent-ground);
    color: var(--yse-consent-ink);
    border: 1px solid var(--yse-consent-line);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(16, 32, 48, .22);
    padding: 1.25rem 1.25rem 1rem;
}

.yse-consent__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 .5rem;
}

.yse-consent__text {
    font-size: .92rem;
    line-height: 1.5;
    margin: 0 0 .75rem;
}

.yse-consent__text a { color: var(--yse-consent-accent); text-decoration: underline; }

.yse-consent__options {
    display: grid;
    gap: .5rem;
    margin: 0 0 .75rem;
}

.yse-consent__options[hidden] { display: none; }

.yse-consent__option {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    padding: .55rem .7rem;
    border: 1px solid var(--yse-consent-line);
    border-radius: 8px;
    cursor: pointer;
}

.yse-consent__option input { margin-top: .2rem; width: 1.05rem; height: 1.05rem; accent-color: var(--yse-consent-accent); }

.yse-consent__option-text { display: grid; gap: .1rem; }
.yse-consent__option-text strong { font-size: .92rem; }
.yse-consent__option-text small { font-size: .82rem; color: var(--yse-consent-muted); }

.yse-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
    align-items: center;
}

.yse-consent__button {
    font: inherit;
    font-size: .92rem;
    border-radius: 8px;
    padding: .55rem 1rem;
    cursor: pointer;
    border: 1px solid var(--yse-consent-accent);
}

.yse-consent__button[hidden] { display: none; }

/* "Nur notwendige" und "Alle akzeptieren" gleich gewichtet — Ablehnen darf nicht schwerer sein als Zustimmen. */
.yse-consent__button--primary {
    background: var(--yse-consent-accent);
    color: var(--yse-consent-accent-ink);
    min-width: 10rem;
}

.yse-consent__button--text {
    background: transparent;
    color: var(--yse-consent-accent);
    border-color: transparent;
    margin-right: auto;
    text-decoration: underline;
}

.yse-consent__button:focus-visible { outline: 3px solid #f0a020; outline-offset: 2px; }

@media (max-width: 30rem) {
    .yse-consent__actions { justify-content: stretch; }
    .yse-consent__button--primary { flex: 1 1 100%; }
    .yse-consent__button--text { margin-right: 0; }
}
