/* ═══════════════════════════════════════════════════════════════
   edesk Portal – app.css
   Basis-Design-System
═══════════════════════════════════════════════════════════════ */

/* ─── INTER VARIABLE FONT ────────────────────────────────────── */
@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-VariableFont.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --blue-900: #0d2247;
    --blue-800: #1a3a6b;
    --blue-700: #1f4a8a;
    --blue-600: #2563b0;
    --blue-400: #5b9bd5;
    --blue-100: #dbeafe;
    --blue-50:  #eff6ff;

    --white:    #ffffff;
    --gray-50:  #f8fafd;
    --gray-100: #f0f4f9;
    --gray-200: #e2e9f3;
    --gray-400: #9aabbf;
    --gray-600: #5a6e82;
    --gray-800: #2a3a4a;
    --gray-900: #1a2535;

    --green-bg:   #e4f5ee;
    --green-text: #1a7a4a;
    --amber-bg:   #fff4e0;
    --amber-text: #8a5a00;
    --red-bg:     #fde8e8;
    --red-text:   #9b1c1c;

    --sidebar-width: 240px;
    --topbar-height: 56px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);

    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: 0.2s ease;
}

html, body {
    height: 100%;
    font-family: var(--font);
    font-size: 15px;
    color: var(--gray-800);
    background: var(--blue-800);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

/* ─── LAYOUT ────────────────────────────────────────────────── */
.app-shell { display: flex; min-height: 100vh; }

/* ─── SIDEBAR ───────────────────────────────────────────────── */
.sidebar {
    position: fixed; top: 0; left: 0;
    width: var(--sidebar-width); height: 100vh;
    background: var(--blue-800);
    display: flex; flex-direction: column;
    z-index: 300;
    transform: translateX(-100%);
    transition: transform var(--transition);
    overflow-y: auto;
}
.sidebar.open { transform: translateX(0); box-shadow: var(--shadow-md); }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 200; }
.sidebar-overlay.show { display: block; }

.sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px; border-bottom: none; }
.sidebar-logo { display: flex; align-items: center; gap: 10px; }
.sidebar-logo-icon { width: 32px; height: 32px; background: rgba(255,255,255,0.18); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sidebar-logo-icon svg { width: 18px; height: 18px; }
.logo-text { font-size: 15px; font-weight: 400; color: rgba(255,255,255,0.85); letter-spacing: 0.3px; }
.sidebar-close { background: none; border: none; width: 30px; height: 30px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; color: rgba(255,255,255,0.7); }
.sidebar-close:hover { background: rgba(255,255,255,0.12); }
.sidebar-close svg { width: 16px; height: 16px; }

.sidebar-org-badge { display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(255,255,255,0.55); padding: 4px 14px 8px; }
.sidebar-netz-badge { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.7); padding: 4px 14px 10px; }
.sidebar-netz-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.sidebar-org-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

.sidebar-nav { flex: 1; padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid rgba(255,255,255,0.08); }
.nav-section-label { font-size: 10px; color: rgba(255,255,255,0.38); text-transform: uppercase; letter-spacing: 1px; padding: 12px 8px 4px; font-weight: 500; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); color: rgba(255,255,255,0.65); font-size: 13.5px; cursor: pointer; transition: background var(--transition), color var(--transition); text-decoration: none; font-weight: 400; }
.nav-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-item.active { background: rgba(255,255,255,0.18); color: #fff; font-weight: 500; }
.nav-icon { width: 18px; height: 18px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.nav-icon svg { width: 18px; height: 18px; }
.nav-badge { margin-left: auto; background: #dc2626; color: #fff; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }

.sidebar-footer { border-top: 1px solid rgba(255,255,255,0.1); padding: 10px 8px; }
.user-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.22); color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 13px; color: #fff; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: rgba(255,255,255,0.45); }
.logout-btn { width: 28px; height: 28px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); background: none; border: none; cursor: pointer; }
.logout-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.logout-btn svg { width: 16px; height: 16px; }
.logout-form { display: flex; }

/* ─── MAIN ──────────────────────────────────────────────────── */
.main-wrap { flex: 1; display: flex; flex-direction: column; min-height: 100vh; padding: 10px; gap: 10px; }

/* ─── TOPBAR ────────────────────────────────────────────────── */
.topbar { height: var(--topbar-height); display: flex; align-items: center; justify-content: space-between; padding: 0 4px; flex-shrink: 0; }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.hamburger { width: 36px; height: 36px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.12); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; color: rgba(255,255,255,0.85); }
.hamburger:hover { background: rgba(255,255,255,0.2); }
.hamburger svg { width: 18px; height: 18px; }

