/* Weitere Leitstand-Seiten im selben Design: SMS-Postausgang, Administration,
   Anmeldung und Fehlerseite. Bausteine und Masse wie tag.css / anlage.css. */

.tag-luecke { flex-grow: 1; }
.se-klein { font-size: 12px; }

/* ---------------------------------------------------------------- Kopf + Inhalt */
.se-kopf {
  flex: none; min-height: var(--topbar); padding: 14px 28px;
  display: flex; align-items: center; gap: 28px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.se-titel { display: flex; flex-direction: column; flex: none; }
.se-titel h1 { font-size: 24px; line-height: 1.1; }
.se-kopf-text { max-width: 680px; font-size: 13.5px; color: var(--text-2); }
.se-haupt { padding: 20px 28px 28px; display: flex; flex-direction: column; gap: 18px; }
.se-karte-kopf { padding: 12px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.se-karte-kopf h2 { font-family: var(--font-body); font-size: 17px; }
.se-leer { padding: 32px 18px; text-align: center; color: var(--muted); }

/* ---------------------------------------------------------------- Formulare */
.se-formular { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; margin: 0; }
.se-formular label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.se-formular label .gedaempft { font-weight: 400; }
.se-formular input, .se-formular select, .ad-tab select, .ad-pw-form input {
  height: 40px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); font-size: 14.5px; font-weight: 400;
}
.se-formular input:focus-visible, .se-formular select:focus-visible { outline-offset: 0; border-color: var(--blue); }
.se-formular .btn { align-self: flex-start; }
.se-formular .btn-voll { align-self: stretch; }
.se-zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* ---------------------------------------------------------------- SMS-Postausgang */
.se-tag { display: flex; flex-direction: column; gap: 8px; max-width: 980px; }
.se-tag-titel { padding: 4px 2px; }
.se-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.se-nachricht { padding: 12px 18px 14px; display: flex; flex-direction: column; gap: 6px; }
.se-nachricht-kopf { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.se-art {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: var(--r-xs);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.se-art-sms { background: var(--kunde-bg); color: var(--kunde-fg); }
.se-art-mail { background: var(--disabled-bg); color: var(--muted); }
.se-an { font-size: 12.5px; color: var(--text-2); }
.se-anlage { font-size: 12.5px; font-weight: 600; text-decoration: none; }
.se-anlage:hover { text-decoration: underline; }
.se-zeit { font-size: 12px; }
.se-text { font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.se-text a { font-family: var(--font-mono); font-size: 13px; font-weight: 600; }

/* ---------------------------------------------------------------- Administration */
.ad-raster { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.ad-rechts { display: flex; flex-direction: column; gap: 18px; }
.ad-benutzer { overflow: hidden; }
.ad-tab { width: 100%; border-collapse: collapse; font-size: 14px; }
.ad-tab thead th {
  background: var(--ground); border-bottom: 1px solid var(--line); padding: 9px 10px; text-align: left;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.ad-tab thead th:first-child, .ad-tab tbody th { padding-left: 18px; }
.ad-tab td, .ad-tab tbody th { padding: 10px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
.ad-tab tr:last-child td, .ad-tab tr:last-child th { border-bottom: 0; }
.ad-gesperrt td, .ad-gesperrt th { background: var(--surface-2); }
.ad-gesperrt .ad-name-text { color: var(--muted); }
.ad-name { font-weight: 400; }
.ad-name-text { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.ad-mail { display: block; font-size: 11.5px; color: var(--muted); }
.ad-c-rolle { width: 210px; }
.ad-c-status { width: 90px; }
.ad-c-login { width: 150px; }
.ad-c-aktion { width: 236px; }
.ad-tab td.mono { white-space: nowrap; }
.ad-rolle { display: flex; gap: 6px; margin: 0; }
.ad-tab select { height: 34px; font-size: 13.5px; }
.ad-aktionen { display: flex; align-items: flex-start; gap: 6px; }
.ad-pw { position: relative; }
.ad-pw summary { list-style: none; }
.ad-pw summary::-webkit-details-marker { display: none; }
.ad-pw[open] summary { background: var(--blue-wash); }
.ad-pw-form {
  position: absolute; right: 0; top: 40px; z-index: 5; width: 280px;
  display: flex; flex-direction: column; gap: 8px; padding: 12px; margin: 0;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  box-shadow: 0 18px 40px -18px rgba(10, 37, 64, 0.45); font-size: 13px; font-weight: 600;
}
.ad-pw-form .btn { align-self: flex-start; }
.ad-sim { border-top: 4px solid var(--auto-dot); }
.ad-sim-text { padding: 14px 18px 4px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.ad-sim-form { padding: 12px 18px 18px; margin: 0; }

/* ---------------------------------------------------------------- Anmeldung / Fehler */
body.zugang { background: var(--ground); }
.zg-buehne { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 32px 16px; }
.zg-karte { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-card); }
.zg-kopf { padding: 20px 24px; background: var(--navy); color: #fff; border-top: 4px solid var(--blue); }
.zg-kopf .marke-unter { color: #8aa3c2; }
.zg-form { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 14px; margin: 0; }
.zg-form.se-formular { padding: 22px 24px 24px; }
.zg-form > .btn { align-self: flex-start; }
.zg-titel { font-size: 26px; }
.zg-text { font-size: 14px; color: var(--text-2); }
.zg-fehler {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--crit-tint); color: var(--crit-text); font-size: 14px; font-weight: 600;
}
.zg-fehler svg { flex: none; }
.zg-fuss { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }

/* ---------------------------------------------------------------- Einstellungen */
.ei-karte { max-width: 820px; }
.ei-form { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.ei-text { color: var(--text-2); font-size: 14.5px; max-width: 70ch; }
.ei-modi { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ei-modus {
  display: grid; grid-template-columns: 28px 130px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; background: var(--surface);
}
.ei-modus:hover { border-color: var(--line-strong); }
.ei-modus:has(input:checked) { border-color: var(--blue); background: var(--blue-wash); }
.ei-modus:focus-within { outline: 3px solid var(--blue-light); outline-offset: 1px; }
.ei-modus input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ei-haken {
  width: 24px; height: 24px; border: 2px solid var(--line-strong); border-radius: var(--r-xs);
  display: grid; place-items: center; color: transparent; background: var(--surface); margin-top: 2px;
}
.ei-modus:has(input:checked) .ei-haken { background: var(--blue); border-color: var(--blue); color: #fff; }
.ei-modus .modus-badge { justify-self: start; margin-top: 1px; }
.ei-modus-text { display: flex; flex-direction: column; gap: 2px; }
.ei-modus-titel { font-weight: 700; }
.ei-modus-desc { font-size: 13.5px; color: var(--muted); }
.ei-modus-offen { font-size: 12.5px; color: var(--warn-text); margin-top: 2px; }
.ei-hinweis { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.ei-hinweis svg { flex: none; margin-top: 2px; }
.ei-fuss { display: flex; justify-content: flex-end; }

/* Administration › Simulation: Tag leeren (mit Bestaetigung) */
.ad-sim-leeren { border-top: 1px solid var(--line); }
.ad-leeren-form { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.ad-bestaetigen { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 14px; cursor: pointer; }
.ad-bestaetigen input { width: 20px; height: 20px; accent-color: var(--crit); flex: none; }
.ei-karte + .ei-karte { margin-top: 0; }
.ei-intervall { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ei-intervall legend { float: left; font-weight: 600; font-size: 14px; margin-right: 6px; padding: 0; }
.ei-intervall-opt { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); cursor: pointer; font-size: 14px; }
.ei-intervall-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ei-intervall-opt:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.ei-intervall-opt:focus-within { outline: 3px solid var(--blue-light); outline-offset: 1px; }
