/* DevWorld-Plattform – gemeinsame Grundstile für Portal und App-Host.
   Schrift selbst gehostet (keine externen Requests, DSGVO). */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/roboto.woff2') format('woff2');
}

html, body {
    font-family: 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Aktiver Menüpunkt wie im Netcom-Backoffice: hellgrau hinterlegt, Text blau */
.dw-shell .mud-nav-link.active:not(.mud-nav-link-disabled) {
    background-color: #eceff3;
    color: var(--mud-palette-primary);
    font-weight: 500;
}
.dw-shell .mud-nav-link.active:not(.mud-nav-link-disabled) .mud-nav-link-icon {
    color: var(--mud-palette-primary);
}
.dw-shell .mud-nav-link { padding-top: 10px; padding-bottom: 10px; }
.dw-shell .mud-drawer { border-right: 1px solid var(--mud-palette-lines-default); }

/* Seitenkopf: Titel links, Aktionen rechts */
.dw-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

/* Tabellen mit Spaltenlinien wie im Vorbild */
.dw-grid .mud-table-cell + .mud-table-cell { border-left: 1px solid var(--mud-palette-table-lines); }
.dw-grid .mud-table-head .mud-table-cell { font-weight: 500; }

/* Kontoseiten: zentrierte Karte */
.dw-auth { display: flex; justify-content: center; padding: 32px 16px 48px; }
.dw-auth > .mud-paper { width: min(100%, 440px); }

/* Statische Formulare (ohne Blazor-Interaktivität) im MudBlazor-"Outlined"-Look */
.dw-field { position: relative; }
.dw-field .dw-label {
    position: absolute; top: 0; left: 10px; transform: translateY(-50%); z-index: 1;
    padding: 0 4px; background: #fff; font-size: .75rem; line-height: 1.2; color: rgba(0,0,0,.6);
}
.dw-field:focus-within .dw-label { color: var(--mud-palette-primary, #1976d2); }
.dw-input {
    width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 14px;
    font: inherit; font-size: 1rem; color: rgba(0,0,0,.87); background: #fff;
    border: 1px solid rgba(0,0,0,.23); border-radius: 4px; outline: none;
}
.dw-input:hover { border-color: rgba(0,0,0,.87); }
.dw-input:focus { border-color: var(--mud-palette-primary, #1976d2); box-shadow: inset 0 0 0 1px var(--mud-palette-primary, #1976d2); }
.dw-error { display: block; margin: 3px 14px 0; font-size: .75rem; color: #d32f2f; }
.dw-check { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: rgba(0,0,0,.87); }
.dw-check input { width: 18px; height: 18px; accent-color: var(--mud-palette-primary, #1976d2); }
.dw-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 16px;
    font: inherit; font-size: .875rem; font-weight: 500; letter-spacing: .02857em; text-transform: uppercase;
    border-radius: 4px; border: 1px solid rgba(25,118,210,.5); background: transparent; color: #1976d2; cursor: pointer;
}
.dw-btn--primary {
    border-color: transparent; background: var(--mud-palette-primary, #1976d2); color: #fff;
    box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12);
}
.dw-btn--primary:hover { background: #1565c0; }
.dw-btn--block { width: 100%; }