/* Titel + Untertitel untereinander */
.topbar-title-wrap { display: flex; flex-direction: column; gap: 1px; }
.topbar-title { font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.95); line-height: 1.25; letter-spacing: -0.1px; }
.topbar-subtitle { font-size: 11.5px; color: rgba(255,255,255,0.45); font-weight: 400; line-height: 1.3; }

.topbar-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 34px; height: 34px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.12); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; color: rgba(255,255,255,0.8); }
.icon-btn:hover { background: rgba(255,255,255,0.2); }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn-wrap { position: relative; display: inline-flex; }
.topbar-badge { position: absolute; top: -4px; right: -4px; background: #dc2626; color: #fff; font-size: 9px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ─── CONTENT CARD ───────────────────────────────────────────── */
.content-card { flex: 1; background: var(--white); border-radius: var(--radius-xl); padding: 24px; overflow-y: auto; }

/* ─── CONTENT ELEMENTS ───────────────────────────────────────── */
.content-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.content-heading { font-size: 20px; font-weight: 600; color: var(--gray-900); letter-spacing: -0.2px; }
.content-subheading { font-size: 13px; color: var(--gray-600); margin-top: 2px; }

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; cursor: pointer; border: none; transition: opacity var(--transition), transform var(--transition); font-family: var(--font); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--blue-800); color: #fff; }
.btn-primary:hover { opacity: 0.88; }
.btn-secondary { background: var(--gray-100); color: var(--gray-800); border: 1px solid var(--gray-200); }
.btn-secondary:hover { background: var(--gray-200); }
.btn-danger { background: var(--red-bg); color: var(--red-text); }
.btn-danger:hover { opacity: 0.88; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 11px 22px; font-size: 14px; }

