html, body {
    margin: 0;
    background: var(--blush);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.45;
}

*, *::before, *::after {
    box-sizing: border-box;
}

a {
    color: var(--red);
}

h1, h2, h3 {
    margin: 0;
    font-weight: 700;
}

:focus-visible {
    outline: 3px solid var(--red-hover);
    outline-offset: 2px;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 22px;
    border: 2px solid var(--red);
    border-radius: var(--radius-pill);
    background: var(--red);
    color: var(--white);
    font: 700 16px var(--font);
    text-decoration: none;
    cursor: pointer;
}

.pill:hover {
    background: var(--red-hover);
    border-color: var(--red-hover);
}

.pill:active {
    background: var(--red-active);
}

.pill.ghost {
    background: var(--white);
    color: var(--red);
}

.pill.ghost:hover {
    background: var(--blush);
}

.pill[aria-disabled="true"], .pill:disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}

.card {
    background: var(--white);
    border-radius: var(--radius-card);
    padding: 16px 18px;
}

.muted {
    color: var(--muted);
}

.page {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 16px;
}

.error {
    background: var(--error-bg);
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--red-active);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 15px;
    color: var(--muted);
}

.field input, .field select, .field textarea {
    width: 100%;
    min-width: 0;
    font: 17px var(--font);
    color: var(--ink);
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: var(--error-bg);
    color: var(--red-active);
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    float: right;
    cursor: pointer;
}

.loading-progress {
    display: block;
    width: 64px;
    height: 64px;
    margin: 30vh auto 0;
}

.loading-progress circle {
    fill: none;
    stroke: var(--line);
    stroke-width: 6px;
}

.loading-progress circle:last-child {
    stroke: var(--red);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
}

.loading-progress-text {
    text-align: center;
    color: var(--muted);
}

.loading-progress-text::after {
    content: var(--blazor-load-percentage-text, "Laden");
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

h1:focus {
    outline: none;
}
