/* GlasERP – Stammdaten-Übersicht (Auftrag Fabian 20.10.2026; seit 10.5.8 Schwarz auf Weiss wie alles, Fabian 1.11.2026: «alles schwarz auf weiss»).
   Bis 10.5.6 war die Übersicht und jede Stammdaten-Unterseite schwarz (body.md-dunkel-seite aus app.js); diese Regeln sind weg, app.js setzt
   die Klasse nicht mehr. Der Behälter heisst weiterhin .md-dunkel (public/stammdaten.js, Tests), gestaltet ist er hell:
   Fläche der Seite wie überall, Karten und Suchfeld weiss mit feiner Linie, Schrift dunkel, Zusatztexte grau. */
.md-dunkel { color: #111; }
.md-dunkel .md2-kopf h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: .01em; color: #111; }
.md-dunkel .md2-unter { margin: 0 0 18px; color: #5f646b; font-size: 14px; }
.md-dunkel .md2-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.md-dunkel .md2-suche { position: relative; margin: 0 0 14px; }
.md-dunkel .md2-suche input { width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 14px; background: #fff; color: #111;
  border: 1px solid #e6e8eb; border-radius: 6px; font-size: 15px; }
.md-dunkel .md2-suche input::placeholder { color: #8a8f96; }
.md-dunkel .md2-suche input:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.md-dunkel .md2-suche-zahl { position: absolute; right: 14px; top: 13px; font-size: 12px; color: #5f646b; pointer-events: none; }
.md-dunkel .md2-leer { margin: 8px 2px 0; color: #5f646b; font-size: 13px; }
.md-dunkel #sq-treffer { margin-top: 6px; }
.md-dunkel #sq-treffer .sq-treffer { display: block; padding: 9px 12px; background: #fff; border: 1px solid #e6e8eb; border-radius: 6px;
  margin-top: 6px; color: #111; text-decoration: none; }
.md-dunkel #sq-treffer .sq-treffer:hover, .md-dunkel #sq-treffer .sq-treffer:focus-visible { border-color: #111; outline: none; }
.md-dunkel #sq-treffer .badge { background: #eef0f2; color: #3a3f45; }
.md-dunkel #sq-treffer .sq-hilfe { color: #5f646b; }
/* Angaben prüfen – eingeklappt, Anzahl der Hinweisthemen im Kopf */
.md-dunkel .md2-pruefen { background: #fff; border: 1px solid #e6e8eb; border-radius: 8px; margin: 0 0 18px; }
.md-dunkel .md2-pruefen > summary { list-style: none; cursor: pointer; padding: 13px 16px; font-weight: 600; font-size: 14px; display: flex;
  align-items: center; gap: 8px; min-height: 46px; box-sizing: border-box; color: #111; }
.md-dunkel .md2-pruefen > summary::-webkit-details-marker { display: none; }
.md-dunkel .md2-pruefen > summary::before { content: '▸'; color: #5f646b; font-size: 12px; }
.md-dunkel .md2-pruefen[open] > summary::before { content: '▾'; }
.md-dunkel .md2-pruefen > summary:focus-visible { outline: 2px solid #111; outline-offset: -2px; border-radius: 8px; }
.md-dunkel .md2-pruefen-text { font-weight: 400; color: #5f646b; }
.md-dunkel .md2-zahl { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 11px; background: #eef0f2; color: #3a3f45;
  font-size: 12px; font-weight: 600; text-align: center; }
.md-dunkel #md-pruefen-liste { padding: 2px 16px 14px; border-top: 1px solid #e6e8eb; }
.md-dunkel .md2-h3 { margin: 12px 0 2px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #5f646b; }
.md-dunkel .md2-hinweis { margin: 0 0 8px; color: #5f646b; font-size: 13px; }
.md-dunkel .md2-stand { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 2px; }
.md-dunkel .md2-stand .badge { background: #eef0f2; color: #3a3f45; }
.md-dunkel .md-todo-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 0; min-height: 44px;
  box-sizing: border-box; border-top: 1px solid #e6e8eb; color: #111; text-decoration: none; }
.md-dunkel .md-todo-row:first-of-type { border-top: 0; }
.md-dunkel .md-todo-row:hover .md-todo-go, .md-dunkel .md-todo-row:focus-visible .md-todo-go { color: #111; }
.md-dunkel .md-todo-row:focus-visible { outline: 2px solid #111; outline-offset: 2px; border-radius: 4px; }
.md-dunkel .md-todo-row .sq-folge { display: block; color: #5f646b; font-size: 13px; }
.md-dunkel .md-todo-go { color: #5f646b; font-size: 13px; white-space: nowrap; }
.md-dunkel .md-badge-warn { background: #fef3c7; color: #92400e; border-radius: 10px; min-width: 20px; padding: 1px 7px; font-size: 12px;
  font-weight: 600; text-align: center; text-decoration: none; }
.md-dunkel .md-badge { background: #eef0f2; color: #3a3f45; border-radius: 10px; padding: 1px 7px; font-size: 12px; }
/* Bereichskarten: zwei Spalten, auf schmalen Geräten eine */
.md-dunkel .md2-karten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.md-dunkel .md2-karte { background: #fff; border: 1px solid #e6e8eb; border-radius: 8px; padding: 14px 16px 10px; min-width: 0; }
.md-dunkel .md2-karte-kopf { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 10px; border-bottom: 1px solid #e6e8eb; }
.md-dunkel .md2-icon { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px; background: #f0f1f3; display: grid; place-items: center; }
.md-dunkel .md2-icon svg { width: 20px; height: 20px; fill: none; stroke: #111; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.md-dunkel .md2-karte-kopf h2 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #111; }
.md-dunkel .md2-karte-kopf p { margin: 3px 0 0; font-size: 13px; color: #5f646b; }
.md-dunkel .md2-liste { list-style: none; margin: 0; padding: 0; }
.md-dunkel .md2-eintrag { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid #eceef0; }
.md-dunkel .md2-liste > .md2-eintrag:first-child { border-top: 0; }
.md-dunkel .md2-eintrag[hidden], .md-dunkel .md2-karte[hidden] { display: none; }
.md-dunkel .md2-eintrag .md-card-link { flex: 1; display: block; padding: 11px 2px; min-height: 44px; box-sizing: border-box; color: #111;
  text-decoration: none; font-size: 14px; }
.md-dunkel .md2-eintrag .md-card-link:hover { color: #111; text-decoration: underline; text-underline-offset: 3px; }
.md-dunkel .md2-eintrag .md-card-link:focus-visible { outline: 2px solid #111; outline-offset: -2px; border-radius: 4px; }
.md-dunkel .md2-eintrag .md-nav-right { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.md-dunkel .md2-weitere { margin-top: 2px; }
.md-dunkel .md2-weitere > summary { list-style: none; cursor: pointer; padding: 10px 2px; min-height: 44px; box-sizing: border-box; display: flex;
  align-items: center; gap: 8px; color: #5f646b; font-size: 13px; border-top: 1px solid #eceef0; }
.md-dunkel .md2-weitere > summary::-webkit-details-marker { display: none; }
.md-dunkel .md2-weitere > summary::before { content: '▸'; font-size: 11px; }
.md-dunkel .md2-weitere[open] > summary::before { content: '▾'; }
.md-dunkel .md2-weitere > summary:hover { color: #111; }
.md-dunkel .md2-weitere > summary:focus-visible { outline: 2px solid #111; outline-offset: -2px; border-radius: 4px; }
.md-dunkel .md2-weitere .md2-liste { border-top: 1px solid #eceef0; }
.md-dunkel .md2-weitere .md2-liste > .md2-eintrag:first-child { border-top: 0; }
@media (max-width: 900px) { .md-dunkel .md2-karten { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .md-dunkel .md2-kopf h1 { font-size: 22px; }
  .md-dunkel .md-todo-row { grid-template-columns: auto 1fr; }
  .md-dunkel .md-todo-go { grid-column: 2; white-space: normal; }
  .md-dunkel .md2-suche-zahl { display: none; }
}
