/* ============================================================
   STUBS Portal – Stylesheet
   Primärfarbe: #ef7d00 (HKS 7 K / CMYK 0/60/100/0)
   Schrift: Neo Sans Pro → Calibri → Carlito (Google Fonts)
   ============================================================ */

:root {
  --orange:       #ef7d00;
  --orange-hell:  #f9a44a;
  --orange-dunkel:#b85d00;
  --schwarz:      #000000;
  --dunkel:       #1a1a1a;
  --dunkel-nav:   #222222;
  --grau-1:       #333333;
  --grau-2:       #555555;
  --grau-3:       #888888;
  --grau-4:       #cccccc;
  --grau-5:       #f0f0f0;
  --weiss:        #ffffff;
  --gruen:        #2e7d32;
  --rot:          #c62828;
  --blau:         #1565c0;
  --gelb:         #f9a825;

  --sidebar-breite: 260px;
  --navbar-hoehe:   56px;
  --radius:         6px;
  --radius-lg:      10px;
  --schatten:       0 2px 8px rgba(0,0,0,0.12);
  --schatten-lg:    0 4px 20px rgba(0,0,0,0.16);

  font-family: 'Neo Sans Pro', 'Calibri', 'Carlito', Arial, sans-serif;
  font-size: 15px;
  color: var(--dunkel);
  background: var(--grau-5);
}

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

body { min-height: 100vh; }

/* [x-cloak] verstecken bis Alpine.js initialisiert */
[x-cloak] { display: none !important; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--navbar-hoehe);
  background: var(--dunkel-nav);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
  box-shadow: var(--schatten);
}
.navbar-left, .navbar-right {
  display: flex; align-items: center; gap: .75rem;
}
.navbar-logo img { display: block; }
.navbar-logo { display: flex; align-items: center; }

.hamburger {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; gap: 5px; padding: 6px;
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: var(--weiss);
  border-radius: 2px; transition: .2s;
}

.abteilungs-badge {
  display: flex; align-items: center; gap: .4rem;
  color: var(--grau-4); font-size: .85rem;
}
.abteilungs-dot {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 50%; flex-shrink: 0;
}
.abteilungs-dot-inline {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; vertical-align: middle; margin-right: 4px;
}

.navbar-icon-btn {
  background: none; border: none; color: var(--weiss);
  font-size: 1.2rem; cursor: pointer; position: relative;
  text-decoration: none; display: flex; align-items: center;
  padding: 4px 6px;
}
.badge-rot {
  position: absolute; top: 0; right: 0;
  background: var(--rot); color: var(--weiss);
  font-size: .65rem; border-radius: 10px; padding: 1px 5px;
  min-width: 18px; text-align: center; line-height: 1.5;
}

/* Dropdown */
.dropdown { position: relative; }
.navbar-user-btn {
  background: none; border: 1px solid rgba(255,255,255,.2);
  color: var(--weiss); padding: .35rem .75rem;
  border-radius: var(--radius); cursor: pointer;
  display: flex; align-items: center; gap: .4rem;
  font-family: inherit; font-size: .9rem;
  transition: background .15s;
}
.navbar-user-btn:hover { background: rgba(255,255,255,.1); }
.dropdown-arrow { font-size: .75rem; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--weiss); border: 1px solid var(--grau-4);
  border-radius: var(--radius); box-shadow: var(--schatten-lg);
  min-width: 200px; overflow: hidden; z-index: 2000;
}
.dropdown-item {
  display: block; padding: .65rem 1rem;
  color: var(--dunkel); text-decoration: none; font-size: .9rem;
  transition: background .12s;
}
.dropdown-item:hover { background: var(--grau-5); }
.dropdown-item--danger { color: var(--rot); }
.dropdown-item--danger:hover { background: #ffeaea; }
.dropdown-divider { border-top: 1px solid var(--grau-4); margin: .25rem 0; }

/* ===== SIDEBAR ===== */
.sidebar-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(0,0,0,.4);
}
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 950;
  width: var(--sidebar-breite);
  background: var(--dunkel);
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform .25s ease;
  overflow-y: auto;
}
.sidebar--offen { transform: translateX(0); }

