html, body {
    margin: 0;
    -webkit-tap-highlight-color: transparent;
}

h1:focus {
    outline: none;
}

/* ---- Ladebildschirm (vor dem Start von Blazor) ---- */
.boot-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 100vh;
    font-family: Roboto, Helvetica, Arial, sans-serif;
    color: #555;
}

.boot-text {
    font-size: 1.15rem;
}

/* ---- Inhalt: Platz für die Reiter-Leiste unten lassen ---- */
.app-main {
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 16px);
}

:root {
    --bottom-nav-height: 72px;
}

/* ---- Reiter-Leiste unten ---- */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    display: flex;
    height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--mud-palette-surface);
    border-top: 1px solid var(--mud-palette-lines-default);
}

.bottom-nav-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    text-decoration: none;
    color: var(--mud-palette-text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.15;
}

    .bottom-nav-item .mud-icon-root {
        font-size: 1.9rem;
    }

    .bottom-nav-item.active {
        color: var(--mud-palette-primary);
        font-weight: 700;
    }

/* ---- Themen-Kacheln ---- */
.topic-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 96px;
    padding: 12px;
    text-align: center;
}

.topic-icon {
    font-size: 2rem;
}

/* ---- Leerer Zustand ---- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 16px;
}

/* ---- Einstellungen ---- */
.color-choice .choice-dot {
    color: var(--choice-color);
}

.color-choice.mud-button-filled {
    background-color: var(--choice-color) !important;
    color: #fff !important;
}

    .color-choice.mud-button-filled .choice-dot {
        color: #fff;
    }

.big-switch {
    min-height: 48px;
}

/* ---- Fehleranzeige ---- */
#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
