/* mailbot portal - plain and its own (Roger, 02.10.2026). Light and dark by the system setting. */
:root {
  --grund: #f6f7f9; --flaeche: #ffffff; --text: #1d2330; --leise: #6b7385; --rand: #dde1e8;
  --akzent: #2f6fdd; --akzent-hell: #e8f0fd; --gut: #1f8a4c; --warn: #b7791f; --schlecht: #c0392b;
  --rund: 8px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --grund: #14171d; --flaeche: #1c2028; --text: #e6e9ef; --leise: #9aa3b5; --rand: #2c323d;
          --akzent: #6c9cf0; --akzent-hell: #1f2a3d; --gut: #4cc283; --warn: #e0a84a; --schlecht: #e5766a; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--grund); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--akzent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; margin: 1.2rem 0 .8rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
h3 { font-size: .9rem; margin: .2rem 0 .4rem; color: var(--leise); text-transform: uppercase; letter-spacing: .04em; }
code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--akzent-hell); padding: .05em .35em; border-radius: 4px; }
.klein { font-size: .85em; }
.leise { color: var(--leise); }
.leer { color: var(--leise); padding: 2rem 0; }

.kopf { display: flex; align-items: center; gap: 1.5rem; padding: .7rem 1.2rem; background: var(--flaeche); border-bottom: 1px solid var(--rand); flex-wrap: wrap; }
.kopf .marke { font-weight: 700; font-size: 1.1rem; color: var(--text); letter-spacing: .02em; }
.kopf nav { display: flex; gap: .3rem; flex: 1; }
.kopf nav a { padding: .35rem .7rem; border-radius: var(--rund); color: var(--text); }
.kopf nav a.an { background: var(--akzent-hell); color: var(--akzent); font-weight: 600; }
main { max-width: 1100px; margin: 0 auto; padding: 0 1rem 3rem; }

button, .knopf { font: inherit; padding: .4rem .9rem; border-radius: var(--rund); border: 1px solid var(--akzent); background: var(--akzent); color: #fff; cursor: pointer; display: inline-block; }
.knopf { font-size: .9rem; }
.knopf:hover { text-decoration: none; filter: brightness(1.08); }
button.leise { background: none; border-color: var(--rand); color: var(--leise); }
button.gefahr { background: none; border-color: var(--schlecht); color: var(--schlecht); }
input, textarea { font: inherit; padding: .4rem .55rem; border: 1px solid var(--rand); border-radius: var(--rund); background: var(--flaeche); color: var(--text); width: 100%; }
input[type=checkbox] { width: auto; }
input:focus, textarea:focus { outline: 2px solid var(--akzent); outline-offset: -1px; }

.karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--rund); padding: 1rem 1.2rem; margin: 0 0 1rem; }
.zwei { display: grid; grid-template-columns: 3fr 2fr; gap: 1rem; }
@media (max-width: 760px) { .zwei { grid-template-columns: 1fr; } }
.meldung { background: color-mix(in srgb, var(--gut) 14%, var(--flaeche)); border: 1px solid var(--gut); padding: .5rem .8rem; border-radius: var(--rund); }
.hinweis { background: color-mix(in srgb, var(--warn) 12%, var(--flaeche)); border: 1px solid color-mix(in srgb, var(--warn) 50%, var(--rand)); padding: .5rem .8rem; border-radius: var(--rund); font-size: .9rem; }
.fehler { color: var(--schlecht); }

.leiste { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: 0 0 .8rem; }
.leiste input[type=search], .leiste input { flex: 1 1 14rem; width: auto; }
.chips { display: flex; gap: .3rem; flex-wrap: wrap; }
.chips a { padding: .3rem .75rem; border: 1px solid var(--rand); border-radius: 999px; color: var(--text); background: var(--flaeche); font-size: .9rem; }
.chips a.an { border-color: var(--akzent); color: var(--akzent); background: var(--akzent-hell); font-weight: 600; }

table.liste { width: 100%; border-collapse: collapse; background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--rund); overflow: hidden; }
.liste th { text-align: left; font-size: .8rem; color: var(--leise); font-weight: 600; padding: .5rem .7rem; border-bottom: 1px solid var(--rand); }
.liste td { padding: .5rem .7rem; border-bottom: 1px solid var(--rand); vertical-align: top; }
.liste tr:last-child td { border-bottom: 0; }
.liste td.zeit { white-space: nowrap; color: var(--leise); font-size: .9rem; }
.status { display: inline-block; font-size: .78rem; padding: .05rem .5rem; border-radius: 999px; border: 1px solid var(--rand); white-space: nowrap; }
.s-probe { border-color: var(--akzent); color: var(--akzent); }
.s-erledigt { border-color: var(--gut); color: var(--gut); }
.s-fehler { border-color: var(--schlecht); color: var(--schlecht); }
.s-ohne_regel, .s-eigene, .s-doppelt { color: var(--leise); }
.blaettern { display: flex; justify-content: space-between; }

.gruppe { margin: 0 0 1.2rem; }
.gruppe h2 { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem; display: flex; gap: .8rem; align-items: baseline; }
.regeln td.betreff { width: 38%; }
.regeln td.ziel { width: 30%; font-size: .9rem; }
.regeln td.tun { white-space: nowrap; text-align: right; }
.regeln td.tun form { display: inline; }
.regeln tr.aus td { opacity: .5; }
.regeln tr:target td { background: var(--akzent-hell); }
.stern { font: 600 1rem ui-monospace, monospace; color: var(--akzent); }
.schalter { padding: .1rem .6rem; font-size: .8rem; background: none; border-color: var(--rand); color: var(--leise); margin-right: .4rem; }
.schalter.an { border-color: var(--gut); color: var(--gut); }
details.test summary { cursor: pointer; font-weight: 600; }
details.test form { margin-top: .7rem; }

.formular label { display: block; margin: 0 0 .8rem; font-weight: 600; font-size: .9rem; }
.formular label input, .formular label textarea { margin-top: .25rem; font-weight: 400; }
.formular label .klein { font-weight: 400; display: block; margin-top: .2rem; }
.formular label.zeile { display: flex; gap: .5rem; align-items: center; font-weight: 400; }
.formular fieldset { border: 0; border-top: 1px solid var(--rand); padding: .8rem 0 0; margin: 0 0 .8rem; }
.formular legend { font-weight: 700; padding-right: .5rem; }
.haken { display: flex; gap: 1.2rem; margin: .3rem 0 .9rem; }
.haken label { display: flex; gap: .4rem; align-items: center; font-weight: 400; margin: 0; }
.spalten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 760px) { .spalten { grid-template-columns: 1fr; } }

dl.fakten { display: grid; grid-template-columns: 7rem 1fr; gap: .3rem .8rem; margin: 0; }
dl.fakten dt { color: var(--leise); }
dl.fakten dd { margin: 0; overflow-wrap: anywhere; }
ul.dateien { margin: 0; padding-left: 1.1rem; }
.mailrahmen iframe { width: 100%; height: 70vh; border: 1px solid var(--rand); border-radius: 6px; background: #fff; }

body.login { display: grid; place-items: center; min-height: 100vh; }
.anmelden { width: min(22rem, 92vw); }
.anmelden h1 { margin-top: 0; }
.anmelden label { display: block; margin: 0 0 .8rem; }
.anmelden input { margin-top: .3rem; }
@media (max-width: 640px) {
  .liste th:nth-child(5), .liste td:nth-child(5) { display: none; }
  .regeln td.betreff, .regeln td.ziel { width: auto; }
}
