/* Schlichtes, ruhiges Layout. Akzentfarbe Bordeaux wie im Willuhn-Auftritt. */
:root {
  --bordeaux: #7a1f2b;
  --bordeaux-dunkel: #5d1721;
  --text: #22252a;
  --gedaempft: #5f6670;
  --linie: #dcdfe4;
  --flaeche: #ffffff;
  --grund: #f6f6f4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.kopf {
  background: var(--bordeaux);
  padding: 18px 24px;
}

.marke {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.inhalt {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-weight: 600;
}

.hinweis, .neben { color: var(--gedaempft); }
.neben { margin-top: 40px; font-size: 0.9rem; }
.neben a { color: var(--gedaempft); }

a { color: var(--bordeaux); }

/* Formulare: ein Feld je Zeile, Beschriftung darüber. */
.formular {
  max-width: 420px;
  margin-top: 24px;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 6px;
  padding: 24px;
}

.feld { margin-bottom: 20px; }

.feld label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.feld input, .feld select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--linie);
  border-radius: 4px;
  background: #fff;
  color: inherit;
  font: inherit;
}

.feld input:focus, .feld select:focus {
  border-color: var(--bordeaux);
  outline: 2px solid rgba(122, 31, 43, 0.18);
}

button[type="submit"] {
  padding: 10px 22px;
  border: 0;
  border-radius: 4px;
  background: var(--bordeaux);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button[type="submit"]:hover { background: var(--bordeaux-dunkel); }

.fehler {
  margin: 20px 0 0;
  max-width: 420px;
  padding: 12px 14px;
  border-left: 4px solid var(--bordeaux);
  background: #fbeced;
  color: var(--bordeaux-dunkel);
}

/* Kacheln der Startseite */
.kacheln {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
}

.kachel {
  flex: 1 1 260px;
  display: block;
  padding: 24px;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
}

.kachel:hover { border-color: var(--bordeaux); }

.kachel-titel {
  display: block;
  margin-bottom: 8px;
  color: var(--bordeaux);
  font-size: 1.15rem;
  font-weight: 600;
}

.kachel-text { display: block; color: var(--gedaempft); font-size: 0.92rem; }

/* Fußzeile */
.fuss {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 24px 32px;
  border-top: 1px solid var(--linie);
  color: var(--gedaempft);
  font-size: 0.88rem;
}

.fuss form { margin: 0; }

.knopf-schlicht {
  padding: 0;
  border: 0;
  background: none;
  color: var(--bordeaux);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* ------------------------------------------------------------------ */
/* Auftragsanlage: Eingabemaske, Ergebnisseite, Admin                  */
/* ------------------------------------------------------------------ */

h2 {
  margin: 32px 0 4px;
  font-size: 1.1rem;
  font-weight: 600;
}

.formular h2:first-child { margin-top: 0; }

/* Die Eingabemaske hat viele Felder — sie darf breiter werden als das Login. */
.formular.breit { max-width: 720px; }
.fehler.breit { max-width: 720px; }

.formular + .formular { margin-top: 28px; }

/* Zwei Felder nebeneinander, auf schmalen Geräten untereinander. */
.zeile {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}
.zeile > .feld { flex: 1 1 200px; }

.feld input[type="file"] { padding: 8px 0; border: 0; }
.feld input:disabled, button:disabled { opacity: 0.55; cursor: not-allowed; }

.pflicht { color: var(--bordeaux); }

.feldhinweis {
  margin: 6px 0 0;
  color: var(--gedaempft);
  font-size: 0.82rem;
}

.feldfehler {
  margin: 6px 0 0;
  color: var(--bordeaux-dunkel);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Markierung der Vorschläge aus einer Bewertungs-PDF: sicher, unsicher, nicht erkannt.
   Dezent gehalten — es sind Vorschläge, keine Fehler. Eine echte Eingabeprüfung (`feld-fehler`)
   steht bewusst darunter und sticht die Markierung. */
.vorschlag-hoch input, .vorschlag-hoch select { border-color: #3f7d4e; background: #f5faf6; }
.vorschlag-mittel input, .vorschlag-mittel select { border-color: #b07d12; background: #fdfaf2; }
.vorschlag-fehlt input, .vorschlag-fehlt select { border-color: var(--bordeaux); background: #fdf7f8; }

.vorschlag-hinweis {
  margin: 20px 0 0;
  padding: 12px 14px;
  border-left: 4px solid #3f7d4e;
  background: #f5faf6;
}

.feld-fehler input, .feld-fehler select { border-color: var(--bordeaux); background: #fdf7f8; }

.feld-kasten { background: var(--grund); border-radius: 4px; padding: 10px 12px; }

.waagerecht {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 500;
}
.waagerecht input { width: auto; }

/* Ergebnisseite */
.vorgangsnummer {
  margin: 4px 0 0;
  color: var(--bordeaux);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.kasten {
  margin: 20px 0 0;
  max-width: 720px;
  padding: 14px 16px;
  border-left: 4px solid var(--linie);
  border-radius: 0 4px 4px 0;
  background: var(--flaeche);
}
.kasten p { margin: 6px 0 0; font-size: 0.92rem; }
.kasten.gruen { border-left-color: #2e7d4f; background: #edf7f1; }
.kasten.gelb { border-left-color: #b8860b; background: #fdf6e3; }
.kasten.rot { border-left-color: #a32020; background: #fbeced; }

.zeilenkasten { max-width: 720px; margin-top: 16px; }

.zeilenkopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}
.zeilenkopf label { font-size: 0.85rem; font-weight: 600; }

.zeilenkasten textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--linie);
  border-radius: 4px;
  background: #fff;
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  white-space: pre;
  overflow-x: auto;
  resize: vertical;
}

.nachtrag { margin-top: 20px; }

.dateiliste {
  max-width: 720px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.dateiliste li {
  padding: 8px 0;
  border-bottom: 1px solid var(--linie);
  font-size: 0.94rem;
}

/* Admin-Tabellen */
.tabelle {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.tabelle th, .tabelle td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--linie);
  text-align: left;
  vertical-align: top;
}
.tabelle th { color: var(--gedaempft); font-weight: 600; }
.tabelle tbody tr:hover { background: var(--flaeche); }

.warnwort { color: #a32020; font-weight: 600; }
