:root {
  --grund: #f4f1ea;
  --flaeche: #fffdf8;
  --text: #1f2421;
  --leise: #66706a;
  --linie: #e2ddd1;
  --marke: #2f7d6d;
  --fehler-grund: #fbe9e4;
  --fehler-text: #9a2f1b;
  --schatten: 0 1px 2px rgba(40, 35, 20, .06), 0 8px 24px rgba(40, 35, 20, .06);
  --titel: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #151816;
    --flaeche: #1d211f;
    --text: #ecebe6;
    --leise: #9aa39e;
    --linie: #2e3431;
    --marke: #6cc2ad;
    --fehler-grund: #3a1f19;
    --fehler-text: #f2a693;
    --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--grund);
  color: var(--text);
  font: 16px/1.5 var(--schrift);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; width: 100%; padding: 16px; }

.ico { width: 22px; height: 22px; flex: none; }

.marke {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--marke);
}
h1 {
  margin: 0;
  font: 600 clamp(28px, 6vw, 38px)/1.15 var(--titel);
  letter-spacing: -.01em;
}
.unter { margin: 6px 0 0; color: var(--leise); }

/* ---------- Anmeldung ---------- */
.anmeldung { display: grid; place-items: center; }
.karte {
  width: 100%;
  max-width: 400px;
  margin: 8vh auto 0;
  padding: 32px 28px;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 18px;
  box-shadow: var(--schatten);
}
.karte h1 { margin-bottom: 2px; }
.karte .unter { margin-bottom: 22px; }
label {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
}
input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: var(--grund);
  border: 1px solid var(--linie);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus {
  border-color: var(--marke);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--marke) 22%, transparent);
}
button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding: 13px 16px;
  font: 600 16px var(--schrift);
  color: #fff;
  background: var(--marke);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: filter .15s, transform .05s;
}
@media (prefers-color-scheme: dark) { button { color: #0f1a17; } }
button:hover { filter: brightness(1.07); }
button:active { transform: translateY(1px); }
button .ico { width: 18px; height: 18px; }
.fehler {
  margin: 0 0 16px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--fehler-text);
  background: var(--fehler-grund);
  border-radius: 10px;
}

/* ---------- Startseite ---------- */
.start { max-width: 760px; margin: 0 auto; padding-top: 7vh; }
.kopf {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.knopf-leise {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--leise);
  text-decoration: none;
  border: 1px solid var(--linie);
  border-radius: 999px;
  white-space: nowrap;
}
.knopf-leise:hover { color: var(--text); border-color: var(--leise); }
.knopf-leise .ico { width: 17px; height: 17px; }
.karte .knopf-leise { margin-top: 18px; }

.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 14px;
}
.kachel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 16px;
  box-shadow: var(--schatten);
  transition: transform .15s, border-color .15s;
}
.kachel:hover, .kachel:focus-visible {
  transform: translateY(-2px);
  border-color: var(--akzent);
  outline: none;
}
.kachel-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  color: var(--akzent);
  background: color-mix(in srgb, var(--akzent) 13%, transparent);
  border-radius: 14px;
}
.kachel-icon .ico { width: 26px; height: 26px; }
.kachel-text { flex: 1; min-width: 0; }
.kachel-text strong { display: block; font-size: 17px; }
.kachel-text small { display: block; color: var(--leise); font-size: 14px; }
.kachel-pfeil { color: var(--leise); transition: transform .15s, color .15s; }
.kachel:hover .kachel-pfeil { color: var(--akzent); transform: translateX(3px); }
.hinweis { color: var(--leise); }

.fuss {
  padding: 24px 16px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--leise);
}
@media (max-width: 480px) {
  .karte { margin-top: 4vh; padding: 26px 20px; }
  .kopf .knopf-leise span { display: none; }
}