/* ─── FORMS ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--gray-800); margin-bottom: 5px; }
.form-label.required::after { content: ' *'; color: #dc2626; }
.form-control { width: 100%; padding: 9px 12px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 14px; color: var(--gray-800); background: #fff; transition: border-color var(--transition), box-shadow var(--transition); outline: none; font-family: var(--font); }
.form-control:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37,99,176,0.12); }
.form-control.is-invalid { border-color: #dc2626; }
.form-error { font-size: 12px; color: #dc2626; margin-top: 4px; display: block; }
.form-hint { font-size: 12px; color: var(--gray-600); margin-top: 4px; display: block; }
.form-section { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--gray-200); }
.form-section:last-child { border-bottom: none; }
.form-section-title { font-size: 14px; font-weight: 600; color: var(--gray-900); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* ─── ALERTS ─────────────────────────────────────────────────── */
.alert { border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.alert-info    { background: var(--blue-50);  color: var(--blue-700);  border-left: 3px solid var(--blue-600); }
.alert-success { background: var(--green-bg); color: var(--green-text); border-left: 3px solid #1a7a4a; }
.alert-error   { background: var(--red-bg);   color: var(--red-text);   border-left: 3px solid #9b1c1c; }
.alert-warning { background: var(--amber-bg); color: var(--amber-text); border-left: 3px solid #d97706; }

/* ─── BADGES ─────────────────────────────────────────────────── */
.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.badge-green  { background: var(--green-bg); color: var(--green-text); }
.badge-amber  { background: var(--amber-bg); color: var(--amber-text); }
.badge-red    { background: var(--red-bg);   color: var(--red-text); }
.badge-gray   { background: var(--gray-100); color: var(--gray-600); }
.badge-blue   { background: var(--blue-50);  color: var(--blue-700); }

/* ─── TABLES ─────────────────────────────────────────────────── */
.table-wrap { border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 400px; }
.data-table th { background: var(--gray-50); padding: 9px 14px; text-align: left; font-weight: 500; color: var(--gray-600); font-size: 12px; border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
.data-table td { padding: 10px 14px; color: var(--gray-800); border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--gray-50); }
.data-table a:hover { color: var(--blue-600); }

/* ─── GLOCKE / BENACHRICHTIGUNGEN ─────────────────────────────── */
.glocke-popup { display: none; position: fixed; top: calc(var(--topbar-height) + 16px); right: 12px; width: calc(100vw - 24px); max-width: 360px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 0.5px solid var(--gray-200); z-index: 500; overflow: hidden; }
.glocke-popup.show { display: block; }
.glocke-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--gray-200); }
.glocke-title { font-size: 14px; font-weight: 600; color: var(--gray-900); }
.glocke-action-btn { font-size: 11px; color: var(--blue-600); background: none; border: none; cursor: pointer; padding: 3px 6px; border-radius: 4px; }
.glocke-action-btn:hover { background: var(--gray-100); }
.glocke-list { max-height: 360px; overflow-y: auto; }
.glocke-item { padding: 11px 14px; border-bottom: 0.5px solid var(--gray-100); cursor: pointer; transition: background var(--transition); }
.glocke-item:hover { background: var(--gray-50); }
.glocke-item.ungelesen { background: var(--blue-50); border-left: 3px solid var(--blue-600); }
.glocke-item-text { font-size: 13px; color: var(--gray-800); line-height: 1.4; margin-bottom: 3px; }
.glocke-item-zeit { font-size: 11px; color: var(--gray-400); }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.app-footer { text-align: center; font-size: 11px; color: rgba(255,255,255,0.3); padding: 6px 0 4px; flex-shrink: 0; }

/* ─── LOGIN ──────────────────────────────────────────────────── */
.login-body { background: var(--blue-900); }
.login-shell { min-height: 100vh; display: flex; }
.login-card { width: 100%; max-width: 420px; background: #fff; padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; min-height: 100vh; }
.login-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
.login-logo-icon { width: 40px; height: 40px; background: var(--blue-800); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.login-logo-text { font-size: 20px; font-weight: 700; color: var(--blue-800); }
.login-heading { font-size: 22px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; letter-spacing: -0.3px; }
.login-sub { font-size: 14px; color: var(--gray-600); margin-bottom: 28px; }
.login-btn { width: 100%; padding: 11px; background: var(--blue-800); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity var(--transition); font-family: var(--font); }
.login-btn:hover { opacity: 0.88; }
.login-footer { text-align: center; font-size: 12px; color: var(--gray-400); margin-top: 24px; }
.login-link { font-size: 12px; color: var(--blue-600); }
.login-link:hover { text-decoration: underline; }
.password-wrap { position: relative; }
.password-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--gray-400); padding: 4px; }
.password-toggle:hover { color: var(--gray-800); }
.login-info-panel { flex: 1; background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 100%); display: none; align-items: center; justify-content: center; padding: 60px; }
.login-info-content h2 { font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 12px; letter-spacing: -0.3px; }
.login-info-content p { font-size: 15px; color: rgba(255,255,255,0.65); margin-bottom: 36px; line-height: 1.6; }
.login-feature-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.login-feature-list li { display: flex; align-items: flex-start; gap: 14px; }
.feature-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.12); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-icon svg { width: 18px; height: 18px; }
.login-feature-list li div { display: flex; flex-direction: column; gap: 3px; }
.login-feature-list strong { font-size: 14px; color: #fff; font-weight: 600; }
.login-feature-list span { font-size: 13px; color: rgba(255,255,255,0.55); }

/* ─── REGISTRIERUNGS-FORMULAR ────────────────────────────────── */
.register-shell { min-height: 100vh; background: var(--blue-900); display: flex; align-items: flex-start; justify-content: center; padding: 40px 20px; }
.register-card { width: 100%; max-width: 680px; background: #fff; border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-lg); }
.register-header { text-align: center; margin-bottom: 32px; }
.register-typ-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--blue-50); color: var(--blue-700); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; }
.register-header h1 { font-size: 22px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; letter-spacing: -0.2px; }
.register-header p { font-size: 14px; color: var(--gray-600); }

