/* KI-Stadt Benutzer-App – Handy zuerst, gleicher Look wie die Stadt in Horizon (dunkelblau, Neon). */
:root { --bg: #050d1a; --karte: rgba(12, 30, 54, .92); --rand: rgba(110, 200, 255, .18); --text: #eaf7ff; --leise: #8fb0cc; --blau: #57c5ff; --gold: #ffd36e; --gruen: #5dffb0; --rot: #ff6b6b; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
body { min-height: 100vh; background: radial-gradient(120% 60% at 50% 0%, #0d2a4d 0%, var(--bg) 70%) fixed; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 600; }
.leise { color: var(--leise); }
.klein { font-size: 12px; color: var(--leise); }
.mitte { text-align: center; }
.test-band { position: sticky; top: 0; z-index: 20; padding: 6px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: #1b1300; background: var(--gold); }

.screen { max-width: 520px; margin: 0 auto; padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: 18px; padding: 16px; margin-bottom: 14px; }
.karte h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #8fd0ff; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.karte h3 em { font-style: normal; font-size: 11px; letter-spacing: 0; text-transform: none; color: var(--gold); }

/* Anmelden */
.logo { text-align: center; padding: 28px 0 18px; }
.logo img { width: 72px; height: 72px; }
.logo h1 { font-size: 28px; font-weight: 200; letter-spacing: .3em; margin-top: 8px; text-shadow: 0 0 20px rgba(58, 168, 255, .5); }
.logo p { margin: 4px 0 0; color: var(--leise); font-size: 13px; }
#login h2 { font-size: 20px; margin-bottom: 6px; }
label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: #8fd0ff; margin: 14px 0 6px; }
.eingabe { display: flex; align-items: center; border: 1px solid var(--rand); border-radius: 12px; background: #081a30; padding: 0 12px; }
.eingabe span { color: var(--leise); }
.eingabe input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 17px; padding: 13px 6px; }
.haupt { width: 100%; margin-top: 14px; padding: 14px; border-radius: 12px; font-weight: 700; color: #04121f; background: var(--blau); box-shadow: 0 0 20px rgba(87, 197, 255, .35); }
.neben { width: 100%; margin-top: 10px; padding: 12px; border-radius: 12px; color: var(--leise); border: 1px solid var(--rand); }
.test { width: 100%; margin-top: 10px; padding: 13px; border-radius: 12px; font-weight: 700; color: #1b1300; background: var(--gold); }
.code { margin: 14px 0; padding: 18px; text-align: center; font-size: 34px; font-weight: 800; letter-spacing: .12em; color: var(--gold); border: 2px dashed rgba(255, 211, 110, .5); border-radius: 14px; user-select: all; }

/* Kopf */
.kopf { display: flex; justify-content: space-between; align-items: center; padding: 6px 2px 14px; }
.kopf small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .2em; color: #8fd0ff; }
.kopf b { font-size: 18px; }
.bits { text-align: right; padding: 8px 14px; border-radius: 14px; background: rgba(255, 211, 110, .1); border: 1px solid rgba(255, 211, 110, .35); }
.bits b { font-size: 22px; color: var(--gold); }

/* Haus */
.haus-bild { border-radius: 20px; background: radial-gradient(80% 70% at 50% 40%, #12345c, #071427); border: 1px solid var(--rand); margin-bottom: 14px; }
.haus-bild svg { display: block; width: 100%; height: auto; aspect-ratio: 6 / 5; }
.zeile3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.zeile3 > div { background: var(--karte); border: 1px solid var(--rand); border-radius: 14px; padding: 10px; text-align: center; }
.zeile3 small { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--leise); }
.zeile3 b { font-size: 19px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 5px 10px; border-radius: 99px; background: #0b2340; border: 1px solid var(--rand); font-size: 13px; }
.chips p { margin: 0; }
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(110, 200, 255, .08); }
.liste li:last-child { border: 0; }
.liste b { margin-left: auto; color: var(--gruen); }
.gefahr { width: 100%; padding: 13px; border-radius: 12px; color: var(--rot); border: 1px solid rgba(255, 107, 107, .4); margin-top: 6px; }

/* Shop */
.bereich { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #8fd0ff; margin: 18px 4px 8px; }
.bereich:first-child { margin-top: 0; }
.artikel { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; background: var(--karte); border: 1px solid var(--rand); border-radius: 16px; padding: 12px; margin-bottom: 8px; }
.artikel.aus { opacity: .5; }
.artikel > i { font-style: normal; font-size: 26px; text-align: center; }
.artikel b { display: block; font-size: 14.5px; }
.artikel small { display: block; font-size: 11.5px; color: var(--leise); }
.preis { text-align: right; }
.preis em { font-style: normal; font-size: 18px; font-weight: 800; color: var(--gold); }
.preis small { display: inline; margin-left: 3px; }
.kaufen { display: block; margin-top: 6px; padding: 7px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; color: #04121f; background: var(--blau); white-space: nowrap; }
.varianten { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.varianten button { padding: 5px 9px; border-radius: 9px; font-size: 12px; border: 1px solid var(--rand); background: #0b2340; }

/* Rangliste */
.segment { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: #081a30; border: 1px solid var(--rand); margin-bottom: 14px; }
.segment button { padding: 9px 0; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--leise); }
.segment button.an { color: #04121f; background: var(--blau); }
.platz { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 11px 12px; margin-bottom: 6px; border-radius: 14px; background: var(--karte); border: 1px solid var(--rand); }
.platz.ich { border-color: var(--gold); box-shadow: 0 0 14px rgba(255, 211, 110, .2); }
.platz > i { font-style: normal; font-size: 17px; font-weight: 700; text-align: center; color: #8fd0ff; }
.platz b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.platz small { display: block; font-size: 12px; color: var(--leise); }
.platz em { font-style: normal; font-size: 18px; font-weight: 800; color: var(--gold); }

/* Mitmachen */
.frage { font-size: 17px; font-weight: 600; margin: 4px 0 12px; }
.antworten { display: grid; gap: 8px; }
.antworten button { padding: 12px; border-radius: 12px; text-align: left; background: #0b2340; border: 1px solid var(--rand); }
.antworten button.richtig { border-color: var(--gruen); background: rgba(93, 255, 176, .15); opacity: 1; }
.antworten button.falsch { border-color: var(--rot); background: rgba(255, 107, 107, .15); opacity: 1; }
.thema { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; width: 100%; text-align: left; padding: 11px 12px; margin-bottom: 8px; border-radius: 12px; background: #0b2340; border: 1px solid var(--rand); }
.thema:disabled { opacity: 1; }
.thema.meine { border-color: var(--blau); }
.thema progress { grid-column: 1 / -1; width: 100%; height: 6px; appearance: none; border: 0; border-radius: 99px; background: #071427; overflow: hidden; }
.thema progress::-webkit-progress-bar { background: #071427; }
.thema progress::-webkit-progress-value { background: var(--blau); }
.thema progress::-moz-progress-bar { background: var(--blau); }

/* Tabs unten */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 520px; margin: 0 auto; padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(5, 13, 26, .96); border-top: 1px solid var(--rand); }
.tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 11px; color: var(--leise); }
.tabs button span { font-size: 21px; filter: grayscale(.7); }
.tabs button.an { color: var(--text); }
.tabs button.an span { filter: none; }

.toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); translate: -50% 0; z-index: 30; max-width: calc(100% - 32px); padding: 11px 16px; border-radius: 12px; background: #e6f5ff; color: #04121f; font-weight: 600; font-size: 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
a.link { display: block; text-align: center; text-decoration: none; }
.warten { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 0; font-size: 13px; color: #8fd0ff; }
.warten i { width: 10px; height: 10px; border-radius: 50%; background: var(--blau); animation: puls 1.2s ease-in-out infinite; }
@keyframes puls { 50% { opacity: .25; transform: scale(.7); } }
