/* Farbgebung und Grundbausteine aus dem BS_ELO_Importer uebernommen, damit die
   Anwendungen der Familie als eine erkennbar sind: dunkle Kopfleiste, Teal als Akzent,
   weiche Karten auf hellgrauem Grund. Ergaenzt um die Bausteine, die es dort nicht gibt
   (Auftragslisten, Bereichsreiter, ausklappbare Einstellungsgruppen). */

:root {
  --brand-dark: #292f33;
  --brand-teal: #007b85;
  --brand-teal-dark: #00626a;
  --brand-teal-light: #e3f0f1;
  --page-bg: #f4f6f8;
  --text-body: #29303d;
  --text-muted: #6b7280;
  --border-color: #dbe1e8;
  --danger: #c0392b;
  --success: #157347;
  --warning-bg: #fff4e0;
  --warning-border: #f0c473;
  --warning-text: #6b4a00;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html { font-size: 16px; }
}

body {
  margin-bottom: 60px;
  background-color: var(--page-bg);
  color: var(--text-body);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.app-footer {
  font-size: 0.8rem;
  border-top: 1px solid var(--border-color);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus, .form-select:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--brand-teal);
}

/* ---------- Kopfleiste ---------- */

.navbar {
  background-color: var(--brand-dark) !important;
  box-shadow: none !important;
  border-bottom: none !important;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff !important;
  font-weight: 600;
}

.nav-tabs-dark {
  align-self: stretch;
  gap: 0.25rem;
}

.nav-tabs-dark .nav-item {
  height: 100%;
  display: flex;
  align-items: center;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.65) !important;
  font-weight: 500;
  padding: 0.85rem 1rem !important;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  transition: color 0.15s ease-in-out, border-color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.navbar .nav-link:hover {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.06);
}

.navbar .nav-link.active {
  color: #fff !important;
  font-weight: 700;
  border-bottom-color: var(--brand-teal);
  background-color: rgba(255, 255, 255, 0.04);
}

.navbar .nav-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.navbar .nav-link-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* Angemeldeter Benutzer ganz rechts */
.navbar-user {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.75rem;
}

.navbar-user .btn-logout {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.2rem;
  line-height: 0;
  cursor: pointer;
}

.navbar-user .btn-logout:hover { color: #fff; }
.navbar-user .btn-logout svg { width: 1rem; height: 1rem; }

/* ---------- Grundbausteine ---------- */

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-body);
  margin-bottom: 1.25rem;
}

.card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.06);
  overflow: hidden;
}

.card-header {
  background-color: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 0.9rem 1.25rem;
  font-weight: 600;
  color: var(--text-body);
}

.card-body { padding: 1.25rem; }

label, .form-label, .col-form-label {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-control, .form-select {
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
}

.form-control:focus, .form-select:focus { border-color: var(--brand-teal); }

.btn-primary {
  background-color: var(--brand-teal);
  border-color: var(--brand-teal);
  border-radius: 0.5rem;
  font-weight: 600;
  padding: 0.55rem 1.4rem;
}

.btn-primary:hover, .btn-primary:active {
  background-color: var(--brand-teal-dark) !important;
  border-color: var(--brand-teal-dark) !important;
}

.btn-secondary {
  background-color: var(--brand-teal);
  border-color: var(--brand-teal);
  border-radius: 0.5rem;
  font-weight: 600;
}

.btn-secondary:hover {
  background-color: var(--brand-teal-dark);
  border-color: var(--brand-teal-dark);
}

.btn-outline-teal {
  border: 1px solid var(--brand-teal);
  color: var(--brand-teal);
  background: transparent;
  border-radius: 0.5rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
}

.btn-outline-teal:hover {
  background-color: var(--brand-teal-light);
  color: var(--brand-teal-dark);
}

.btn-outline-danger, .btn-outline-secondary { border-radius: 0.5rem; }

.alert-success {
  border-radius: 0.65rem;
  border: none;
  background-color: var(--brand-teal-light);
  color: var(--brand-teal-dark);
}

.alert-update {
  background-color: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning-text);
  border-radius: 0.65rem;
  padding: 0.75rem 1.1rem;
  margin-bottom: 1rem;
}

