/* ============================================================
   edesk.smO — Hauptstylesheet
   CSS-Variablen werden per Smarty im <head> gesetzt:
   --prim, --sek, --hell (je nach Netzgebiet / Benutzer)
   ============================================================ */

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

html { font-size: 16px; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #f0f2f5;
  color: #1a1a1a;
  line-height: 1.5;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
input, select, textarea, button { font-family: inherit; font-size: 14px; }

/* ---- LOGIN ---- */
.login-body { background: var(--prim, #1a3a6b); display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-bg { position: fixed; inset: 0; z-index: 0; background: var(--prim, #1a3a6b);
  background-image: repeating-linear-gradient(0deg,transparent,transparent 40px,rgba(255,255,255,.04) 40px,rgba(255,255,255,.04) 41px),
                    repeating-linear-gradient(90deg,transparent,transparent 40px,rgba(255,255,255,.04) 40px,rgba(255,255,255,.04) 41px); }
.login-wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; max-width: 400px; padding: 20px; }
.login-net-selector { display: flex; gap: 8px; }
.net-sel-btn { padding: 6px 16px; border-radius: 20px; border: 1.5px solid rgba(255,255,255,.3); color: rgba(255,255,255,.8); font-size: 12px; font-weight: 700; letter-spacing: .5px; transition: all .2s; }
.net-sel-btn:hover, .net-sel-btn.active { border-color: transparent; }
.login-card { background: #fff; border-radius: 14px; padding: 36px 40px; width: 100%; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.login-logo { text-align: center; margin-bottom: 28px; }
.login-app-name { font-size: 26px; font-weight: 800; letter-spacing: -1px; }
.login-brand-e { color: var(--prim, #1a3a6b); }
.login-brand-dot { color: #e74c3c; }
.login-brand-smo { font-size: 18px; color: #888; font-weight: 400; }
.login-netz-badge { display: inline-block; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .5px; padding: 4px 14px; border-radius: 20px; margin-top: 8px; }
.login-form .form-group { margin-bottom: 18px; }
.login-form label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #555; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .4px; }
.login-form input { width: 100%; padding: 11px 14px; border: 1.5px solid #ddd; border-radius: 8px; outline: none; transition: border-color .2s; }
.login-form input:focus { border-color: var(--prim, #1a3a6b); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 42px; }
.pw-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #aaa; cursor: pointer; padding: 4px; }
.btn-login { width: 100%; padding: 13px; border: none; border-radius: 9px; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: opacity .2s; }
.btn-login:hover { opacity: .88; }
.login-footer { margin-top: 20px; text-align: center; font-size: 11px; color: #bbb; }

/* ---- TOPBAR ---- */
.topbar { background: var(--prim, #1a3a6b); color: #fff; height: 54px; display: flex; align-items: center; padding: 0 20px; gap: 14px; position: sticky; top: 0; z-index: 200; }
.sidebar-toggle { background: none; border: none; color: rgba(255,255,255,.7); font-size: 20px; cursor: pointer; padding: 4px; display: flex; }
.topbar-brand { font-size: 18px; font-weight: 800; letter-spacing: -0.5px; flex: 1; }
.topbar-brand { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; flex: 1; color: #fff; text-decoration: none; }
.tb-brand-dot { color: #fff; opacity: .5; }
.tb-brand-cloud { font-size: 14px; font-weight: 400; opacity: .75; }
.topbar-netz-badge { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 20px; letter-spacing: .3px; }
.topbar-netz-name { font-weight: 400; opacity: .85; }
.topbar-right { display: flex; align-items: center; gap: 10px; }

/* Notif */
.notif-wrap { position: relative; }
.notif-btn { background: rgba(255,255,255,.12); border: none; color: #fff; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; position: relative; }
.notif-count { position: absolute; top: 2px; right: 2px; background: #e74c3c; color: #fff; width: 16px; height: 16px; border-radius: 50%; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--prim, #1a3a6b); }
.notif-dropdown { position: absolute; top: 44px; right: 0; width: 320px; background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.14); z-index: 500; display: none; }
.notif-dropdown.open { display: block; }
.notif-drop-header { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; font-size: 13px; font-weight: 600; color: #222; display: flex; justify-content: space-between; align-items: center; }
.notif-alle { font-size: 12px; color: var(--prim, #1a3a6b); }
.notif-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #f8f8f8; }
.notif-ungelesen { background: #fafcff; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.notif-dot-neues_thema { background: var(--prim, #1a3a6b); }
.notif-dot-aenderung  { background: #e67e22; }
.notif-dot-warnung    { background: #e67e22; }
.notif-dot-fehler     { background: #e74c3c; }
.notif-dot-info       { background: #3498db; }
.notif-body { flex: 1; }
.notif-titel { font-size: 13px; font-weight: 600; color: #222; }
.notif-zeit  { font-size: 11px; color: #aaa; margin-top: 2px; }
.notif-leer  { padding: 20px; text-align: center; font-size: 13px; color: #aaa; }

/* User chip */
.topbar-user { position: relative; }
.topbar-user-btn { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 4px 10px 4px 4px; cursor: pointer; color: #fff; }
.topbar-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0; }
.topbar-user-info { display: flex; flex-direction: column; }
.topbar-user-name  { font-size: 13px; font-weight: 600; }
.topbar-user-rolle { font-size: 11px; opacity: .7; }
.topbar-user-menu  { position: absolute; top: 50px; right: 0; background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.15); min-width: 220px; display: none; z-index: 400; overflow: hidden; }
.topbar-user-menu.open { display: block; }
.tum-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.tum-divider { height: 1px; background: #f0f0f0; margin: 0; }
.tum-item { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: 13px; color: #444; text-decoration: none; }
.tum-item:hover { background: #f5f5f5; }
.tum-logout { color: #e74c3c !important; }
.tum-logout:hover { background: #fdecea !important; }
.tum-badge { margin-left: auto; background: #e74c3c; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px; }

/* ---- LAYOUT ---- */
.app-container { display: flex; min-height: calc(100vh - 54px); }

/* ---- SIDEBAR ---- */
.sidebar { width: 230px; background: #fff; border-right: 1px solid #ebebeb; display: flex; flex-direction: column; flex-shrink: 0; transition: width .25s; }
.sidebar.collapsed { width: 56px; overflow: hidden; }
.sidebar-inner { flex: 1; padding: 16px 0 8px; overflow-y: auto; }
.nav-group { padding: 0 10px; margin-bottom: 10px; }
.nav-group-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #c0c0c0; padding: 0 8px; margin-bottom: 4px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 13px; color: #4a4a4a; cursor: pointer; transition: all .15s; position: relative; }
.nav-item i { font-size: 17px; width: 20px; text-align: center; flex-shrink: 0; }
.nav-item:hover { background: var(--hell, #e8f0fb); color: var(--prim, #1a3a6b); }
.nav-item.active { background: var(--hell, #e8f0fb); color: var(--prim, #1a3a6b); font-weight: 600; }
.nav-item.active::before { content: ''; position: absolute; left: 0; top: 5px; bottom: 5px; width: 3px; background: var(--prim, #1a3a6b); border-radius: 0 3px 3px 0; }
.nav-badge { margin-left: auto; background: var(--prim, #1a3a6b); color: #fff; font-size: 10px; padding: 2px 7px; border-radius: 20px; font-weight: 700; }
.nav-badge-warn { background: #e67e22 !important; }
.sidebar-footer { border-top: 1px solid #f0f0f0; padding: 10px 12px; }
.sidebar-user-card { display: flex; align-items: center; gap: 9px; }
.sidebar-avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0; }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name  { font-size: 12px; font-weight: 600; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-rolle { font-size: 11px; color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user-actions { display: flex; gap: 2px; }
.sb-action-btn { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 15px; transition: all .15s; }
.sb-action-btn:hover { background: #f0f0f0; color: #555; }
.sb-logout-btn:hover { background: #fdecea !important; color: #e74c3c !important; }

/* ---- MAIN CONTENT ---- */
.main-content { flex: 1; padding: 24px 28px; overflow-x: auto; }
/* ---- BREADCRUMB ---- */
.breadcrumb-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; padding-left: 0; margin-left: -4px; }
.bc-home { color: #bbb; font-size: 16px; display: flex; align-items: center; transition: color .15s; }
.bc-home:hover { color: var(--prim, #1a3a6b); }
.bc-sep { color: #ddd; font-size: 13px; display: flex; align-items: center; }
.bc-group { font-size: 13px; color: #bbb; }
.bc-link { font-size: 13px; color: var(--prim, #1a3a6b); font-weight: 500; }
.bc-link:hover { text-decoration: underline; }
.bc-current { font-size: 13px; color: #333; font-weight: 600; }

/* ---- PAGE HEADER ---- */
.page-header { margin-bottom: 20px; }
.page-header h1 { font-size: 22px; font-weight: 700; color: #111; }
.page-header p  { font-size: 13px; color: #888; margin-top: 4px; display: flex; align-items: center; gap: 8px; }

/* ---- SECTION HEADER ---- */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-header h2 { font-size: 16px; font-weight: 600; color: #222; }
.section-link { font-size: 13px; display: flex; align-items: center; gap: 4px; }

/* ---- STATS ---- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: 10px; padding: 16px 18px; border: 1px solid #eee; border-left: 3px solid var(--prim, #1a3a6b); }
.stat-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #999; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 700; }
.stat-sub   { font-size: 11px; color: #aaa; margin-top: 4px; }

/* ---- TERMIN LIST ---- */
.termin-list { display: flex; flex-direction: column; gap: 10px; }
.termin-row { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 10px; padding: 14px 16px; border: 1px solid #eee; border-left: 3px solid var(--prim, #1a3a6b); }
.termin-netz-tag { font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px; flex-shrink: 0; }
.termin-info { flex: 1; min-width: 0; }
.termin-titel   { font-size: 14px; font-weight: 600; color: #111; }
.termin-strecke { font-size: 12px; color: #888; margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.termin-meta { text-align: right; flex-shrink: 0; }
.termin-datum { font-size: 13px; font-weight: 600; color: #333; }
.termin-zeit  { font-size: 12px; color: #888; }
.termin-status { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; flex-shrink: 0; }
.status-geplant      { background: #e8f4fd; color: #2980b9; }
.status-bestaetigt   { background: #e8f8f0; color: #27ae60; }
.status-in_arbeit    { background: #fdf3e8; color: #e67e22; }
.status-abgeschlossen{ background: #f0f0f0; color: #888; }
.status-storniert    { background: #fdecea; color: #e74c3c; }
.termin-edit-btn { color: #aaa; font-size: 16px; display: flex; align-items: center; padding: 4px; border-radius: 6px; transition: all .15s; }
.termin-edit-btn:hover { color: var(--prim, #1a3a6b); background: var(--hell, #e8f0fb); }

/* ---- KALENDER ---- */
.kal-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.kal-nav-titel { font-size: 16px; font-weight: 600; color: #222; min-width: 160px; text-align: center; }
.kal-legende { display: flex; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.kal-leg-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #555; }
.kal-leg-dot  { width: 12px; height: 12px; border-radius: 3px; }
.kalender-wrap { background: #fff; border-radius: 12px; border: 1px solid #eee; overflow: hidden; }
.kal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.kal-head { background: #f8f8f8; text-align: center; font-size: 11px; font-weight: 700; color: #999; padding: 10px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid #eee; }
.kal-cell { min-height: 80px; padding: 6px 8px; border-right: 1px solid #f5f5f5; border-bottom: 1px solid #f5f5f5; }
.kal-cell:nth-child(7n) { border-right: none; }
.kal-cell-other { background: #fafafa; }
.kal-cell-heute { border: 2px solid var(--prim, #1a3a6b); }
.kal-cell-num { font-size: 13px; font-weight: 600; color: #333; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin-bottom: 3px; }
.kal-cell-num-heute { color: #fff; }
.kal-cell-other .kal-cell-num { color: #ccc; }
.kal-termin { display: block; font-size: 10px; padding: 2px 6px; border-radius: 4px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kal-termin:hover { opacity: .8; }

/* ---- STRECKEN ---- */
.filter-bar { display: flex; gap: 8px; margin-bottom: 16px; }
.filter-btn { padding: 6px 16px; border-radius: 20px; border: 1.5px solid #ddd; font-size: 12px; font-weight: 600; color: #555; transition: all .2s; }
.filter-btn:hover { border-color: var(--prim, #1a3a6b); color: var(--prim, #1a3a6b); }
.strecken-list { display: flex; flex-direction: column; gap: 10px; }
.strecke-card { background: #fff; border-radius: 10px; border: 1px solid #eee; padding: 16px 18px; border-left: 3px solid var(--prim, #1a3a6b); }
.strecke-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.netz-tag { font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px; flex-shrink: 0; }
.strecke-route { font-size: 14px; font-weight: 600; flex: 1; display: flex; align-items: center; gap: 6px; }
.strecke-edit-btn { font-size: 12px; color: var(--prim, #1a3a6b); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.strecke-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.strecke-meta-item strong { font-size: 15px; font-weight: 700; color: #111; display: block; }
.strecke-meta-item span   { font-size: 11px; color: #999; }

/* ---- FORMS ---- */
.form-card { background: #fff; border-radius: 12px; border: 1px solid #eee; padding: 24px 28px; }
.form-section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #aaa; margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; }
.form-field-full { margin-bottom: 16px; }
.form-field label { font-size: 12px; font-weight: 600; color: #555; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .3px; display: flex; align-items: center; gap: 4px; }
.req { color: #e74c3c; }
.form-field input,
.form-field select,
.form-field textarea { width: 100%; padding: 10px 13px; border: 1.5px solid #ddd; border-radius: 8px; outline: none; transition: border-color .2s; background: #fff; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--prim, #1a3a6b); }
.form-field textarea { resize: vertical; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 24px; flex-wrap: wrap; }

/* ---- BUTTONS ---- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: opacity .2s; }
.btn-primary { color: #fff; }
.btn-primary:hover { opacity: .88; }
.btn-outline  { background: #fff; color: #555; border: 1.5px solid #ddd; }
.btn-outline:hover { border-color: var(--prim, #1a3a6b); color: var(--prim, #1a3a6b); }
.btn-success  { background: #27ae60; color: #fff; }
.btn-danger   { background: #e74c3c; color: #fff; margin-left: auto; }
.btn-sm       { padding: 6px 12px; font-size: 12px; }

/* ---- MELDUNGEN ---- */
.meldung-list { display: flex; flex-direction: column; gap: 6px; }
.meldung-row  { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-radius: 8px; border: 1px solid #f0f0f0; }
.meldung-dot  { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.meldung-dot-neues_thema { background: var(--prim, #1a3a6b); }
.meldung-dot-aenderung   { background: #e67e22; }
.meldung-dot-read        { background: #ddd; }
.meldung-info { flex: 1; min-width: 0; }
.meldung-info strong { font-size: 13px; color: #222; display: block; }
.meldung-info span   { font-size: 12px; color: #888; }
.meldung-zeit { font-size: 11px; color: #bbb; flex-shrink: 0; }
.meldung-list-full { display: flex; flex-direction: column; gap: 8px; }
.meldung-card { display: flex; gap: 14px; background: #fff; border-radius: 10px; border: 1px solid #eee; padding: 14px 16px; align-items: flex-start; }
.meldung-ungelesen { border-left: 3px solid var(--prim, #1a3a6b); }
.meldung-card-icon { font-size: 20px; color: var(--prim, #1a3a6b); flex-shrink: 0; margin-top: 2px; }
.meldung-typ-warnung .meldung-card-icon, .meldung-typ-aenderung .meldung-card-icon { color: #e67e22; }
.meldung-typ-fehler  .meldung-card-icon { color: #e74c3c; }
.meldung-card-body { flex: 1; }
.meldung-card-titel { font-size: 14px; font-weight: 600; color: #111; }
.meldung-card-text  { font-size: 13px; color: #555; margin-top: 4px; }
.meldung-card-meta  { font-size: 11px; color: #aaa; margin-top: 6px; }
.meldung-card-mark  { color: #aaa; font-size: 18px; align-self: center; }
.meldung-card-mark:hover { color: #27ae60; }

/* ---- ÄNDERUNGSWÜNSCHE ---- */
.aenderung-list { display: flex; flex-direction: column; gap: 10px; }
.aenderung-card { background: #fff; border-radius: 10px; border: 1px solid #eee; padding: 16px 18px; border-left: 3px solid #ddd; }
.status-border-offen      { border-left-color: #e67e22 !important; }
.status-border-genehmigt  { border-left-color: #27ae60 !important; }
.status-border-abgelehnt  { border-left-color: #e74c3c !important; }
.aenderung-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.aenderung-info { flex: 1; display: flex; align-items: center; gap: 10px; }
.aenderung-termin-link a { font-size: 13px; font-weight: 600; color: var(--prim, #1a3a6b); display: flex; align-items: center; gap: 5px; }
.aenderung-datum { font-size: 12px; color: #999; }
.aenderung-text { font-size: 13px; color: #333; line-height: 1.6; margin-bottom: 10px; }
.aenderung-meta { font-size: 11px; color: #aaa; display: flex; gap: 14px; margin-bottom: 10px; }
.aenderung-actions { display: flex; gap: 8px; }
.status-pill { font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; flex-shrink: 0; }
.status-offen      { background: #fdf3e8; color: #e67e22; }
.status-genehmigt  { background: #e8f8f0; color: #27ae60; }
.status-abgelehnt  { background: #fdecea; color: #e74c3c; }
.status-pill-sm { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
.status-aktiv   { background: #e8f8f0; color: #27ae60; }
.status-inaktiv { background: #f0f0f0; color: #888; }

/* ---- BENUTZER TABELLE ---- */
.data-table-wrap { background: #fff; border-radius: 12px; border: 1px solid #eee; overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead { background: #f8f8f8; }
.data-table th { padding: 11px 14px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #999; border-bottom: 1px solid #eee; }
.data-table td { padding: 12px 14px; font-size: 13px; border-bottom: 1px solid #f5f5f5; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr.row-inaktiv { opacity: .5; }
.table-user-chip { display: flex; align-items: center; gap: 10px; }
.table-avatar { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; flex-shrink: 0; }
.table-action-btn { color: #aaa; font-size: 17px; padding: 4px 6px; border-radius: 6px; display: inline-flex; }
.table-action-btn:hover { color: var(--prim, #1a3a6b); background: var(--hell, #e8f0fb); }
.rolle-pill { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.rolle-admin        { background: #fdecea; color: #c0392b; }
.rolle-av           { background: #fdf3e8; color: #e67e22; }
.rolle-gruppenleiter{ background: #e8f0fb; color: #1a3a6b; }
.rolle-assistenz_gl { background: #edf0fb; color: #3a5298; }
.rolle-innendienst  { background: #e8f8f0; color: #1a6b3a; }
.rolle-buero        { background: #f0f0fb; color: #5a5aaa; }
.rolle-monteur      { background: #f5f0e8; color: #6b4a1a; }
.netz-tag-sm { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 12px; }

/* ---- ALERTS ---- */
.alert { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.alert-success { background: #e8f8f0; color: #1a6b3a; }
.alert-danger   { background: #fdecea; color: #c0392b; }
.alert-info     { background: #e8f0fb; color: #1a3a6b; }

/* ---- EMPTY STATE ---- */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 20px; color: #ccc; gap: 12px; text-align: center; }
.empty-state i  { font-size: 40px; }
.empty-state p  { font-size: 14px; color: #aaa; }

/* ---- SIDEBAR COLLAPSED ---- */
.sidebar.collapsed .nav-group-label,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .nav-badge,
.sidebar.collapsed .sidebar-user-info,
.sidebar.collapsed .topbar-netz-name { display: none; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 9px; }
.sidebar.collapsed .nav-item.active::before { display: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .sidebar { position: fixed; left: -230px; top: 54px; height: calc(100vh - 54px); z-index: 100; transition: left .25s; }
  .sidebar.open { left: 0; box-shadow: 4px 0 20px rgba(0,0,0,.1); }
  .main-content { padding: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .strecke-meta { grid-template-columns: repeat(2, 1fr); }
  .topbar-user-info, .topbar-netz-badge { display: none; }
}
