/* Grundstil der HeimO-Oberfläche. Werte ausschließlich über Design Tokens (heimo-tokens.css). */
html,
body {
    margin: 0;
    padding: 0;
    background: var(--hm-surface-page);
    color: var(--hm-text);
    font: var(--hm-type-body);
    -webkit-text-size-adjust: 100%;
}

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

:focus-visible {
    outline: 2px solid var(--hm-accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* MudBlazor an die Token angleichen: Karten ohne Schatten, nur 1-px-Rahmen. */
.mud-card,
.mud-paper-outlined {
    border-radius: var(--hm-radius-card);
}

.mud-tab {
    text-transform: none;
    font: var(--hm-type-callout);
    font-weight: 600;
}

.mud-button-root {
    min-height: var(--hm-touch-min);
    border-radius: var(--hm-radius-button);
}

/* Formulare nicht über die ganze Breite großer Bildschirme ziehen (Bedienkonzept: etwa 720–880 px). */
.hm-form {
    display: flex;
    flex-direction: column;
    gap: var(--hm-space-16);
    max-width: 720px;
    margin-bottom: var(--hm-section-gap);
}

.hm-facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: var(--hm-space-4) var(--hm-space-16);
    margin: var(--hm-space-8) 0 0;
    font: var(--hm-type-subhead);
}

.hm-facts dt {
    color: var(--hm-text-muted);
}

.hm-facts dd {
    margin: 0;
}

/* Toast über der schwebenden Leiste (Token action-bottom), dunkle Fläche laut Design Tokens. */
.mud-snackbar {
    border-radius: var(--hm-radius-button);
    background: var(--hm-surface-inverse);
    color: var(--hm-text-on-inverse);
    box-shadow: var(--hm-shadow-toast);
}

@media (max-width: 767.98px) {
    .mud-snackbar-location-bottom-center {
        bottom: calc(var(--hm-action-bottom) + env(safe-area-inset-bottom, 0px));
    }
}