.upload-area { border: 2px dashed var(--gray-200); border-radius: var(--radius-md); padding: 20px; text-align: center; cursor: pointer; transition: border-color var(--transition), background var(--transition); }
.upload-area:hover { border-color: var(--blue-400); background: var(--blue-50); }
.upload-area-icon { font-size: 28px; margin-bottom: 6px; }
.upload-area-text { font-size: 13px; color: var(--gray-600); }
.upload-area-hint { font-size: 11px; color: var(--gray-400); margin-top: 3px; }
.upload-preview { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--green-bg); border-radius: var(--radius-sm); margin-top: 8px; }
.upload-preview-name { font-size: 12px; color: var(--green-text); flex: 1; }

/* ─── STEP INDICATOR ─────────────────────────────────────────── */
.step-indicator { display: flex; align-items: center; gap: 0; margin-bottom: 32px; }
.step { display: flex; align-items: center; gap: 8px; flex: 1; }
.step-nr { width: 28px; height: 28px; border-radius: 50%; background: var(--gray-200); color: var(--gray-600); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step.aktiv .step-nr { background: var(--blue-600); color: #fff; }
.step.erledigt .step-nr { background: var(--green-text); color: #fff; }
.step-label { font-size: 12px; color: var(--gray-600); }
.step.aktiv .step-label { color: var(--blue-600); font-weight: 500; }
.step-linie { flex: 1; height: 1px; background: var(--gray-200); margin: 0 4px; }

/* ─── DASHBOARD ──────────────────────────────────────────────── */
.dashboard-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.dash-card { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 10px; border-bottom: 1px solid var(--gray-200); background: #fff; }
.dash-card-title { font-size: 12px; font-weight: 600; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.6px; }
.dash-card-link { font-size: 12px; color: var(--blue-600); }
.dash-card-link:hover { text-decoration: underline; }
.dash-card-body { padding: 12px 16px; }
.dash-empty { font-size: 13px; color: var(--gray-400); text-align: center; padding: 20px 0; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 14px 16px; }
.stat-val { font-size: 28px; font-weight: 700; color: var(--gray-900); line-height: 1.1; letter-spacing: -0.5px; }
.stat-label { font-size: 12px; color: var(--gray-600); margin-top: 3px; }

/* ─── ANTRÄGE ────────────────────────────────────────────────── */
.antrag-status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.status-eingereicht             { background: var(--amber-bg); color: var(--amber-text); }
.status-in_pruefung             { background: var(--blue-50);  color: var(--blue-700); }
.status-nachbesserung           { background: #fce7f3; color: #9d174d; }
.status-genehmigt               { background: var(--green-bg); color: var(--green-text); }
.status-abgelehnt               { background: var(--red-bg);   color: var(--red-text); }

/* ─── DESKTOP ────────────────────────────────────────────────── */

/* ─── REGISTER / UPLOAD ─── */
.register-shell { min-height: 100vh; background: var(--blue-900); display: flex; align-items: flex-start; justify-content: center; padding: 40px 20px; }
.register-card { width: 100%; max-width: 680px; background: #fff; border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-md); }
.register-header { text-align: center; margin-bottom: 32px; }
.register-typ-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--blue-50); color: var(--blue-700); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; }
.register-header h1 { font-size: 22px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.register-header p { font-size: 14px; color: var(--gray-600); }
.upload-area { border: 2px dashed var(--gray-200); border-radius: var(--radius-md); padding: 20px; text-align: center; cursor: pointer; transition: border-color var(--transition), background var(--transition); }
.upload-area:hover { border-color: var(--blue-400); background: var(--blue-50); }
.upload-area-icon { font-size: 28px; margin-bottom: 6px; }
.upload-area-text { font-size: 13px; color: var(--gray-600); }
.upload-area-hint { font-size: 11px; color: var(--gray-400); margin-top: 3px; }
.upload-preview { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--green-bg); border-radius: var(--radius-sm); margin-top: 8px; }
.upload-preview-name { font-size: 12px; color: var(--green-text); flex: 1; }

/* ─── STEP INDICATOR ─── */
.step-indicator { display: flex; align-items: center; gap: 0; margin-bottom: 32px; }
.step { display: flex; align-items: center; gap: 8px; flex: 1; }
.step-nr { width: 28px; height: 28px; border-radius: 50%; background: var(--gray-200); color: var(--gray-600); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step.aktiv .step-nr { background: var(--blue-600); color: #fff; }
.step.erledigt .step-nr { background: var(--green-text); color: #fff; }
.step-label { font-size: 12px; color: var(--gray-600); }
.step.aktiv .step-label { color: var(--blue-600); font-weight: 500; }
.step-linie { flex: 1; height: 1px; background: var(--gray-200); margin: 0 4px; }

/* ─── FORMS EXTRA ─── */
.form-label.required::after { content: ' *'; color: #dc2626; }
.form-control { font-family: var(--font); }
.form-control.is-invalid { border-color: #dc2626; }
.form-error { font-size: 12px; color: #dc2626; margin-top: 4px; display: block; }
.form-hint { font-size: 12px; color: var(--gray-600); margin-top: 4px; display: block; }
.form-section { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--gray-200); }
.form-section:last-child { border-bottom: none; }
.form-section-title { font-size: 14px; font-weight: 600; color: var(--gray-900); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* ─── BUTTONS EXTRA ─── */
.btn { font-family: var(--font); }
.btn-danger { background: var(--red-bg); color: var(--red-text); }
.btn-danger:hover { opacity: 0.88; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 11px 22px; font-size: 14px; }
.alert-warning { background: var(--amber-bg); color: var(--amber-text); border-left: 3px solid #d97706; }

/* ─── TABLES EXTRA ─── */
.data-table { min-width: 400px; }
.data-table td { vertical-align: middle; }
.data-table a:hover { color: var(--blue-600); }

/* ─── CONTENT CARD EXTRA ─── */
.content-heading { letter-spacing: -0.2px; }
.content-subheading { font-size: 13px; color: var(--gray-600); margin-top: 2px; }

/* ─── STAT GRID ─── */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 14px 16px; }
.stat-val { font-size: 28px; font-weight: 700; color: var(--gray-900); line-height: 1.1; letter-spacing: -0.5px; }
.stat-label { font-size: 12px; color: var(--gray-600); margin-top: 3px; }

/* ─── DASHBOARD ─── */
.dashboard-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.dash-card { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 10px; border-bottom: 1px solid var(--gray-200); background: #fff; }
.dash-card-title { font-size: 12px; font-weight: 600; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.6px; }
.dash-card-link { font-size: 12px; color: var(--blue-600); }
.dash-card-link:hover { text-decoration: underline; }
.dash-card-body { padding: 12px 16px; }
.dash-empty { font-size: 13px; color: var(--gray-400); text-align: center; padding: 20px 0; }

/* ─── ANTRAG STATUS ─── */
.antrag-status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.status-eingereicht { background: var(--amber-bg); color: var(--amber-text); }
.status-in_pruefung { background: var(--blue-50); color: var(--blue-700); }
.status-nachbesserung { background: #fce7f3; color: #9d174d; }
.status-genehmigt { background: var(--green-bg); color: var(--green-text); }
.status-abgelehnt { background: var(--red-bg); color: var(--red-text); }

/* ─── FONT SMOOTHING ─── */
html, body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

@media (min-width: 768px) {
    .sidebar { transform: translateX(0); position: fixed; box-shadow: none; }
    .sidebar-close { display: none; }
    .sidebar-overlay { display: none !important; }
    .main-wrap { margin-left: var(--sidebar-width); padding: 12px 16px; }
    .hamburger { display: none; }
    .stat-grid { grid-template-columns: repeat(4, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr 1fr; }
    .login-info-panel { display: flex; }
    .login-card { min-height: auto; }
    .login-shell { align-items: center; }
}

@media (min-width: 1200px) {
    :root { --sidebar-width: 260px; }
    .stat-val { font-size: 32px; }
}
