/* KI-Power: Bonus-Nachrichten für Routinen-Serien. Dunkel, ruhig, Gold als einziger Akzent (wie Pro). */
.kp-slot { grid-column: 1 / -1; min-width: 0; }
.kp-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(200px, 0.9fr) minmax(240px, 1.2fr) minmax(300px, 1.5fr); align-items: center; gap: 22px;
  padding: 20px 22px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(232, 196, 106, 0.09), rgba(13, 20, 40, 0.0) 46%), var(--surface);
  border: 1px solid var(--gold-line, rgba(232, 196, 106, 0.32));
  box-shadow: inset 0 1px 0 rgba(255, 236, 190, 0.06);
}
.kp-glow { position: absolute; z-index: -1; inset: -40% auto auto -10%; width: 420px; height: 300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(232, 196, 106, 0.16), transparent); filter: blur(10px); pointer-events: none; animation: kpBreath 6s ease-in-out infinite; }
@keyframes kpBreath { 50% { opacity: 0.6; transform: scale(1.06); } }
.kp-ey { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.kp-ey svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.kp-num { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.kp-num b { font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.kp-num small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kp-split { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; font-size: 12.5px; color: var(--text-2, #b9c3e0); }
.kp-split b { color: var(--text); font-variant-numeric: tabular-nums; }
.kp-earn b { color: var(--gold-2, #f6e3a6); }

.kp-streak { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding-left: 22px; border-left: 1px solid var(--line); }
.kp-sh { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.kp-sh svg { width: 15px; height: 15px; color: #ff9a5c; }
.kp-sh b { margin-left: auto; font-size: 20px; letter-spacing: -0.02em; text-transform: none; color: var(--text); font-variant-numeric: tabular-nums; }
.kp-sh b small { font-size: 12px; color: var(--muted); font-weight: 600; }
.kp-bar { position: relative; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.kp-bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--gold-grad); box-shadow: 0 0 14px rgba(232, 196, 106, 0.55); animation: kpGrow 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.kp-bar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: translateX(-100%); animation: kpShine 2.8s 1.2s ease-in-out infinite; }
@keyframes kpGrow { from { width: 0; } }
@keyframes kpShine { 60%, 100% { transform: translateX(100%); } }
.kp-next { margin: 0; font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.35; }
.kp-next.late { color: var(--muted); font-weight: 600; }
.kp-today { margin: 0; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.kp-today.ok { color: #7fe0b2; } .kp-today.perfect { color: var(--gold-2, #f6e3a6); } .kp-today.open { color: var(--text-2, #b9c3e0); }

/* Reward-Pfad */
.kp-pathw { min-width: 0; }
.kp-path { --fill: 0%; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 2px; }
.kp-line { position: absolute; left: 0; right: 0; top: 17px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); }
.kp-line i { position: absolute; inset: 0 auto 0 0; width: var(--fill); border-radius: inherit; background: var(--gold-grad); box-shadow: 0 0 10px rgba(232, 196, 106, 0.5); animation: kpGrow 1.3s cubic-bezier(.2, .8, .2, 1) both; }
.kp-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.kp-node b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-solid); border: 2px solid rgba(255, 255, 255, 0.14); color: var(--muted); }
.kp-node b svg { width: 16px; height: 16px; }
.kp-node small { margin-top: 2px; font-size: 11.5px; font-weight: 700; color: var(--text-2, #b9c3e0); }
.kp-node em { display: inline-flex; align-items: center; gap: 2px; font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.kp-node em svg { width: 11px; height: 11px; fill: currentColor; stroke: none; }
.kp-node.got b { background: var(--gold-grad); border-color: transparent; color: #2a1c05; box-shadow: 0 0 0 4px rgba(232, 196, 106, 0.14), 0 0 18px rgba(232, 196, 106, 0.55); animation: kpPop 600ms cubic-bezier(.3, 1.6, .5, 1) both; }
.kp-node.got em { color: var(--gold); }
.kp-node.now b { border-color: var(--gold); background: var(--surface-solid); }
.kp-node.now b i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: kpPulse 1.8s ease-in-out infinite; }
.kp-node.now small, .kp-node.now em { color: var(--text); }
.kp-node.lock { opacity: 0.6; }
@keyframes kpPop { from { transform: scale(0.6); opacity: 0; } }
@keyframes kpPulse { 50% { transform: scale(0.7); opacity: 0.6; } }
.kp-path.compact .kp-node b { width: 28px; height: 28px; }
.kp-path.compact .kp-line { top: 14px; }

.kp-info { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--gold); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.kp-info svg { width: 13px; height: 13px; transition: transform .15s; }
.kp-info:hover svg { transform: translateX(2px); }
.kp-card.demo .kp-info { display: none; }

/* Kleine Hinweise an anderen Stellen */
.pd-kpnext { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; padding: 3px 8px; border-radius: 99px; background: var(--gold-soft); color: var(--gold-2, #f6e3a6); font-size: 11.5px; font-weight: 700; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pd-kpnext svg { width: 11px; height: 11px; fill: currentColor; stroke: none; flex: none; }
.kp-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; background: var(--gold-soft); border: 1px solid var(--gold-line, rgba(232,196,106,.3)); color: var(--gold-2, #f6e3a6); font-size: 12px; font-weight: 700; white-space: nowrap; }
.kp-chip svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.kp-chip b { color: var(--text); }
.kp-hint { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: linear-gradient(90deg, rgba(232, 196, 106, 0.1), transparent); border: 1px solid var(--gold-line, rgba(232,196,106,.3)); font-size: 13px; color: var(--text); }
.kp-hint svg { width: 16px; height: 16px; color: var(--gold); fill: currentColor; stroke: none; flex: none; }
.kp-hint b { color: var(--gold-2, #f6e3a6); }
.kp-hint a { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ds-kp { margin: 4px 0 14px; padding: 14px; border-radius: 14px; background: var(--gold-soft); border: 1px solid var(--gold-line, rgba(232,196,106,.3)); }
.ds-kp p { margin: 0 0 12px; font-size: 13.5px; }
.ds-kp p svg { width: 13px; height: 13px; color: var(--gold); fill: currentColor; stroke: none; vertical-align: -1px; }
.ds-badge { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.ds-badge svg { width: 12px; height: 12px; }
.ds-badge.perfect { background: var(--gold-grad); color: #2a1c05; box-shadow: 0 0 16px rgba(232, 196, 106, 0.45); }
.ds-badge.ok { background: rgba(79, 214, 156, 0.14); color: #7fe0b2; }
.ds-badge.open { background: rgba(255, 255, 255, 0.06); color: var(--text-2, #b9c3e0); }
.ds-badge.miss { background: rgba(255, 120, 120, 0.1); color: #ff9c9c; }
.ds-line em.star { font-style: normal; }

/* Erklärung */
.kp-sheet h2 { margin: 8px 0 6px; }
.kp-rules { display: grid; gap: 6px; margin: 14px 0; }
.kp-rules div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; }
.kp-rules span { color: var(--muted); text-align: right; }
.kp-rules em { font-style: normal; font-weight: 800; color: var(--gold); }
.kp-rules svg { width: 13px; height: 13px; color: #ff9a5c; vertical-align: -1px; }
.kp-hist { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.kp-hist span { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.kp-hist small { color: var(--muted); font-size: 11.5px; }
.kp-hist b { font-size: 20px; color: var(--gold); }
.kp-hist em { font-style: normal; font-size: 11.5px; color: var(--muted); }

/* Belohnung: ruhig, hochwertig, ohne Konfetti */
.kp-win-sheet { text-align: center; overflow: hidden; }
.kp-win { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 6px 4px; }
.kp-win h2 { margin: 4px 0 0; font-size: 24px; letter-spacing: -0.03em; text-transform: uppercase; }
.kp-win p { margin: 4px 0 6px; color: var(--text-2, #b9c3e0); line-height: 1.5; font-size: 15px; }
.kp-win-orb { position: relative; display: grid; place-items: center; width: 108px; height: 108px; margin: 4px 0 6px; border-radius: 50%; }
.kp-win-orb::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent, rgba(232, 196, 106, 0.9), transparent 40%, rgba(246, 227, 166, 0.7), transparent 75%); animation: kpSpin 3.2s linear infinite; -webkit-mask: radial-gradient(closest-side, transparent 78%, #000 80%); mask: radial-gradient(closest-side, transparent 78%, #000 80%); }
.kp-win-orb::after { content: ''; position: absolute; inset: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1c4, #e8c46a 55%, #a87a2c); box-shadow: 0 0 40px rgba(232, 196, 106, 0.6); animation: kpOrbIn 700ms cubic-bezier(.3, 1.5, .5, 1) both; }
.kp-win-orb span { position: relative; z-index: 1; font-size: 30px; color: #2a1c05; animation: kpOrbIn 700ms 120ms cubic-bezier(.3, 1.5, .5, 1) both; }
.kp-win-orb svg { width: 34px; height: 34px; fill: #2a1c05; stroke: none; }
@keyframes kpSpin { to { transform: rotate(1turn); } }
@keyframes kpOrbIn { from { transform: scale(0.3); opacity: 0; } }
.kp-win-n { display: flex; align-items: baseline; gap: 8px; font-size: 22px; font-weight: 800; color: var(--gold); }
.kp-win-n b { font-size: 56px; line-height: 1; letter-spacing: -0.04em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.kp-win-n small { font-size: 14px; color: var(--muted); font-weight: 700; }
.kp-win-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.kp-win-more span { padding: 4px 10px; border-radius: 99px; background: var(--gold-soft); font-size: 12.5px; color: var(--text-2, #b9c3e0); }
.kp-win-more b { color: var(--gold); }
.kp-btn { min-width: 200px; margin-top: 6px; background: var(--gold-grad) !important; color: #2a1c05 !important; border: 0 !important; font-weight: 800; }
/* 14 Tage: stärkerer Schein. 30 Tage: zweiter Ring und ein leises Funkeln */
.kp-win.tier2 .kp-win-orb::after { box-shadow: 0 0 60px rgba(232, 196, 106, 0.8); }
.kp-win.tier3 .kp-win-orb { width: 132px; height: 132px; }
.kp-win.tier3 .kp-win-orb::after { box-shadow: 0 0 80px rgba(232, 196, 106, 0.9), 0 0 0 10px rgba(232, 196, 106, 0.12), 0 0 0 22px rgba(232, 196, 106, 0.06); }
.kp-win.tier3::before { content: ''; position: absolute; inset: -40px -40px auto; height: 260px; background: radial-gradient(closest-side, rgba(232, 196, 106, 0.22), transparent); z-index: -1; animation: kpBreath 3s ease-in-out infinite; }
.kp-win.tier3 h2 { font-size: 28px; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Responsiv: Container der Pro-Seite */
@container (max-width: 1020px) {
  .kp-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .kp-pathw { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); }
}
@container (max-width: 640px) {
  .kp-card { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .kp-streak { padding-left: 0; border-left: 0; padding-top: 14px; border-top: 1px solid var(--line); }
  .kp-pathw { padding-top: 12px; }
  .kp-num b { font-size: 40px; }
  .kp-node b { width: 30px; height: 30px; }
  .kp-line { top: 15px; }
  .kp-node small { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .kp-glow, .kp-bar i, .kp-bar i::after, .kp-line i, .kp-node.got b, .kp-node.now b i, .kp-win-orb::before, .kp-win-orb::after, .kp-win-orb span, .kp-win.tier3::before { animation: none !important; }
}
:root[data-theme='light'] .kp-card { background: linear-gradient(135deg, rgba(232, 196, 106, 0.16), #fff 50%); }
:root[data-theme='light'] .kp-node b { background: #fff; }
.sp-kp { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 2px; }
.sp-kp a { display: inline-flex; align-items: center; gap: 4px; color: var(--gold-2, #f6e3a6); font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-kp a svg { width: 12px; height: 12px; flex: none; }
.rt-kp { margin: 14px 0 4px; }
.rt-kp .kp-hint { text-decoration: none; }
.kp-hint span { min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.kp-hint span small { color: var(--muted); font-size: 12px; }
.kp-hint em { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-weight: 800; color: var(--gold); white-space: nowrap; }
.kp-hint em { padding: 4px 9px; border-radius: 99px; background: var(--gold-soft); }
.kp-hint em svg { width: 12px; height: 12px; fill: currentColor; stroke: none; color: var(--gold); }
.kp-hint span i { font-style: normal; }

/* Pro-Dashboard: Feinschliff aus dem Prüfbericht */
.pd-hm-g { max-width: calc(var(--w) * 34px); }
.pd-ctitle { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pd-t.pd-ch .pd-sub { white-space: normal; }
@container (max-width: 400px) { .pd-r .pd-pill { display: none; } }
@container (min-width: 641px) and (max-width: 1020px) { .pd-todaym { display: block !important; } }
.pd-lockwrap { max-height: 100dvh; overflow: hidden; }
.pd-lock { top: 50% !important; transform: translate(-50%, -50%) !important; position: absolute; }
.cc-scroll { padding-top: 14px; }
.buy-sheet h2 { margin: 6px 0 14px; }
.buy-ok { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13.5px; line-height: 1.5; color: var(--text-2, #b9c3e0); cursor: pointer; }
.buy-ok input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--gold); }
.buy-ok a { color: var(--gold); }
.buy-err { min-height: 18px; margin: 8px 0; color: #ffb36b; font-size: 13px; font-weight: 700; }
.mc-err { margin: 6px 0 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 179, 107, 0.1); color: #ffc58f; font-size: 13px; font-weight: 700; }
/* Seitenleiste: immer scrollbar und etwas kompakter, damit auch Profil und Plan erreichbar sind */
@media (min-width: 861px) { .side { overflow-y: auto; overscroll-behavior: contain; max-height: 100vh; } .side .nav-a { min-height: 40px; padding-top: 8px; padding-bottom: 8px; } .side .nav-label { margin-top: 12px; margin-bottom: 4px; } }
@media (min-width: 861px) and (max-width: 1366px) and (pointer: coarse) { .side { display: none; } }

/* Pro für Kurs-Kunden: echter Dashboard-Ausschnitt + alle Vorteile auf einen Blick */
.pu { container-type: inline-size; display: flex; flex-direction: column; gap: 16px; max-width: 1160px; margin: 0 auto; }
.pu-hero { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 26px; align-items: center; padding: 28px; border-radius: 24px; border: 1px solid var(--gold-line, rgba(232,196,106,.32)); background: radial-gradient(120% 140% at 0% 0%, rgba(232, 196, 106, 0.14), transparent 55%), var(--surface); }
.pu-hero::after { content: ''; position: absolute; z-index: -1; right: -80px; top: -60px; width: 420px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, rgba(111, 140, 255, 0.18), transparent); }
.pu-copy h1 { margin: 10px 0 10px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -0.035em; }
.pu-copy h1 em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pu-copy p { margin: 0; color: var(--text-2, #b9c3e0); font-size: 15.5px; line-height: 1.5; }
.pu-team { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.pu-av { display: flex; }
.pu-av img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface-solid); margin-left: -10px; box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.pu-av img:first-child { margin-left: 0; border-color: var(--gold); }
.pu-team small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.pu-shot { position: relative; margin: 0; border-radius: 16px; padding: 6px; background: linear-gradient(140deg, rgba(232,196,106,.55), rgba(111,140,255,.25) 50%, rgba(255,255,255,.06)); box-shadow: 0 30px 70px -28px rgba(0,0,0,.9), 0 0 50px -10px rgba(232,196,106,.25); transform: perspective(1400px) rotateY(-5deg) rotateX(2deg); }
.pu-shot img { display: block; width: 100%; height: auto; border-radius: 11px; }
.pu-shot figcaption { position: absolute; left: 16px; bottom: -12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 99px; background: var(--surface-solid); border: 1px solid var(--gold-line, rgba(232,196,106,.32)); color: var(--gold-2, #f6e3a6); font-size: 11.5px; font-weight: 700; }
.pu-shot figcaption svg { width: 12px; height: 12px; }
.pu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pu-pt { display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.pu-pt span { grid-row: 1 / 3; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--gold-soft); color: var(--gold); }
.pu-pt span svg { width: 20px; height: 20px; }
.pu-pt b { font-size: 15px; }
.pu-pt small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.pu-buy { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 18px; background: linear-gradient(90deg, rgba(232,196,106,.12), transparent 70%); border: 1px solid var(--gold-line, rgba(232,196,106,.32)); }
.pu-price b { display: block; font-size: 30px; letter-spacing: -0.03em; }
.pu-price span { color: var(--muted); font-size: 12.5px; }
.pu-buy .btn { margin-left: auto; }
.pu-more { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2, #b9c3e0); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.pu-more svg { width: 13px; height: 13px; }
@container (max-width: 900px) { .pu-hero { grid-template-columns: 1fr; padding: 22px; } .pu-shot { transform: none; } .pu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 560px) {
  .pu-hero { padding: 18px; gap: 22px; }
  .pu-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pu-pt { grid-template-columns: 1fr; padding: 12px; }
  .pu-pt span { grid-row: auto; width: 34px; height: 34px; margin-bottom: 6px; }
  .pu-pt span svg { width: 17px; height: 17px; }
  .pu-pt b { font-size: 14px; }
  .pu-pt small { font-size: 12px; }
  .pu-buy { flex-wrap: wrap; padding: 16px; }
  .pu-buy .btn { margin-left: 0; width: 100%; order: 3; }
  .pu-more { margin-left: auto; }
}
.pu-av { flex: none; }
.pu-av img { flex: none; margin-left: -12px; }
.pu-team small { min-width: 0; }
/* Feinschliff Endprüfung */
body:has(.sheet) .rm-banner { display: none; }
.sheet { border-radius: 24px; }
.ds-line > em { width: 20px; text-align: center; }
.kp-win-n { align-items: center; }
.kp-win-n > :first-child { line-height: 1; }
/* Verlauf: Zeitraum-Umschalter, Heatmap links, Zahlen rechts */
.pd-heat .pd-h { flex-wrap: wrap; }
.pd-seg { margin-left: auto; display: inline-flex; padding: 3px; border-radius: 99px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.pd-seg button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 99px; cursor: pointer; white-space: nowrap; }
.pd-seg button.on { background: var(--gold-grad); color: #2a1c05; }
.pd-heatb { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr); gap: 22px; align-items: center; }
.pd-hmw { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pd-hm-g { max-width: none; }
.pd-heat .pd-hm-g i { height: auto; aspect-ratio: 1; max-height: 26px; }
.pd-heat .pd-hm-wd { grid-template-rows: repeat(7, minmax(0, 1fr)); }
.pd-hstats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pd-hstats span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.pd-hstats b { font-size: 24px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pd-hstats b em { font-style: normal; font-size: 14px; color: var(--muted); margin-left: 2px; }
.pd-hstats small { color: var(--muted); font-size: 12px; }
@container (max-width: 760px) { .pd-heatb { grid-template-columns: 1fr; } .pd-hstats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pd-hstats span { padding: 10px; } .pd-hstats b { font-size: 19px; } .pd-hstats small { font-size: 11px; } }
@container (max-width: 420px) { .pd-hstats { grid-template-columns: 1fr 1fr; } .pd-seg { margin-left: 0; } }
.pd-heat .pd-hm { justify-content: center; }
.pd-heat .pd-hm-g { flex: 0 1 auto; grid-template-columns: repeat(var(--w), minmax(0, var(--cell))); width: calc(var(--w) * (var(--cell) + 4px)); max-width: 100%; }
.pd-heat .pd-hm-g i { width: 100%; aspect-ratio: 1; height: auto; max-height: none; }
.pd-heat .pd-hm-wd { width: 22px; }
.pd-heat .pd-leg { justify-content: center; }
.pd-heatb { grid-template-columns: auto minmax(0, 1fr); }
.pd-heat .pd-hm, .pd-heat .pd-leg { justify-content: flex-start; }
@container (max-width: 760px) { .pd-heatb { grid-template-columns: 1fr; } .pd-heat .pd-hm, .pd-heat .pd-leg { justify-content: center; } }
/* Startseite ohne Hinweis „Kacheln anpassen“: Kacheln füllen den Platz bis zur Leiste, gleichmäßige Abstände */
@media (min-width: 761px) { .home-dashboard { grid-template-rows: auto auto minmax(0, 1fr) minmax(0, 2fr) !important; } }
@media (max-width: 760px) {
  .main:has(.home-dashboard) { padding-bottom: calc(var(--tabbar) + 12px + env(safe-area-inset-bottom)) !important; }
  .home-dashboard { min-height: 0 !important; height: calc(100dvh - var(--tabbar) - 26px - env(safe-area-inset-bottom)); grid-template-rows: auto auto minmax(0, 1fr) minmax(0, 2fr) !important; gap: 8px; }
}
