/* Gemeinsamer Stil für den Kundenbereich und unsere interne Oberfläche.
   Farben aus der verbindlichen CI (gehirn/cl/ci.md): Hausfarbe #0A2540,
   Bronze-Akzent wie auf der Website. Systemschriften, damit nichts nachgeladen
   werden muss und die Seite auch offline im Zug aufgeht. */

:root {
  --grund: #f6f8fa;
  --karte: #ffffff;
  --text: #0f2233;
  --haus: #0a2540;
  --leise: #54687a;
  --rand: #e4e8ec;
  --bronze: #8f713d;
  --bronze-hell: #fbf8f3;
  --gruen: #2e7d5b;
  --rot: #c0392b;
  --gelb: #b8860b;
  --schatten: 0 1px 2px rgba(15, 34, 51, 0.06), 0 8px 24px rgba(15, 34, 51, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 10px 0; font-weight: 700; }
h1 { font-size: 24px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p { margin: 0 0 10px 0; }
a { color: var(--bronze); }

.huelle { max-width: 1120px; margin: 0 auto; padding: 20px 16px 60px 16px; }
.schmal { max-width: 640px; }

.kopf {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; background: var(--haus); color: #fff;
}
.kopf a, .kopf button { color: #fff; }
.marke { font-weight: 700; letter-spacing: 0.3px; }
.marke span { color: #d5bfa4; }

/* Die Personen-Auswahl sitzt auf dem dunklen Kopf. Ohne eigene Regel erbt sie
   die weiße Schriftfarbe der Kopfleiste, behält aber den weißen Grund aus der
   allgemeinen Feld-Regel: der Name war dann unsichtbar (gemeldet 16.08.2026). */
.kopf select {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
}
.kopf select option { color: var(--text); background: #fff; }
.kopf select:hover { background: rgba(255, 255, 255, 0.2); }
.kopf select:focus { outline-color: #d5bfa4; }

.karte {
  background: var(--karte); border: 1px solid var(--rand); border-radius: 12px;
  padding: 18px; margin-bottom: 14px; box-shadow: var(--schatten);
}
.karte.eng { padding: 14px; }

label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 4px 0; }
input[type="text"], input[type="url"], input[type="number"], input[type="password"], textarea, select {
  width: 100%; padding: 9px 11px; font: inherit; color: inherit;
  border: 1px solid var(--rand); border-radius: 8px; background: #fff;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--bronze); outline-offset: 1px; }

button {
  font: inherit; font-weight: 600; cursor: pointer;
  border: 1px solid var(--rand); background: #fff; color: var(--text);
  padding: 9px 16px; border-radius: 999px;
}
button:hover { border-color: var(--bronze); }
button.haupt { background: var(--haus); border-color: var(--haus); color: #fff; }
button.haupt:hover { background: #123454; }
button.leise { background: transparent; border-color: transparent; color: var(--leise); padding: 6px 8px; }
button.rot { color: var(--rot); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.aufnahme { background: var(--rot); border-color: var(--rot); color: #fff; }

.reihe { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.raster { display: grid; gap: 12px; }
.raster.zwei { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.raster.drei { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.leise-text { color: var(--leise); font-size: 13px; }
.fehler { color: var(--rot); font-size: 13px; margin-top: 8px; }
.erfolg { color: var(--gruen); font-size: 13px; margin-top: 8px; }

.marke-punkt {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  background: var(--bronze-hell); color: var(--bronze); border: 1px solid rgba(143,113,61,0.3);
}
.marke-punkt.gruen { background: #edf7f2; color: var(--gruen); border-color: rgba(46,125,91,0.3); }
.marke-punkt.rot { background: #fdf0ee; color: var(--rot); border-color: rgba(192,57,43,0.3); }
.marke-punkt.grau { background: #f1f4f7; color: var(--leise); border-color: var(--rand); }

/* Fortschritt im Kundenbereich */
.stufen { list-style: none; margin: 0; padding: 0; }
.stufen li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 0 0 14px 0; position: relative;
}
.stufen li::before {
  content: ""; position: absolute; left: 10px; top: 22px; bottom: 0;
  width: 2px; background: var(--rand);
}
.stufen li:last-child::before { display: none; }
.punkt {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--rand); background: #fff; margin-top: 1px;
}
.stufen li.erledigt .punkt { background: var(--gruen); border-color: var(--gruen); }
.stufen li.jetzt .punkt { background: var(--bronze); border-color: var(--bronze); }
.stufen li.jetzt .stufen-text { font-weight: 700; }
.stufen-text { font-size: 14px; }
.stufen li:not(.erledigt):not(.jetzt) .stufen-text { color: var(--leise); }

/* Liste im Intern */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--rand); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--leise); font-weight: 700; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: #fafbfc; }
td.zahl, th.zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.antwort-block { border-left: 3px solid var(--rand); padding-left: 12px; margin-bottom: 14px; }
.antwort-block .frage { font-size: 13px; font-weight: 600; color: var(--leise); }
.antwort-block .antwort { white-space: pre-wrap; }

.aufnahme-anzeige {
  font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 700;
  color: var(--haus);
}
.puls { animation: pulsieren 1.4s ease-in-out infinite; }
@keyframes pulsieren { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.dateiliste { list-style: none; margin: 0; padding: 0; }
.dateiliste li {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--rand); font-size: 14px;
}
.dateiliste .datei-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.dateiliste .datei-groesse { flex: 0 0 auto; text-align: right; color: var(--leise); font-variant-numeric: tabular-nums; }

.verlauf { list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--leise); }
.verlauf li { padding: 5px 0; border-bottom: 1px solid var(--rand); }

pre.gehirn {
  white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px;
  background: #f1f4f7; border: 1px solid var(--rand); border-radius: 8px;
  padding: 12px; max-height: 320px; overflow: auto;
}

.verstecken { display: none !important; }

@media (max-width: 640px) {
  .huelle { padding: 14px 12px 50px 12px; }
  h1 { font-size: 21px; }
  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  tbody tr { border: 1px solid var(--rand); border-radius: 10px; margin-bottom: 10px; padding: 6px 10px; background: #fff; }
  td { border: 0; padding: 4px 0; }
  td.zahl { text-align: left; }
  td::before { content: attr(data-spalte) ": "; font-weight: 600; color: var(--leise); }
  td.ohne-label::before { content: ""; }
}
