:root {
  --bg: #0b0f14;
  --fg: #e5e7eb;
  --muted: #9ca3af;
  --accent: #60a5fa;
  --card: #111827;
  --border: #1f2937;
  --danger: #ef4444;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
}

header {
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header h1 { font-size: 1.25rem; margin: 0; }
nav a { color: var(--fg); text-decoration: none; margin-right: .75rem; }
nav a:hover { color: var(--accent); }

main { max-width: 800px; margin: 2rem auto; padding: 0 1rem; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; }
.card.narrow { max-width: 420px; margin: 0 auto; }

label { display: block; margin-bottom: .25rem; color: var(--muted); }
input[type="text"], input[type="password"], input[type="number"], select { width: 100%; padding: .6rem .7rem; border-radius: 6px; border: 1px solid var(--border); background: #0f1620; color: var(--fg); }

/* Größere, gut bedienbare Checkboxen */
input[type="checkbox"] { width: 1.25rem; height: 1.25rem; accent-color: var(--accent); }
@supports not (accent-color: red) {
  input[type="checkbox"] { transform: scale(1.2); }
}

button, .button { background: var(--accent); color: #0b1220; border: none; padding: .6rem .9rem; border-radius: 6px; font-weight: 600; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { filter: brightness(1.1); }
.secondary { background: #374151; color: #e5e7eb; }

.flashes { list-style: none; padding: 0; margin: 0 0 1rem 0; }
.flashes li { padding: .5rem .75rem; border-radius: 6px; margin-bottom: .5rem; }
.flashes li.error { background: #3b0f16; color: #fecaca; border: 1px solid #7f1d1d; }
.flashes li.message { background: #10243a; color: #bfdbfe; border: 1px solid #1e3a8a; }

.hint { color: var(--muted); }

.table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.table th, .table td { padding: .6rem .5rem; border-bottom: 1px solid var(--border); text-align: left; }

/* Voting-Liste mit zwei Spalten für Stimmen + Name */
ul.choices { list-style: none; padding: 0; margin: .25rem 0 0; }
ul.choices li { margin: 0; }
ul.choices .choices-head,
ul.choices .name-row {
  display: grid;
  grid-template-columns: 4rem 4rem 1fr;
  align-items: center;
  column-gap: 1rem;
}
ul.choices .choices-head { color: var(--muted); font-size: .9rem; padding: .25rem .25rem .5rem; }
ul.choices .name-row { padding: .5rem .25rem; border-top: 1px solid var(--border); }
ul.choices .name-row:first-of-type { border-top: 1px solid var(--border); }
ul.choices .name-label { font-size: 1.6rem; font-weight: 700; line-height: 1.25; }

/* Unterschiedliche Fonts für bessere Differenzierung */
.font-0 { font-family: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
.font-1 { font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 600; }
.font-2 { font-family: "Oswald", "Arial Narrow", Arial, sans-serif; letter-spacing: .3px; }
.font-3 { font-family: "Merriweather", Georgia, serif; }
.font-4 { font-family: "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.font-5 { font-family: "Dancing Script", "Segoe Script", cursive; font-weight: 600; }
/* Weitere verspielte Varianten */
.font-6 { font-family: "Amatic SC", "Comic Sans MS", cursive; font-weight: 700; letter-spacing: .5px; }
.font-7 { font-family: "Fredoka", "Arial Rounded MT Bold", Arial, sans-serif; font-weight: 700; }
.font-8 { font-family: "Comic Neue", "Comic Sans MS", cursive; }
.font-9 { font-family: "Pacifico", "Brush Script MT", cursive; font-weight: 600; }

/* Namensdarstellung auch in Tabellen hervorheben */
.table .name-cell { font-size: 1.3rem; font-weight: 700; }

.actions { display: flex; gap: .5rem; margin-top: 1rem; }

footer { color: var(--muted); text-align: center; margin: 3rem 0 2rem; }

/* Mobile Optimierungen */
@media (max-width: 640px) {
  header { padding: .75rem; }
  main { margin: 1.25rem auto; }
  .card { padding: .9rem; }
  ul.choices .name-label { font-size: 1.3rem; }
  .table .name-cell { font-size: 1.15rem; }
}
