/* Ich bin – satiniertes Farbglas auf violettem Abendhimmel */
:root {
  --grund: #2a1260;
  --glas: rgba(132, 92, 230, .42);
  --mulde: rgba(20, 6, 70, .32);
  --saum: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(20, 0, 70, .22);
  --schatten: 0 24px 44px -14px rgba(10, 2, 45, .6);
  --text: #fff;
  --leise: rgba(255, 255, 255, .72);
  --gold: #ffd479;
  --gruen: #7ef0b4;
  --radius: 22px;
  --kurve: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--grund); color: var(--text); }
body {
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  padding: env(safe-area-inset-top) 16px calc(96px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
.himmel { position: fixed; inset: 0; z-index: -1; background: linear-gradient(170deg, #3b1f7a 0%, #2a1260 45%, #170a3d 100%); }
.himmel i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.himmel i:nth-child(1) { width: 340px; height: 340px; background: #c05bd6; top: -90px; right: -110px; }
.himmel i:nth-child(2) { width: 300px; height: 300px; background: #4b6cff; top: 38%; left: -150px; }
.himmel i:nth-child(3) { width: 260px; height: 260px; background: #ff8f6b; bottom: -60px; right: -80px; opacity: .35; }

main { max-width: 560px; margin: 0 auto; }
.kopf { padding: 26px 4px 14px; }
.kopf h1 { margin: 0; font-size: 32px; font-weight: 650; letter-spacing: -.01em; }
.kopf p { margin: 4px 0 0; color: var(--leise); }

.glas {
  display: block; position: relative; margin: 0 0 14px; padding: 18px 18px 16px;
  background: var(--glas); border-radius: var(--radius);
  backdrop-filter: blur(44px) saturate(150%); -webkit-backdrop-filter: blur(44px) saturate(150%);
  box-shadow: var(--saum), var(--schatten); color: inherit; text-decoration: none;
}
.glas h2 { margin: 0 0 2px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.leise { margin: 2px 0 10px; color: var(--leise); font-size: 14px; }
.ok { margin: 10px 0 0; color: var(--gruen); font-weight: 600; font-size: 14px; }

textarea, input:not([type=file]) {
  width: 100%; border: 0; border-radius: 14px; padding: 12px 14px; margin: 0;
  background: var(--mulde); color: #fff; font: inherit; resize: none; outline: none;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .25);
}
textarea::placeholder, input::placeholder { color: rgba(255, 255, 255, .42); }
textarea:focus, input:focus { box-shadow: inset 0 2px 6px rgba(0, 0, 0, .25), 0 0 0 2px rgba(255, 212, 121, .55); }
input[type=date] { color-scheme: dark; min-height: 46px; }

.frage { display: block; margin: 0 0 16px; }
.frage:last-child { margin-bottom: 4px; }
.frage-text { display: block; font-weight: 600; margin: 0 0 6px; }
.frage-hinweis { display: block; color: var(--leise); font-size: 13px; margin: -3px 0 7px; }
.zwei { display: grid; grid-template-columns: 1fr; gap: 0; }

button { font: inherit; color: inherit; border: 0; cursor: pointer; transition: transform 180ms var(--kurve), background 180ms; }
button:active, .datei:active { transform: scale(.97); }
.haupt {
  display: block; width: 100%; margin-top: 12px; padding: 14px; border-radius: 16px;
  background: linear-gradient(180deg, #ffe09a, #f5b94d); color: #3a1d00; font-weight: 650;
  box-shadow: 0 8px 22px -6px rgba(255, 190, 80, .55), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.neben, .datei {
  display: block; width: 100%; margin-top: 10px; padding: 13px; border-radius: 16px; text-align: center;
  background: rgba(255, 255, 255, .14); font-weight: 600; box-shadow: var(--saum);
}
.gefahr { width: 100%; padding: 13px; border-radius: 16px; background: rgba(255, 80, 90, .25); font-weight: 600; color: #ffd6d9; }

.schalter {
  display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 12px 14px;
  border-radius: 16px; background: rgba(255, 255, 255, .12); font-weight: 600; text-align: left;
}
.schalter .haken, .etappe-haken {
  flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); position: relative;
}
.schalter.an { background: rgba(126, 240, 180, .22); }
.schalter.an .haken, .etappe.fertig .etappe-haken { background: var(--gruen); border-color: var(--gruen); }
.schalter.an .haken::after, .etappe.fertig .etappe-haken::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 7px; height: 12px;
  border: solid #12402a; border-width: 0 3px 3px 0; transform: rotate(45deg);
}

.serie { display: flex; align-items: center; gap: 16px; }
.serie-zahl { font-size: 54px; font-weight: 700; line-height: 1; color: var(--gold); min-width: 56px; text-align: center; text-shadow: 0 0 24px rgba(255, 212, 121, .45); }
.serie-text { font-size: 18px; font-weight: 600; }
.serie-text span { font-size: 14px; font-weight: 400; color: var(--leise); }

.woche { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 10px; }
.tag { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; border-radius: 14px; background: var(--mulde); }
.tag.ist-heute { box-shadow: 0 0 0 2px rgba(255, 212, 121, .7); }
.tag-wt { font-size: 12px; color: var(--leise); }
.punkt { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.punkt.an { background: var(--gruen); box-shadow: 0 0 10px rgba(126, 240, 180, .6); }
.punkt.szene.an { background: var(--gold); box-shadow: 0 0 10px rgba(255, 212, 121, .6); }
.legende { margin: 10px 0 0; font-size: 13px; color: var(--leise); display: flex; align-items: center; gap: 6px; }
.legende .punkt { width: 10px; height: 10px; margin-left: 8px; }
.legende .punkt:first-child { margin-left: 0; }

.ziel-was { margin: 4px 0 10px; font-size: 18px; font-weight: 600; }
.ziel-was span { font-weight: 400; color: var(--leise); font-size: 14px; }
.balken { height: 10px; border-radius: 6px; background: var(--mulde); overflow: hidden; margin: 6px 0 6px; }
.balken i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gruen), var(--gold)); transition: width 400ms var(--kurve); }

.etappe { display: grid; grid-template-columns: 26px 1fr 128px 30px; gap: 8px; align-items: center; margin: 8px 0; }
.etappe input { padding: 10px 12px; }
.etappe.fertig input:first-of-type { text-decoration: line-through; opacity: .7; }
.etappe-weg { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .1); font-size: 20px; line-height: 1; }

.mantra { text-align: center; color: var(--leise); font-style: italic; margin: 22px 0 8px; }
.mantra.gross { font-size: 30px; font-style: normal; font-weight: 650; color: #fff; line-height: 1.2; text-shadow: 0 0 30px rgba(192, 91, 214, .6); }
.zitat p { margin: 0; font-size: 17px; line-height: 1.5; }
.fuss { text-align: center; font-size: 13px; color: rgba(255, 255, 255, .5); margin: 18px 0 0; }
.fuss a { color: inherit; }

/* Reiterleiste mit gleitender Glas-Pille */
.leiste {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 5;
  display: flex; max-width: 560px; margin: 0 auto; padding: 6px; border-radius: 26px;
  background: rgba(60, 30, 140, .55); backdrop-filter: blur(30px) saturate(160%); -webkit-backdrop-filter: blur(30px) saturate(160%);
  box-shadow: var(--saum), 0 14px 30px -10px rgba(5, 0, 30, .7);
}
.leiste a {
  position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 7px 0 6px; color: rgba(255, 255, 255, .7); text-decoration: none; font-size: 11px;
}
.leiste a.aktiv { color: var(--gold); font-weight: 600; }
.leiste svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pille {
  position: absolute; top: 6px; bottom: 6px; left: 0; border-radius: 20px; background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); transition: transform 320ms var(--kurve), width 320ms var(--kurve);
}

/* Szene abspielen */
#szene {
  position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(40px + env(safe-area-inset-top)) 28px calc(30px + env(safe-area-inset-bottom));
  background: radial-gradient(circle at 50% 35%, #4a2a96 0%, #1d0c4a 60%, #0d0526 100%);
  opacity: 0; transition: opacity 300ms;
}
#szene.offen { opacity: 1; }
#szene[hidden] { display: none; }
.szene-zu { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 16px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .12); font-size: 24px; }
.atem { position: relative; width: 150px; height: 150px; display: grid; place-items: center; margin-bottom: 26px; }
.atem-kreis {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 212, 121, .75), rgba(192, 91, 214, .35) 60%, transparent 72%);
  animation: atmen 10s ease-in-out infinite;
}
.atem-wort { position: relative; font-size: 14px; color: #fff; letter-spacing: .02em; }
.atem-wort::before { content: "Einatmen"; animation: wort-ein 10s infinite; }
.atem-wort::after { content: "Ausatmen"; position: absolute; left: 50%; transform: translateX(-50%); animation: wort-aus 10s infinite; }
@keyframes atmen { 0% { transform: scale(.55); } 40% { transform: scale(1); } 100% { transform: scale(.55); } }
@keyframes wort-ein { 0%, 38% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes wort-aus { 0%, 38% { opacity: 0; } 42%, 96% { opacity: 1; } 100% { opacity: 0; } }
.szene-text { max-width: 420px; text-align: center; font-size: 19px; line-height: 1.55; }
.szene-text p { margin: 0 0 10px; }
.szene-text em { color: var(--gold); font-style: normal; font-weight: 600; }
.szene-zeit { margin: 18px 0 4px; font-size: 15px; color: var(--leise); font-variant-numeric: tabular-nums; }
#szene .haupt { max-width: 320px; }

@media (prefers-reduced-motion: reduce) { .atem-kreis { animation: none; transform: scale(.8); } }
.zwei .frage:last-child { margin-bottom: 16px; }
