:root {
  --hintergrund: #f4f5f7;
  --karte: #ffffff;
  --text: #1c1f24;
  --text-leise: #5b6270;
  --rand: #d6dae1;
  --akzent: #1f6f5b;
  --akzent-text: #ffffff;
  --meldung: #2d3a4a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --hintergrund: #15181c;
    --karte: #1e2228;
    --text: #e8eaee;
    --text-leise: #9aa3b0;
    --rand: #343a43;
    --akzent: #3fa58a;
    --akzent-text: #0e1512;
    --meldung: #cfd6e0;
  }
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--hintergrund);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.karte {
  width: 100%;
  max-width: 24rem;
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: 0.75rem;
  padding: 2rem 1.75rem 1.25rem;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: 1.375rem;
  font-weight: 600;
}

section p { margin: 0 0 1rem; }

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-leise);
}

input[type="email"] {
  display: block;
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.9rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--rand);
  border-radius: 0.5rem;
}

input[type="email"]:focus {
  outline: 2px solid var(--akzent);
  outline-offset: 1px;
  border-color: var(--akzent);
}

button {
  display: block;
  width: 100%;
  font: inherit;
  font-weight: 600;
  padding: 0.7rem 1rem;
  color: var(--akzent-text);
  background: var(--akzent);
  border: 0;
  border-radius: 0.5rem;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

#abmelden {
  margin-top: 0.5rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--rand);
}

.meldung {
  min-height: 1.5rem;
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  color: var(--meldung);
}

footer {
  margin-top: 1.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rand);
  font-size: 0.85rem;
  color: var(--text-leise);
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

footer a {
  color: var(--text-leise);
  text-decoration: underline;
}

[hidden] { display: none !important; }
