:root {
  color-scheme: dark;
  --bg: #111;
  --fg: #eee;
  --fg-muted: #999;
  --accent: #3b82f6;
  --accent-fg: #fff;
  --border: #333;
  --error: #f87171;
  --radius: 0.5rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, sans-serif;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}

h1 {
  font-size: 1.4rem;
  margin: 0.5rem 0 1rem;
}

p.hint {
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

p.error {
  color: var(--error);
  font-size: 0.9rem;
}

button {
  font: inherit;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--accent);
  color: var(--accent-fg);
  cursor: pointer;
}

button.secondary {
  background: transparent;
  color: var(--fg);
}

button.link-btn {
  background: none;
  border: none;
  color: var(--fg-muted);
  padding: 0.5rem 0;
  text-decoration: underline;
}

/* --- Login --- */

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login-form label {
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.login-form input {
  font: inherit;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #1a1a1a;
  color: var(--fg);
}

.token-login {
  margin-top: 1.5rem;
  color: var(--fg-muted);
}

.token-login summary {
  cursor: pointer;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.token-login .login-form {
  margin-top: 0.75rem;
}

/* --- Auswahllisten (Profile, Termine) --- */

.choice-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.choice-btn {
  text-align: left;
}

.event-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.event-option input {
  flex-shrink: 0;
}

/* --- Notiz --- */

.note-input {
  width: 100%;
  font: inherit;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #1a1a1a;
  color: var(--fg);
  resize: vertical;
  margin-bottom: 1.5rem;
}

/* --- QR-Anzeige: kontrastreich, gross, gut im Dunkeln lesbar --- */

.qr-box {
  background: #fff;
  padding: 1rem;
  border-radius: var(--radius);
  width: min(320px, 100%);
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: center;
}

/* --- Aktionsleisten --- */

.actions {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.actions button {
  flex: 1;
}
