/* Sparkline-Karten: Pain = fallende Kurve (rot), Lösung = steigende Kurve (Limette). Glas-Optik, Kurve zeichnet sich beim Einblenden. */
.spark{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:26px 30px;border-radius:32px;box-sizing:border-box;
  background:linear-gradient(160deg,#e9efe11f,#e9efe108);border:1px solid #e9efe124;color:var(--white);
  box-shadow:inset 0 1px 0 #ffffff14,0 40px 80px #00000059;-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);
  transition:transform .35s cubic-bezier(.22,.8,.2,1),border-color .35s ease,box-shadow .35s ease}
.spark:hover{transform:scale(1.03);border-color:#e9efe13d;box-shadow:inset 0 1px 0 #ffffff1f,0 50px 90px #00000080}
.sp-txt{display:flex;flex-direction:column;gap:6px;min-width:0}
.sp-lbl{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:16px;font-weight:500;color:#bdccb6}
.sp-chg{display:inline-flex;align-items:center;gap:4px;font-weight:700}
.sp-chg svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.sp-val{font-size:clamp(44px,4.6vw,66px);font-weight:700;letter-spacing:-.045em;line-height:1;color:var(--white);font-variant-numeric:tabular-nums}
.sp-svg{flex:0 1 52%;min-width:120px;height:84px;overflow:visible}
.sp-line{fill:none;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.sp-area{opacity:1}
.sp-svg{clip-path:inset(-8px 100% -8px 0)}
.spark-down{--c:#ff6b61}
.spark-up{--c:#c7e63c}
.spark .sp-chg{color:var(--c)}
.spark .sp-line{stroke:var(--c)}
.spark.is-in .sp-svg{animation:spReveal 1.8s cubic-bezier(.4,0,.2,1) forwards}
@keyframes spReveal{to{clip-path:inset(-8px -8px -8px 0)}}
.sp-note{margin:12px 0 0;font-size:14px;color:var(--sage)}
@media(max-width:700px){.spark{flex-direction:column;align-items:flex-start;gap:18px;padding:22px}.sp-svg{flex:none;width:100%}.spark:hover{transform:none}}
@media(prefers-reduced-motion:reduce){.spark{transition:none}.spark:hover{transform:none}.sp-svg{clip-path:none}.spark.is-in .sp-svg{animation:none}}
/* im Alltag-Abschnitt: Karte unter der Überschrift */
.problem-layout .spark{margin-top:30px;max-width:560px}
/* in "zahlen": breite Karte über den Kacheln */
.zahlen-grid .spark{grid-column:1/-1}

/* Pain: leerer Feed im Hintergrund (angedeutetes Profil mit leerem Raster), die fallende Karte liegt davor */
.pain-stage{position:relative;margin-top:30px;max-width:560px;padding-bottom:40px}
.pain-ghost{position:relative;height:340px;overflow:hidden;padding:22px 24px;border-radius:32px;box-sizing:border-box;
  background:radial-gradient(ellipse 60% 70% at 22% 0%,#c7d6be4d,#8fa98a1a 45%,#17301f00 70%),radial-gradient(ellipse at 30% 20%,#8fa98a38,#17301f59 60%,#0b160e99);
  border:1px solid #e9efe11f;box-shadow:inset 0 1px 0 #ffffff1a,0 40px 80px #00000059}
.pain-ghost i,.pain-ghost b,.pain-ghost s{display:block;background:#e9efe11a;border-radius:12px;text-decoration:none}
.pg-head{display:flex;align-items:center;gap:22px}
.pg-av{flex:0 0 68px;width:68px;height:68px;border-radius:50%!important;background:#e9efe122!important}
.pg-stats{display:flex;flex:1;justify-content:space-between;gap:14px}
.pg-stats span{display:flex;flex-direction:column;gap:7px;flex:1}
.pg-stats b{height:14px;background:#e9efe129!important}
.pg-stats s{height:9px;width:70%;background:#e9efe11a}
.pg-lines{display:flex;flex-direction:column;gap:8px;margin-top:20px}
.pg-lines i{height:9px}.pg-lines i:nth-child(1){width:34%}.pg-lines i:nth-child(2){width:78%}.pg-lines i:nth-child(3){width:62%}
.pg-hl{display:flex;justify-content:flex-end;gap:12px;margin-top:-34px}
.pg-hl i{width:36px;height:36px;border-radius:50%!important;background:#e9efe10f!important;border:1px solid #e9efe122}
.pg-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:22px}
.pg-grid i{height:96px;border-radius:12px;background:#e9efe10d!important;border:1px solid #e9efe114}
.pg-grid i:first-child{background:#e9efe11c!important}
.pain-stage .spark{position:relative;z-index:2;margin:-110px 0 0 9%;max-width:none;width:91%}
.pain-stage+.sp-note{margin-top:4px}
@media(max-width:700px){.pain-ghost{height:300px;padding:18px}.pg-grid i{height:80px}.pain-stage .spark{margin:-100px 0 0 6%;width:94%}}

/* Stabil: Layout springt nicht mehr, wenn sich die Zahlen ändern (feste Zeilen, feste Spalten, Ziffern gleich breit) */
.sp-lbl{flex-direction:column;align-items:flex-start;flex-wrap:nowrap;gap:4px}
.sp-chg,.sp-val,.sp-chg span{font-variant-numeric:tabular-nums}
.sp-chg{min-width:7.5em;white-space:nowrap}
.sp-val{min-width:5.6em;white-space:nowrap}
.sp-txt{flex:0 0 auto}
.sp-svg{flex:1 1 0;min-width:120px;max-width:55%}
.spark{min-height:148px}
@media(max-width:700px){.sp-svg{max-width:none;flex:none}.spark{min-height:0}}
.sp-val{min-width:0}
.spark-down .sp-val{min-width:3.4ch}
.spark-up .sp-val{min-width:6.2ch}
.sp-chg{min-width:0}
.spark{overflow:hidden;gap:16px}
.sp-svg{min-width:84px;overflow:hidden}
.pain-stage .spark{padding:22px 22px}
.spark-down .sp-val{font-size:clamp(40px,4vw,60px)}

/* Pain im Hintergrund der Suche (Abschnitt "wer nicht gefunden wird") */
.vis-visual{position:relative;isolation:isolate;padding:0 0 clamp(70px,8vw,110px)}
.vis-visual .pain-stage{position:absolute;z-index:0;top:-28px;right:-4%;bottom:0;width:80%;max-width:none;margin:0;padding:0;opacity:.95;pointer-events:none}
.vis-visual .pain-ghost{height:100%}
.vis-visual .pain-stage .spark{position:absolute;left:auto;right:0;bottom:0;margin:0;width:88%;z-index:2}
.vis-visual .vis-search{position:relative;z-index:1;width:84%;margin-right:auto;background:linear-gradient(160deg,#e9efe126,#e9efe10d);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.vis-visual .sp-note{position:absolute;right:0;bottom:-26px;margin:0;font-size:13px;color:#e9efe199;z-index:2}
@media(max-width:860px){.vis-visual{margin-top:26px;padding-bottom:100px}.vis-visual .pain-stage{right:0;width:86%;top:-18px}.vis-visual .vis-search{width:88%}}
.vis-visual{padding-bottom:clamp(110px,11vw,140px)}
.vis-visual .pain-stage{top:-32px;width:76%}
@media(max-width:860px){.vis-visual{padding-bottom:120px}}
@media(max-width:860px){.vis-visual{padding-bottom:175px}.vis-visual .pain-stage .spark{width:92%}}
/* Feinschliff: Grafik vollständig sichtbar unter der Suchkarte */
.vis-visual{padding-bottom:clamp(160px,16vw,190px)}
.vis-visual .pain-stage{top:-32px;left:0;right:0;bottom:0;width:auto}
.vis-visual .pain-ghost{position:absolute;top:0;right:-3%;width:74%;height:calc(100% - 60px)}
.vis-visual .pain-stage .spark{left:10%;right:0;bottom:0;width:auto;min-height:150px}
.vis-visual .pain-stage .sp-svg{max-width:none;flex:1 1 0}
.vis-visual .vis-search{width:86%}
@media(max-width:860px){.vis-visual{padding-bottom:190px}.vis-visual .pain-stage .spark{left:6%}.vis-visual .pain-ghost{right:0;width:80%}}
/* Pain-Karte: nur die Veränderung als große Zahl, kein zusätzlicher Absolutwert */
.pain-stage .sp-val{display:none}
.pain-stage .sp-chg{font-size:clamp(40px,4vw,58px);letter-spacing:-.045em;line-height:1;margin-top:4px}
.pain-stage .sp-chg svg{width:.45em;height:.45em;margin-left:2px}
