/* Performance Pro: Dashboard (einheitliches Kachel-Raster, Container-Queries für Computer, iPad, Handy) */
.pd { container-type: inline-size; --ok: #4fd69c; --acc: #e8c46a; --t-bg: var(--surface); --t-line: var(--line); }
.pd-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.pd-ey { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--acc); }
.pd-ey svg { width: 15px; height: 15px; }
.pd-top h1 { margin: 6px 0 2px; font-size: 30px; letter-spacing: -0.03em; font-weight: 800; }
.pd-top p { margin: 0; color: var(--muted); font-size: 14px; }
.pd-week { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--t-line); background: var(--t-bg); color: var(--text); font: inherit; cursor: pointer; }
.pd-week b { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.pd-week.up b { color: var(--ok); }
.pd-week.down b { color: #ff9a7a; }
.pd-week span { font-size: 12px; color: var(--muted); }

.pd-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.pd-t { grid-column: span 3; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--t-line); background: var(--t-bg); color: var(--text); text-align: left; font: inherit; text-decoration: none; transition: border-color 0.15s, transform 0.15s var(--ease-out); }
button.pd-t, a.pd-t { cursor: pointer; }
@media (hover: hover) { button.pd-t:hover, a.pd-t:hover { border-color: var(--line-2); transform: translateY(-1px); } }
button.pd-t:active, a.pd-t:active { transform: scale(0.99); }
.pd-h { display: flex; align-items: center; gap: 7px; min-height: 22px; }
.pd-h > svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.pd-h b { font-size: 13px; font-weight: 800; letter-spacing: 0.02em; color: var(--text-2); }
.pd-h small, .pd-h a { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.pd-h a { color: var(--text-2); font-weight: 700; padding: 6px 0 6px 8px; }
.pd-h small svg, .pd-h a svg { width: 13px; height: 13px; }
.pd-big { font-size: 30px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pd-big small { font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.pd-sub { font-size: 13px; color: var(--muted); line-height: 1.35; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.pd-delta { display: inline-flex; align-items: center; gap: 2px; font-style: normal; font-weight: 800; font-size: 12px; color: var(--ok); }
.pd-delta.down { color: #ff9a7a; }
.pd-delta svg { width: 12px; height: 12px; stroke-width: 2.6; }
.pd-kv { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pd-kv > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pd-kv .pd-sub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-ring .bg { stroke: rgba(255, 255, 255, 0.08); }
.pd-ring .v { stroke: var(--ok); stroke-linecap: round; transition: stroke-dashoffset 0.8s var(--ease-out); }
.pd-rt { fill: var(--text); font: 800 14px var(--font); text-anchor: middle; }
.pd-spark { display: flex; align-items: flex-end; gap: 3px; height: 30px; margin-top: auto; }
.pd-spark i { flex: 1; border-radius: 3px 3px 1px 1px; background: color-mix(in srgb, var(--acc) 40%, transparent); }
.pd-spark i.now { background: var(--acc); }
.pd-spark i.off { background: rgba(255, 255, 255, 0.08); }
.pd-meter { display: block; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.pd-meter i { display: block; height: 100%; border-radius: 4px; background: var(--ok); }

/* Routinen-Status */
.pd-rout { grid-column: span 7; }
.pd-rlist { display: flex; flex-direction: column; gap: 6px; }
.pd-r { --c: var(--acc); display: grid; grid-template-columns: minmax(0, 1fr) auto 52px; align-items: center; gap: 12px; padding: 6px 4px 6px 0; border-top: 1px solid var(--t-line); }
.pd-r:first-child { border-top: 0; }
.pd-rmain { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 48px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.pd-ric { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.pd-ric svg { width: 18px; height: 18px; }
.pd-rn { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pd-rn b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-rn small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-pill { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.pd-pill svg { width: 12px; height: 12px; stroke-width: 3; }
.pd-pill.ok { background: rgba(79, 214, 156, 0.15); color: #7fe0b8; }
.pd-pill.open { background: rgba(255, 166, 92, 0.15); color: #ffb37a; }
.pd-pill.later { background: rgba(123, 147, 255, 0.14); color: #a8b8ff; }
.pd-pill.free { background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.pd-dots { display: flex; gap: 4px; }
.pd-dots button { width: 26px; height: 34px; padding: 0; border-radius: 8px; border: 1px solid transparent; background: rgba(255, 255, 255, 0.05); cursor: pointer; display: grid; place-items: end center; padding-bottom: 3px; }
.pd-dots small { font-size: 10px; font-weight: 700; color: var(--muted); }
.pd-dots .ok { background: var(--c); }
.pd-dots .ok small { color: #10131c; }
.pd-dots .part { background: color-mix(in srgb, var(--c) 30%, transparent); }
.pd-dots .miss { background: rgba(255, 120, 120, 0.12); }
.pd-dots .todo { border: 1px dashed color-mix(in srgb, var(--c) 70%, transparent); background: transparent; }
.pd-dots .na { background: transparent; opacity: 0.45; }
.pd-rate { text-align: right; font-weight: 800; font-size: 15px; display: flex; flex-direction: column; line-height: 1.1; }
.pd-rate small { font-size: 11px; font-weight: 600; color: var(--muted); }
.pd-empty { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--text); text-decoration: none; }
.pd-empty > svg { width: 22px; height: 22px; color: var(--ok); flex: none; }
.pd-empty span { display: flex; flex-direction: column; gap: 2px; }
.pd-empty small { color: var(--muted); font-size: 13px; }

/* Woche */
.pd-weekc { grid-column: span 5; }
.pd-bars { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; min-height: 150px; }
.pd-bar { height: 100%; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; }
.pd-bar span { font-size: 12px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pd-bar i { flex: 1; width: 100%; max-width: 38px; display: flex; align-items: flex-end; border-radius: 8px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.pd-bar em { display: block; width: 100%; border-radius: 8px; background: color-mix(in srgb, var(--acc) 55%, transparent); }
.pd-bar.perfect em { background: var(--acc); }
.pd-bar.now i { outline: 2px solid color-mix(in srgb, var(--acc) 60%, transparent); outline-offset: 2px; }
.pd-bar small { font-size: 12px; font-weight: 700; color: var(--muted); }
.pd-bar.now small { color: var(--text); }

/* Jonas, Aufgaben, Schlaf, Challenge */
.pd-jonas { flex-direction: row; align-items: center; gap: 12px; }
.pd-jonas img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px #6f8cff; }
.pd-jonas > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pd-jonas small { font-size: 12px; color: #9fb2ff; font-weight: 700; }
.pd-jonas b { font-size: 16px; }
.pd-jonas em { font-style: normal; font-size: 13px; color: var(--muted); line-height: 1.35; }
.pd-jonas .pd-go { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); }
.pd-jonas.todo { border-color: rgba(111, 140, 255, 0.55); background: linear-gradient(135deg, rgba(111, 140, 255, 0.16), rgba(111, 140, 255, 0.04)); }
.pd-jonas.todo .pd-go { background: #6f8cff; color: #fff; }
.pd-jonas .pd-go svg { width: 18px; height: 18px; }
.pd-tasks .pd-sub, .pd-ch .pd-sub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-ctitle { font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Jahresbild */
.pd-heat { grid-column: span 12; }
.pd-hm { display: flex; gap: 6px; }
.pd-hm-wd { display: grid; grid-template-rows: repeat(7, minmax(0, 1fr)); gap: 4px; font-size: 11px; color: var(--muted); }
.pd-hm-wd span { display: flex; align-items: center; }
.pd-hm-g { flex: 1; display: grid; grid-template-columns: repeat(var(--w), minmax(0, 1fr)); grid-template-rows: repeat(7, auto); grid-auto-flow: column; gap: 4px; }
.pd-hm-g i { aspect-ratio: 1; max-height: 22px; border-radius: 5px; background: rgba(255, 255, 255, 0.05); cursor: pointer; }
.pd-hm-g i.fut { background: transparent; cursor: default; }
.pd-hm-g i.hx { background: rgba(255, 120, 120, 0.14); }
.pd-hm-g .h1, .pd-leg .h1 { background: color-mix(in srgb, var(--acc) 25%, transparent); }
.pd-hm-g .h2, .pd-leg .h2 { background: color-mix(in srgb, var(--acc) 45%, transparent); }
.pd-hm-g .h3, .pd-leg .h3 { background: color-mix(in srgb, var(--acc) 70%, transparent); }
.pd-hm-g .h4, .pd-leg .h4 { background: var(--acc); }
.pd-leg { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 12px; color: var(--muted); }
.pd-leg i { width: 12px; height: 12px; border-radius: 3px; display: block; }
.pd-leg span { margin: 0 4px; }

/* Raster: ohne Jonas-Kachel drei statt vier unten */
.pd-grid:not(:has(.pd-jonas)) .pd-tasks, .pd-grid:not(:has(.pd-jonas)) .pd-sleep, .pd-grid:not(:has(.pd-jonas)) .pd-ch { grid-column: span 4; }

/* iPad / schmaler Inhaltsbereich */
@container (max-width: 1020px) {
  .pd-t { grid-column: span 6; }
  .pd-rout, .pd-weekc, .pd-heat { grid-column: span 12; }
  .pd-grid:not(:has(.pd-jonas)) .pd-tasks { grid-column: span 12; }
  .pd-bars { min-height: 120px; }
}
/* Handy */
@container (max-width: 600px) {
  .pd-top h1 { font-size: 26px; }
  .pd-grid { gap: 10px; }
  .pd-t { padding: 12px 14px; border-radius: 16px; gap: 6px; }
  .pd-t.k .pd-h small, .pd-sleep .pd-h small, .pd-ch .pd-h small, .pd-tasks .pd-h small { display: none; }
  .pd-big { font-size: 26px; }
  .pd-kv { gap: 10px; }
  .pd-kv .pd-ring { width: 52px; height: 52px; }
  .pd-jonas, .pd-tasks { grid-column: span 12; }
  .pd-r { grid-template-columns: minmax(0, 1fr) 46px; grid-template-areas: 'main rate' 'dots dots'; row-gap: 6px; padding: 8px 0; }
  .pd-rmain { grid-area: main; }
  .pd-rate { grid-area: rate; }
  .pd-dots { grid-area: dots; justify-content: space-between; }
  .pd-dots button { flex: 1; max-width: 44px; height: 30px; }
  .pd-week { padding: 8px 12px; }
  .pd-week b { font-size: 17px; }
  .pd-hm-g { gap: 3px; }
}

/* Blätter (Tag, Routine, Verlauf) */
.ds { display: flex; flex-direction: column; gap: 10px; }
.ds-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-right: 36px; margin-bottom: 4px; }
.ds-head h2 { margin: 2px 0 0; font-size: 22px; letter-spacing: -0.02em; }
.ds-head .eyebrow { color: var(--acc, #e8c46a); }
.ds h3 { display: flex; align-items: center; gap: 7px; margin: 12px 0 2px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ds h3 svg { width: 15px; height: 15px; }
.ds-r { --c: var(--acc); --rc: var(--c); padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.ds-rh { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.ds-rh span { font-size: 13px; color: var(--muted); font-weight: 700; }
.ds-step { --c: #4fd69c; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 4px 2px; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }

.ds-step:disabled { cursor: default; opacity: 0.85; }
.ds-step.on .dt-box { background: var(--c); border-color: var(--c); }
.ds-step.on .dt-box svg { opacity: 1; transform: scale(1); }
.ds-step.on { color: var(--muted); }
.ds-kv { display: flex; flex-wrap: wrap; gap: 8px; }
.ds-kv span { flex: 1; min-width: 90px; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.ds-kv b { font-size: 18px; color: var(--text); }
.ds-q { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface); font-size: 14px; display: flex; flex-direction: column; gap: 2px; }
.ds-q small { font-size: 12px; color: var(--muted); }
.ds-focus { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.ds-focus svg { width: 15px; height: 15px; }
.ds-ric { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.ds-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ds-days button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0; border-radius: 10px; border: 1px solid transparent; background: rgba(255, 255, 255, 0.05); color: var(--text); font: inherit; cursor: pointer; }
.ds-days small { font-size: 11px; color: var(--muted); }
.ds-days b { font-size: 15px; }
.ds-days .ok { background: var(--c); color: #10131c; }
.ds-days .ok small { color: #10131c; }
.ds-days .part { background: color-mix(in srgb, var(--c) 30%, transparent); }
.ds-days .miss { background: rgba(255, 120, 120, 0.12); }
.ds-days .na { opacity: 0.4; }
.ds-line { display: grid; grid-template-columns: 64px 1fr 38px auto; align-items: center; gap: 10px; min-height: 40px; padding: 0 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.ds-line:has(.ds-bar.m) { grid-template-columns: 64px 1fr 24px 1fr 24px; }
.ds-line em svg { width: 15px; height: 15px; color: #4fd69c; }
.ds-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.ds-bar i { display: block; height: 100%; border-radius: 4px; background: #e8c46a; }
.ds-bar.e i { background: #e8c46a; }
.ds-bar.m i { background: #7b93ff; }
.pd-leg2 { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.pd-leg2 .e::before, .pd-leg2 .m::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: #e8c46a; }
.pd-leg2 .m::before { background: #7b93ff; }

/* Vorschau für Kurs-Kunden */
.pd-lockwrap { position: relative; }
.pd-ghost { filter: blur(3px) saturate(0.8); opacity: 0.55; pointer-events: none; user-select: none; }
.pd-lock { position: absolute; z-index: 2; top: 90px; left: 50%; transform: translateX(-50%); width: min(520px, calc(100% - 24px)); display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 22px; background: rgba(12, 18, 34, 0.94); border: 1px solid var(--gold-line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.pd-lock h1 { margin: 0; font-size: 28px; letter-spacing: -0.03em; }
.pd-lock p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.pd-lock .btn { align-self: flex-start; }
:root[data-theme='light'] .pd { --t-bg: #fff; }
.pd .sm { display: none; }
/* Feinschliff: KPI-Kacheln auf dem iPad vierspaltig und kompakt, am Handy kurze Texte und Jonas nach oben */
@container (min-width: 640px) and (max-width: 1020px) {
  .pd-t.k { grid-column: span 3; padding: 12px 14px; }
  .pd-t.k .pd-h small { display: none; }
  .pd-t.k .lg { display: none; }
  .pd-t.k .pd-big { font-size: 26px; }
  .pd-t.k .pd-kv { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pd-t.k .pd-kv .pd-ring { display: none; }
  .pd-spark { height: 24px; }
}
@container (max-width: 640px) {
  .pd-top { flex-wrap: wrap; align-items: flex-start; }
  .pd-top > div { flex: 1 1 100%; }
  .pd-top h1 { white-space: nowrap; }
  .pd-week { flex-direction: row; align-items: baseline; gap: 8px; padding: 6px 12px; }
  .pd .lg { display: none; }
  .pd .sm { display: inline; }
  .pd-t.k { min-height: 0; }
  .pd-kv .pd-ring { display: none; }
  .pd-spark { height: 22px; }
  .pd-t.k, .pd-sleep, .pd-ch { order: 0; }
  .pd-jonas.todo { order: 1; }
  .pd-rout { order: 2; }
  .pd-weekc, .pd-jonas, .pd-tasks, .pd-sleep, .pd-ch { order: 3; }
  .pd-heat { order: 4; }
  .pd-rn small { display: none; }
}
.pd-todaym { margin-top: auto; }
.pd-hm-g i { aspect-ratio: auto; height: 16px; max-height: none; border-radius: 4px; }
.pd-hm-wd { grid-template-rows: repeat(7, 16px); }
@container (max-width: 640px) { .pd-ey { display: none; } .pd-top h1 { margin-top: 0; } .pd-hm-g i { height: 12px; } .pd-hm-wd { grid-template-rows: repeat(7, 12px); } }
@container (min-width: 641px) { .pd-todaym { display: none; } }

.ds-r .ds-step.on .dt-box { background: var(--c); border-color: var(--c); }

/* Zurück-Knopf auch am Computer (Handy/iPad haben die Leiste oben schon) */
@media (min-width: 861px) {
  .appbar { display: flex !important; margin: -12px 0 14px; }
  .appbar b, .appbar span { display: none; }
  .appbar a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 700; text-decoration: none; }
  .appbar a svg { width: 16px; height: 16px; }
  .appbar a::after { content: 'Zurück'; }
}

/* ---------- Sprechstunde: kompakt, saubere Fotos, keine Großflächen ---------- */
.sp-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 0 0 16px; }
.sp-top h1 { margin: 6px 0 4px; font-size: 30px; letter-spacing: -0.03em; font-weight: 800; }
.sp-top p { margin: 0; color: var(--text-2); font-size: 15px; max-width: 560px; }
.sp-top .sp-usage { flex: none; width: 340px; margin: 0; }
.splead { display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin: 0 0 18px; border-radius: 20px; color: var(--text); text-decoration: none;
  background: linear-gradient(120deg, rgba(111, 140, 255, 0.18), rgba(111, 140, 255, 0.05) 60%, rgba(255, 255, 255, 0.02)); border: 1px solid rgba(111, 140, 255, 0.4); transition: border-color 0.15s, transform 0.15s var(--ease-out); }
@media (hover: hover) { .splead:hover { border-color: #6f8cff; transform: translateY(-1px); } }
.splead-av { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px #6f8cff, 0 10px 24px rgba(0, 0, 0, 0.35); }
.splead-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.splead-copy small { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #9fb2ff; }
.splead-copy small svg { width: 14px; height: 14px; }
.splead-copy b { font-size: 20px; letter-spacing: -0.02em; }
.splead-copy em { font-style: normal; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.splead-go { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; background: #6f8cff; color: #fff; font-weight: 800; font-size: 15px; }
.splead-go svg { width: 17px; height: 17px; }
.sp-sec { margin: 0 0 10px; }
.sp-sec h2 { font-size: 18px; }
.spg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.spc { position: relative; display: flex; align-items: stretch; min-height: 108px; border-radius: 16px; overflow: hidden; color: #fff; text-decoration: none; border: 1px solid color-mix(in srgb, var(--sc) 30%, transparent);
  background: linear-gradient(110deg, color-mix(in srgb, var(--sd) 55%, #0b1222), #0d1428 85%); transition: border-color 0.15s, transform 0.15s var(--ease-out); }
@media (hover: hover) { a.spc:hover { border-color: var(--sc); transform: translateY(-1px); } }
.spc-img { flex: none; width: 108px; position: relative; }
.spc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.spc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 12px 6px 12px 14px; }
.spc-txt b { display: flex; align-items: center; gap: 6px; font-size: 18px; letter-spacing: -0.02em; }
.spc-dot { width: 8px; height: 8px; border-radius: 50%; background: #4fd69c; }
.spc-txt em { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 12.5px; font-weight: 800; color: color-mix(in srgb, var(--sc) 70%, #fff); }
.spc-txt em svg { width: 14px; height: 14px; }
.spc-txt small { font-size: 13px; color: rgba(255, 255, 255, 0.75); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spc-go { flex: none; display: grid; place-items: center; width: 40px; color: rgba(255, 255, 255, 0.7); }
.spc-go svg { width: 18px; height: 18px; }
.spc.locked { opacity: 0.8; }
.sp-team { display: flex; gap: 10px; align-items: center; margin: 14px 0 0; padding: 12px 16px; border-radius: 14px; background: rgba(79, 214, 156, 0.07); border: 1px solid rgba(79, 214, 156, 0.22); font-size: 13.5px; color: var(--text-2); }
.sp-team > svg { width: 20px; height: 20px; color: #4fd69c; flex: none; }
.sp-team b { color: var(--text); }
@media (max-width: 1180px) { .spg { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-top { flex-direction: column; align-items: stretch; } .sp-top .sp-usage { width: auto; } }
@media (max-width: 600px) {
  .spg { grid-template-columns: 1fr; gap: 8px; }
  .spc { min-height: 88px; }
  .spc-img { width: 88px; }
  .sp-top h1 { font-size: 26px; }
  .sp-top p { font-size: 14px; }
  .splead { flex-wrap: wrap; padding: 14px; gap: 12px; }
  .splead-av { width: 56px; height: 56px; }
  .splead-copy em { display: none; }
  .splead-go { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Untere Leiste: überall gleich (Handy + iPad), flach unten angedockt, nicht schwebend ---------- */
@media (max-width: 860px), (min-width: 861px) and (max-width: 1366px) and (pointer: coarse) {
  :root { --tabbar: 58px; }
  .tabbar {
    display: grid !important; grid-template-columns: repeat(5, 1fr); align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; transform: none; width: auto; z-index: 50;
    height: calc(var(--tabbar) + env(safe-area-inset-bottom)); margin: 0;
    padding: 0 max(4px, calc((100% - 560px) / 2)) env(safe-area-inset-bottom);
    border: 0; border-top: 1px solid var(--line-2); border-radius: 0;
    background: color-mix(in srgb, var(--surface-solid) 94%, transparent); backdrop-filter: blur(20px);
    box-shadow: 0 -10px 30px -22px rgba(0, 0, 0, 0.9);
  }
  .tabbar a { position: relative; height: var(--tabbar); gap: 3px; border-radius: 0; background: none !important; font-size: 10.5px; font-weight: 700; color: var(--muted); }
  .tabbar a svg { width: 21px; height: 21px; }
  .tabbar a.on { color: var(--text); }
  .tabbar a.on svg { color: var(--primary); }
  .tabbar a:not(.tab-pro).on::before { content: ''; position: absolute; top: 0; left: 50%; width: 26px; height: 3px; translate: -50% 0; border-radius: 0 0 3px 3px; background: var(--primary); }
  .tabbar .tab-pro { gap: 3px; }
  .tab-pro-ic { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1c4, #e8c46a 55%, #b8892e); box-shadow: 0 4px 14px -4px rgba(232, 196, 106, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
  .tabbar .tab-pro .tab-pro-ic svg { width: 16px; height: 16px; color: #2a1c05; }
  .tabbar .tab-pro span:last-child { font-size: 10.5px; color: var(--gold); }
  .tabbar .tab-pro.on .tab-pro-ic { transform: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px #e8c46a, 0 6px 16px -4px rgba(232, 196, 106, 0.8); }
}
@media (min-width: 861px) and (max-width: 1366px) and (pointer: coarse) {
  .tabbar a, .tabbar .tab-pro span:last-child { font-size: 11px; }
}
:root[data-theme=light] .tabbar { background: #ffffffef; }
@media (max-width: 860px), (min-width: 861px) and (max-width: 1366px) and (pointer: coarse) {
  .tabbar a:not(.tab-pro) svg { margin: 4.5px 0; }
}
/* iPad mit Tableiste: Startseite lässt unten Platz für die Leiste */
@media (min-width: 861px) and (max-width: 1366px) and (pointer: coarse) {
  .main:has(.home-dashboard) { padding-bottom: calc(var(--tabbar) + 14px + env(safe-area-inset-bottom)); }
  .home-dashboard { height: calc(100dvh - var(--tabbar) - 36px - env(safe-area-inset-bottom)); min-height: 560px; }
}
/* Im Chat keine Tableiste, damit das Eingabefeld frei ist */
body[data-section='coach'] .tabbar, body[data-shplay] .tabbar, body[data-night] .tabbar { display: none !important; }
button.spc, button.splead { font: inherit; color: inherit; text-align: left; width: 100%; cursor: pointer; }
.spc.locked .spc-img img, .splead.locked .splead-av { filter: grayscale(.35) brightness(.8); }
.splead.locked .splead-go { background: var(--gold-grad); color: #2a1c05; }
@keyframes kpulse { 0%,100% { transform: none; box-shadow: none; } 40% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(232,196,106,.35); } }
.pulse { animation: kpulse 900ms var(--ease-out) 2; }
