/* =================================================================
   STAFAM – Global utilities (alles andere kommt von Tailwind CDN)
   ================================================================= */

body { font-family: 'Roboto', sans-serif; }

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}
.material-symbols-outlined.is-filled,
.material-symbols-outlined[data-filled="1"] {
    font-variation-settings: 'FILL' 1;
}

.glass-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.editorial-shadow,
.ambient-shadow {
    box-shadow: 0 12px 32px -4px rgba(0, 37, 70, 0.08);
}

.sujet-accent { border-left: 4px solid #006c51; }

/* Scrollbare Fallbeschreibung */
.long-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 520px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable both-edges;
    scrollbar-color: #c3c6d0 transparent;
    scrollbar-width: thin;
}
.long-text--tall { max-height: 720px; }
.long-text--short { max-height: 320px; }
.long-text::-webkit-scrollbar { width: 10px; }
.long-text::-webkit-scrollbar-thumb { background-color: #c3c6d0; border-radius: 9999px; border: 2px solid transparent; background-clip: padding-box; }
.long-text::-webkit-scrollbar-thumb:hover { background-color: #737780; }
.long-text::-webkit-scrollbar-track { background: transparent; }

/* Blazor error boundary */
.blazor-error-boundary {
    background-color: #ffdad6;
    color: #93000a;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin: 1rem;
    font-weight: 700;
}
.blazor-error-boundary::after { content: "Es ist ein Fehler aufgetreten."; }

/* Blazor validation classes – die Tailwind-Inputs sollen rote Markierung bekommen */
.invalid {
    border-color: #ba1a1a !important;
    background-color: #fff4f4 !important;
}
.validation-message {
    font-size: 0.75rem;
    color: #ba1a1a;
    margin-top: 0.25rem;
    font-weight: 500;
}

#blazor-error-ui {
    background-color: #ffdad6;
    color: #93000a;
    bottom: 0;
    box-shadow: 0 24px 48px -8px rgba(0, 37, 70, 0.18);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 1rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 1rem; top: 0.75rem; font-size: 1.5rem; line-height: 1; }
#blazor-error-ui .reload { color: inherit; text-decoration: underline; margin-left: 0.5rem; }
