:root { --grund: #070b18; --glas: rgba(12, 18, 38, .86); --rand: rgba(120, 170, 255, .18); --text: #eaf1ff; --leise: #93a3c4; --cyan: #3ee8ff; --pink: #ff3ea5; --gold: #f6c544; --gruen: #41e59a; --rot: #ff5a6e; }
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--grund); color: var(--text); font: 15px/1.45 system-ui, "Segoe UI", Roboto, sans-serif; overflow: hidden; }
#karte { position: fixed; inset: 0; }
a { color: var(--cyan); }
button { font: inherit; color: inherit; cursor: pointer; }
.knopf { background: linear-gradient(135deg, var(--cyan), #7b6bff 60%, var(--pink)); border: 0; color: #050816; font-weight: 800; padding: 12px 18px; border-radius: 14px; box-shadow: 0 8px 30px rgba(62, 232, 255, .25); }
.knopf.zweit { background: rgba(255, 255, 255, .08); color: var(--text); box-shadow: none; border: 1px solid var(--rand); }
.knopf.rot { background: rgba(255, 90, 110, .14); color: #ffb3bd; border: 1px solid rgba(255, 90, 110, .35); box-shadow: none; }
.knopf:disabled { opacity: .5; }
.marke { font-weight: 900; letter-spacing: .14em; font-size: 1.05rem; }
.marke b { background: linear-gradient(90deg, var(--cyan), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marke .logo { color: var(--cyan); text-shadow: 0 0 14px var(--cyan); }
.marke.klein { font-size: .85rem; white-space: nowrap; }
.leise { color: var(--leise); }
.meldung { min-height: 1.2em; color: #ffb3bd; margin: 8px 0 0; }
.meldung.gut { color: var(--gruen); }
.falle { position: absolute; left: -9999px; }

/* Tor */
.tor { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 18px; background: radial-gradient(900px 600px at 70% 10%, rgba(255, 62, 165, .22), transparent 60%), radial-gradient(800px 600px at 10% 90%, rgba(62, 232, 255, .2), transparent 60%), rgba(5, 8, 18, .55); backdrop-filter: blur(3px); overflow: auto; }
.tor-karte { width: min(440px, 100%); background: var(--glas); border: 1px solid var(--rand); border-radius: 24px; padding: 26px 22px; box-shadow: 0 30px 90px rgba(0, 0, 0, .55); }
.tor h1 { font-size: 2rem; line-height: 1.1; margin: 16px 0 10px; }
.tor h1 em { font-style: normal; background: linear-gradient(90deg, var(--cyan), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reiter { display: flex; gap: 6px; background: rgba(255, 255, 255, .05); padding: 4px; border-radius: 14px; margin: 16px 0 12px; }
.reiter button { flex: 1; background: none; border: 0; padding: 9px; border-radius: 10px; color: var(--leise); font-weight: 700; }
.reiter button.an { background: rgba(62, 232, 255, .14); color: var(--text); }
.formular { display: grid; gap: 10px; }
.formular label { display: grid; gap: 4px; font-size: .85rem; color: var(--leise); }
.formular input, .formular select, .formular textarea { background: rgba(255, 255, 255, .06); border: 1px solid var(--rand); border-radius: 12px; padding: 11px 12px; color: var(--text); font: inherit; }
.formular textarea { min-height: 80px; resize: vertical; }
.formular .haken { display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; }
.formular .haken input { margin-top: 3px; }
.fuss { font-size: .8rem; color: var(--leise); text-align: center; margin: 14px 0 0; }

/* Kopf */
.kopf { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top) + 10px) 12px 10px; background: linear-gradient(180deg, rgba(7, 11, 24, .92), rgba(7, 11, 24, 0)); }
.filter { flex: 1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.filter::-webkit-scrollbar { display: none; }
.filter button { white-space: nowrap; background: var(--glas); border: 1px solid var(--rand); border-radius: 99px; padding: 6px 12px; font-size: .82rem; }
.filter button.an { background: rgba(62, 232, 255, .18); border-color: var(--cyan); }
.muenzen { background: var(--glas); border: 1px solid rgba(246, 197, 68, .35); color: var(--gold); border-radius: 99px; padding: 6px 12px; font-weight: 800; white-space: nowrap; }

/* Leiste unten */
.leiste { position: fixed; left: 10px; right: 10px; bottom: calc(env(safe-area-inset-bottom) + 10px); z-index: 16; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--glas); border: 1px solid var(--rand); border-radius: 20px; padding: 6px; backdrop-filter: blur(10px); max-width: 640px; margin: 0 auto; }
.leiste button { background: none; border: 0; display: grid; justify-items: center; gap: 2px; font-size: .7rem; color: var(--leise); padding: 6px 2px; border-radius: 14px; }
.leiste button span { font-size: 1.25rem; }
.leiste button.an { color: var(--text); background: rgba(62, 232, 255, .12); }
.neu-knopf { position: fixed; right: 14px; bottom: calc(env(safe-area-inset-bottom) + 96px); z-index: 11; }
.neu-knopf { background: linear-gradient(135deg, var(--pink), #7b6bff); border: 0; color: #fff; font-weight: 800; padding: 13px 18px; border-radius: 99px; box-shadow: 0 10px 34px rgba(255, 62, 165, .4); }
.hinweis { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 62px); transform: translateX(-50%); z-index: 13; background: var(--glas); border: 1px solid var(--cyan); padding: 10px 14px; border-radius: 14px; max-width: 92vw; text-align: center; }

/* Blatt (Ansichten) */
.blatt { position: fixed; z-index: 14; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow: auto; background: var(--glas); border-top: 1px solid var(--rand); border-radius: 24px 24px 0 0; padding: 18px 16px calc(env(safe-area-inset-bottom) + 96px); backdrop-filter: blur(14px); box-shadow: 0 -20px 60px rgba(0, 0, 0, .5); }
@media (min-width: 900px) { .blatt { left: auto; top: 76px; bottom: 96px; right: 16px; width: 430px; max-height: none; border-radius: 24px; border: 1px solid var(--rand); padding-bottom: 20px; } }
.blatt .zu { position: sticky; top: 0; float: right; background: rgba(255, 255, 255, .08); border: 0; width: 34px; height: 34px; border-radius: 50%; z-index: 2; }
.blatt h2 { margin: 2px 0 10px; font-size: 1.3rem; }
.blatt h3 { margin: 18px 0 8px; font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: rgba(255, 255, 255, .07); border: 1px solid var(--rand); border-radius: 99px; padding: 4px 10px; font-size: .78rem; }
.chip.art { border-color: var(--pink); color: #ffc2e1; }
.reihe { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.leute { display: flex; flex-wrap: wrap; gap: 10px; }
.person { display: grid; justify-items: center; width: 70px; font-size: .75rem; text-align: center; }
.person img { width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(circle, #1c2a50, #0b1226); border: 1px solid var(--rand); }
.chat { display: grid; gap: 6px; max-height: 260px; overflow: auto; background: rgba(0, 0, 0, .2); border-radius: 14px; padding: 10px; }
.msg { background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 6px 10px; max-width: 85%; }
.msg.ich { justify-self: end; background: rgba(62, 232, 255, .14); }
.msg b { font-size: .75rem; color: var(--cyan); display: block; }
.msg small { color: var(--leise); font-size: .68rem; }
.chat-eingabe { display: flex; gap: 6px; margin-top: 8px; }
.chat-eingabe input { flex: 1; background: rgba(255, 255, 255, .06); border: 1px solid var(--rand); border-radius: 12px; padding: 10px; color: var(--text); font: inherit; }
.liste { display: grid; gap: 8px; }
.eintrag { text-align: left; background: rgba(255, 255, 255, .05); border: 1px solid var(--rand); border-radius: 16px; padding: 12px; display: grid; gap: 3px; }
.eintrag b { font-size: 1rem; }
.eintrag small { color: var(--leise); }
.vorschau3d { height: 300px; border-radius: 20px; background: radial-gradient(circle at 50% 35%, #1b2c5a, #0a1022 70%); touch-action: none; margin-bottom: 10px; }
.farben { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.farben label { display: grid; justify-items: center; gap: 3px; font-size: .72rem; color: var(--leise); }
.farben input { width: 44px; height: 36px; border: 0; padding: 0; background: none; border-radius: 10px; }
.auswahl { display: flex; gap: 6px; flex-wrap: wrap; }
.auswahl button { background: rgba(255, 255, 255, .06); border: 1px solid var(--rand); border-radius: 12px; padding: 7px 11px; font-size: .82rem; }
.auswahl button.an { border-color: var(--cyan); background: rgba(62, 232, 255, .16); }
.shop { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ware { background: rgba(255, 255, 255, .05); border: 1px solid var(--rand); border-radius: 16px; padding: 12px; display: grid; gap: 6px; }
.ware .muster { height: 46px; border-radius: 12px; }
.ware .preis { color: var(--gold); font-weight: 800; }

/* Karte: Markierungen */
.treff-pin { display: grid; justify-items: center; cursor: pointer; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.treff-pin .kopf-pin { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem; background: radial-gradient(circle at 35% 30%, #2a3f78, #0b1328); border: 2px solid var(--cyan); }
.treff-pin.dabei .kopf-pin { border-color: var(--gold); box-shadow: 0 0 18px rgba(246, 197, 68, .6); }
.treff-pin .zahl { margin-top: -8px; background: var(--pink); color: #fff; font-size: .68rem; font-weight: 800; padding: 1px 7px; border-radius: 99px; }
.treff-pin .stiel { width: 2px; height: 14px; background: linear-gradient(var(--cyan), transparent); }
.live-pin { display: grid; justify-items: center; }
.live-pin img { width: 64px; height: 64px; }
.live-pin span { background: var(--glas); border: 1px solid var(--gruen); border-radius: 99px; font-size: .7rem; padding: 1px 8px; margin-top: -6px; }
.live-leiste { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 96px); z-index: 13; background: var(--glas); border: 1px solid var(--gruen); border-radius: 99px; padding: 8px 10px 8px 16px; display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.live-leiste .punkt { width: 9px; height: 9px; border-radius: 50%; background: var(--gruen); box-shadow: 0 0 10px var(--gruen); animation: puls 2s ease-in-out infinite; }
@keyframes puls { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .live-leiste .punkt { animation: none; } }
.maplibregl-ctrl-attrib { font-size: 10px; }
.maplibregl-ctrl-top-right { top: calc(env(safe-area-inset-top) + 58px); }
