/* One stylesheet, no framework. The application is a handful of forms and two
   tables; what it needs is legibility at a desk, not a design system. */

:root {
  --tinte: #1f3864;
  --leise: #595959;
  --linie: #bfbfbf;
  --grund: #ffffff;
  --band: #fff2cc;
  --gut: #e2efda;
  --schlecht: #fce4e4;
  --gefahr: #c00000;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 15px/1.5 -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #111;
  background: var(--grund);
}

header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: var(--tinte);
  color: #fff;
}

header .marke { color: #fff; font-weight: 600; text-decoration: none; letter-spacing: 0.02em; }
header .abmelden { margin-left: auto; }
header .abmelden button {
  margin: 0;
  padding: 0.15rem 0.6rem;
  background: none;
  border-color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

main { max-width: 78rem; margin: 0 auto; padding: 1.5rem; }

footer {
  max-width: 78rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  color: var(--leise);
  font-size: 0.8rem;
}

h1 { font-size: 1.5rem; margin: 0 0 0.25rem; }
h2 { font-size: 1.1rem; margin: 2rem 0 0.5rem; color: var(--tinte); }

a { color: var(--tinte); }
a.gefahr { color: var(--gefahr); }

p.leise, span.leise, ul.leise, .leise { color: var(--leise); font-size: 0.85rem; }
p.leer { color: var(--leise); font-style: italic; }
p.grund { color: var(--gefahr); }
p.hinweis {
  background: var(--band);
  border: 1px solid #e0c97f;
  padding: 0.5rem 0.75rem;
  border-radius: 3px;
}

section { margin-bottom: 1.5rem; }

.kasten {
  border: 1px solid var(--linie);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.kasten.gut { background: var(--gut); border-color: #b7d7a8; }
.kasten.schlecht { background: var(--schlecht); border-color: #e6b8b8; }

table { border-collapse: collapse; width: 100%; margin: 0.5rem 0; }
th, td { text-align: left; padding: 0.35rem 0.6rem; border-bottom: 1px solid #eee; }
thead th { border-bottom: 1px solid var(--linie); font-size: 0.85rem; color: var(--leise); }

table.zahlen td { text-align: right; font-variant-numeric: tabular-nums; }
table.zahlen th[scope="row"] { text-align: left; font-weight: normal; white-space: nowrap; }
table.zahlen td.korrigiert { background: var(--band); }

label { display: block; margin: 0.5rem 0; }
label input, label select { display: block; margin-top: 0.15rem; }

input[type="text"], input[type="number"], select {
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--linie);
  border-radius: 3px;
  font: inherit;
  min-width: 12rem;
}
table.zahlen input[type="text"] { min-width: 0; width: 100%; text-align: right; }

.felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0 1.5rem; }
.reihe { display: flex; align-items: flex-end; gap: 0.75rem; flex-wrap: wrap; }

button {
  margin-top: 0.75rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--tinte);
  border-radius: 3px;
  background: var(--tinte);
  color: #fff;
  font: inherit;
  cursor: pointer;
}
button.gefahr { background: var(--gefahr); border-color: var(--gefahr); }
button.leise { background: none; color: var(--leise); border-color: var(--linie); }
