:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #66707a;
  --line: #e2dfd8;
  --accent: #16294a;
  --gold: #cea962;
  --accent-text: #ffffff;
  --ok: #2f7d4f;
  --warn: #9a6a00;
  --err: #b42318;
  --radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; background: var(--bg); }
a { color: var(--accent); }
h1 { font-size: 1.5rem; margin: 0 0 .5rem; }
h2 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }

.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1rem; background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { font-weight: 600; text-decoration: none; color: var(--text); }
.top nav { display: flex; gap: 1rem; align-items: center; font-size: .95rem; }
.user { color: var(--muted); }

.wrap { max-width: 860px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; margin-bottom: 1.5rem;
}
.card > h2:first-child { margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.error { color: var(--err); font-weight: 500; }

.form { display: grid; gap: 1.25rem; margin-top: 1.25rem; }
.drop {
  display: grid; gap: .25rem; place-items: center; text-align: center;
  padding: 2rem 1rem; border: 2px dashed var(--line); border-radius: var(--radius); cursor: pointer;
}
.drop.is-over, .drop:focus-within { border-color: var(--accent); background: #f0f5f8; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-text { font-weight: 500; }

fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 500; margin-bottom: .5rem; }
.choices { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.choice {
  display: flex; gap: .6rem; align-items: flex-start; padding: .75rem;
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.field { display: grid; gap: .35rem; font-weight: 500; }
textarea {
  font: inherit; padding: .7rem; border: 1px solid var(--line); border-radius: var(--radius); resize: vertical;
}
textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
input[type="email"], input[type="password"] {
  font: inherit; padding: .65rem .7rem; border: 1px solid var(--line); border-radius: var(--radius);
}
input[type="email"]:focus, input[type="password"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.narrow { max-width: 420px; margin-inline: auto; }
.btn-secondary { background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.top { border-top: 3px solid var(--gold); }

.btn {
  display: inline-block; justify-self: start; padding: .7rem 1.4rem; border: 0; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn:disabled { opacity: .6; cursor: wait; }

.list { width: 100%; border-collapse: collapse; font-size: .95rem; }
.list th, .list td { text-align: left; padding: .55rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.list th { color: var(--muted); font-weight: 500; }

.status { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .85rem; background: #eceae4; }
.status-fertig { background: #e3f1e8; color: var(--ok); }
.status-fehler { background: #fbe9e7; color: var(--err); }
.status-in-arbeit, .status-wartend { background: #fbf3dc; color: var(--warn); }

.progress { height: 6px; background: #eceae4; border-radius: 999px; overflow: hidden; margin: 1rem 0 .5rem; }
.progress span { display: block; width: 40%; height: 100%; background: var(--accent); animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

@media (max-width: 600px) {
  .list th:nth-child(2), .list td:nth-child(2) { display: none; }
  .card { padding: 1.1rem; }
}
.pre { white-space: pre-line; }
