/*
  UX-Relaunch C8: Fassade — Bottom-Rhythmusleiste mobil + weichere Radien app-weit.
  DEC-0019 „Hybrid": neue Identität (P5/PRO-0005), angewandt auf die Shell.
*/

/* Weichere Ecken app-weit (MudBlazor-Tokens; Kernflächen tragen eigene 18px-Radien inline) */
:root {
    --mud-border-radius-default: 10px;
    --mud-border-radius-small: 8px;
    --mud-typography-default-family: Roboto, "Segoe UI", system-ui, sans-serif;
}

/* Mobile Rhythmus-Leiste: Heute · Umgebungen · Klären · Anlegen im Daumenbereich */
.relaunch-bottombar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    align-items: stretch;
    background: var(--mud-palette-surface);
    border-top: 1px solid var(--mud-palette-lines-default);
    box-shadow: 0 -4px 20px rgba(22, 24, 43, 0.08);
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
}

.relaunch-bottombar-item,
.relaunch-bottombar-capture {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 2px;
    border: 0;
    background: none;
    text-decoration: none;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--mud-palette-text-secondary);
    cursor: pointer;
}

.relaunch-bottombar-item span:first-child,
.relaunch-bottombar-capture span:first-child {
    font-size: 20px;
    line-height: 1;
}

.relaunch-bottombar-item.on {
    color: var(--mud-palette-primary);
    position: relative;
}

/* Aktiver Tab: Punkte-Indikator (Farbe nie alleiniger Träger) */
.relaunch-bottombar-item.on span:first-child::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 16px;
    height: 3px;
    border-radius: 99px;
    background: var(--mud-palette-primary);
}

.relaunch-bottombar-item,
.relaunch-bottombar-capture {
    filter: none;
}

/* Inaktive Icons kräftiger (Kontrast) */
.relaunch-bottombar-item:not(.on) {
    color: var(--mud-palette-text-secondary);
}

/* C9: Dedizierter Mobile-Rahmen — Appbar & Drawer versteckt, die Bottom-Bar ist
   die einzige Navigation (kein doppeltes Chrome mehr). */
@media (max-width: 599px) {
    .mud-appbar,
    .mud-drawer {
        display: none !important;
    }

    .mud-main-content {
        padding-bottom: 84px;
        padding-left: 0 !important;
        padding-top: 0 !important;
    }
}

/* „Mehr"-Sheet: Restnavigation als Bottom-Sheet über der Leiste */
.relaunch-mehr-backdrop {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(22, 24, 43, 0.35);
}

.relaunch-mehr-sheet {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    z-index: 46;
    background: var(--mud-palette-surface);
    border-radius: 18px;
    box-shadow: 0 -8px 30px rgba(22, 24, 43, 0.18);
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
}

.relaunch-mehr-sheet a {
    display: block;
    padding: 13px 14px;
    border-radius: 12px;
    color: var(--mud-palette-text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.relaunch-mehr-sheet a:active {
    background: var(--mud-palette-action-default-hover);
}