/* Auftraege mit Fehlern - bewusst kraeftiger als der Update-Hinweis: Hier haengt echte
   Arbeit fest, die sonst niemand bemerkt. */
.alert-review {
  background-color: #fdecec;
  border: 1px solid #e0a3a3;
  color: #7a1f1f;
  border-radius: 0.65rem;
  padding: 0.75rem 1.1rem;
  margin-bottom: 1rem;
}

.alert-review .review-row { margin-top: 0.5rem; }

.alert-review .review-count {
  display: inline-block;
  min-width: 1.9rem;
  padding: 0.05rem 0.45rem;
  margin-right: 0.5rem;
  border-radius: 0.5rem;
  background-color: var(--danger);
  color: #fff;
  font-weight: 600;
  text-align: center;
}

/* ---------- Steuerung des Auftragsdienstes ---------- */

.btn-service {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

.btn-service.is-stopped { background-color: var(--brand-teal); }
.btn-service.is-stopped:hover { background-color: var(--brand-teal-dark); }
.btn-service.is-running { background-color: var(--danger); }
.btn-service.is-running:hover { background-color: #a5311f; }

.status-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-value {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.badge-running, .badge-stopped {
  display: inline-block;
  border-radius: 0.4rem;
  padding: 0.15rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.badge-running { background-color: var(--brand-teal-light); color: var(--brand-teal-dark); }
.badge-stopped { background-color: #eceff1; color: var(--text-muted); }

.uptime-clock {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

/* ---------- Auftragsliste ---------- */

.job-list { display: flex; flex-direction: column; gap: 0.75rem; }

.job-item {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--border-color);
  border-radius: 0.65rem;
  padding: 0.9rem 1.1rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.job-item:hover { box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08); }

.job-item.is-active { border-left-color: var(--brand-teal); }
.job-item.is-paused { border-left-color: #cbd2d9; opacity: 0.75; }
.job-item.is-error { border-left-color: var(--danger); }
.job-item.is-running { border-left-color: var(--brand-teal); background-color: #fbfdfd; }

.job-item-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.job-name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-body);
  text-decoration: none;
}

.job-name:hover { color: var(--brand-teal-dark); }

.job-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 0.35rem;
  padding: 0.12rem 0.45rem;
  background-color: var(--brand-teal-light);
  color: var(--brand-teal-dark);
  white-space: nowrap;
}

.job-badge.is-muted { background-color: #eceff1; color: var(--text-muted); }
.job-badge.is-print { background-color: #efe6fa; color: #5b3a91; }
.job-badge.is-error { background-color: #fdecec; color: #7a1f1f; }

/* Quelle -> Ziel in einer Zeile, wie in der Profiluebersicht von Syncovery */
.job-path {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  word-break: break-all;
}

.job-path .path-arrow { color: var(--brand-teal); font-weight: 700; flex: none; }
.job-path .path-part { font-family: "Cascadia Code", Consolas, monospace; font-size: 0.8rem; }

.job-meta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.job-meta strong { color: var(--text-body); font-weight: 600; }
.job-result-ok { color: var(--success); }
.job-result-fail { color: var(--danger); font-weight: 600; }

.job-actions { margin-left: auto; display: flex; gap: 0.4rem; align-items: center; }

.btn-icon {
  border: 1px solid var(--border-color);
  background-color: #fff;
  border-radius: 0.5rem;
  padding: 0.35rem 0.5rem;
  line-height: 0;
  color: var(--text-muted);
  cursor: pointer;
}

.btn-icon:hover { border-color: var(--brand-teal); color: var(--brand-teal); }
.btn-icon svg { width: 1rem; height: 1rem; }
.btn-icon.is-danger:hover { border-color: var(--danger); color: var(--danger); }

/* Laufender Auftrag: dezenter Balken statt Fortschrittswert - wie lange es dauert, weiss
   niemand im Voraus, eine Prozentzahl waere geraten. */
.job-running-bar {
  height: 3px;
  border-radius: 2px;
  margin-top: 0.6rem;
  background: linear-gradient(90deg, var(--brand-teal-light) 25%, var(--brand-teal) 50%, var(--brand-teal-light) 75%);
  background-size: 200% 100%;
  animation: job-running 1.4s linear infinite;
}

@keyframes job-running {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ---------- Aktivitaeten-Ticker ---------- */

.activity-ticker {
  max-height: 17rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  border-radius: 0.65rem;
  border: 1px solid var(--border-color);
  background-color: #fbfcfd;
}

.activity-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.5rem 0.9rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
}

.activity-row:last-child { border-bottom: none; }
.activity-row.is-latest { background-color: var(--brand-teal-light); }
.activity-row.is-new { animation: activity-fade-in 0.35s ease-out; }

.activity-dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--border-color);
  margin-top: 0.3rem;
}

.activity-row.is-latest .activity-dot {
  background-color: var(--brand-teal);
  box-shadow: 0 0 0 3px var(--brand-teal-light);
}

.activity-time {
  flex: none;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.8rem;
}

.activity-message { color: var(--text-body); word-break: break-word; }
.activity-row.is-latest .activity-message { font-weight: 600; color: var(--brand-teal-dark); }

@keyframes activity-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Tagesuebersicht ---------- */

.today-stats-total { color: var(--text-muted); font-size: 0.9rem; }

.today-stats-grid { display: flex; flex-wrap: wrap; gap: 1rem; }

.today-stats-tile {
  flex: 1 1 18rem;
  min-width: 16rem;
  border: 1px solid var(--border-color);
  border-radius: 0.65rem;
  padding: 1rem;
  background-color: #fbfcfd;
}

.today-stats-tile-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 700;
  color: var(--brand-teal-dark);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.today-stats-tile-total {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  font-weight: 600;
}

.today-stats-empty {
  color: var(--text-muted);
  font-style: italic;
  padding: 0.35rem 0;
}

.today-stats-row {
  display: grid;
  grid-template-columns: minmax(6rem, 1fr) minmax(4rem, 8rem) 2rem;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
}

.today-stats-label {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.today-stats-bar-track {
  height: 0.85rem;
  border-radius: 999px;
  background-color: var(--brand-teal-light);
  overflow: hidden;
}

.today-stats-bar-fill {
  height: 100%;
  width: 0%;
  min-width: 2px;
  background-color: var(--brand-teal);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.today-stats-count {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--brand-teal-dark);
}

@media (max-width: 576px) {
  .today-stats-row { grid-template-columns: 1fr; row-gap: 0.25rem; }
  .today-stats-count { text-align: left; }
}

/* ---------- Ausklappbare Einstellungsgruppen ---------- */

.gruppen { display: flex; flex-direction: column; gap: 0.75rem; }

.gruppe {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  overflow: hidden;
}

.gruppe > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.9rem 1.25rem;
  font-weight: 600;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  user-select: none;
}

.gruppe > summary::-webkit-details-marker { display: none; }

.gruppe > summary:hover { background-color: #fafbfc; }

.gruppe[open] > summary { border-bottom: 1px solid var(--border-color); }

/* Aufklapp-Pfeil - dreht sich beim Oeffnen */
.gruppe > summary::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--brand-teal);
  border-bottom: 2px solid var(--brand-teal);
  transform: rotate(-45deg);
  transition: transform 0.15s ease-in-out;
  margin-left: 0.15rem;
}

.gruppe[open] > summary::before { transform: rotate(45deg); }

.gruppe-hinweis {
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-left: auto;
  text-align: right;
}

.gruppe-inhalt { padding: 1.25rem; }

.feld-hinweis {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ---------- Anmeldung ---------- */

.anmeldung {
  max-width: 34rem;
  margin: 0 auto;
  padding: 8rem 1rem 3rem;
  position: relative;
}

.anmeldung-logo {
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  background-color: #fff;
  padding: 0.5rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.anmeldung-karte {
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
  padding: 8rem 3rem 2rem;
  text-align: center;
}

.anmeldung-banner { max-width: 260px; width: 100%; margin-bottom: 1.5rem; }

.anmeldung .input-group-text {
  background-color: #e9ecef;
  min-width: 3rem;
  justify-content: center;
}

.anmeldung .form-control { background-color: #eef4fb; }

/* ---------- Sonstiges ---------- */

.test-result-ok { color: var(--success); font-weight: 500; }
.test-result-fail { color: var(--danger); font-weight: 500; }

/* Immer sichtbarer Speichern-Knopf oben rechts, damit man auf langen Formularen nicht
   bis ans Seitenende scrollen muss. */
.btn-save-floating {
  position: fixed;
  top: 5.5rem;
  right: 1.5rem;
  z-index: 1000;
  background-color: var(--brand-teal);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  padding: 0.6rem 1.3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.btn-save-floating:hover { background-color: var(--brand-teal-dark); }

.log-viewer {
  background-color: #1c2129;
  color: #d7dee5;
  border-radius: 0.65rem;
  padding: 1rem;
  max-height: 65vh;
  overflow-y: auto;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
}

/* Zeilen, in denen nichts passiert ist - im Protokoll ausblendbar, damit die echten
   Meldungen sichtbar bleiben. */
.log-viewer.hide-noop .log-line-noop { display: none; }

/* Platzhalter-Hinweis unter Pfadfeldern */
.platzhalter-hilfe {
  font-size: 0.78rem;
  color: var(--text-muted);
  background-color: #fbfcfd;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.6rem 0.8rem;
  margin-top: 0.5rem;
}

.platzhalter-hilfe code {
  color: var(--brand-teal-dark);
  background-color: var(--brand-teal-light);
  border-radius: 0.25rem;
  padding: 0.05rem 0.25rem;
}

/* Zielzeilen im Auftragsformular */
.ziel-zeile {
  background-color: var(--brand-teal-light);
  border: 1px solid var(--border-color);
  border-radius: 0.65rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.leer-hinweis {
  text-align: center;
  color: var(--text-muted);
  padding: 2.5rem 1rem;
}

.leer-hinweis svg {
  width: 3rem;
  height: 3rem;
  opacity: 0.35;
  margin-bottom: 0.75rem;
}

/* ---------- Wartende Dateien: Punkt mit Zahl ---------- */
/* Übernommen aus dem BS_ELO_Importer (hotfolder-badge). Der Punkt sitzt neben dem
   Auftragsnamen und beantwortet die häufigste Frage im Betrieb auf einen Blick:
   liegt etwas an? */

.wartend-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.4rem;
  margin-left: 0.4rem;
  border-radius: 999px;
  background-color: var(--brand-teal);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}

/* Nichts zu tun - gedämpft, damit die Null nicht wie eine Meldung wirkt. */
.wartend-badge.is-zero {
  background-color: #eceff1;
  color: var(--text-muted);
}

/* Nicht ermittelbar (Quelle nicht erreichbar, Auftrag angehalten, Postfach). Bewusst
   anders als eine echte Null: Ein leerer Ordner und ein ausgefallenes Netzlaufwerk
   dürfen nicht gleich aussehen. */
.wartend-badge.is-unbekannt {
  background-color: transparent;
  border: 1px dashed var(--border-color);
  color: var(--text-muted);
  font-weight: 400;
}

/* Viel Rückstau - fällt auf, ohne zu alarmieren. */
.wartend-badge.is-viel {
  background-color: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning-text);
}

/* =====================================================================
   BS-SENTINEL: Ampel, Waechterliste, Vorfaelle

   Die Farben sind bewusst kraeftig und nur DREI: gruen, gelb, rot. Ein
   Lagebild mit sieben Abstufungen liest im Ernstfall niemand mehr.
   ===================================================================== */

.ampel {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  flex: none;
}

.ampel-gruen     { background-color: #1f9254; }
.ampel-warnung   { background-color: #e8a33d; }
.ampel-stoerung  { background-color: #c0392b; }
.ampel-unbekannt { background-color: #b3bcc5; }

/* Grosse Sammelampel im Kopf des Lagebildes. */
.lage-kopf {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-color);
  background-color: #fff;
}

.lage-kopf .ampel { width: 1.6rem; height: 1.6rem; }
.lage-kopf-text { font-size: 1.15rem; font-weight: 600; }

.lage-kopf.ist-gruen    { border-left: 5px solid #1f9254; }
.lage-kopf.ist-warnung  { border-left: 5px solid #e8a33d; background-color: #fffaf0; }
.lage-kopf.ist-stoerung { border-left: 5px solid #c0392b; background-color: #fdecec; }
.lage-kopf.ist-unbekannt{ border-left: 5px solid #b3bcc5; }

/* Ein Waechter in der Liste. */
.punkt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border-color);
  border-left: 4px solid #cbd2d9;
  border-radius: 0.35rem;
  background-color: #fff;
  margin-bottom: 0.4rem;
}

.punkt.ist-gruen    { border-left-color: #1f9254; }
.punkt.ist-warnung  { border-left-color: #e8a33d; background-color: #fffaf0; }
.punkt.ist-stoerung { border-left-color: #c0392b; background-color: #fdecec; }
.punkt.ist-aus     { opacity: 0.55; }

.punkt-name { font-weight: 600; }
.punkt-zeile { flex: 1 1 auto; min-width: 0; }
.punkt-text { font-size: 0.85rem; color: var(--text-muted); }

/* Ein offener Vorfall. */
.vorfall {
  border: 1px solid #e0a3a3;
  border-left: 5px solid #c0392b;
  border-radius: 0.35rem;
  background-color: #fdecec;
  padding: 0.75rem 1rem;
  margin-bottom: 0.6rem;
}

.vorfall.ist-quittiert {
  border-color: var(--border-color);
  border-left-color: #e8a33d;
  background-color: #fffaf0;
}

.vorfall-kopf { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.vorfall-name { font-weight: 600; }
.vorfall-zeit { font-size: 0.82rem; color: var(--text-muted); }
.vorfall-hinweis {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  border-left: 3px solid var(--brand-teal);
  padding-left: 0.6rem;
}

.gruppentitel {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 1.1rem 0 0.4rem;
}

.einheit-hinweis { font-size: 0.82rem; color: var(--text-muted); }

/* Dezente Fassung einer Aufklapp-Gruppe.
   Fuer Formulare, die im Alltag nicht gebraucht werden: Einen Standort legt man ein
   paarmal im Jahr an, die Liste der vorhandenen sieht man taeglich an. Geschlossen tritt
   die Gruppe deshalb ganz zurueck - geoeffnet ist sie eine normale Karte, weil dann
   tatsaechlich darin gearbeitet wird. */
.gruppe.dezent:not([open]) {
  background-color: transparent;
  border-color: transparent;
}

.gruppe.dezent:not([open]) > summary {
  padding: 0.3rem 0.25rem;
  font-weight: 400;
  font-size: 0.87rem;
  color: var(--text-muted);
}

.gruppe.dezent:not([open]) > summary::before {
  border-right-color: var(--text-muted);
  border-bottom-color: var(--text-muted);
  width: 0.4rem;
  height: 0.4rem;
}

.gruppe.dezent:not([open]) > summary:hover {
  background-color: transparent;
  color: var(--text-body);
}
