*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: #1f2933;
  background: #f4f6f8;
}
main { max-width: 760px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.6rem; margin: 0.4em 0 0.5em; }
a { color: #0b5cad; }

.kopf {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 16px; background: #13324f; color: #fff;
}
.kopf .marke { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.kopf .marke span { font-weight: 400; opacity: 0.8; }
.kopf .wer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.95rem; }
.kopf .wer form { margin: 0; }
.kopf .knopf.leise { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }

.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 18px;
  font: inherit; font-weight: 600; text-decoration: none;
  color: #fff; background: #0b5cad; border: 2px solid #0b5cad; border-radius: 8px; cursor: pointer;
}
.knopf:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #f0a500; outline-offset: 2px; }
.knopf.leise { color: #0b5cad; background: #fff; }
.knopf.gefahr { background: #b3261e; border-color: #b3261e; }
.knopf.gefahr-leise { color: #b3261e; background: #fff; border-color: #b3261e; }

.formular { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.formular label { font-weight: 600; margin-top: 8px; }
.formular input {
  font: inherit; min-height: 44px; padding: 8px 10px;
  border: 1px solid #8a96a3; border-radius: 6px; background: #fff; width: 100%;
}
.formular .knopf { margin-top: 16px; align-self: flex-start; }
.formular .code-feld { font-size: 1.5rem; letter-spacing: 0.2em; max-width: 12ch; }
.nebenwege { margin: 14px 0 0; }
.nebenwege a { display: inline-flex; align-items: center; min-height: 44px; }

.meldung { padding: 10px 14px; border-radius: 8px; }
.meldung.fehler { background: #fde8e7; color: #8c1d18; border: 1px solid #f2b8b5; }
.meldung.ok { background: #e6f4ea; color: #1e5631; border: 1px solid #b7dfc2; }

.frist { color: #52606d; margin-top: 0; }
.filterleiste { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.filter {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px;
  border: 2px solid #0b5cad; border-radius: 999px; text-decoration: none; color: #0b5cad; background: #fff; font-weight: 600;
}
.filter.aktiv { background: #0b5cad; color: #fff; }
.anzahl { color: #52606d; margin: 4px 0 8px; }
.leer { background: #fff; padding: 16px; border-radius: 8px; }

.liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.zeile {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px;
  padding: 12px 14px; background: #fff; border: 1px solid #d5dbe1; border-radius: 10px;
  text-decoration: none; color: inherit;
}
.zeile:hover { border-color: #0b5cad; }
.zeile .zeit { color: #52606d; font-size: 0.95rem; }
.zeile .typ { grid-column: 1; font-weight: 600; }
.zeile .firma { grid-column: 1; overflow-wrap: anywhere; }
.zeile .status { grid-column: 2; grid-row: 1 / span 3; align-self: center; }

.status {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; white-space: nowrap;
}
.status.offen { background: #fff4d6; color: #7a4b00; }
.status.erledigt { background: #e6f4ea; color: #1e5631; }
.warnung { color: #8c1d18; font-weight: 600; }

/* Gelb: ein Wert oder Typ, den das Programm nicht kennt (angenommen, aber bitte ansehen). */
.unbekannt-marke {
  display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 0.85rem; font-weight: 700;
  background: #ffe066; color: #4d3800; border: 1px solid #c99a00; white-space: nowrap;
}
.felder dd.unbekannt { background: #fff8cc; border-left: 4px solid #e0b400; padding: 4px 8px; border-radius: 4px; }

.zurueck { display: inline-flex; align-items: center; min-height: 44px; }
.kennzeilen { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: #52606d; }
.felder { background: #fff; border: 1px solid #d5dbe1; border-radius: 10px; padding: 8px 16px; margin: 12px 0; }
.felder dt { font-weight: 600; color: #52606d; font-size: 0.95rem; margin-top: 10px; }
.felder dd { margin: 0 0 6px; overflow-wrap: anywhere; }
.felder dd.nachricht { white-space: pre-wrap; }
.ohne { color: #8a96a3; }

.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; margin: 16px 0 32px; }
.knoepfe form { margin: 0; }
.rueckfrage {
  width: 100%; padding: 14px 16px; border: 2px solid #b3261e; border-radius: 10px; background: #fff;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.rueckfrage p { width: 100%; margin: 0; }
