/* cozZ Widersprüche – Fallbearbeitung des Teams (/team/ auf widerspruch.cozz.com und admin.cozz.com:8444, FORMATS §44f).
 * Farben wie Portal, Trips und Admin; hell und dunkel; ohne Inline-Stile (CSP style-src 'self'). */
:root {
  --bg: #f6f8fb; --fl: #ffffff; --fl2: #eef2f7; --text: #172033; --leise: #5b6578; --linie: #dde3ec;
  --akzent: #0d6bd9; --akzent-2: #0a56ae; --akzent-hell: #e3eefc; --gut: #1f8a4c; --gut-hell: #e2f4ea;
  --warn: #b36b00; --warn-hell: #fdf1dc; --schlecht: #c2372f; --schlecht-hell: #fbe5e3;
  --schatten: 0 1px 2px rgba(20, 30, 50, .06), 0 4px 16px rgba(20, 30, 50, .06);
  --rund: 12px; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e131b; --fl: #161d28; --fl2: #1d2633; --text: #e8edf5; --leise: #9aa6b8; --linie: #2a3442;
    --akzent: #4c9bff; --akzent-2: #79b4ff; --akzent-hell: #16263d; --gut: #4cc683; --gut-hell: #12291d;
    --warn: #f0b04a; --warn-hell: #2c2414; --schlecht: #ff7a70; --schlecht-hell: #331a18;
    --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25); color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--akzent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.3rem, 4vw, 1.7rem); }
h2 { font-size: 1.15rem; margin-top: 1.4em; }
h3 { font-size: 1rem; margin-top: 1em; }
p { margin: 0 0 .7em; }
.leise { color: var(--leise); }
.klein { font-size: .85rem; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }
[hidden] { display: none !important; }

.kopf {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: var(--fl); border-bottom: 1px solid var(--linie);
}
.marke { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 1.05rem; }
.marke:hover { text-decoration: none; }
.logo {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--akzent); color: #fff; font-weight: 800;
}
.nav { display: flex; gap: 14px; flex-wrap: wrap; }
.nav a.aktiv { font-weight: 700; text-decoration: underline; }
.konto { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--leise); font-size: .9rem; }
.konto .mail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
main { flex: 1; width: 100%; max-width: 1300px; margin: 0 auto; padding: 16px max(16px, env(safe-area-inset-right)) 48px max(16px, env(safe-area-inset-left)); outline: none; }
.fuss { text-align: center; padding: 16px; font-size: .85rem; color: var(--leise); }

.knopf, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 5px 14px;
  border-radius: 8px; border: 1px solid var(--akzent); background: var(--akzent); color: #fff; font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none;
}
.knopf:hover, button:hover { background: var(--akzent-2); text-decoration: none; }
.zweit { background: var(--fl); color: var(--akzent); }
.zweit:hover { background: var(--akzent-hell); }
.klein.knopf, button.klein { min-height: 30px; padding: 2px 10px; font-size: .85rem; font-weight: 500; }
button.gefahr { background: var(--fl); color: var(--schlecht); border-color: var(--schlecht); }
button.gefahr:hover { background: var(--schlecht-hell); }
button:disabled { opacity: .5; cursor: default; }
.knopfzeile { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }

input, select, textarea {
  font: inherit; color: var(--text); background: var(--fl); border: 1px solid var(--linie); border-radius: 8px; padding: 6px 10px;
  min-height: 36px; max-width: 100%;
}
textarea { width: 100%; min-height: 110px; resize: vertical; }
textarea.lang { min-height: 240px; }
input.code { letter-spacing: .3em; font-variant-numeric: tabular-nums; max-width: 12em; }
.feld { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; min-width: 0; }
.feld label { font-weight: 600; font-size: .9rem; }
.filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 12px; }
.filter .feld { margin: 0; }
.filter .suche { flex: 1 1 14em; }

.zentriert { display: flex; justify-content: center; }
.flaeche { background: var(--fl); border: 1px solid var(--linie); border-radius: var(--rund); box-shadow: var(--schatten); padding: 20px; width: 100%; max-width: 480px; }
.karte { background: var(--fl); border: 1px solid var(--linie); border-radius: var(--rund); padding: 14px 16px; margin: 10px 0; box-shadow: var(--schatten); min-width: 0; }
.hinweis { padding: 8px 12px; border-radius: 8px; background: var(--fl2); }
.hinweis.fehler { background: var(--schlecht-hell); color: var(--schlecht); }
.hinweis.gut { background: var(--gut-hell); color: var(--gut); }
.hinweis.warn { background: var(--warn-hell); color: var(--warn); }

.tabelle-rahmen { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--fl); border: 1px solid var(--linie); border-radius: 8px; }
th, td { text-align: left; vertical-align: top; padding: 7px 9px; border-bottom: 1px solid var(--linie); }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--leise); background: var(--fl2); white-space: nowrap; }
tr.zeile:hover td { background: var(--fl2); }
code, .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
.rot { color: var(--schlecht); font-weight: 700; }
.gruen { color: var(--gut); }
.text { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--fl2); border-radius: 8px; padding: 10px 12px; margin: 6px 0; }

.marke-status { display: inline-block; font-size: .78rem; padding: 1px 8px; border-radius: 999px; background: var(--fl2); color: var(--text); white-space: nowrap; }
.st-menschliche_pruefung, .st-eingegangen { background: var(--warn-hell); color: var(--warn); }
.st-wartet_auf_absender { background: var(--akzent-hell); color: var(--akzent); }
.st-erledigt { background: var(--gut-hell); color: var(--gut); }
.st-abgelehnt, .st-verfallen { background: var(--schlecht-hell); color: var(--schlecht); }
.warnsignal { display: inline-block; font-size: .78rem; padding: 0 6px; margin: 1px 2px 1px 0; border-radius: 4px; background: var(--schlecht-hell); color: var(--schlecht); }

.kopfdaten { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 16px; margin: 8px 0; }
.kopfdaten div { min-width: 0; }
.kopfdaten dt, dl.paare dt { font-size: .78rem; color: var(--leise); text-transform: uppercase; letter-spacing: .03em; }
.kopfdaten dd, dl.paare dd { margin: 0; overflow-wrap: anywhere; }
dl.paare { display: grid; grid-template-columns: minmax(8em, max-content) 1fr; gap: 4px 14px; margin: 6px 0; }
dl.paare dt { align-self: baseline; }
.aktionen { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.aktionen .karte { margin: 0; }

.raster { display: grid; gap: 16px; grid-template-columns: 1fr; }
.raster > * { min-width: 0; }
@media (min-width: 1000px) { .raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.kandidat.gewaehlt { border-color: var(--gut); box-shadow: 0 0 0 2px var(--gut-hell); }
.nachricht { border-left: 4px solid var(--linie); }
.nachricht.aus { border-left-color: var(--akzent); }
.nachricht.ein { border-left-color: var(--warn); }
.nachricht.intern { border-left-color: var(--leise); background: var(--fl2); }
.nachricht .text { background: var(--bg); }
details.ki > summary { cursor: pointer; font-weight: 600; }
details.ki[open] > summary { margin-bottom: 8px; }
.seiten { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.leer { padding: 20px; text-align: center; color: var(--leise); }
