/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-gl1zb4foih] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-gl1zb4foih] {
    flex: 1;
    min-width: 0;
}

/* Mobile-first (< 768px): ".sidebar" ist keine Spalte, sondern die fixe Bottom-Tab-Bar
   (Item-Layout dazu in NavMenu.razor.css). Siehe SKILL.md "Breakpoints". */
.sidebar[b-gl1zb4foih] {
    background: var(--las-black);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    border-top: 1px solid var(--las-border);
}

.top-row[b-gl1zb4foih] {
    background: var(--las-black);
    border-bottom: 1px solid var(--las-border);
    justify-content: space-between;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.las-mobile-brand[b-gl1zb4foih] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--las-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}

.las-mobile-brand:hover[b-gl1zb4foih] {
    color: var(--las-white);
}

.content[b-gl1zb4foih] {
    padding-bottom: 4.75rem;
}

/* iPad + Desktop (>= 768px): Sidebar wird wieder zur linken Spalte (76px Icon-Rail,
   ab 1024px 200px volle Sidebar, s.u.). Bottom-Bar-Ausgleich am Content entfaellt. */
@media (min-width: 768px) {
    .page[b-gl1zb4foih] {
        flex-direction: row;
    }

    .sidebar[b-gl1zb4foih] {
        position: sticky;
        top: 0;
        left: auto;
        right: auto;
        bottom: auto;
        width: 76px;
        flex: none;
        height: 100vh;
        border-top: none;
        border-right: 1px solid var(--las-border);
    }

    .las-mobile-brand[b-gl1zb4foih] {
        display: none;
    }

    .top-row[b-gl1zb4foih] {
        justify-content: flex-end;
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row[b-gl1zb4foih], article[b-gl1zb4foih] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .content[b-gl1zb4foih] {
        padding-bottom: 1.1rem;
    }
}

/* Desktop (> 1024px): volle Sidebar statt Icon-Rail. */
@media (min-width: 1024px) {
    .sidebar[b-gl1zb4foih] {
        width: 200px;
    }
}

.las-lang-toggle[b-gl1zb4foih] {
    background: transparent;
    border: 1px solid var(--las-border);
    color: var(--las-text-muted);
    font-family: var(--las-font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    border-radius: var(--las-radius-sm);
    cursor: pointer;
}

.las-lang-toggle:hover[b-gl1zb4foih] {
    color: var(--las-white);
    border-color: var(--las-white);
}
/* /Layout/NavMenu.razor.rz.scp.css */
/* Mobile-first (< 768px): Bottom-Tab-Bar. ".sidebar" wird in MainLayout.razor.css
   fuer diesen Breakpoint als fixe Leiste am unteren Rand positioniert; dieser Block
   liefert dazu das horizontale Item-Layout. Siehe SKILL.md "Breakpoints".

   ::deep ist noetig, weil die Items ueber <NavLink> gerendert werden -- das eigene
   Wurzelelement (<a>) eines Kind-Komponenten bekommt Blazors Scope-Attribut nicht
   automatisch (gleicher Grund wie vorher ".nav-item ::deep a"). */

.las-nav-brand[b-6hwh5knxj3] {
    display: none;
}

.las-nav-list[b-6hwh5knxj3] {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem 0.25rem;
    overflow-x: auto;
}

.las-nav-list[b-6hwh5knxj3]  .las-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.35rem 0.65rem;
    border-radius: var(--las-radius-sm);
    color: var(--las-text-muted);
    text-decoration: none;
    font-size: 0.62rem;
    white-space: nowrap;
    flex: none;
}

.las-nav-list[b-6hwh5knxj3]  .las-nav-link:hover,
.las-nav-list[b-6hwh5knxj3]  .las-nav-link.active {
    background: var(--las-surface-2);
    color: var(--las-white);
}

.las-nav-list[b-6hwh5knxj3]  .las-nav-link.active {
    background: var(--las-surface);
}

.las-nav-list[b-6hwh5knxj3]  .las-nav-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1px solid var(--las-gray-500);
    flex: none;
}

.las-nav-list[b-6hwh5knxj3]  .las-nav-link:hover .las-nav-dot,
.las-nav-list[b-6hwh5knxj3]  .las-nav-link.active .las-nav-dot {
    background: var(--las-white);
    border-color: var(--las-white);
}

.las-nav-list[b-6hwh5knxj3]  .las-nav-label {
    max-width: 4.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Monochrome Alternative zum "gruenen Haken" (SKILL.md Regel 0.1: keine Farbwerte
   ausserhalb der Graustufen-Palette) -- gefuellter Kreis statt Farbe. */
.las-nav-list[b-6hwh5knxj3]  .las-nav-done {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--las-white);
    color: var(--las-black);
    font-size: 0.6rem;
    margin-left: 0.3rem;
    flex: none;
}

/* iPad (768–1024px): schmale Icon-Rail, kein Text, siehe SKILL.md Breakpoints-Tabelle. */
@media (min-width: 768px) {
    .las-nav-brand[b-6hwh5knxj3] {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1.1rem 0 1.35rem;
    }

    .las-nav-brand a[b-6hwh5knxj3] {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        color: var(--las-text);
        text-decoration: none;
    }

    .las-nav-brand a:hover[b-6hwh5knxj3] {
        color: var(--las-white);
    }

    .las-nav-brand-text[b-6hwh5knxj3] {
        display: none;
    }

    .las-nav-list[b-6hwh5knxj3] {
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
        padding: 0;
        overflow-x: visible;
        overflow-y: auto;
        height: calc(100vh - 4.75rem);
    }

    .las-nav-list[b-6hwh5knxj3]  .las-nav-link {
        width: 44px;
        height: 44px;
        padding: 0;
        font-size: 0;
    }

    .las-nav-list[b-6hwh5knxj3]  .las-nav-label {
        display: none;
    }
}

/* Desktop (> 1024px): volle Sidebar mit Icon + Label. */
@media (min-width: 1024px) {
    .las-nav-brand[b-6hwh5knxj3] {
        justify-content: flex-start;
        padding: 1.1rem 1rem 1.35rem;
    }

    .las-nav-brand-text[b-6hwh5knxj3] {
        display: inline;
        font-weight: 800;
        font-size: 0.95rem;
    }

    .las-nav-list[b-6hwh5knxj3] {
        align-items: stretch;
        padding: 0 0.7rem;
    }

    .las-nav-list[b-6hwh5knxj3]  .las-nav-link {
        flex-direction: row;
        justify-content: flex-start;
        width: auto;
        height: auto;
        gap: 0.65rem;
        padding: 0.55rem 0.7rem;
        font-size: 0.85rem;
    }

    .las-nav-list[b-6hwh5knxj3]  .las-nav-label {
        display: inline;
        max-width: none;
    }
}