.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  min-height: var(--navbar-hoehe);
}
.sidebar-close {
  background: none; border: none; color: var(--grau-3);
  font-size: 1.1rem; cursor: pointer; padding: 4px 8px;
}
.sidebar-close:hover { color: var(--weiss); }

.sidebar-nav { flex: 1; padding: .5rem 0; }
.sidebar-link {
  display: flex; align-items: center; gap: .6rem;
  padding: .65rem 1.2rem;
  color: var(--grau-4); text-decoration: none;
  font-size: .9rem; transition: background .12s, color .12s;
}
.sidebar-link:hover { background: rgba(255,255,255,.07); color: var(--weiss); }
.sidebar-link--aktiv {
  background: rgba(239,125,0,.15); color: var(--orange);
  border-left: 3px solid var(--orange);
}
.sidebar-link--home { color: var(--grau-3); font-size: .85rem; padding-top: .9rem; }
.sidebar-link--logout { color: var(--rot); }

.sidebar-gruppe { margin-top: .5rem; }
.sidebar-gruppenname {
  display: block; padding: .4rem 1.2rem .2rem;
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--grau-3);
}

.sidebar-footer {
  padding: .75rem 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-superadmin-badge {
  display: block; text-align: center; margin-top: .5rem;
  font-size: .7rem; background: var(--orange); color: var(--weiss);
  border-radius: var(--radius); padding: 2px 8px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-top: var(--navbar-hoehe);
  padding: 1.5rem 2rem;
  min-height: calc(100vh - var(--navbar-hoehe));
}
.main-content--fullwidth { max-width: 100%; }

/* ===== LOGIN ===== */
.login-body {
  background: var(--dunkel-nav);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; min-height: 100vh;
}
.login-wrapper {
  width: 100%; max-width: 420px; padding: 1rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.login-card {
  background: var(--weiss); border-radius: var(--radius-lg);
  box-shadow: var(--schatten-lg); padding: 2.5rem 2rem; width: 100%;
}
.login-logo { text-align: center; margin-bottom: 1rem; }
.login-title {
  font-size: 1.6rem; font-weight: 700; color: var(--orange);
  text-align: center; margin-bottom: .25rem;
}
.login-subtitle {
  text-align: center; color: var(--grau-2); margin-bottom: 1.5rem; font-size: .9rem;
}
.login-form { display: flex; flex-direction: column; gap: 1rem; }
.login-footer { color: var(--grau-3); font-size: .8rem; }

/* ===== SEITEN-HEADER ===== */
.seiten-kopf {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; flex-wrap: wrap; gap: .75rem;
}
.seiten-titel { font-size: 1.5rem; font-weight: 700; color: var(--dunkel); }
.seiten-untertitel { color: var(--grau-2); font-size: .95rem; margin-top: .2rem; }
.seiten-info { color: var(--grau-3); font-size: .9rem; }

/* ===== KARTEN ===== */
.karte {
  background: var(--weiss); border-radius: var(--radius-lg);
  box-shadow: var(--schatten); padding: 1.5rem; margin-bottom: 1.5rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1.1rem; border-radius: var(--radius);
  font-family: inherit; font-size: .9rem; font-weight: 600;
  border: none; cursor: pointer; text-decoration: none;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--orange); color: var(--weiss); }
.btn--primary:hover { background: var(--orange-dunkel); }
.btn--sekundaer {
  background: var(--grau-5); color: var(--dunkel);
  border: 1px solid var(--grau-4);
}
.btn--sekundaer:hover { background: var(--grau-4); }
.btn--gefahr { background: var(--rot); color: var(--weiss); }
.btn--gefahr:hover { background: #a81c1c; }
.btn--klein { padding: .3rem .7rem; font-size: .82rem; }
.btn--full { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ===== FORMULARE ===== */
.form-grid { display: flex; flex-direction: column; gap: 1rem; }
.form-grid-2col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  align-items: start;
}
.form-sektion { }
.form-sektion--voll { grid-column: 1 / -1; }
.form-sektion-titel {
  font-size: 1rem; font-weight: 700; color: var(--grau-1);
  margin-bottom: 1rem; padding-bottom: .5rem;
  border-bottom: 2px solid var(--orange);
}
.form-gruppe { display: flex; flex-direction: column; gap: .35rem; }
.form-gruppe--inline { flex-direction: row; align-items: center; gap: .6rem; }
.form-label { font-size: .87rem; font-weight: 600; color: var(--grau-2); }
.form-label--inline { font-weight: 400; }
.form-input, .form-select {
  padding: .5rem .75rem; border: 1px solid var(--grau-4);
  border-radius: var(--radius); font-family: inherit; font-size: .93rem;
  transition: border-color .15s, box-shadow .15s;
  background: var(--weiss); color: var(--dunkel);
}
.form-input:focus, .form-select:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(239,125,0,.15);
}
.form-hinweis { font-size: .8rem; color: var(--grau-3); }
.form-aktionen { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .5rem; }
.pflicht { color: var(--orange); }

/* Passwort-Stärke */
.pw-staerke-leiste {
  height: 4px; background: var(--grau-4); border-radius: 2px; overflow: hidden;
}
.pw-staerke-balken {
  height: 100%; border-radius: 2px; transition: width .3s, background .3s;
}
.pw--schwach { background: var(--rot); }
.pw--mittel { background: var(--gelb); }
.pw--stark { background: var(--orange); }
.pw--sehr-stark { background: var(--gruen); }
.pw-staerke-label { font-size: .8rem; color: var(--grau-2); }
.pw-match-hint { font-size: .82rem; margin-top: .2rem; }
.pw-match--ok { color: var(--gruen); }
.pw-match--fehler { color: var(--rot); }

.passwort-richtlinie {
  background: var(--grau-5); border-radius: var(--radius);
  padding: .6rem .9rem; font-size: .82rem; margin-top: .25rem;
}
.passwort-richtlinie ul { list-style: none; display: flex; flex-direction: column; gap: .2rem; }
.passwort-richtlinie li { color: var(--grau-3); }
.passwort-richtlinie li::before { content: '✗ '; color: var(--rot); }
.passwort-richtlinie li.ok { color: var(--gruen); }
.passwort-richtlinie li.ok::before { content: '✓ '; color: var(--gruen); }

/* Toggle */
.toggle-wrapper { display: flex; align-items: center; gap: .5rem; }
.toggle-label { font-size: .9rem; cursor: pointer; }

/* ===== TABELLEN ===== */
.tabelle {
  width: 100%; border-collapse: collapse; font-size: .88rem;
}
.tabelle th {
  text-align: left; padding: .65rem .85rem;
  background: var(--grau-5); color: var(--grau-1);
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; border-bottom: 2px solid var(--grau-4);
  white-space: nowrap;
}
.tabelle td {
  padding: .6rem .85rem; border-bottom: 1px solid var(--grau-5);
  vertical-align: middle;
}
.tabelle tbody tr:hover { background: #fdf9f5; }
.tabelle--kompakt td, .tabelle--kompakt th { padding: .45rem .7rem; }
.tabelle-leer { text-align: center; color: var(--grau-3); padding: 2rem !important; }
.nowrap { white-space: nowrap; }
.aktionen { white-space: nowrap; }

/* ===== BADGES ===== */
.badge {
  display: inline-block; padding: .15rem .55rem;
  border-radius: 12px; font-size: .75rem; font-weight: 700;
  white-space: nowrap;
}
.badge--gruen { background: #e8f5e9; color: var(--gruen); }
.badge--rot { background: #fce4e4; color: var(--rot); }
.badge--grau { background: var(--grau-5); color: var(--grau-2); }
.badge--blau { background: #e3f0fd; color: var(--blau); }
.kuerzel-badge {
  display: inline-block; padding: .1rem .5rem;
  background: var(--grau-5); border-radius: var(--radius);
  font-size: .8rem; font-weight: 700; font-family: monospace;
  color: var(--grau-1);
}

/* ===== DASHBOARD KACHELN ===== */
.dashboard-sektion { margin-bottom: 2rem; }
.dashboard-gruppenname {
  font-size: 1rem; font-weight: 700; color: var(--grau-2);
  margin-bottom: 1rem; text-transform: uppercase;
  letter-spacing: .05em; font-size: .8rem;
}
.kachel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.kachel {
  background: var(--weiss); border-radius: var(--radius-lg);
  box-shadow: var(--schatten); padding: 1.5rem 1.2rem;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; text-decoration: none; color: var(--dunkel);
  gap: .6rem; transition: transform .15s, box-shadow .15s;
  border: 2px solid transparent;
}
.kachel:hover {
  transform: translateY(-3px); box-shadow: var(--schatten-lg);
  border-color: var(--orange);
}
.kachel-icon { font-size: 2rem; }
.kachel-label { font-weight: 700; font-size: .9rem; }
.kachel-beschreibung { font-size: .78rem; color: var(--grau-3); }

/* ===== FLASH MESSAGES ===== */
.flash-container { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.flash {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem; border-radius: var(--radius);
  font-size: .9rem; border-left: 4px solid;
}
.flash--success { background: #e8f5e9; border-color: var(--gruen); color: #1b5e20; }
.flash--danger, .flash--error { background: #fce4e4; border-color: var(--rot); color: #b71c1c; }
.flash--warning { background: #fff8e1; border-color: var(--gelb); color: #e65100; }
.flash--info { background: #e3f2fd; border-color: var(--blau); color: #0d47a1; }
.flash-close {
  background: none; border: none; cursor: pointer;
  font-size: 1rem; color: inherit; opacity: .6; padding: 0 4px;
}
.flash-close:hover { opacity: 1; }

/* ===== HINWEISE ===== */
.hinweis {
  padding: .85rem 1.1rem; border-radius: var(--radius);
  margin-bottom: 1rem; font-size: .9rem; border-left: 4px solid;
}
.hinweis--info { background: #e3f2fd; border-color: var(--blau); color: #0d47a1; }
.hinweis--warnung { background: #fff8e1; border-color: var(--gelb); color: #e65100; }
.hinweis--fehler { background: #fce4e4; border-color: var(--rot); color: #b71c1c; }

/* ===== BENACHRICHTIGUNGEN ===== */
.benachrichtigung {
  padding: 1rem 1.2rem; border-radius: var(--radius);
  margin-bottom: .75rem; border-left: 4px solid var(--grau-4);
  background: var(--weiss);
}
.benachrichtigung--ungelesen { border-left-color: var(--orange); background: #fff9f4; }
.benachrichtigung--info { border-left-color: var(--blau); }
.benachrichtigung--warnung { border-left-color: var(--gelb); }
.benachrichtigung--fehler { border-left-color: var(--rot); }
.benachrichtigung-kopf {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: .4rem;
}
.benachrichtigung-meta { font-size: .78rem; color: var(--grau-3); }
.benachrichtigung-inhalt { font-size: .88rem; color: var(--grau-2); margin-bottom: .5rem; }
.benachrichtigung-aktionen { display: flex; gap: .5rem; }

/* ===== MODUL-RECHTE ===== */
.modul-rechte-tabelle { overflow-x: auto; }
.flag-zelle { display: flex; flex-wrap: wrap; gap: .4rem; }
.flag-label {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .82rem; cursor: pointer; white-space: nowrap;
}
.checkbox-gruppe { display: flex; flex-direction: column; gap: .4rem; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex; align-items: center; gap: 1rem; margin-top: 1rem;
}
.pagination-info { color: var(--grau-2); font-size: .9rem; }

/* ===== INFO-LISTE ===== */
.info-liste { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.5rem; }
.info-liste dt { font-weight: 700; color: var(--grau-2); font-size: .88rem; }
.info-liste dd { color: var(--dunkel); font-size: .9rem; }

/* ===== FEHLERSEITE ===== */
.fehler-seite {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 4rem 1rem; text-align: center; gap: 1rem;
}
.fehler-seite h1 { font-size: 2rem; color: var(--grau-1); }
.fehler-seite p { color: var(--grau-2); }

/* ===== ABTEILUNGS-PILL ===== */
.abteilungs-pill {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .7rem; border-radius: 20px;
  font-size: .8rem; font-weight: 600;
  border: 1px solid currentColor;
  white-space: nowrap;
  /* background via ::before at reduced opacity */
}
.abteilungs-pill::before {
  content: ''; position: absolute; inset: 0;
  background: currentColor; opacity: 0.15;
  pointer-events: none;
}
.abt-pill-icon, .abt-pill-text { position: relative; z-index: 1; }
.abt-pill-icon { font-size: 1rem; line-height: 1; }

/* ===== TABS (Mitarbeiter-Formular) ===== */
.tabs {
  display: flex; flex-wrap: wrap; gap: .25rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--grau-4);
  padding-bottom: 0;
}
.tab-btn {
  padding: .55rem 1rem; border: none; background: none;
  font-family: inherit; font-size: .88rem; font-weight: 600;
  color: var(--grau-2); cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: color .15s, border-color .15s, background .15s;
}
.tab-btn:hover { color: var(--orange); background: rgba(239,125,0,.06); }
.tab-btn--aktiv { color: var(--orange); border-bottom-color: var(--orange); }
.tab-form { padding-top: .25rem; }
.tab-inhalt { animation: tabEinblenden .15s ease; }
@keyframes tabEinblenden { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ===== FOTO-UPLOAD ===== */
.foto-aktuell { margin-bottom: 1rem; }
.foto-vorschau-bild {
  display: block; max-width: 160px; max-height: 200px;
  border-radius: var(--radius); object-fit: cover;
  border: 2px solid var(--grau-4); margin-bottom: .4rem;
}
.foto-upload-bereich { display: flex; flex-direction: column; gap: .4rem; }
.foto-vorschau-neu { margin-top: .5rem; }

/* ===== DASHBOARD — KATEGORIEN & DRAG&DROP ===== */
.dash-kategorie {
  margin-bottom: 2rem;
}
.dash-kategorie-kopf {
  display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem;
}
.dash-kategorie-name {
  flex: 1; font-size: 1rem; font-weight: 700; color: var(--grau-1);
  background: none; border: none; border-bottom: 2px solid transparent;
  padding: .2rem .3rem; border-radius: 0; cursor: text;
  font-family: inherit; transition: border-color .15s;
}
.dash-kategorie-name:hover { border-bottom-color: var(--grau-4); }
.dash-kategorie-name:focus {
  outline: none; border-bottom-color: var(--orange); background: rgba(239,125,0,.04);
}
.dash-kat-loeschen {
  opacity: .4; transition: opacity .15s;
}
.dash-kat-loeschen:hover { opacity: 1; }

.dash-kat-add { margin-top: .5rem; }

/* Leere Kategorie — Drop-Platzhalter */
.dash-kacheln:not(:has(.kachel:not(.kachel--ghost)))::after {
  content: '📥  Kachel hierher ziehen';
  display: flex; align-items: center; justify-content: center;
  min-height: 80px;
  border: 2px dashed var(--grau-4); border-radius: var(--radius-lg);
  color: var(--grau-3); font-size: .88rem;
  grid-column: 1 / -1;
}

/* SortableJS Ghost & Drag */
.kachel--ghost {
  opacity: .35; border: 2px dashed var(--orange) !important;
  background: rgba(239,125,0,.06) !important;
}
.kachel--dragging {
  box-shadow: var(--schatten-lg); transform: scale(1.03);
  border-color: var(--orange) !important;
}
.sortable-chosen .kachel { border-color: var(--orange); }

/* Dashboard Speicher-Status */
.dash-speicher-status {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  padding: .5rem 1rem; border-radius: var(--radius);
  font-size: .85rem; font-weight: 600; z-index: 5000;
  box-shadow: var(--schatten-lg);
}
.dash-speicher--ok { background: var(--gruen); color: var(--weiss); }
.dash-speicher--fehler { background: var(--rot); color: var(--weiss); }

/* ===== LOGIN — poliertes Design ===== */
.login-body {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; min-height: 100vh;
}
.login-wrapper {
  width: 100%; max-width: 420px; padding: 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
}
.login-logo { filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }
.login-card {
  background: var(--weiss); border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,.4); padding: 2.5rem 2rem; width: 100%;
}
.login-title {
  font-size: 1.4rem; font-weight: 700; color: var(--orange);
  text-align: center; margin-bottom: .2rem;
}
.login-subtitle {
  text-align: center; color: var(--grau-2); margin-bottom: 1.5rem; font-size: .9rem;
}
.login-form { display: flex; flex-direction: column; gap: 1rem; }
.login-btn { font-size: 1rem; padding: .7rem; margin-top: .25rem; }
.login-footer { color: rgba(255,255,255,.35); font-size: .8rem; }

.login-nachrichten { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.login-flash {
  padding: .65rem .9rem; border-radius: var(--radius);
  font-size: .88rem; border-left: 4px solid;
}
.login-flash--danger, .login-flash--error {
  background: #fce4e4; border-color: var(--rot); color: #b71c1c;
}
.login-flash--warning {
  background: #fff8e1; border-color: var(--gelb); color: #e65100;
}
.login-flash--success {
  background: #e8f5e9; border-color: var(--gruen); color: #1b5e20;
}
.login-flash--info {
  background: #e3f2fd; border-color: var(--blau); color: #0d47a1;
}

/* ===== TAGESJOURNAL ===== */
.tj-tabs {
  display: flex; flex-wrap: wrap; gap: .25rem;
  margin-bottom: .5rem; border-bottom: 2px solid var(--grau-4);
}
.tj-tab {
  padding: .5rem 1rem; border: none; background: none;
  font-size: .88rem; font-weight: 600; color: var(--grau-2);
  text-decoration: none; border-bottom: 3px solid transparent;
  margin-bottom: -2px; border-radius: var(--radius) var(--radius) 0 0;
  transition: color .15s, border-color .15s;
}
.tj-tab:hover { color: var(--orange); }
.tj-tab--aktiv { color: var(--orange); border-bottom-color: var(--orange); }

.tj-datum-nav {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
}

.tj-kopf {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
}
.karte-titel {
  font-size: 1rem; font-weight: 700; color: var(--dunkel); margin: 0;
}

.ablehnungs-form {
  padding: .5rem; background: #fff9f4; border: 1px solid var(--orange);
  border-radius: var(--radius); margin-top: .35rem;
}

.tj-woche-eintrag {
  font-size: .84rem; padding: .2rem 0;
  border-bottom: 1px solid var(--grau-5);
}
.tj-woche-eintrag:last-child { border-bottom: none; }
.tj-wochenende { background: #fafafa; }
.tj-heute { background: #fff9f4; }
.tj-gesamt-zeile { background: var(--grau-5); }
.tj-gesamt-zeile td { padding-top: .65rem; padding-bottom: .65rem; }

.tj-stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 1rem 1.5rem;
}
.tj-stat-wert { font-size: 1.6rem; font-weight: 700; }
.tj-stat-label { font-size: .8rem; color: var(--grau-3); margin-top: .2rem; }

/* ===== POSITIONEN-LISTE (Objekte-Formular) ===== */
.positionen-liste { display: flex; flex-direction: column; gap: .4rem; }
.position-zeile {
  display: flex; align-items: center; gap: .5rem;
  padding: .35rem .5rem; background: var(--grau-5);
  border-radius: var(--radius); border: 1px solid var(--grau-4);
}
.position-sortierung {
  min-width: 1.5rem; text-align: center;
  font-size: .78rem; color: var(--grau-3); font-weight: 700;
}
.position-bez-input { flex: 1; }
.position-aktionen { display: flex; gap: .25rem; }

/* ===== MONITORING ===== */
.monitoring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.monitoring-kachel {
  background: var(--weiss); border-radius: var(--radius-lg);
  box-shadow: var(--schatten); padding: 1.25rem 1rem;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: .35rem;
}
.monitoring-icon { font-size: 1.5rem; }
.monitoring-wert { font-size: 1.8rem; font-weight: 700; color: var(--dunkel); }
.monitoring--warn { color: var(--rot) !important; }
.monitoring-label { font-size: .78rem; color: var(--grau-3); }
.monitoring-sub   { font-size: .75rem; color: var(--grau-3); margin-top: .15rem; }
.monitoring-balken-bg {
  width: 100%; height: 6px; background: var(--grau-4);
  border-radius: 3px; overflow: hidden; margin-top: .2rem;
}
.monitoring-balken { height: 100%; border-radius: 3px; transition: width .4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .main-content { padding: 1rem; }
  .form-grid-2col { grid-template-columns: 1fr; }
  .seiten-kopf { flex-direction: column; align-items: flex-start; }
  .kachel-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .tabelle { font-size: .82rem; }
  .tabs { gap: .15rem; }
  .tab-btn { padding: .45rem .7rem; font-size: .82rem; }
  .abteilungs-pill { display: none; } /* auf sehr kleinen Screens ausblenden */
}
