:root {
  --bg: #f9f6f0;
  --card: #ffffff;
  --text: #1f2a24;
  --muted: #6b6f68;
  --green: #2d6a4f;
  --green-dark: #24553f;
  --border: #d9d6cf;
  --shadow: 0 6px 24px rgba(60, 50, 30, 0.07);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  font-family: "Work Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main {
  margin: 0 auto;
  padding: 56px 20px 64px;
}
main.centered { max-width: 680px; text-align: center; }
main.narrow   { max-width: 600px; }
main.centered .card,
main.centered .footnote { text-align: left; }
main.centered .footnote { text-align: center; }

.kicker {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

h1 {
  margin: 0 0 12px;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.15;
}
main.narrow h1 { font-size: 34px; margin-bottom: 28px; }

.lead {
  margin: 0 auto 40px;
  max-width: 600px;
  font-size: 18px;
  color: var(--muted);
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin: 0 0 24px;
}

/* Schritte */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}
.steps li::before {
  content: counter(step);
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Formulare */
label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 6px;
}
input[type="text"],
input[type="email"],
input[type="password"] {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 18px;
}
input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

button {
  display: block;
  width: 100%;
  padding: 13px 18px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
button:hover { background: var(--green-dark); }
button:disabled {
  background: #d3d0c8;
  color: #7d7a74;
  cursor: not-allowed;
}
button.small {
  width: auto;
  padding: 7px 12px;
  font-size: 13px;
}
button.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
button.ghost:hover { color: #a33; border-color: #a33; background: transparent; }

input.invalid { border-color: #b3362a; }
.hint {
  margin: -10px 0 16px;
  font-size: 13px;
  color: #8a2a1f;
}

.error {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fbe9e7;
  color: #8a2a1f;
  font-size: 14px;
}

.footnote {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.big { font-size: 22px; font-weight: 700; margin: 0 0 10px; }
.muted { color: var(--muted); }

/* Admin */
.stats {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.label { margin: 0; font-size: 14px; color: var(--muted); }
.label.right { text-align: right; }
.count {
  margin: 4px 0 0;
  font-family: "Lora", Georgia, serif;
  font-size: 40px;
  line-height: 1;
}
.card-title { margin: 0 0 14px; font-size: 14px; font-weight: 700; }

.people { list-style: none; margin: 0; padding: 0; }
.people li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #efece5;
}
.people li:first-child { border-top: 0; padding-top: 0; }
.people li:last-child { padding-bottom: 0; }
.who { font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.inline { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.status { font-size: 13px; font-weight: 700; white-space: nowrap; }
.status.ok { color: var(--green); }
.status.fail { color: #a33; }

.notice {
  margin: 0 0 24px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid #d6d9d0;
  background: #eef0e9;
  color: #3a4a40;
  font-size: 15px;
}
.notice.warn { background: #fdf3e3; border-color: #ecd6ad; color: #6e4b0f; }
.notice.good { background: #e6f2eb; border-color: #bcd9c8; color: var(--green-dark); }
.card-error { margin-bottom: 20px; }

@media (max-width: 480px) {
  main { padding: 36px 16px 48px; }
  h1 { font-size: 32px; }
  main.narrow h1 { font-size: 28px; }
  .card { padding: 20px; }
  .people li { flex-direction: column; align-items: flex-start; }
}
