:root {
  --tinte: #1d2733;
  --grund: #f6f7f9;
  --karte: #ffffff;
  --linie: #d7dce3;
  --warn: #8a5a00;
  --warngrund: #fff4dd;
  --stoer: #8a1f1f;
  --stoergrund: #fdeaea;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", sans-serif;
  color: var(--tinte);
  background: var(--grund);
}
header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.7rem 1.2rem;
  background: var(--karte);
  border-bottom: 1px solid var(--linie);
}
header nav a { margin-left: 1rem; color: var(--tinte); }
main { max-width: 62rem; margin: 1.2rem auto; padding: 0 1.2rem; }
h1 { font-size: 1.25rem; }
h2 { font-size: 1.05rem; margin-top: 1.6rem; }
.anzahl { color: #5a6675; font-weight: normal; }
.erlaeuterung, .meta { color: #5a6675; font-size: 0.92rem; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--karte);
  border: 1px solid var(--linie);
}
th, td {
  text-align: left;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--linie);
  font-size: 0.93rem;
}
.hinweis {
  background: var(--warngrund);
  color: var(--warn);
  border: 1px solid #eede9c;
  padding: 0.5rem 0.8rem;
  margin: 0.5rem 0;
  border-radius: 4px;
}
.stoerung {
  background: var(--stoergrund);
  color: var(--stoer);
  border: 1px solid #eec3c3;
  padding: 0.5rem 0.8rem;
  margin: 0.5rem 0;
  border-radius: 4px;
}
.ruhend {
  background: var(--karte);
  border: 1px solid var(--linie);
  padding: 0.5rem 0.8rem;
  margin: 0.5rem 0;
  border-radius: 4px;
}
.marke {
  display: inline-block;
  background: var(--warngrund);
  color: var(--warn);
  border-radius: 3px;
  padding: 0.05rem 0.4rem;
  margin-right: 0.3rem;
  font-size: 0.85rem;
}
tr.befund td {
  background: #fbfcfd;
  color: #3c4653;
  font-size: 0.9rem;
  padding-top: 0.2rem;
}
tr.befund p { margin: 0.2rem 0; }
tr.befund em { color: #5a6675; font-style: normal; font-weight: 600; }
button {
  font: inherit;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--linie);
  background: var(--karte);
  border-radius: 4px;
  cursor: pointer;
}
button:hover { background: #eef1f5; }
.stand {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-left: 4px solid #4a6fa5;
  border-radius: 4px;
  padding: 0.7rem 1rem;
  margin: 0.6rem 0;
}
.stand .konstellation { font-weight: 600; margin: 0 0 0.4rem; }
.stand p { margin: 0.3rem 0; }
.stand em { color: #5a6675; font-style: normal; font-weight: 600; }
h3 { font-size: 0.98rem; margin-top: 1.2rem; }

pre.entwurf {
  white-space: pre-wrap;
  font-family: inherit;
  background: #f8f9fb;
  border: 1px solid var(--linie);
  border-radius: 4px;
  padding: 0.6rem 0.8rem;
  margin: 0.4rem 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.freigegeben {
  background: #eef7ee;
  color: #1f5c23;
  border: 1px solid #c3e0c3;
  padding: 0.5rem 0.8rem;
  margin: 0.5rem 0;
  border-radius: 4px;
}
form label { margin-right: 0.8rem; }
form input, form select { font: inherit; padding: 0.25rem 0.4rem; }

.schritt {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-left: 4px solid #4a6fa5;
  border-radius: 4px;
  padding: 0.7rem 1rem;
  margin: 0.8rem 0;
}
.schritt.frei { border-left-color: #3f8b45; }
.schritt .konstellation { font-weight: 600; margin: 0 0 0.4rem; }
.schritt p { margin: 0.35rem 0; }
.schritt em { color: #5a6675; font-style: normal; font-weight: 600; }
.marke.frei { background: #eef7ee; color: #1f5c23; }
textarea {
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  width: 100%;
  max-width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--linie);
  border-radius: 4px;
}
form.chat { background: #f4f6fa; border-radius: 4px; padding: 0.2rem 0.6rem; }
form.freigabezeile { border-top: 1px dashed var(--linie); padding-top: 0.3rem; }

form.einarbeiten { display: inline; margin-left: 0.4rem; }
form.einarbeiten button { padding: 0.1rem 0.5rem; font-size: 0.85rem; }

/* Der Baustein passt nicht zum Empfaenger des Schritts - keine Panne des
   Systems, sondern eine Frage an den Menschen vor der Freigabe. */
.warnung {
  border-left: 3px solid #b8860b;
  background: #fdf6e3;
  padding: .5em .8em;
  margin: .4em 0;
}

/* Die Akten mit ihrem naechsten Schritt. Breite Zeilen, weil in der
   letzten Spalte Begruendung und Vorbehalte stehen - die gehoeren
   neben die Aufgabe und nicht in eine Fussnote. */
table.akten { border-collapse: collapse; width: 100%; margin: .6em 0; }
table.akten th, table.akten td {
  border-bottom: 1px solid #ddd; padding: .5em .6em;
  text-align: left; vertical-align: top;
}
table.akten th { font-size: .9em; color: #555; }
table.akten td:nth-child(3) { white-space: nowrap; }

/* Filterleiste und Paketanlage. Beides steht ueber der Liste, weil es
   die Liste bestimmt - nicht daneben, wo es aussaehe wie Beiwerk. */
form.filter {
  background: #f7f7f9; border: 1px solid #e2e2e6;
  padding: .5em .8em; margin: .6em 0;
}
form.filter p { margin: .4em 0; }
form.filter label { margin-right: 1.2em; display: inline-block; }


/* Die gerechneten Textstuecke eines Schreibens: viele Zeilen, deshalb
   schmal gesetzt und mit eingeklapptem Wortlaut. */
table.bausteine { width: 100%; border-collapse: collapse; margin-top: .5em; }
table.bausteine th { text-align: left; font-weight: normal; opacity: .6; }
table.bausteine td { vertical-align: top; padding: .15em .6em .15em 0;
                     border-top: 1px solid rgba(0,0,0,.06); }
table.bausteine td:first-child { text-align: right; white-space: nowrap; }
table.bausteine pre { white-space: pre-wrap; max-height: 24em; overflow: auto;
                      font-size: .9em; }
