:root {
  --bg: #0b0b0c;
  --karte: #151516;
  --karte-hover: #1b1b1d;
  --rand: #262628;
  --rand-hover: #3a3a3d;
  --text: #f4f4f5;
  --leise: #a1a1aa;
  --sehr-leise: #71717a;
  --orange: #ff7a1a;
  --orange-weich: rgba(255, 122, 26, 0.16);
  --gruen: #22c55e;
  --rot: #f87171;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Open Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body { min-height: 100vh; min-height: 100dvh; }

.glow {
  position: fixed;
  inset: -20vh -20vw auto auto;
  width: 70vw;
  height: 60vh;
  background: radial-gradient(closest-side, rgba(255, 122, 26, 0.18), rgba(255, 122, 26, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 28px) 18px calc(env(safe-area-inset-bottom) + 28px);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.kopf { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }

.logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #1d1d1f, #0f0f10);
  border: 1px solid var(--rand);
  box-shadow: 0 0 22px rgba(255, 122, 26, 0.28);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
  flex: none;
}

.gruss { flex: 1; min-width: 0; }
.gruss small { display: block; color: var(--leise); font-size: 13px; }
.gruss strong { display: block; font-size: 21px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.knopf-rund {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--rand);
  background: var(--karte);
  color: var(--leise);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}
.knopf-rund:hover { color: var(--text); border-color: var(--rand-hover); }
.knopf-rund svg { width: 20px; height: 20px; }

.bereich {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sehr-leise);
  margin: 22px 2px 10px;
}

.raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 620px) { .raster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.kachel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 16px 18px;
  min-height: 112px;
  border-radius: 16px;
  background: var(--karte);
  border: 1px solid var(--rand);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.kachel:hover { background: var(--karte-hover); border-color: var(--rand-hover); }
.kachel:active { transform: scale(0.98); }
.kachel:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.kachel .symbol { width: 26px; height: 26px; color: var(--orange); margin-bottom: 14px; filter: drop-shadow(0 0 8px rgba(255, 122, 26, 0.35)); }
.kachel .symbol.grau { color: var(--leise); filter: none; }
.kachel .schloss { position: absolute; top: 16px; right: 16px; width: 20px; height: 20px; color: var(--orange); }
.kachel strong { font-size: 16px; font-weight: 700; }
.kachel span { font-size: 13px; color: var(--leise); }

.fuss {
  margin-top: auto;
  padding-top: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--leise);
  font-size: 13px;
}
.punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--gruen); box-shadow: 0 0 8px rgba(34, 197, 94, 0.6); }

.anmeldung {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.anmeldung .logo { width: 76px; height: 76px; border-radius: 22px; font-size: 38px; }
.anmeldung h1 { margin: 10px 0 0; font-size: 28px; }
.anmeldung p { margin: 0; color: var(--leise); max-width: 340px; line-height: 1.5; }

.knopf {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 15px 26px;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  color: #140a02;
  background: var(--orange);
  box-shadow: 0 0 24px rgba(255, 122, 26, 0.35);
  cursor: pointer;
  text-decoration: none;
  margin-top: 10px;
}
.knopf:hover { filter: brightness(1.08); }
.knopf.zweit { background: var(--karte); color: var(--text); border: 1px solid var(--rand); box-shadow: none; }

.meldung {
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
  color: #fecaca;
  border-radius: 12px;
  padding: 12px 14px;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.45;
}

.hinweis {
  margin-top: 26px;
  border: 1px solid var(--rand);
  background: var(--karte);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--leise);
  line-height: 1.5;
  display: flex;
  gap: 12px;
  align-items: center;
}
.hinweis p { margin: 0; flex: 1; }
.hinweis .knopf { margin: 0; padding: 10px 14px; font-size: 14px; }

.leer-text { color: var(--leise); margin-top: 24px; line-height: 1.5; }

.leer::before {
  content: "";
  margin: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--rand);
  border-top-color: var(--orange);
  animation: dreh 0.8s linear infinite;
}
@keyframes dreh { to { transform: rotate(360deg); } }
