/* =============================================================================
   „Dein Leben" (v507) — Leben in Wochen. Bewusst EINE Welt: Nachthimmel, unabhängig vom App-Thema.
   Eis = gelebt · Grün = gebetet (je mehr, desto kräftiger) · Gold = Erinnerung / diese Woche · Rot = Schlechtes.
   ========================================================================== */
/* Die Farben gelten auch für Wochenfenster, Hinweis und Großansicht — die hängen am body, nicht in .lb. */
.lb, .lb-woche, .lb-schleier, .lb-tipp, .lb-gross, .lb-ev-box {
  --nacht: #060a16; --nacht2: #0d1532; --eis: #cdeefa; --gruen: #2fe3a5; --gold: #f6c453; --gold2: #ffb347;
  --rot: #ff6b7a; --text: #e8eefc; --matt: #8a95b6; --linie: rgba(140, 160, 220, .16); --zukunft: rgba(120, 140, 205, .22);
  --flaeche: rgba(14, 22, 48, .78);
}
.lb {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 18px;
  background: radial-gradient(120% 80% at 50% -10%, #16224a 0%, var(--nacht2) 38%, var(--nacht) 100%);
  color: var(--text); font-family: 'Archivo', system-ui, sans-serif;
  padding: 28px clamp(14px, 3vw, 40px) 40px; min-height: calc(100vh - 120px);
}
body.view-leben main.content { max-width: none; padding: 10px 12px; }
.lb * { box-sizing: border-box; }
.lb button { font: inherit; color: inherit; }
.lb-sterne { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Kopf ---------- */
.lb-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.lb-oben { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.lb-titel {
  font-family: 'Bricolage Grotesque', 'Archivo', sans-serif; font-weight: 800; font-size: clamp(38px, 6vw, 68px);
  line-height: .95; letter-spacing: -.035em; margin: 8px 0 10px;
  background: linear-gradient(100deg, #ffffff 0%, var(--eis) 45%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: lbTitel 1.1s cubic-bezier(.2, .8, .2, 1) both;
}
.lb-satz { color: var(--matt); font-size: 15.5px; max-width: 46ch; line-height: 1.5; text-wrap: balance; }
.lb-satz b { color: var(--text); font-variant-numeric: tabular-nums; }
.lb-einst { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--linie); background: var(--flaeche); cursor: pointer; color: var(--matt); transition: transform .2s, color .2s; }
.lb-einst:hover { color: var(--text); transform: rotate(40deg); }

/* ---------- Fortschritt ---------- */
.lb-weg { margin: 22px 0 8px; }
.lb-weg-zahlen { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--matt); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.lb-weg-zahlen b { color: var(--text); font-size: 15px; }
.lb-balken { position: relative; height: 6px; border-radius: 9px; background: rgba(255, 255, 255, .06); overflow: visible; }
.lb-balken i {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 9px;
  background: linear-gradient(90deg, rgba(205, 238, 250, .35), var(--eis) 70%, var(--gold));
  transition: width 2.6s linear;
}
.lb-balken i::after {
  content: ''; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(246, 196, 83, .18), 0 0 18px 4px rgba(246, 196, 83, .55); animation: lbPuls 2.4s ease-in-out infinite;
}
.lb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; }
.lb-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; background: var(--flaeche); border: 1px solid var(--linie); font-size: 13px; color: var(--matt); }
.lb-chip b { color: var(--text); font-variant-numeric: tabular-nums; }
.lb-chip .p { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- Raster ---------- */
.lb-raster-huelle { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 0 8px; }
.lb-jahre { display: grid; grid-template-rows: repeat(var(--zeilen), 1fr); gap: var(--spalt); font-size: 11px; color: var(--matt); font-variant-numeric: tabular-nums; }
.lb-jahre span { display: flex; align-items: center; justify-content: flex-end; line-height: 0; }
.lb-raster { position: relative; display: grid; grid-template-columns: repeat(52, 1fr); gap: var(--spalt); }
.lb-k {
  aspect-ratio: 1; border-radius: 2px; position: relative; cursor: pointer; border: 0; padding: 0;
  background: transparent; box-shadow: inset 0 0 0 1px var(--zukunft);
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .2s;
  /* --d setzt leben.js: gelebte Wochen der Reihe nach (der Lichtstrahl), danach die kommenden. */
  animation: lbAuftauchen .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0ms);
}
.lb-k.gelebt {
  --p: 0; box-shadow: none;
  background: color-mix(in oklab, var(--gruen) calc(var(--p) * 100%), var(--eis));
  opacity: calc(.82 + var(--p) * .18);
  animation-name: lbFuellen; animation-duration: .55s;
}
.lb-k.gelebt.leer { opacity: .74; }
.lb-k.erinnerung::after {
  content: ''; position: absolute; inset: 28%; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 6px 1px rgba(246, 196, 83, .8);
}
.lb-k.schlecht { box-shadow: inset 0 -2px 0 0 var(--rot); }
.lb-k.fertig { box-shadow: 0 0 0 1px rgba(255, 255, 255, .9); }
.lb-k.vorhaben { box-shadow: inset 0 0 0 1px rgba(246, 196, 83, .7); }
.lb-k:hover, .lb-k:focus-visible { transform: scale(2.1); z-index: 3; outline: none; box-shadow: 0 0 0 1px #fff, 0 4px 14px rgba(0, 0, 0, .5); }
.lb-k.gewaehlt { box-shadow: 0 0 0 2px #fff, 0 0 14px 2px rgba(255, 255, 255, .5); z-index: 2; }
.lb-k.jetzt {
  background: var(--gold); opacity: 1; z-index: 4; box-shadow: 0 0 14px 5px rgba(246, 196, 83, .9);
  /* Erst „landet" der Lichtstrahl hier (nach --d), dann leuchtet die Woche dauerhaft stark. */
  animation: lbLanden .9s cubic-bezier(.2, 1.4, .3, 1) var(--d, 0ms) both, lbJetzt 1.9s ease-in-out calc(var(--d, 0ms) + .9s) infinite;
}
.lb-k.jetzt::before, .lb-k.jetzt::after {
  content: ''; position: absolute; inset: -2px; border-radius: 3px; border: 1.5px solid var(--gold); background: none; box-shadow: none;
  animation: lbWelle 2.6s cubic-bezier(.2, .7, .3, 1) infinite;
}
.lb-k.jetzt::before { animation-delay: calc(var(--d, 0ms) + .9s); }
.lb-k.jetzt::after { animation-delay: calc(var(--d, 0ms) + 2.2s); }

/* Lauflicht + Pfeile auf die aktuelle Woche zu */
.lb-lauf { position: absolute; pointer-events: none; z-index: 3; overflow: hidden; border-radius: 3px; }
.lb-lauf::before {
  content: ''; position: absolute; top: 0; bottom: 0; width: 38%; left: -40%;
  background: linear-gradient(90deg, transparent, rgba(246, 196, 83, .0) 10%, rgba(246, 196, 83, .55) 85%, rgba(255, 240, 200, .95));
  filter: blur(.4px); animation: lbKomet 3.4s cubic-bezier(.45, 0, .2, 1) infinite;
}
.lb-pfeile { position: absolute; pointer-events: none; z-index: 5; display: flex; gap: 1px; color: var(--gold); transform: translate(-100%, -50%); }
.lb-pfeile span { display: block; font-weight: 900; line-height: 1; text-shadow: 0 0 8px rgba(246, 196, 83, .9); animation: lbPfeil 1.4s ease-in-out infinite; }
.lb-pfeile span:nth-child(2) { animation-delay: .18s; } .lb-pfeile span:nth-child(3) { animation-delay: .36s; }
.lb-funke { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); pointer-events: none; z-index: 6; box-shadow: 0 0 8px 2px rgba(246, 196, 83, .9); animation: lbFunke .9s cubic-bezier(.2, .8, .2, 1) forwards; }

.lb-tipp {
  position: fixed; z-index: 60; pointer-events: none; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.45;
  background: rgba(8, 12, 28, .94); border: 1px solid var(--linie); box-shadow: 0 10px 28px rgba(0, 0, 0, .45); color: var(--text);
  transform: translate(-50%, calc(-100% - 12px)); white-space: nowrap; transition: opacity .12s;
}
.lb-tipp small { color: var(--matt); display: block; }
.lb-legende { display: flex; flex-wrap: wrap; gap: 14px 20px; margin-top: 20px; font-size: 12.5px; color: var(--matt); }
.lb-legende span { display: inline-flex; align-items: center; gap: 7px; }
.lb-legende i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; position: relative; }

/* ---------- Wochen-Ansicht ---------- */
.lb-schleier { position: fixed; inset: 0; z-index: 70; background: rgba(3, 6, 15, .55); backdrop-filter: blur(3px); animation: lbEin .25s ease both; }
.lb-woche {
  position: fixed; z-index: 71; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(180deg, #111a3a 0%, #0a1027 100%); border-left: 1px solid var(--linie); color: var(--text);
  font-family: 'Archivo', system-ui, sans-serif; padding: 22px 22px 40px; box-shadow: -30px 0 60px rgba(0, 0, 0, .45);
  animation: lbRein .45s cubic-bezier(.16, 1, .3, 1) both;
}
.lb-woche * { box-sizing: border-box; }
.lb-woche button { font: inherit; color: inherit; }
.lb-wkopf { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.lb-wkopf .t { flex: 1; min-width: 0; }
.lb-wkopf h2 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 27px; letter-spacing: -.02em; margin: 2px 0 4px; font-weight: 800; }
.lb-wkopf .o { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.lb-wkopf .d { color: var(--matt); font-size: 13.5px; }
.lb-rund { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--linie); background: rgba(255, 255, 255, .03); cursor: pointer; flex: none; transition: background .2s, transform .2s; }
.lb-rund:hover { background: rgba(255, 255, 255, .09); }
.lb-rund:active { transform: scale(.94); }
.lb-abschnitt { margin-top: 22px; animation: lbHoch .5s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
.lb-abschnitt h3 { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--matt); margin: 0 0 10px; font-weight: 700; }
.lb-abschnitt h3 b { color: var(--text); letter-spacing: 0; font-size: 13px; font-variant-numeric: tabular-nums; }

.lb-gebete { display: grid; grid-template-columns: 62px repeat(7, 1fr); gap: 5px; align-items: center; }
.lb-gebete .tag { text-align: center; font-size: 11px; color: var(--matt); line-height: 1.25; cursor: pointer; border-radius: 8px; padding: 3px 0; transition: background .2s, color .2s; }
.lb-gebete .tag b { display: block; color: var(--text); font-size: 12px; }
.lb-gebete .tag:hover { background: rgba(255, 255, 255, .06); }
.lb-gebete .tag.voll { color: var(--gruen); }
.lb-gebete .tag.voll b { color: var(--gruen); }
.lb-gebete .tag.heute b { color: var(--gold); }
.lb-gebete .name { font-size: 12.5px; color: var(--matt); }
.lb-gb {
  aspect-ratio: 1; border-radius: 9px; border: 1.5px solid rgba(140, 160, 220, .28); background: rgba(255, 255, 255, .02); cursor: pointer;
  display: grid; place-items: center; transition: background .25s, border-color .25s, transform .15s; padding: 0;
}
.lb-gb svg { width: 60%; height: 60%; stroke: #06281c; stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .35s ease .05s; }
.lb-gb.an { background: var(--gruen); border-color: var(--gruen); box-shadow: 0 0 14px rgba(47, 227, 165, .35); animation: lbPop .35s cubic-bezier(.2, 1.6, .4, 1); }
.lb-gb.an svg { stroke-dashoffset: 0; }
.lb-gb:hover { border-color: rgba(47, 227, 165, .7); }
.lb-gb.zukunft { opacity: .35; }

.lb-liste { display: grid; gap: 6px; }
.lb-eintrag { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px 9px 12px; border-radius: 11px; background: rgba(255, 255, 255, .04); border: 1px solid var(--linie); font-size: 14px; line-height: 1.45; animation: lbHoch .35s cubic-bezier(.16, 1, .3, 1) both; }
.lb-eintrag span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.lb-eintrag.gut { border-left: 3px solid var(--gruen); }
.lb-eintrag.schlecht { border-left: 3px solid var(--rot); }
.lb-eintrag button { border: 0; background: none; cursor: pointer; color: var(--matt); padding: 0 2px; font-size: 16px; line-height: 1; }
.lb-eintrag button:hover { color: var(--rot); }
.lb-neu { display: flex; gap: 6px; }
.lb-neu input, .lb-feld {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--linie); background: rgba(0, 0, 0, .25); color: var(--text);
  font: inherit; font-size: 14.5px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.lb-feld { width: 100%; resize: vertical; min-height: 84px; line-height: 1.5; }
.lb-neu input:focus, .lb-feld:focus { border-color: rgba(246, 196, 83, .6); box-shadow: 0 0 0 3px rgba(246, 196, 83, .12); }
.lb-neu button { padding: 0 14px; border-radius: 11px; border: 1px solid var(--linie); background: rgba(255, 255, 255, .05); cursor: pointer; font-weight: 700; }

.lb-medien { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 10px; }
.lb-medium { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--linie); background: rgba(0, 0, 0, .25); animation: lbHoch .4s cubic-bezier(.16, 1, .3, 1) both; }
.lb-medium img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; cursor: zoom-in; }
.lb-medium.audio { grid-column: 1 / -1; padding: 10px; display: flex; align-items: center; gap: 10px; }
.lb-medium.audio audio { flex: 1; min-width: 0; height: 36px; }
.lb-medium .x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-medium.audio .x { position: static; flex: none; }
.lb-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.lb-knopf {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--linie);
  background: rgba(255, 255, 255, .05); cursor: pointer; font-weight: 650; font-size: 14px; transition: background .2s, transform .15s;
}
.lb-knopf:hover { background: rgba(255, 255, 255, .1); }
.lb-knopf:active { transform: scale(.97); }
.lb-knopf.nimmt { background: rgba(255, 107, 122, .18); border-color: var(--rot); color: #ffd6db; }
.lb-knopf.nimmt::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--rot); animation: lbPuls 1s ease-in-out infinite; }
.lb-woche .lb-fertig {
  width: 100%; margin-top: 26px; padding: 15px; border-radius: 14px; border: 1px solid rgba(246, 196, 83, .45);
  background: linear-gradient(100deg, rgba(246, 196, 83, .14), rgba(255, 179, 71, .06)); color: var(--gold); font-weight: 800; font-size: 15.5px;
  cursor: pointer; letter-spacing: .01em; transition: transform .15s, background .3s;
}
.lb-woche .lb-fertig.an { background: linear-gradient(100deg, var(--gold), var(--gold2)); color: #2a1a00; box-shadow: 0 8px 26px rgba(246, 196, 83, .35); }
.lb-woche .lb-fertig:active { transform: scale(.98); }
.lb-status { font-size: 12px; color: var(--matt); text-align: right; min-height: 16px; margin-top: 8px; }
.lb-hinweis { padding: 12px 14px; border-radius: 12px; background: rgba(246, 196, 83, .08); border: 1px solid rgba(246, 196, 83, .25); color: #f3dfae; font-size: 13.5px; line-height: 1.5; }
.lb-gross { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .88); display: grid; place-items: center; cursor: zoom-out; animation: lbEin .2s ease both; }
.lb-gross img { max-width: 94vw; max-height: 90vh; border-radius: 10px; animation: lbZoom .35s cubic-bezier(.16, 1, .3, 1) both; }

.lb-popup { position: absolute; z-index: 20; right: 0; top: 48px; width: 280px; padding: 16px; border-radius: 14px; background: #0e1636; border: 1px solid var(--linie); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); animation: lbHoch .3s cubic-bezier(.16, 1, .3, 1) both; }
.lb-popup label { display: grid; gap: 6px; font-size: 12px; color: var(--matt); margin-bottom: 12px; }
.lb-popup input { padding: 9px 11px; border-radius: 10px; border: 1px solid var(--linie); background: rgba(0, 0, 0, .3); color: var(--text); font: inherit; }

/* ---------- Bewegung ---------- */
@keyframes lbTitel { from { opacity: 0; transform: translateY(14px); letter-spacing: .02em; } to { opacity: 1; transform: none; } }
@keyframes lbAuftauchen { from { opacity: 0; transform: scale(.3); } }
/* Der Kopf des Lichtstrahls: Jede Woche blitzt beim Füllen kurz golden-weiß auf und setzt sich dann in ihre Farbe. */
@keyframes lbFuellen { 0% { opacity: 0; transform: scale(.2); } 30% { opacity: 1; transform: scale(1.7); background: #fff4d2; box-shadow: 0 0 12px 4px rgba(255, 220, 140, .95); } 100% { transform: scale(1); } }
@keyframes lbLanden { 0% { opacity: 0; transform: scale(.2); } 45% { opacity: 1; transform: scale(3.2); background: #fffaf0; box-shadow: 0 0 40px 16px rgba(255, 214, 120, 1); } 100% { transform: scale(1); } }
@keyframes lbJetzt { 0%, 100% { box-shadow: 0 0 12px 4px rgba(246, 196, 83, .85), 0 0 30px 8px rgba(246, 196, 83, .35); filter: brightness(1.05); transform: scale(1.15); } 50% { box-shadow: 0 0 22px 9px rgba(255, 210, 110, 1), 0 0 56px 18px rgba(246, 196, 83, .5); filter: brightness(1.4); transform: scale(1.45); } }
@keyframes lbWelle { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.6); opacity: 0; } }
@keyframes lbKomet { 0% { left: -40%; } 70%, 100% { left: 105%; } }
@keyframes lbPfeil { 0%, 100% { opacity: .25; transform: translateX(-2px); } 50% { opacity: 1; transform: translateX(2px); } }
@keyframes lbPuls { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: .75; } }
@keyframes lbFunke { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
@keyframes lbEin { from { opacity: 0; } }
@keyframes lbRein { from { transform: translateX(105%); } }
@keyframes lbHoch { from { opacity: 0; transform: translateY(10px); } }
@keyframes lbPop { 0% { transform: scale(.7); } 100% { transform: scale(1); } }
@keyframes lbZoom { from { transform: scale(.85); opacity: 0; } }

@media (max-width: 760px) {
  body.view-leben main.content { padding: 6px; }
  .lb { padding: 20px 10px 28px; border-radius: 14px; }
  .lb-kopf { flex-wrap: nowrap; }
  .lb-kopf > div:last-child { position: absolute; top: 16px; right: 12px; }
  .lb-raster-huelle { grid-template-columns: 18px 1fr; gap: 0 4px; }
  .lb-jahre { font-size: 8.5px; }
  .lb-k { border-radius: 1px; }
  .lb-k:hover { transform: scale(2.6); }
  .lb-woche { top: auto; width: 100vw; max-height: 88vh; border-left: 0; border-top: 1px solid var(--linie); border-radius: 20px 20px 0 0; padding: 16px 14px 34px; animation-name: lbRauf; }
  .lb-gebete { grid-template-columns: 52px repeat(7, 1fr); gap: 4px; }
  .lb-neu input, .lb-feld { font-size: 16px; }
  .lb-pfeile { font-size: 9px !important; }
}
@keyframes lbRauf { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) {
  .lb *, .lb-woche, .lb-woche * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .lb-lauf, .lb-pfeile { display: none; }
}

/* ---------- Ereignisse & Meilensteine (v508) ---------- */
.lb-ereignis-knopf {
  height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(196, 161, 255, .45); cursor: pointer; font-weight: 700; font-size: 13.5px;
  background: linear-gradient(100deg, rgba(196, 161, 255, .16), rgba(246, 196, 83, .1)); color: #e9dcff; transition: transform .15s, box-shadow .2s;
}
.lb-ereignis-knopf:hover { box-shadow: 0 0 18px rgba(196, 161, 255, .35); }
.lb-ereignis-knopf:active { transform: scale(.97); }
.lb-k.ereignis { box-shadow: 0 0 0 1px #c4a1ff, 0 0 8px 1px rgba(196, 161, 255, .7); z-index: 2; }
.lb-k.ereignis::after {
  content: attr(data-sym); position: absolute; inset: -40%; border-radius: 0; background: none; box-shadow: none;
  display: grid; place-items: center; font-size: calc(var(--zelle, 12px) * 1.05); line-height: 1; filter: drop-shadow(0 0 3px rgba(0, 0, 0, .6));
}
.lb-k.gelebt.ereignis { animation: lbFuellen .55s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms) both, lbEreignis 1.4s ease calc(var(--d, 0ms) + .35s) both; }
@keyframes lbEreignis { 0% { box-shadow: 0 0 0 1px #c4a1ff; } 30% { box-shadow: 0 0 0 2px #fff, 0 0 26px 10px rgba(196, 161, 255, .95); transform: scale(2.2); } 100% { box-shadow: 0 0 0 1px #c4a1ff, 0 0 8px 1px rgba(196, 161, 255, .7); transform: scale(1); } }
.lb-leg-ev { display: grid !important; place-items: center; font-style: normal; font-size: 10px; box-shadow: 0 0 0 1px #c4a1ff; }
.lb-meilensteine { margin-top: 34px; }
.lb-meilensteine h2 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 24px; letter-spacing: -.02em; margin: 0 0 14px; }
.lb-zeitleiste { position: relative; display: grid; gap: 10px; padding-left: 22px; }
.lb-zeitleiste::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--eis), #c4a1ff 60%, var(--gold)); opacity: .5; }
.lb-ms {
  position: relative; display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 14px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--linie); background: var(--flaeche); transition: transform .2s, border-color .2s, box-shadow .2s;
  animation: lbHoch .5s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(3s + var(--i) * 80ms);
}
.lb-ms::before { content: ''; position: absolute; left: -19px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #c4a1ff; box-shadow: 0 0 10px #c4a1ff; }
.lb-ms:hover { transform: translateX(4px); border-color: rgba(196, 161, 255, .55); box-shadow: 0 6px 22px rgba(0, 0, 0, .35); }
.lb-ms .sym { font-size: 24px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(196, 161, 255, .12); flex: none; }
.lb-ms .t { display: grid; gap: 2px; min-width: 0; }
.lb-ms b { font-size: 15px; overflow-wrap: anywhere; }
.lb-ms small { color: var(--matt); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.lb-eintrag.ev { border-left: 3px solid #c4a1ff; }
.lb-ev-box {
  position: fixed; z-index: 72; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 24px));
  padding: 22px; border-radius: 18px; background: linear-gradient(180deg, #141e44, #0b1129); border: 1px solid var(--linie); color: var(--text);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55); font-family: 'Archivo', system-ui, sans-serif; animation: lbZoom .35s cubic-bezier(.16, 1, .3, 1) both;
}
.lb-ev-box h2 { font-family: 'Bricolage Grotesque', sans-serif; margin: 0 0 4px; font-size: 22px; }
.lb-ev-box p { margin: 0 0 16px; color: var(--matt); font-size: 13.5px; }
.lb-ev-box label { display: grid; gap: 6px; font-size: 12px; color: var(--matt); margin-bottom: 12px; letter-spacing: .04em; }
.lb-ev-box input { padding: 11px 12px; border-radius: 11px; border: 1px solid var(--linie); background: rgba(0, 0, 0, .3); color: var(--text); font: inherit; font-size: 15px; color-scheme: dark; }
.lb-ev-sym { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin: 4px 0 16px; }
.lb-ev-sym button { aspect-ratio: 1; border-radius: 10px; border: 1px solid transparent; background: rgba(255, 255, 255, .05); cursor: pointer; font-size: 18px; transition: transform .15s; }
.lb-ev-sym button.an { border-color: #c4a1ff; background: rgba(196, 161, 255, .18); transform: scale(1.08); }
.lb-ev-fuss { display: flex; align-items: center; gap: 8px; }
.lb-ev-fuss .lb-ev-fehler { flex: 1; color: var(--rot); font-size: 12.5px; }
.lb-ev-box .lb-ev-ok { background: linear-gradient(100deg, var(--gold), var(--gold2)); color: #2a1a00; border-color: transparent; }
.lb-ev-box button { font: inherit; }
.lb-ev-box .lb-knopf { color: var(--text); }
.lb-ev-box .lb-ev-ok { color: #2a1a00; }
@media (max-width: 760px) { .lb-ereignis-knopf { height: 36px; padding: 0 10px; font-size: 12.5px; } .lb-ev-box input { font-size: 16px; } }
/* Ereignisse sollen auf den ersten Blick auffallen: voll deckend, größeres Symbol, sanft pulsierender Schein. */
.lb-k.ereignis { opacity: 1 !important; z-index: 3; }
.lb-k.ereignis::after { inset: -70%; font-size: calc(var(--zelle, 12px) * 1.75); filter: drop-shadow(0 0 4px rgba(196, 161, 255, .95)) drop-shadow(0 0 2px rgba(0, 0, 0, .8)); }
.lb-k.ereignis::before { content: ''; position: absolute; inset: -120%; border-radius: 50%; background: radial-gradient(circle, rgba(196, 161, 255, .45), transparent 65%); animation: lbEvSchein 3s ease-in-out infinite; pointer-events: none; }
@keyframes lbEvSchein { 0%, 100% { opacity: .5; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }
