/* Grundstile: Elemente ohne Klassen. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-md);
    line-height: 1.5;
    color: var(--text);
    background: var(--surface);
}

h1,
h2,
h3 {
    line-height: 1.25;
    font-weight: 650;
}

h1 {
    font-size: var(--fs-xl);
    margin: var(--space-2) 0 var(--space-3);
}

h1:focus {
    outline: none;
}

h2 {
    font-size: var(--fs-lg);
    margin: var(--space-6) 0 var(--space-3);
}

h3 {
    font-size: var(--fs-md);
    margin: var(--space-5) 0 var(--space-2);
}

p {
    margin: 0 0 var(--space-3);
}

a {
    color: var(--accent);
    text-underline-offset: 2px;
}

a:hover {
    color: var(--accent-hover);
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: var(--radius-sm);
}

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
}

ul {
    padding-left: 1.25rem;
}

/* Seitengerüst (Kopfleiste, Navigation, Arbeitsfläche): shell.css */

/* Blazor */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    padding: var(--space-2) var(--space-5);
    background: var(--warning-soft);
    color: var(--text);
    border-top: 1px solid var(--border-strong);
}

#blazor-error-ui .dismiss {
    position: absolute;
    right: var(--space-3);
    top: var(--space-2);
    cursor: pointer;
}

.blazor-error-boundary {
    padding: var(--space-4);
    border-radius: var(--radius);
    background: var(--danger-soft);
    color: var(--danger);
}

.blazor-error-boundary::after {
    content: "Ein Fehler ist aufgetreten.";
}
