/* Zentrale-System — Mobile-first CSS
   Farbpalette: kühles Blau/Grau, sehr sachlich, kein Branding
*/
:root {
  --bg: #f4f6f9;
  --card-bg: #ffffff;
  --border: #e2e6ee;
  --text: #15202b;
  --text-muted: #6a7585;
  --primary: #2b5bdf;
  --primary-hover: #1f49c2;
  --primary-soft: #e8efff;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --success: #047857;
  --success-soft: #d1fae5;
  --warning: #b45309;
  --warning-soft: #fef3c7;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

h1 { font-size: 1.5rem; margin-bottom: 8px; letter-spacing: -0.01em; }
h2 { font-size: 1.2rem; margin-bottom: 8px; }
h3 { font-size: 1rem; margin-bottom: 6px; }

.subtitle { color: var(--text-muted); margin-bottom: 24px; font-size: 0.95rem; }

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  margin-bottom: 14px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

button, .btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
  width: 100%;
}

button:hover, .btn:hover { background: var(--primary-hover); }
button:active, .btn:active { transform: scale(0.98); }
button:disabled { background: var(--text-muted); cursor: not-allowed; }

.btn-secondary { background: #fff; color: var(--primary); border: 1px solid var(--border); }
.btn-danger { background: var(--danger); }

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  margin: 12px 0;
  font-size: 0.92rem;
}
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-success { background: var(--success-soft); color: var(--success); }
.alert-info { background: var(--primary-soft); color: var(--primary); }
.alert-warning { background: var(--warning-soft); color: var(--warning); }

.footer-links {
  margin-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-links a { color: var(--text-muted); margin: 0 10px; }

.muted { color: var(--text-muted); }
.small { font-size: 0.85rem; }

/* Mobile-First Tap-Targets */
button, a.btn, input[type="checkbox"], input[type="radio"], select {
  min-height: 44px;
}
