/* UMS – Bausteine für die Tools: Login-Formular (QR-Code) und Hinweis vor
   dem automatischen Abmelden. Farben wie in allen Musterdorfer Tools. */
.ums-login .ums-qr { width: 220px; height: 220px; margin: 6px auto; }
.ums-login .ums-qr svg { width: 100%; height: 100%; display: block; }
.ums-login .ums-geheimnis { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; letter-spacing: 1px; overflow-wrap: anywhere; }
.ums-login .ums-hinweis { margin: 12px 0; }
.ums-login .ums-hinweis a { color: #c8102e; }
.ums-login .ums-abbrechen { margin-top: 8px; }

.ums-dialog-hintergrund {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0, 0, 0, 0.45);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.ums-dialog {
  background: #fff; color: #2a2a2a; border-top: 6px solid #c8102e; border-radius: 10px;
  max-width: 420px; width: 100%; padding: 22px 24px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.45;
}
.ums-dialog h2 { margin: 0 0 10px; font-size: 20px; color: #c8102e; }
.ums-dialog p { margin: 0 0 16px; }
.ums-dialog .ums-sekunden { font-weight: 700; font-variant-numeric: tabular-nums; }
.ums-dialog-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.ums-dialog button {
  font: inherit; font-weight: 600; cursor: pointer; border-radius: 6px; padding: 10px 18px;
  border: 1px solid #c8102e; background: #c8102e; color: #fff;
}
.ums-dialog button.ums-zweitrangig { background: #fff; color: #c8102e; }

/* „Kein Zugang“-Seite (ohne Layout des Tools) */
body.ums-seite { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; max-width: 480px; margin: 60px auto; padding: 0 16px; color: #2a2a2a; }
body.ums-seite h1 { color: #c8102e; }
body.ums-seite .card { border: 1px solid #e8e0e1; border-radius: 10px; padding: 20px; }
body.ums-seite .btn { display: inline-block; background: #c8102e; color: #fff; border: 1px solid #c8102e; border-radius: 6px; padding: 10px 18px; text-decoration: none; font: inherit; font-weight: 600; cursor: pointer; }
body.ums-seite .btn-secondary { background: #fff; color: #c8102e; }

/* Menü „Meine Tools“ in der Kopfzeile (Client::toolsMenue). Aussehen von
   Knopf und Liste kommt vom nav-menu des Tools; hier nur die Logos. */
.nav-menu.ums-tools nav a.ums-tool { display: flex; align-items: center; gap: 10px; }
.nav-menu.ums-tools .ums-tool-logo { width: 24px; height: 24px; object-fit: contain; flex: none; }
.nav-menu.ums-tools .ums-tool-ohne { display: inline-block; border-radius: 6px; background: rgba(200, 16, 46, 0.12); }
@media (max-width: 480px) {
  .nav-menu.ums-tools .ums-tools-lang { display: none; }
}
