:root { --bg: #0b0614; --karte: #160b26; --rand: rgba(181,123,255,.28); --lila: #8d1bd0; --hell: #b57bff; --gruen: #5aff78; --text: #eee8f7; --leise: #a99fbf; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: "Segoe UI", Roboto, system-ui, sans-serif; }
body { background: radial-gradient(90% 60% at 50% 0%, rgba(124,16,173,.35), transparent 70%), var(--bg); }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.karte { max-width: 380px; margin: 12vh auto 0; padding: 2rem 1.5rem; border-radius: 20px; background: var(--karte); border: 1px solid var(--rand); text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.karte h1 { margin: .6rem 0 1.4rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 300; }
.karte input { width: 100%; padding: .85rem 1rem; margin-bottom: .7rem; border-radius: 12px; border: 1px solid var(--rand); background: #0d0618; color: #fff; font-size: 1rem; }
.karte button { width: 100%; padding: .9rem; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--lila), #5c0c86); color: #fff; font-weight: 700; font-size: 1rem; }
.fehler { color: #ff8a96; min-height: 1.2em; }
.logo { width: 90px; height: 90px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(from 0deg, var(--hell), #4cc9f0, var(--lila), var(--hell)); animation: dreh 6s linear infinite; }
.logo .kern { width: 70px; height: 70px; border-radius: 50%; background: var(--karte); box-shadow: inset 0 0 20px rgba(181,123,255,.6); }
@keyframes dreh { to { transform: rotate(360deg); } }

#app { display: flex; flex-direction: column; height: 100dvh; max-width: 820px; margin: 0 auto; }
header { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1rem; padding-top: max(.9rem, env(safe-area-inset-top)); border-bottom: 1px solid var(--rand); }
.titel { font-size: 1.25rem; letter-spacing: .25em; text-transform: uppercase; display: flex; align-items: center; gap: .6rem; }
.punkt { width: 12px; height: 12px; border-radius: 50%; background: var(--gruen); box-shadow: 0 0 12px var(--gruen); }
.punkt.denkt { background: var(--hell); box-shadow: 0 0 14px var(--hell); animation: puls 1s ease-in-out infinite; }
@keyframes puls { 50% { transform: scale(1.5); opacity: .6; } }
.knoepfe { display: flex; gap: .4rem; }
.klein { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--rand); background: rgba(255,255,255,.04); color: var(--text); font-size: 1.05rem; }
.klein.aus { opacity: .4; }

#verlauf { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .7rem; }
.blase { max-width: 85%; padding: .8rem 1rem; border-radius: 16px; line-height: 1.55; font-size: 1.05rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.blase.jarvis { align-self: flex-start; background: var(--karte); border: 1px solid var(--rand); border-bottom-left-radius: 4px; }
.blase.ich { align-self: flex-end; background: linear-gradient(135deg, var(--lila), #5c0c86); border-bottom-right-radius: 4px; }
.blase.warte { color: var(--leise); font-style: italic; }
.blase .nochmal { display: block; margin-top: .4rem; background: none; border: 0; color: var(--hell); padding: 0; font-size: .9rem; }

.vorschlaege { display: flex; gap: .5rem; padding: 0 1rem .6rem; overflow-x: auto; }
.vorschlaege button { flex: none; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--rand); background: rgba(255,255,255,.04); color: var(--text); }

#eingabe { display: flex; gap: .5rem; padding: .7rem 1rem; padding-bottom: max(.7rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--rand); background: rgba(11,6,20,.9); }
#text { flex: 1; min-width: 0; padding: .85rem 1rem; border-radius: 14px; border: 1px solid var(--rand); background: #0d0618; color: #fff; font-size: 1rem; }
.mikro, .senden { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 0; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--lila), #5c0c86); }
.senden { background: rgba(255,255,255,.08); border: 1px solid var(--rand); }
.mikro.hoert { background: #d6334a; box-shadow: 0 0 0 0 rgba(214,51,74,.7); animation: welle 1.2s infinite; }
@keyframes welle { to { box-shadow: 0 0 0 18px rgba(214,51,74,0); } }
