:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --border: #e3e6ea;
  --text: #1f2933;
  --muted: #6b7580;
  --accent: #2f6fed;
  --accent-dark: #2559c4;
  --green: #157347;
  --red: #c0392b;
  --orange: #b45309;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

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

.wrap { max-width: 1000px; margin: 0 auto; padding: 24px 20px 72px; }

header.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

header.top h1 { font-size: 22px; margin: 0; }
header.top .sub { color: var(--muted); font-size: 13px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
}

.card > h2 {
  font-size: 16px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; }

input[type=text], input[type=url], input[type=date], input[type=time],
input[type=number], input[type=password], select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #d3d8de;
  border-radius: 7px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}

input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, .15);
}

.actions { margin-top: 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

button, .btn {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

button:hover, .btn:hover { background: var(--accent-dark); }

button.secondary, .btn.secondary {
  background: #fff;
  color: var(--text);
  border-color: #d3d8de;
}
button.secondary:hover, .btn.secondary:hover { background: #f1f3f5; }

button.link {
  background: none;
  border: none;
  color: var(--muted);
  padding: 4px 6px;
  font-size: 13px;
  text-decoration: underline;
}
button.link:hover { background: none; color: var(--red); }

table { width: 100%; border-collapse: collapse; }

th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  font-weight: 600;
  padding: 0 10px 8px 0;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 12px 10px 12px 0;
  border-bottom: 1px solid #f0f2f4;
  vertical-align: middle;
  font-size: 14px;
}

tr:last-child td { border-bottom: none; }

td.right, th.right { text-align: right; padding-right: 0; }

.name { font-weight: 500; }
.meta { color: var(--muted); font-size: 12.5px; }

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  background: #eceff2;
  color: var(--muted);
}
.badge.laeuft   { background: #e4edff; color: var(--accent-dark); }
.badge.fertig   { background: #e2f3e9; color: var(--green); }
.badge.fehler   { background: #fbe6e4; color: var(--red); }
.badge.warnung  { background: #fdf0dd; color: var(--orange); }

.notice {
  padding: 12px 14px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 14px;
}
.notice.info    { background: #e4edff; color: var(--accent-dark); }
.notice.success { background: #e2f3e9; color: var(--green); }
.notice.error   { background: #fbe6e4; color: var(--red); }
.notice.warn    { background: #fdf0dd; color: var(--orange); }

.empty { color: var(--muted); font-size: 14px; padding: 6px 0; }

audio { height: 34px; vertical-align: middle; max-width: 220px; }

details.log { margin-top: 20px; }
details.log summary { cursor: pointer; color: var(--muted); font-size: 14px; }
details.log pre {
  background: #1f2933;
  color: #d7dce2;
  padding: 14px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.6;
  margin-top: 12px;
}

.login {
  max-width: 380px;
  margin: 12vh auto 0;
}

.hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

@media (max-width: 620px) {
  td, th { padding-right: 6px; }
  .hide-s { display: none; }
}
