/* Training V5 (21.10.2026): Dashboard-Fotokarten, „Selbst gestalten“, Programmkarten mit Muskelzonen, Plankarten, Programm-Detail */

/* Dashboard: zwei Fotokarten */
.hx-pair { display: grid; gap: 12px; margin: 24px 0 8px; }
@media (min-width: 700px) { .hx-pair { grid-template-columns: 1fr 1fr; } }
.hx { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 250px; border-radius: 22px; color: #fff; text-decoration: none; background: #0a1120; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 12px 30px rgba(0,0,0,.28); }
.hx img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; z-index: -2; transition: transform .7s ease; }
.hx::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6,10,21,.95) 0%, rgba(6,10,21,.75) 30%, rgba(6,10,21,.1) 60%, rgba(6,10,21,0) 100%); }
@media (hover: hover) { .hx:hover img { transform: scale(1.04); } }
.hx-in { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 20px; width: 100%; }
.hx-go { position: absolute; top: 16px; right: 16px; margin: 0 !important; }
.hx-in em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ffc46b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-in b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.hx-in small { font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.78); }
.hx-go { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 10px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); }
.hx-go svg { width: 14px; height: 14px; }

/* Dashboard: Selbst gestalten */
.sx { margin: 22px 0 8px; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02)); overflow: hidden; }
.sx-h { padding: 16px 18px 8px; }
.sx-h b { display: block; font-size: 18px; letter-spacing: -.01em; }
.sx-h small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.sx-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: var(--text); text-decoration: none; border-top: 1px solid var(--line); }
.sx-row .sp { flex: 1; min-width: 0; }
.sx-row b { display: block; font-size: 15.5px; }
.sx-row small { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted); margin-top: 2px; }
.sx-row > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.sx-ic { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; color: #fff; }
.sx-ic svg { width: 22px; height: 22px; }
.sx-ic.build { background: linear-gradient(135deg, #ffb25b, #ff6a3d); box-shadow: 0 6px 18px rgba(255,106,61,.3); }
.sx-ic.log { background: linear-gradient(135deg, #5fc8ff, #2f6bff); box-shadow: 0 6px 18px rgba(47,107,255,.3); }
@media (hover: hover) { .sx-row:hover, .sx-own:hover { background: rgba(255,255,255,.03); } }
.sx-sub { padding: 14px 18px 6px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sx-own { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 18px; }
.sx-own-main { flex: 1; min-width: 0; color: var(--text); text-decoration: none; }
.sx-own-main b { display: block; font-size: 15px; }
.sx-own-main small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-play { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; color: #1a1205; background: linear-gradient(135deg, #ffcf7a, #ff9b45); }
.sx-play svg { width: 16px; height: 16px; }
.sx > .sx-own:last-child { padding-bottom: 14px; }

/* Programme: Muskelzonen, Schwarz verschmilzt mit der Karte */
.pc3-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
@media (min-width: 700px) { .pc3-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pc3-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pc3 { display: flex; flex-direction: column; min-width: 0; border-radius: 20px; overflow: hidden; color: #fff; text-decoration: none; background: radial-gradient(90% 60% at 50% 30%, #13213d 0%, #0b1324 60%, #0a1120 100%); border: 1px solid rgba(255,255,255,.07); transition: border-color .2s, transform .2s; }
@media (hover: hover) { .pc3:hover { border-color: rgba(124,196,255,.35); transform: translateY(-2px); } }
.pc3-fig { display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.pc3-fig img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: lighten; transform: scale(1.12); transform-origin: 50% 48%; }
.pc3-in { display: flex; flex-direction: column; gap: 3px; padding: 2px 14px 15px; }
.pc3-in em { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #7cc4ff; }
.pc3-in b { font-size: 16px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.pc3-meta { font-size: 12px; color: rgba(255,255,255,.62); line-height: 1.35; }

/* Trainingspläne: Fotokarten mit Eckdaten */
.pl3-list { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 700px) { .pl3-list { grid-template-columns: 1fr 1fr; } }
.pl3 { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 210px; border-radius: 22px; color: #fff; text-decoration: none; background: #0a1120; }
.pl3 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; z-index: -2; }
.pl3::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6,10,21,.96) 0%, rgba(6,10,21,.7) 40%, rgba(6,10,21,0) 75%); }
.pl3-in { display: flex; flex-direction: column; gap: 4px; padding: 18px; width: 100%; }
.pl3-in em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ffc46b; }
.pl3-in b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.pl3-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pl3-chips i { font-style: normal; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); }

/* Programm-Detail */
.ph3 { position: relative; margin: -8px -18px 4px; padding: 0 0 6px; background: radial-gradient(80% 60% at 50% 35%, #13213d 0%, #0a1120 55%, var(--bg) 100%); }
.ph3-back { position: absolute; top: 12px; left: 14px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); }
.ph3-back svg { width: 20px; height: 20px; }
.ph3-fig { padding-top: 22px; }
.ph3-fig img { display: block; width: 100%; max-height: 300px; object-fit: contain; mix-blend-mode: lighten; }
.ph3-in { padding: 4px 20px 6px; }
.ph3-in em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7cc4ff; }
.ph3-in h1 { margin: 4px 0 2px; font-size: 32px; letter-spacing: -.025em; line-height: 1.1; }
.ph3-in p { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (min-width: 900px) { .ph3 { margin: 0 0 6px; border-radius: 24px; } }
.tr .ph3-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 14px 0 18px; padding: 12px 0; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); }
.tr .ph3-stats span { background: none; border: 0; border-radius: 0; padding: 2px 4px; border-left: 1px solid var(--line); }
.tr .ph3-stats span:first-child { border-left: 0; }
.tr .ph3-stats b { font-size: 20px; }
.tr .ph3-stats small { font-size: 11px; }
.tr .tr-exl a { padding: 10px 14px 10px 10px; gap: 14px; border-color: var(--line); }
.tr .tr-exl em { color: var(--muted); font-weight: 600; }
.tr .tr-exl small { color: var(--text); font-weight: 600; }

/* 21.10. abends: Programmkarten mit echten Fotos, ganzes Bild sichtbar (16:9 wie die Fotos) */
.pc3-grid { grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 600px) { .pc3-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .pc3-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pc3 { background: var(--bg-2, #0a1122); border-color: var(--line-2); }
.pc3-fig { aspect-ratio: 16 / 9; background: #0a1120; }
.pc3-fig img { mix-blend-mode: normal; transform: none; object-fit: cover; }
.pc3-in { padding: 12px 16px 16px; }
.pc3-in em { color: var(--ember-2, #ffb36b); }
.pc3-in b { font-size: 18px; }
.pc3-meta { color: var(--muted); font-size: 13px; }

/* Übungsbilder in Listen: ganzes Foto (16:9), keine Nummern */
.tr .tr-thumb { width: 112px; height: 63px; border-radius: 12px; }
.tr .tr-thumb img { object-fit: cover; }
.tr .tr-thumb img.mx { object-fit: contain; }
.tr .tr-thumb i { display: none; }
.tr-jl .tr-thumb { width: 96px; height: 54px; }
@media (max-width: 360px) { .tr .tr-thumb { width: 96px; height: 54px; } }
.tb2-th { width: 88px; height: 50px; }
.tb2-th img { object-fit: cover; }
.tb2-th i { display: none; }
.tb2-cimg { aspect-ratio: 16 / 9; }
.tr-lib-img { aspect-ratio: 16 / 9; }
.tr-lib-img img.mx { object-fit: contain; }
/* Geführtes Training: Übungsfoto im Originalformat statt stark gezoomt */
.tp .tp-photo { height: auto; aspect-ratio: 16 / 9; max-height: 42vh; margin: 0 -18px; }
.tp .tp-photo img { object-fit: cover; -webkit-mask-image: linear-gradient(180deg, #000 0, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 70%, transparent 100%); }
@media (min-width: 700px) { .tp .tp-photo { margin: 0 auto; max-width: 720px; border-radius: 18px; overflow: hidden; } }
