:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #1f2430;
  --muted: #6b7280;
  --border: #e2e4e9;
  --accent: #2b6cb0;
  --accent-dark: #1e4e80;
  --danger: #c0392b;
  --radius: 10px;
}

* { box-sizing: border-box; }

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

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.card + .card { margin-top: 20px; }

h1 { font-size: 1.5rem; margin: 0 0 4px; }
h2 { font-size: 1.1rem; margin: 0 0 16px; }
.subtitle { color: var(--muted); margin: 0 0 24px; font-size: 0.95rem; }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 16px 0 6px;
  color: var(--text);
}
label:first-child { margin-top: 0; }

input[type=text], input[type=password], input[type=date], input[type=number], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43,108,176,0.15);
}

.row { display: flex; gap: 16px; }
.row > div { flex: 1; }

.radio-group { display: flex; gap: 20px; margin-top: 8px; }
.radio-group label { display: flex; align-items: center; gap: 6px; font-weight: 400; margin: 0; }
.radio-group input { width: auto; }

.checkbox-line { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.checkbox-line input { width: auto; }
.checkbox-line label { margin: 0; font-weight: 400; }

button, .btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin-top: 24px;
}
button:hover, .btn:hover { background: var(--accent-dark); }
.btn-secondary { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: #f0f1f3; }

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.top-nav .links a { color: var(--accent); text-decoration: none; margin-left: 16px; font-size: 0.9rem; }

.betrag-anzeige {
  background: #f0f4f9;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-top: 20px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-dark);
}
.betrag-anzeige .hinweis { font-size: 0.8rem; font-weight: 400; color: var(--muted); display: block; margin-top: 4px; }

table.liste { width: 100%; border-collapse: collapse; margin-top: 8px; }
table.liste th, table.liste td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
table.liste th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }
table.liste a { color: var(--accent); text-decoration: none; margin-right: 10px; }

.error {
  background: #fdecea;
  color: var(--danger);
  border: 1px solid #f5c6c0;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.success {
  background: #eafaf1;
  color: #1e7d43;
  border: 1px solid #c3ecd4;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.empty-state { color: var(--muted); font-size: 0.9rem; padding: 20px 0; text-align: center; }

.download-buttons { display: flex; gap: 12px; margin-top: 16px; }

fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px 6px; margin-top: 16px; }
legend { font-size: 0.85rem; font-weight: 600; padding: 0 6px; }
