*, *::before, *::after { box-sizing: border-box; }
html { font-size: 19px; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.5;
  color: #14213d; background: #f3f5f8; }
.kopf { background: #14425c; color: #fff; padding: 14px 20px; font-weight: 600; }
main { max-width: 640px; margin: 0 auto; padding: 20px 16px 60px; }
body.breit main { max-width: 860px; }
h1 { font-size: 1.5rem; line-height: 1.25; margin: 12px 0; }
h2 { font-size: 1.15rem; margin: 0 0 10px; }
.karte { background: #fff; border: 1px solid #d5dbe4; border-radius: 12px; padding: 18px; margin: 16px 0; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=password], input[type=date], input:not([type]), textarea {
  width: 100%; font: inherit; padding: 12px; border: 2px solid #8a97ab; border-radius: 8px; background: #fff; color: inherit; }
input[type=file] { font: inherit; width: 100%; }
textarea { font-size: 0.85rem; word-break: break-all; }
.knopf { display: inline-block; font: inherit; font-weight: 600; text-decoration: none; text-align: center; cursor: pointer;
  background: #14425c; color: #fff; border: 0; border-radius: 10px; padding: 14px 22px; margin-top: 16px; min-height: 52px; }
.knopf.gross { width: 100%; font-size: 1.2rem; padding: 18px; }
.knopf.klein { font-size: 0.85rem; padding: 9px 14px; min-height: 0; margin-top: 0; }
.knopf.grau { background: #e3e8ef; color: #14213d; }
.knopf:disabled { background: #aab4c2; color: #fff; cursor: not-allowed; }
.knopf:focus-visible, input:focus-visible, canvas:focus-visible { outline: 3px solid #f2a900; outline-offset: 2px; }
.fehler { background: #fde8e6; border: 2px solid #b3261e; color: #7a120c; border-radius: 8px; padding: 12px; font-weight: 600; }
.hinweis { font-size: 0.85rem; color: #46536b; }
.zeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.aktionen { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.aktionen form { margin: 0; }
.status { font-size: 0.8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #e3e8ef; }
.s-unterschrieben { background: #d7f0df; color: #0e5a2a; }
.s-geoeffnet { background: #fff1c9; color: #6b4a00; }
.s-abgelaufen, .s-zurueckgezogen, .s-gesperrt { background: #fde8e6; color: #7a120c; }
.datum { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 10px; }
.datum input { text-align: center; font-size: 1.3rem; }
.seiten { margin: 16px 0; }
.seite { display: block; width: 100%; height: auto; border: 1px solid #c4ccd8; background: #fff; margin-bottom: 12px; }
.feld { display: block; width: 100%; height: 200px; border: 2px dashed #14425c; border-radius: 10px; background: #fff;
  touch-action: none; }
.haken { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; margin-top: 18px; }
.haken input { width: 28px; height: 28px; flex: none; margin-top: 2px; }
.tabelle { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.9rem; }
.tabelle th, .tabelle td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #d5dbe4; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 0.75rem; word-break: break-all; }
