/* === styles-02.css — Teil 2/4 (urspr. Zeilen 932-1850) — in Reihenfolge laden === */

.app-main-area { flex: 1; min-width: 0; display: flex; flex-direction: column; }
main { padding: 24px; max-width: none; margin: 0; }


@media (max-width: 900px) {
  /* Schicht-Dialog: Spalten stapeln auf Mobile */
  #shift-dialog .dialog > div[style*="grid-template-columns:1.4fr 1fr"] { grid-template-columns: 1fr !important; }
  /* Personal-Seite: Sidebar oben über dem Content stapeln */
  .personal-layout { grid-template-columns: 1fr !important; }
  /* Schichtblatt-Dialog: feste Sidebar wird oben */
  #schichtblatt-dialog .dialog { grid-template-columns: 1fr !important; }
  main { padding: 16px; }
}
/* Echte Mobile-Geräte (375–600px) */
@media (max-width: 600px) {
  main { padding: 12px; }
  /* Page-Hero: Inhalte umbrechen sauber */
  .page-hero { padding: 14px 16px !important; }
  .page-hero > div[style*="font-size:18px"],
  .page-hero > div[style*="font-size:20px"] {
    flex-basis: 100%;
  }
  /* Hero-Action-Bereich (Selektor / Pfeile) auf neue Zeile */
  .page-hero select, .page-hero input[type="month"], .page-hero input[type="date"] {
    width: 100%;
  }
  /* Panel-Padding kompakter */
  .panel { padding: 14px; }
  /* Alle 1.4fr 1fr / 1.6fr 1fr / 1fr 1fr Grids stapeln */
  [style*="grid-template-columns:1.4fr 1fr"],
  [style*="grid-template-columns:1.6fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Leistungsnachweis: Lohnarten + Bemerkung stapeln */
  #ln-content > div[style*="display:flex;gap:20px"] { flex-direction: column !important; }
  /* Schicht-Karten Grid nutzt schon auto-fill — passt */
  /* Toolbars dürfen umbrechen, gap kleiner */
  .toolbar { gap: 8px !important; }
  /* Buttons: erlauben volle Breite bei kleiner Toolbar */
  .panel button.primary, .panel button.ghost, .panel button.danger { flex: 0 1 auto; }
  /* h2-Headline kleiner */
  .panel h2 { font-size: 16px; }
  /* Tabellen mit horizontalem Scroll — keine erzwungene Verkleinerung */
  .panel table { font-size: 12px; }
  /* Dialog-Formularfelder stapeln; Eingaben nicht mehr auf 170px zwingen */
  .dialog .field { flex-direction: column !important; align-items: stretch !important; }
  .dialog .field label { min-width: 0 !important; }
  .field input, .field select { min-width: 0 !important; }
  /* iOS-Auto-Zoom verhindern: Texteingaben >=16px beim Fokus */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select, textarea { font-size: 16px !important; }
  /* Dialog-Aktionsbuttons stapeln (volle Breite, daumentauglich) */
  .dialog .actions { flex-direction: column; align-items: stretch; }
  .dialog .actions button { width: 100%; }
}
/* Admin/SuperAdmin-Tabellen: eigener horizontaler Scroll statt Seiten-Überlauf (Handy/Tablet) */
@media (max-width: 700px) {
  #users-table table,
  table.ew-table,
  table.lager-katalog-tbl {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    /* Hinweis, dass seitlich gewischt werden kann (rechter Innenschatten) */
    box-shadow: inset -14px 0 12px -12px rgba(15,23,42,.25);
  }
}
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.panel h2 { margin: 0 0 14px; color: var(--primary); font-size: 18px; }
.panel h3 { margin: 20px 0 10px; color: var(--primary); font-size: 15px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.field input, .field select {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
  min-width: 170px;
  background: #fff;
}
.field input:focus, .field select:focus { outline: 2px solid var(--primary-light); border-color: var(--primary-light); }
button.primary {
  background: var(--primary);
  color: #fff;
  border: 0;
  padding: 9px 16px;
  border-radius: 8px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}
button.primary:hover { background: var(--primary-light); }
button.primary:active { transform: scale(0.98); }
button.ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border-strong);
  padding: 8px 14px;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
button.ghost:hover { background: var(--band); border-color: var(--primary); }
button.danger {
  background: var(--red);
  color: var(--red-text);
  border: 0;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
table th {
  background: var(--primary-light);
  color: #fff;
  text-align: left;
  padding: 9px 10px;
  font-weight: 600;
  position: sticky;
  top: 0;
}
table td { padding: 8px 10px; border-bottom: 1px solid var(--border); }
/* Baustellen-Tabelle: enger gepackt, weniger Padding */
table.bs-table { font-size: 12px; }
table.bs-table th, table.bs-table td { padding: 4px 6px; }
table tr:nth-child(even) td { background: var(--band); }
table tr:hover td { background: #F0F7FF; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin: 0 0 12px 0; }
/* KPI-Bar + Stat — vereinheitlichtes kompaktes Layout */
.kpi-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin: 0 0 12px 0; }
.kpi-bar .kpi-card,
.stat {
  background: #fff;
  border: 1px solid #E0E0E0;
  border-left: 3px solid #1976D2;
  border-radius: 6px;
  padding: 8px 10px;
}
.kpi-bar .kpi-card .kpi-label,
.stat .label {
  font-size: 10px; color: #666; text-transform: uppercase; font-weight: 600; letter-spacing: 0.4px;
}
.kpi-bar .kpi-card .kpi-value,
.stat .value {
  font-size: 18px; color: #1976D2; font-weight: 600; line-height: 1.2; margin-top: 2px;
}
.kpi-bar .kpi-card .kpi-sub,
.stat .unit {
  font-size: 10px; color: #888; font-weight: 400; margin-top: 1px;
}
.stat .unit { display: inline; margin-left: 3px; }
.empty { color: var(--muted); font-style: italic; text-align: center; padding: 30px; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.chip.F { background: var(--green); color: #1D5B33; }
.chip.S { background: var(--blue); color: #1F3D65; }
.chip.N { background: var(--dark-blue); color: #fff; }
.chip.T { background: #F0F0F0; color: #333; }
.chip.FR { background: #E5E7EB; color: #4B5563; }
.chip.U { background: #F4B084; color: #fff; }
.chip.K { background: var(--red); color: var(--red-text); }
.chip.B { background: #FFF2CC; color: #7F6000; }
.chip.X { background: #E0E7FF; color: #3730A3; }
.monat-matrix { overflow-x: auto; }
.monat-matrix table { min-width: 1100px; }
.monat-matrix th, .monat-matrix td { text-align: center; padding: 4px 5px; font-size: 11px; }
.monat-matrix td.day-cell { font-weight: 700; line-height: 1.55; }
.monat-matrix td.day-cell .chip { margin: 1px 0; }
/* ===== Schichten-Seite: Sidebar Mitarbeiter-Status ===== */
.schichten-layout { display: flex; gap: 16px; align-items: flex-start; }
.schichten-main { flex: 1; min-width: 0; }
.schichten-side { width: 250px; flex-shrink: 0; position: sticky; top: 12px; max-height: calc(100vh - 40px); overflow-y: auto; padding: 12px; border: 1px solid var(--border); border-radius: 4px; background: var(--panel); }
/* Action-Sidebar links: bündelt Hauptaktionen + Filter */
.schichten-action-sidebar { width: 220px; flex-shrink: 0; position: sticky; top: 12px; max-height: calc(100vh - 40px); overflow-y: auto; background: #1F3D65; color: #fff; padding: 16px 14px; border-radius: 8px; display: flex; flex-direction: column; gap: 8px; }
.schichten-action-sidebar h4 { color: #FFD75A; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin: 6px 0 4px 0; }
.schichten-action-sidebar h4:first-child { margin-top: 0; }
.schichten-action-sidebar .sa-btn { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.25); padding: 9px 12px; border-radius: 6px; font-size: 13px; cursor: pointer; text-align: left; transition: background 0.15s; }
.schichten-action-sidebar .sa-btn:hover { background: rgba(255,255,255,0.2); }
.schichten-action-sidebar .sa-btn-primary { background: #FFD75A; color: #0E2440; border-color: #FFD75A; font-weight: 700; }
.schichten-action-sidebar .sa-btn-primary:hover { background: #FFC107; }
.schichten-action-sidebar .sa-btn-second { background: #A06700; color: #fff; border-color: #7C4F00; font-weight: 600; }
.schichten-action-sidebar .sa-btn-second:hover { background: #B57700; }
.schichten-action-sidebar .sa-divider { height: 1px; background: rgba(255,255,255,0.18); margin: 10px 0 4px 0; }
.schichten-action-sidebar .sa-field { display: flex; flex-direction: column; gap: 4px; }
.schichten-action-sidebar .sa-field > label { font-size: 11px; color: #FFD75A; font-weight: 600; }
.schichten-action-sidebar input, .schichten-action-sidebar select { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.3); padding: 6px 8px; border-radius: 4px; font-size: 12px; width: 100%; box-sizing: border-box; }
.schichten-action-sidebar input::placeholder { color: rgba(255,255,255,0.5); }
.schichten-action-sidebar input[type="date"], .schichten-action-sidebar input[type="month"] { color-scheme: dark; }
/* Dropdown-Optionen in der dunklen Sidebar — sonst weiß-auf-weiß im offenen Zustand */
.schichten-action-sidebar select option { background: #FFFFFF; color: #0F172A; }
html[data-theme="dark"] .schichten-action-sidebar select option { background: #1E293B; color: #F8FAFC; }
/* Checkbox-Filter-Block: saubere horizontale Anordnung mit klarer weißer Schrift */
.schichten-action-sidebar .sa-checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  text-transform: none;
  letter-spacing: 0;
  user-select: none;
  white-space: nowrap;
}
.schichten-action-sidebar .sa-checkbox-label:hover { background: rgba(255,255,255,0.08); }
.schichten-action-sidebar .sa-checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px;
  margin: 0;
  flex-shrink: 0;
  accent-color: #FFD75A;
  cursor: pointer;
}
.schichten-action-sidebar .sa-checkbox-label span { color: #fff; line-height: 1.3; }
.ma-entry { display: flex; justify-content: space-between; align-items: center; padding: 3px 8px; margin-bottom: 2px; border-radius: 3px; font-size: 11px; background: var(--band); border: 1px solid var(--border); cursor: grab; transition: transform .1s; user-select: none; line-height: 1.35; }
.ma-entry:active { cursor: grabbing; }
/* Schicht-Zeile beim Hineinziehen markieren */
tr.drop-target td { background: #FFF8E1 !important; box-shadow: inset 0 0 0 2px #F4B084; }
/* Baustellen-Header beim Hineinziehen (Schicht-Drag) markieren */
.schicht-bs-header.drop-target { box-shadow: inset 0 0 0 3px #F59E0B !important; background: #FEF3C7 !important; }
/* Mitarbeiter-Avatar Hover-Hinweis (öffnet Verschiebe-Menü bei Klick) */
tr.shift-row [onclick*="openShiftMoveMenu"]:hover { box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.4); transition: box-shadow .12s; }
/* Zeit-Zelle Hover (visualisiert Drag-Möglichkeit) */
.shift-time-cell[draggable="true"]:hover { background: rgba(15,118,110,0.06); }
.shift-time-cell[draggable="true"]:active { cursor: grabbing; }
/* Zeit-Drop-Ziel beim Hineinziehen */
.shift-time-cell.time-drop-target { background: #DBEAFE !important; box-shadow: 0 0 0 2px #3B82F6; }
/* Combobox: Dark-Variante (auf farbigem Hero) */
.combo-input-dark::placeholder { color: rgba(255,255,255,0.65); }
.combo-input-dark:focus { outline: none; background: rgba(255,255,255,0.28) !important; border-color: rgba(255,255,255,0.6) !important; }
.combo-input-dark:hover { background: rgba(255,255,255,0.24) !important; }
/* Combobox-Wrap im Hero soll mind. 240px breit sein */
.page-hero .combo-wrap { min-width: 240px; flex-shrink: 0; }
/* Combobox-Dropdown: erbt KEINE Textfarbe vom Eltern-Element (z.B. weiß auf Hero) */
.combo-dropdown { color: var(--text) !important; }
.combo-dropdown .combo-item { color: var(--text); }
.combo-dropdown .combo-item:hover { background: var(--slate-50); }
html[data-theme="dark"] .combo-dropdown .combo-item:hover { background: var(--slate-100); }
/* ===== Vorschau-Dialog: Statistik-Header + Schicht-Karten ===== */
.prev-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-bottom: 18px; }
.prev-stat { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.prev-stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); font-weight: 500; }
.prev-stat-value { font-size: 18px; font-weight: 600; color: var(--text); }
.prev-bs-section { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
.prev-bs-header { padding: 10px 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.prev-bs-title { font-size: 14px; font-weight: 600; }
.prev-bs-meta { font-size: 11px; opacity: 0.85; }
.prev-shared { padding: 10px 14px; background: var(--slate-50); border-bottom: 1px solid var(--border); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 16px; }
.prev-card { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.prev-card:last-child { border-bottom: none; }
.prev-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.prev-avatar { width: 36px; height: 36px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.prev-name-block { flex: 1; min-width: 140px; }
.prev-name { font-size: 14px; font-weight: 600; color: var(--text); }
.prev-date { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.prev-badges { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.prev-badge { font-size: 10px; padding: 2px 8px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.prev-card-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 16px; padding-left: 48px; }
.prev-param { display: flex; flex-direction: column; gap: 1px; padding: 3px 0; }
.prev-param-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; font-weight: 500; }
.prev-param-value { font-size: 13px; color: var(--text); word-break: break-word; }
.prev-param-muted { color: var(--text-muted); font-style: italic; }
.prev-param-highlight { color: var(--primary); font-weight: 600; }
.prev-audit { grid-column: 1 / -1; font-size: 10px; color: var(--text-muted); padding-top: 6px; margin-top: 4px; border-top: 1px dashed var(--border); }
.prev-card-storniert { background: var(--slate-50); }
.prev-card-storniert .prev-name, .prev-card-storniert .prev-param-value { text-decoration: line-through; text-decoration-color: #94A3B8; opacity: 0.7; }
.prev-card-storniert .prev-badge[title*="Storniert"] { text-decoration: none; opacity: 1; }
@media (max-width: 720px) {
  .prev-card-body { padding-left: 0; }
  .prev-summary { grid-template-columns: repeat(2, 1fr); }
}
html[data-theme="dark"] .prev-shared { background: var(--slate-100); }
html[data-theme="dark"] .prev-card-storniert { background: var(--slate-100); }
/* Stornierte Schichten: grauer Hintergrund + Strikethrough auf Texten */
tr.shift-storniert td { background: #F1F5F9 !important; opacity: 0.65; }
tr.shift-storniert td:not(:last-child) * { text-decoration: line-through; text-decoration-color: #94A3B8; text-decoration-thickness: 1.5px; }
tr.shift-storniert td:last-child * { text-decoration: none; opacity: 1; }
tr.shift-storniert td:last-child { opacity: 1; }
html[data-theme="dark"] tr.shift-storniert td { background: #1E293B !important; }
/* Stornierte Zeilen in der Baustellen-Tabelle (gleicher Stil wie Schichten-Tabelle) */
tr.bs-row-storniert td { background: #F1F5F9 !important; opacity: 0.7; }
tr.bs-row-storniert td:not(:last-child) { text-decoration: line-through; text-decoration-color: #94A3B8; text-decoration-thickness: 1.5px; }
tr.bs-row-storniert td:last-child { text-decoration: none; opacity: 1; }
tr.bs-row-storniert span[title*="Storniert"] { text-decoration: none !important; opacity: 1 !important; }
html[data-theme="dark"] tr.bs-row-storniert td { background: #1E293B !important; }
/* Komplett stornierte Baustelle: Name + alle Texte im Header durchgestrichen */
.schicht-bs-section.bs-header-allstorno .bs-header-name,
.schicht-bs-section.bs-header-allstorno .bs-header-info > div:first-child > div:not(.bs-header-name):not([class]),
.schicht-bs-section.bs-header-allstorno .bs-header-info > div:first-child > span:not([style*="background:#DC2626"]) { text-decoration: line-through; text-decoration-color: #94A3B8; text-decoration-thickness: 2px; }
.schicht-bs-section.bs-header-allstorno .bs-header-info { opacity: 0.75; }
html[data-theme="dark"] .schicht-bs-section.bs-header-allstorno { background: #0F172A !important; }
html[data-theme="dark"] .schicht-bs-section.bs-header-allstorno .schicht-bs-header { background: #1E293B !important; }
.ma-entry:hover { transform: translateX(-2px); }
.ma-entry .ma-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 6px; }
.ma-entry .ma-count { font-weight: 700; font-size: 11px; padding: 1px 6px; border-radius: 3px; background: rgba(0,0,0,.07); }

/* ─── Einweisungs-Tab ─── */
.sch-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border, #E2E8F0);
  margin-bottom: 12px;
}
.sch-tab {
  background: transparent;
  border: 0;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted, #64748B);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s, border-color 0.15s;
}
.sch-tab:hover { color: var(--text); background: var(--slate-100, #F1F5F9); }
.sch-tab.active {
  color: var(--primary, #0F766E);
  border-bottom-color: var(--primary, #0F766E);
  font-weight: 600;
}
.sch-tab-icon { font-size: 16px; }
.sch-tab-badge {
  background: var(--primary, #0F766E);
  color: #fff;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 4px;
}
.sch-tab:not(.active) .sch-tab-badge { background: var(--muted, #64748B); }

/* Einweisungs-Toolbar */
.ew-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 10px;
  background: var(--slate-100, #F8FAFC);
  border-radius: 8px;
  border: 1px solid var(--border, #E2E8F0);
}
.ew-toolbar-left { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; flex: 1; }
.ew-toolbar-right { display: flex; gap: 8px; align-items: center; }
.ew-search-input {
  padding: 7px 10px;
  border: 1px solid var(--border, #CBD5E1);
  border-radius: 6px;
  font-size: 13px;
  background: var(--card, #fff);
  color: var(--text);
  min-width: 220px;
  flex: 1;
}
.ew-select {
  padding: 7px 10px;
  border: 1px solid var(--border, #CBD5E1);
  border-radius: 6px;
  font-size: 13px;
  background: var(--card, #fff);
  color: var(--text);
}
.ew-btn-reset {
  padding: 7px 12px;
  background: transparent;
  border: 1px solid var(--border, #CBD5E1);
  border-radius: 6px;
  color: var(--muted, #64748B);
  font-size: 12px;
  cursor: pointer;
}
.ew-btn-reset:hover { background: var(--card, #fff); color: var(--text); }
.ew-counter { font-size: 12px; color: var(--muted, #64748B); font-weight: 600; }

/* Einweisungs-Tabelle */
table.ew-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--card, #fff);
  border: 1px solid var(--border, #E2E8F0);
  border-radius: 8px;
  overflow: hidden;
}
table.ew-table thead { background: var(--slate-100, #F8FAFC); }
table.ew-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted, #64748B);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid var(--border, #E2E8F0);
}
table.ew-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border, #F1F5F9);
  vertical-align: middle;
}
table.ew-table tr:hover { background: var(--slate-100, #F8FAFC); }
table.ew-table tr.ew-row-storniert td { background: #F8FAFC; color: var(--muted); text-decoration: line-through; }
table.ew-table tr.ew-row-eingesetzt td { background: #F0FDF4; }
table.ew-table tr.ew-row-abgelaufen td { background: #FEF2F2; }
.ew-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.ew-status-offen      { background: #FEF3C7; color: #78350F; }
.ew-status-eingesetzt { background: #DCFCE7; color: #14532D; }
.ew-status-abgelaufen { background: #FEE2E2; color: #7F1D1D; }
.ew-status-storniert  { background: #E2E8F0; color: #475569; }
.ew-action-btn {
  padding: 4px 10px;
  border: 1px solid var(--border, #CBD5E1);
  border-radius: 4px;
  background: var(--card, #fff);
  color: var(--text);
  font-size: 11px;
  cursor: pointer;
  margin-right: 4px;
}
.ew-action-btn:hover { background: var(--slate-100, #F1F5F9); }
.ew-action-btn.primary { background: var(--primary, #0F766E); color: #fff; border-color: var(--primary); }
.ew-action-btn.primary:hover { opacity: 0.9; }
.ew-action-btn.ew-action-del { background: #FEF2F2; border-color: #FCA5A5; color: #B91C1C; }
.ew-action-btn.ew-action-del:hover { background: #FEE2E2; }
.ew-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted, #64748B);
  font-size: 14px;
  background: var(--slate-100, #F8FAFC);
  border-radius: 8px;
  border: 1px dashed var(--border, #CBD5E1);
}
.ew-empty-icon { font-size: 40px; margin-bottom: 8px; }
.ma-entry.ma-urlaub { background: #C6EFCE; color: #1D5B33; border-color: #A4D7B1; }
.ma-entry.ma-krank { background: #FFC7CE; color: #9C0006; border-color: #E8A8B0; }
.ma-entry.ma-frei { background: #BDD7EE; color: #1F3D65; border-color: #9DBEDC; }
.ma-entry.ma-doppelt { background: #FFF2CC; color: #7F6000; border-color: #E8DEA8; }
.side-legend { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; font-size: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.side-legend .side-item { padding: 2px 6px; border-radius: 3px; font-weight: 600; }
.side-legend .side-item.ma-urlaub { background: #C6EFCE; color: #1D5B33; border: 1px solid #A4D7B1; }
.side-legend .side-item.ma-krank { background: #FFC7CE; color: #9C0006; border: 1px solid #E8A8B0; }
.side-legend .side-item.ma-frei { background: #BDD7EE; color: #1F3D65; border: 1px solid #9DBEDC; }
.side-legend .side-item.ma-doppelt { background: #FFF2CC; color: #7F6000; border: 1px solid #E8DEA8; }
tr.row-unnamed td { background: #FFF2CC !important; color: #7F6000 !important; }
tr.row-unnamed td .chip { filter: none; }
tr.row-verschickt td { background: #C6EFCE !important; color: #1D5B33 !important; }
tr.row-verschickt td .chip { filter: none; }
tr.row-verschickt.row-unnamed td { background: #D4E8D2 !important; color: #5B4E00 !important; }
.shift-check { width: 16px; height: 16px; cursor: pointer; }
/* ========== Bulk-Toolbar (Markierte Aktionen) — Desktop A + Mobile D ========== */
.bulk-toolbar { display: flex; gap: 8px; align-items: center; margin: 8px 0 12px; flex-wrap: wrap; padding: 10px 12px; background: var(--slate-50); border: 1px solid var(--border); border-radius: 10px; }
.bulk-allcheck { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); cursor: pointer; user-select: none; }
.bulk-allcheck input { width: 16px; height: 16px; cursor: pointer; margin: 0; }
.bulk-counter { background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.bulk-divider { width: 1px; height: 24px; background: var(--border); flex-shrink: 0; }
.bulk-group-label { font-size: 10px; color: var(--text-muted); letter-spacing: 0.6px; text-transform: uppercase; font-weight: 600; flex-shrink: 0; }
.bulk-btn { background: var(--panel); border: 1px solid var(--border); color: var(--text); font-size: 12px; padding: 6px 11px; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: background .12s, border-color .12s, transform .08s; white-space: nowrap; }
.bulk-btn:hover { border-color: var(--primary); background: var(--slate-100); }
.bulk-btn:active { transform: scale(0.97); }
.bulk-btn .bulk-icon { font-size: 14px; flex-shrink: 0; }
.bulk-btn-preview { color: #6B21A8; border-color: #E9D5FF; }
.bulk-btn-preview:hover { background: #FAF5FF; border-color: #C084FC; }
html[data-theme="dark"] .bulk-btn-preview { color: #C084FC; border-color: #6B21A8; }
html[data-theme="dark"] .bulk-btn-preview:hover { background: rgba(192,132,252,0.12); }
.bulk-btn-edit { color: #1E40AF; border-color: #DBEAFE; }
.bulk-btn-edit:hover { background: #EFF6FF; border-color: #93C5FD; }
.bulk-btn-group { color: #0F6E56; border-color: #BBF7D0; }
.bulk-btn-group:hover { background: #F0FDF4; border-color: #5DCAA5; }
.bulk-btn-warn { color: #854F0B; border-color: #FDE68A; }
.bulk-btn-warn:hover { background: #FFFBEB; border-color: #FCD34D; }
.bulk-btn-danger-soft { color: #B91C1C; border-color: #FCA5A5; }
.bulk-btn-danger-soft:hover { background: #FEF2F2; border-color: #F87171; }
.bulk-btn-danger { color: #B91C1C; border-color: #FCA5A5; margin-left: auto; }
.bulk-btn-danger:hover { background: #FEE2E2; border-color: #EF4444; }
.bulk-legend { display: flex; gap: 4px; flex-wrap: wrap; flex-shrink: 0; }
.bulk-legend .chip { font-size: 10px; padding: 2px 8px; border-radius: 999px; }
/* Dark-Mode */
html[data-theme="dark"] .bulk-toolbar { background: var(--slate-100); border-color: var(--border); }
html[data-theme="dark"] .bulk-btn { background: var(--panel); }
html[data-theme="dark"] .bulk-btn-edit { color: #93C5FD; border-color: #1E40AF; }
html[data-theme="dark"] .bulk-btn-edit:hover { background: rgba(59,130,246,0.15); }
html[data-theme="dark"] .bulk-btn-group { color: #5DCAA5; border-color: #0F6E56; }
html[data-theme="dark"] .bulk-btn-warn { color: #FCD34D; border-color: #78350F; }
html[data-theme="dark"] .bulk-btn-danger-soft, html[data-theme="dark"] .bulk-btn-danger { color: #FCA5A5; border-color: #7F1D1D; }
/* ===== Mobile-Sicht: Variante D (Icon-only mit Tooltips) ===== */
@media (max-width: 720px) {
  .bulk-toolbar { padding: 8px; gap: 6px; }
  .bulk-allcheck-label { display: none; }
  .bulk-counter { font-size: 11px; padding: 2px 8px; }
  .bulk-divider { height: 20px; }
  .bulk-group-label { display: none; }
  .bulk-btn { padding: 8px; min-width: 44px; min-height: 44px; justify-content: center; border-radius: 8px; }
  .bulk-btn .bulk-label { display: none; }
  .bulk-btn .bulk-icon { font-size: 16px; }
  .bulk-legend { display: none; }
  .bulk-btn-danger { margin-left: auto; }
}
.btn-verschicken { background: #1D5B33; color: #fff; border: 0; padding: 9px 16px; border-radius: 4px; font: inherit; font-weight: 600; cursor: pointer; }
.btn-verschicken:hover { background: #2E7D44; }
.btn-verschicken:disabled { background: #B5C9BC; cursor: not-allowed; }
@media (max-width: 900px) {
  .schichten-layout { flex-direction: column; }
  .schichten-side { width: 100%; position: static; max-height: none; }
  .schichten-action-sidebar { width: 100%; position: static; max-height: none; }
}
.monat-matrix td.weekend { background: #F0F0F0; }
.monat-matrix td.feiertag, .monat-matrix th.feiertag { background: #F4B084 !important; color: #7A2E00; }
.monat-matrix td.name-cell { text-align: left; font-size: 12px; min-width: 200px; padding: 6px 10px; background: var(--panel); }
.cert-ok { background: var(--green) !important; color: #1D5B33; }
.cert-soon { background: var(--yellow) !important; color: #7F6000; }
.cert-expired { background: var(--red) !important; color: var(--red-text); font-weight: 700; }
/* v385: Begleitschicht-Zähler-Zellen (Sakra/Sipo) */
.bs-cell { white-space: normal; min-width: 120px; vertical-align: middle; }
.bs-cell .bs-num { font-weight: 700; font-size: 14px; }
.bs-cell .bs-num.bs-open { color: #92400E; }
.bs-cell.bs-done { background: #ECFDF5; }
.bs-cell.bs-done .bs-num { color: #15803D; }
.bs-cell .bs-hint { font-size: 10px; color: #166534; margin-top: 2px; line-height: 1.2; }
.bs-pdf-btn { margin-top: 5px; font-size: 11px; padding: 4px 9px; border: 1px solid #15803D; background: #15803D; color: #fff; border-radius: 5px; cursor: pointer; min-height: 30px; }
.bs-pdf-btn:hover { background: #126b34; }
.page { display: none; }
.page.active { display: block; }
.dialog-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  /* v387: über Bottom-Nav (120) und offener Sidebar (130) — sonst verdeckte die
     Bottom-Nav auf dem Handy den unteren Teil jedes Dialogs (Buttons blockiert). */
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.dialog-bg.open { display: flex; }
.dialog {
  background: var(--panel);
  border-radius: 8px;
  padding: 22px;
  max-width: 520px;
  width: 90%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
}
#shift-dialog .dialog { max-width: none !important; width: 98vw !important; }
#termin-dialog .dialog { max-width: 680px; width: 94%; padding: 28px 32px; }
.dialog h3 { margin: 0 0 14px; color: var(--primary); }
.dialog .field { margin-bottom: 10px; flex-direction: row; align-items: center; gap: 10px; }
.dialog .field label { min-width: 110px; text-transform: none; font-size: 13px; font-weight: 600; color: var(--text); }
.dialog .field input, .dialog .field select { flex: 1; }
/* Adresse-Eingabefeld: Platzhalter kursiv anzeigen */
#f-adresse::placeholder { font-style: italic; }
#f-adresse::-webkit-input-placeholder { font-style: italic; }
#f-adresse::-moz-placeholder { font-style: italic; opacity: 1; }
.dialog .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.hint { color: var(--muted); font-size: 12px; margin-top: 6px; }
@media print {
  header, nav, .no-print, button { display: none !important; }
  body { background: #fff; }
  main { padding: 10px; max-width: 100%; }
  .panel { border: 0; box-shadow: none; page-break-inside: avoid; }
  .page { display: none !important; }
  .page.print-active { display: block !important; }
}
/* --- Login-Gate (Split-Screen) --- */
#auth-gate {
  position: fixed; inset: 0; z-index: 1000;
  background: #F8FAFC;
  display: flex; align-items: stretch; justify-content: stretch;
  overflow-y: auto;
}
#auth-gate .auth-box {
  flex: 1;
  display: grid; grid-template-columns: 1.2fr 1fr;
  width: 100%; min-height: 100vh;
  animation: fadeIn .25s ease-out;
}
/* Linke Seite: Branding */
.auth-brand {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 48px 44px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-brand::before, .auth-brand::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.06); pointer-events: none;
}
.auth-brand::before { top: -60px; right: -60px; width: 240px; height: 240px; }
.auth-brand::after { bottom: -80px; left: -80px; width: 280px; height: 280px; background: rgba(255,255,255,0.05); }
.auth-brand-top { position: relative; z-index: 1; }
.auth-brand-logo {
  background: #fff;
  width: auto; height: 56px; min-width: 56px;
  border-radius: 12px;
  padding: 6px 10px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  box-sizing: border-box;
}
.auth-brand-logo img { height: 100%; width: auto; display: block; object-fit: contain; }
.auth-brand-title { font-size: 26px; font-weight: 600; line-height: 1.2; }
.auth-brand-sub { font-size: 14px; opacity: 0.85; margin-top: 6px; }
.auth-brand-features { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 13px; font-size: 14px; opacity: 0.95; }
.auth-brand-features > div { display: flex; align-items: center; gap: 12px; }
.auth-feat-chip { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center; }
.auth-feat-chip svg { width: 18px; height: 18px; stroke: #fff; }
.auth-brand-foot { position: relative; z-index: 1; font-size: 12px; opacity: 0.6; }
/* Logo-Reihe mit Live-Pill */
.auth-brand-logorow { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.auth-brand-logorow .auth-brand-logo { margin-bottom: 0; }
.auth-brand-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; background: rgba(255,255,255,0.16); padding: 4px 11px; border-radius: 999px; color: #fff; }
.auth-brand-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #5DCAA5; display: inline-block; }

/* Rechte Seite: Formular */
.auth-form-side {
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 56px; max-width: 480px; margin: 0 auto; width: 100%;
  box-sizing: border-box;
}
.auth-form-side h2 { margin: 0 0 4px 0; color: var(--text); font-size: 22px; font-weight: 600; }
.auth-form-side .auth-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.auth-label {
  display: block; font-size: 12px; font-weight: 600; color: var(--text);
  margin: 8px 0 4px 0; text-transform: uppercase; letter-spacing: 0.4px;
}
#auth-gate input {
  width: 100%; padding: 12px 14px; font-size: 15px;
  border: 1px solid var(--border-strong); border-radius: 8px; margin-bottom: 6px;
  box-sizing: border-box; transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 44px; /* WCAG 2.5.5 — Touch-Target */
}
#auth-gate input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,118,110,0.15); }
#auth-gate input[aria-invalid="true"] {
  border-color: var(--accent); background: var(--accent-bg, #FEF2F2);
}
#auth-gate input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(220,38,38,0.15); }
/* Eingabefelder mit führendem Symbol (Person / Schloss) */
.auth-input-wrap { position: relative; }
.auth-input-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted); pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.auth-input-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }
#auth-gate input.auth-has-icon { padding-left: 40px; }
/* Passwort-Feld mit Show/Hide-Toggle */
.auth-pwd-wrap { position: relative; }
.auth-pwd-wrap input { padding-right: 44px !important; }
.auth-pwd-toggle {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  width: 36px !important; height: 36px !important;
  background: transparent !important; color: var(--muted) !important;
  border: 0 !important; border-radius: 6px !important;
  font-size: 18px !important; cursor: pointer; padding: 0 !important;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; transition: color 0.15s, background 0.15s;
}
.auth-pwd-toggle:hover { color: var(--text) !important; background: var(--slate-100, #F1F5F9) !important; }
.auth-pwd-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.auth-capslock {
  font-size: 11px; color: var(--warn-text, #92400E);
  background: var(--warn-bg, #FEF3C7);
  border: 1px solid var(--warn, #F59E0B);
  border-radius: 6px; padding: 5px 10px;
  margin: 6px 0; font-weight: 500;
}
#auth-gate button[type="submit"] {
  width: 100%; padding: 13px; background: var(--primary); color: #fff;
  border: 0; border-radius: 8px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background 0.15s, opacity 0.15s, transform 0.12s, box-shadow 0.15s;
  min-height: 48px; margin-top: 8px;
}
#auth-gate button[type="submit"]:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15,118,110,0.28); }
#auth-gate button[type="submit"]:active { transform: translateY(0); box-shadow: none; }
#auth-gate button[type="submit"]:disabled {
  background: var(--muted); cursor: not-allowed; opacity: 0.7; transform: none; box-shadow: none;
}
#auth-gate .auth-err {
  color: var(--accent); font-size: 13px; margin-top: 10px; min-height: 18px;
  font-weight: 500;
}
#auth-gate .auth-err:not(:empty) {
  background: var(--accent-bg, #FEF2F2); border: 1px solid var(--accent, #DC2626);
  border-radius: 6px; padding: 8px 12px; display: flex; align-items: center; gap: 8px;
}
#auth-gate .auth-err:not(:empty)::before { content: "⚠"; font-size: 14px; }
.auth-form-foot { font-size: 11px; color: var(--muted); text-align: center; margin-top: 18px; }
/* Hilfe/Anleitung-Button auf der Login-Seite (öffnet die Mitarbeiter-Anleitung) */
.auth-help-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 12px; padding: 12px 16px;
  background: #fff; border: 1px solid var(--border-strong); border-radius: 10px;
  font-size: 14px; font-weight: 700; color: var(--primary-dark); text-decoration: none;
  cursor: pointer; transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}
.auth-help-btn:hover { background: var(--slate-100); box-shadow: 0 4px 12px rgba(15,118,110,.12); }
.auth-help-btn:active { transform: translateY(1px); }
/* v313: Versions-Anzeige unten auf der Login-Seite */
.auth-version { font-size: 10px; color: var(--muted); opacity: 0.7; text-align: center; margin-top: 6px; letter-spacing: 0.5px; font-variant-numeric: tabular-nums; }
#auth-gate.shake .auth-form-side { animation: shake .35s; }

@media (max-width: 800px) {
  #auth-gate .auth-box { grid-template-columns: 1fr; align-content: start; }
  /* Kompakter, zentrierter Kopf — Werbe-Zeilen + Copyright raus, damit das Formular
     komplett auf den Handy-Schirm passt (kein Scrollen).
     WICHTIG (iPhone): viewport-fit=cover legt den Login randlos unter die Notch/Statusleiste.
     Deshalb oben env(safe-area-inset-top) drauf, sonst wird das Logo von der Notch abgeschnitten. */
  .auth-brand {
    padding: calc(22px + env(safe-area-inset-top, 0px)) 20px 18px;
    min-height: 0; text-align: center;
  }
  .auth-brand-top { text-align: center; }
  .auth-brand-logorow { justify-content: center; margin-bottom: 12px; }
  .auth-brand-logo { height: 62px; margin-bottom: 0; padding: 8px 12px; }  /* Logo größer & vollständig */
  .auth-brand-features, .auth-brand-foot { display: none; }
  .auth-form-side {
    padding: 22px 22px calc(34px + env(safe-area-inset-bottom, 0px));
    max-width: none; justify-content: flex-start;
  }
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
/* Sync-Badge in der Topbar (rechts neben dem Theme-Toggle) */
#sync-badge {
  background: var(--success-bg); border: 1px solid var(--success); border-radius: 20px;
  padding: 5px 12px; font-size: 12px; color: var(--success-text);
  display: flex; align-items: center; gap: 7px; font-weight: 500;
  transition: background-color var(--duration-fast) ease, border-color var(--duration-fast) ease, color var(--duration-fast) ease;
}
#sync-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 2px rgba(22,163,74,0.20); }
#sync-badge.offline { background: var(--accent-bg); border-color: var(--accent); color: var(--accent-text); }
#sync-badge.offline .dot { background: var(--accent); box-shadow: 0 0 0 2px rgba(220,38,38,0.20); }
#sync-badge.syncing { background: var(--warn-bg); border-color: var(--warn); color: var(--warn-text); }
#sync-badge.syncing .dot { background: var(--warn); box-shadow: 0 0 0 2px rgba(245,158,11,0.22); }
header { position: relative; }
/* Berechtigungs-Schutz: pro Permission entscheiden, ob Aktion sichtbar ist */
/* Accessibility: Sichtbarer Focus-Indikator für Tastatur-Navigation (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid #0F766E;
  outline-offset: 2px;
  border-radius: 3px;
}
/* Schichten-Tabellen-Hover - dunkler im Dark Mode */
.shift-row:hover { background: #F8FAFC !important; }
html[data-theme="dark"] .shift-row:hover { background: var(--slate-100) !important; }
/* Dark Mode: Schichten-Zeilen mit Inline-Hex-Backgrounds zwingend dunkel umfärben.
   Hat höhere Spezifität als der generische [style*="background:#fff"]-Selektor und greift immer. */
html[data-theme="dark"] tr.shift-row { background: var(--panel) !important; color: var(--text); }
html[data-theme="dark"] tr.shift-row td { color: var(--text); }
html[data-theme="dark"] tr.shift-row[data-row-bg="#F0FDF4"] { background: #052E16 !important; }
html[data-theme="dark"] tr.shift-row[data-row-bg="#FFFBEB"] { background: #422006 !important; }
/* Tabellen-Header-Gradients von Slate-50/100 → dunkler */
html[data-theme="dark"] table.shifts-modern thead tr,
html[data-theme="dark"] thead[style*="linear-gradient"] tr,
html[data-theme="dark"] tr[style*="linear-gradient"] {
  background: var(--slate-100) !important;
  color: var(--text) !important;
}
html[data-theme="dark"] table.shifts-modern thead th { color: var(--text) !important; background: transparent !important; }
/* Inputs in Schichten-Karten/Tabellen lesbar in beiden Modi */
html[data-theme="dark"] .panel input,
html[data-theme="dark"] .panel select,
html[data-theme="dark"] .panel textarea {
  background: var(--slate-100) !important;
  color: var(--text) !important;
  border: 1px solid var(--border-strong) !important;
}
/* Press-Feedback auf Buttons: leichtes Scale beim Drücken */
button:not(:disabled):active {
  transform: scale(0.97);
  transition: transform 80ms var(--easing-out, ease-out);
}
button {
  transition: background-color var(--duration-fast, 150ms) ease, border-color var(--duration-fast, 150ms) ease, color var(--duration-fast, 150ms) ease;
}
/* Globaler Respekt für reduzierte Bewegung (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  button:active { transform: none; }
}
/* Auf gefärbten Hero-Buttons mit dunklem Hintergrund: heller Focus-Ring */
.page-hero :focus-visible {
  outline-color: #FCD34D;
}
/* Hero-Selects (Suche Personal / Baustellen): Dropdown-Optionen lesbar machen.
   Der Select selbst hat weiße Schrift auf Teal — aber die offenen Optionen
   müssen dunkle Schrift auf weiß haben, sonst sieht man sie nicht. */
.page-hero select option {
  background: #fff !important;
  color: #0F172A !important;
}