/* Training V4 (20.10.2026): Startseite, Baukasten, Übungsauswahl, Training eintragen. Präfix tx- / tb2- / mi- */

/* ---------- Startseite ---------- */
.tx-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 10px; }
.tx-act { display: flex; flex-direction: column; gap: 4px; padding: 14px; min-height: 118px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); text-decoration: none; }
.tx-act b { font-size: 15px; line-height: 1.25; margin-top: auto; }
.tx-act small { font-size: 12px; line-height: 1.35; color: var(--muted); }
.tx-act-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; }
.tx-act-ic svg { width: 20px; height: 20px; }
.tx-act-ic.build { color: #ffb36b; background: rgba(255, 140, 60, .12); border: 1px solid rgba(255, 140, 60, .25); }
.tx-act-ic.log { color: #7fd6ff; background: rgba(80, 190, 255, .1); border: 1px solid rgba(80, 190, 255, .24); }
@media (hover: hover) { .tx-act:hover, .tx-own:hover, .tx-empty:hover { border-color: var(--line-3, rgba(255,255,255,.22)); } }

.tx-owns { display: grid; gap: 8px; }
.tx-own { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); }
.tx-own-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 6px 0; color: var(--text); text-decoration: none; }
.tx-own-main .sp { min-width: 0; }
.tx-own-main b { display: block; font-size: 15px; line-height: 1.3; }
.tx-own-main small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.tx-own-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; color: var(--gold); background: rgba(239, 196, 107, .08); border: 1px solid rgba(239, 196, 107, .2); }
.tx-own-ic svg { width: 19px; height: 19px; }
.tx-own-go { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; color: #1a1205; background: linear-gradient(135deg, #ffcf7a, #ff9b45); }
.tx-own-go svg { width: 20px; height: 20px; }
.tx-empty { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; border: 1px dashed rgba(255, 179, 107, .38); background: rgba(255, 140, 60, .05); color: var(--text); text-decoration: none; }
.tx-empty .sp { flex: 1; min-width: 0; }
.tx-empty b { display: block; font-size: 15px; }
.tx-empty small { display: block; font-size: 12.5px; line-height: 1.45; color: var(--muted); margin-top: 3px; }
.tx-empty > svg { width: 18px; height: 18px; flex: none; color: var(--muted); }

/* Programm- und Plankarten: waagerechte Leiste, Text immer lesbar */
.tr .tx-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 2px 18px 10px; scrollbar-width: none; scroll-padding-inline: 18px; }
.tr .tx-rail::-webkit-scrollbar { display: none; }
.tx-pc { position: relative; flex: 0 0 min(72vw, 280px); aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; scroll-snap-align: start; color: var(--text); text-decoration: none; background: #0d1424; border: 1px solid rgba(255,255,255,.06); }
.tx-rail.sm .tx-pc { flex-basis: min(58vw, 220px); aspect-ratio: 1 / 1; }
.tx-pc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; z-index: -2; transition: transform .6s var(--ease-out, ease); }
.tx-pc::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6, 10, 21, .97) 0%, rgba(6, 10, 21, .78) 32%, rgba(6, 10, 21, .05) 72%); }
@media (hover: hover) { .tx-pc:hover img { transform: scale(1.04); } }
.tx-pc-in { display: flex; flex-direction: column; gap: 3px; padding: 14px; min-width: 0; width: 100%; }
.tx-pc-in em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--ember-2, #ffb36b); text-transform: uppercase; }
.tx-pc-in b { font-size: 18px; font-weight: 800; line-height: 1.15; }
.tx-pc-in small { font-size: 12.5px; color: var(--text-2, #c8d0e0); line-height: 1.35; }
.tx-pc .tr-kbadge { position: absolute; top: 10px; left: 10px; }
@media (min-width: 900px) {
  .tr .tx-rail { margin: 0; padding: 2px 0 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .tr .tx-rail.sm { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tx-pc, .tx-rail.sm .tx-pc { flex: none; width: 100%; }
}

.tx-kira { display: flex; align-items: center; gap: 12px; width: 100%; margin: 14px 0 6px; padding: 14px; text-align: left; border-radius: 18px; border: 1px solid rgba(255, 122, 77, .3); background: linear-gradient(135deg, rgba(176, 25, 74, .22), rgba(255, 122, 77, .08)); color: var(--text); cursor: pointer; font: inherit; }
.tx-kira img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.tx-kira .sp { flex: 1; min-width: 0; }
.tx-kira small { display: block; font-size: 11px; font-weight: 700; color: #ff9f7a; letter-spacing: .03em; }
.tx-kira b { display: block; font-size: 15.5px; margin: 2px 0 3px; }
.tx-kira .sp > span { display: block; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.tx-kira > svg { width: 18px; height: 18px; flex: none; color: var(--muted); }

.tx-adjust { display: flex; align-items: center; gap: 12px; margin: 14px 0; padding: 14px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); text-decoration: none; }
.tx-adjust > svg:first-child { width: 20px; height: 20px; color: var(--gold); flex: none; }
.tx-adjust span { flex: 1; min-width: 0; }
.tx-adjust b { display: block; font-size: 15px; }
.tx-adjust small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.tx-adjust > svg:last-child { width: 18px; height: 18px; color: var(--muted); flex: none; }

/* ---------- Baukasten ---------- */
.tb2 { max-width: 720px; margin: 0 auto; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.tb2-top { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; }
.tb2-top small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.tb2-top h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; line-height: 1.15; }
.tb2-back { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); }
.tb2-back svg { width: 20px; height: 20px; }
.tb2-lead { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.tb2-name { display: grid; gap: 7px; margin-bottom: 14px; font-size: 13px; font-weight: 700; color: var(--muted); }
.tb2-name input { font-size: 17px; min-height: 50px; }
.tb2-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.tb2-sum span { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.tb2-sum b { font-size: 20px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tb2-sum small { font-size: 11px; color: var(--muted); margin-top: 3px; }
.tb2-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.tb2-ex { padding: 10px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); transition: transform .18s ease, box-shadow .18s ease; touch-action: pan-y; }
.tb2-ex.drag { transition: none; position: relative; z-index: 5; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); border-color: rgba(255, 179, 107, .5); }
.tb2-exh { display: flex; align-items: center; gap: 10px; }
.tb2-grip { display: grid; place-items: center; width: 32px; height: 44px; flex: none; margin-left: -4px; border: 0; background: none; color: var(--muted); cursor: grab; touch-action: none; }
.tb2-grip svg { width: 18px; height: 18px; }
.tb2-th { position: relative; width: 52px; height: 52px; flex: none; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.tb2-th img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.tb2-th img.mx { object-fit: contain; padding: 3px; }
.tb2-th > svg { width: 22px; height: 22px; margin: 15px; color: var(--muted); }
.tb2-th i { position: absolute; left: -5px; bottom: -5px; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 7px; font-style: normal; font-size: 11px; font-weight: 800; background: var(--bg); border: 1px solid var(--line-2); }
.tb2-nm { flex: 1; min-width: 0; }
.tb2-nm b { display: block; font-size: 15px; line-height: 1.3; }
.tb2-nm small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.tb2-mv { display: flex; gap: 4px; flex: none; }
.tb2-mv button { display: grid; place-items: center; width: 36px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; }
.tb2-mv button:disabled { opacity: .25; }
.tb2-mv button svg { width: 16px; height: 16px; }
.tb2-mv button.del { color: #f19a9a; }
.tb2-sts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.tb2-st { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.tb2-st small { text-align: center; font-size: 11px; color: var(--muted); font-weight: 600; }
.tb2-st div { display: flex; align-items: center; justify-content: space-between; gap: 2px; }
.tb2-st button { width: 34px; height: 34px; flex: none; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; }
.tb2-st b { flex: 1; text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tb2-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 18px; text-align: center; border-radius: 18px; border: 1px dashed var(--line-2); color: var(--muted); }
.tb2-empty svg { width: 28px; height: 28px; color: var(--gold); }
.tb2-empty b { color: var(--text); font-size: 16px; }
.tb2-empty span { font-size: 13.5px; line-height: 1.5; max-width: 420px; }
.tb2-add { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 18px; border: 1px dashed rgba(255, 179, 107, .45); background: rgba(255, 140, 60, .06); color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.tb2-add > svg { width: 22px; height: 22px; padding: 9px; box-sizing: content-box; border-radius: 12px; color: #ffb36b; background: rgba(255, 140, 60, .14); flex: none; }
.tb2-add b { display: block; font-size: 15px; }
.tb2-add small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.tb2-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h, 64px) + env(safe-area-inset-bottom)); z-index: 30; display: flex; gap: 10px; padding: 10px 16px; background: linear-gradient(0deg, var(--bg) 60%, transparent); }
.tb2-bar .btn { flex: 1; min-height: 52px; border-radius: 15px; }
@media (min-width: 900px) { .tb2-bar { position: sticky; bottom: 0; padding: 14px 0; } }
.tb2-reset, .tb2-del { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; min-height: 44px; }
.tb2-del { color: #f19a9a; }
.tb2-reset svg, .tb2-del svg { width: 16px; height: 16px; }
@media (max-width: 360px) { .tb2-st button { width: 28px; height: 32px; } .tb2-st b { font-size: 13px; } .tb2-mv button { width: 32px; } }

/* Übungsauswahl im Sheet */
.sheet.tb2-sheet { max-height: 92vh; display: flex; flex-direction: column; }
.tb2-pick { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.tb2-pick h2 { margin: 2px 44px 12px 0; }
.tb2-q { min-height: 48px; font-size: 16px; }
.tb2-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 10px -4px 0; padding: 0 4px; }
.tb2-chips::-webkit-scrollbar { display: none; }
.tb2-chips button { flex: none; min-height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2, var(--text)); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tb2-chips.sm button { min-height: 32px; font-size: 12px; }
.tb2-chips button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.tb2-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; overflow-y: auto; min-height: 200px; flex: 1; padding-bottom: 8px; }
@media (min-width: 560px) { .tb2-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tb2-card { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: left; cursor: pointer; font: inherit; min-width: 0; }
.tb2-card.on { border-color: #ffb36b; box-shadow: 0 0 0 1px #ffb36b inset; background: rgba(255, 140, 60, .08); }
.tb2-cimg { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, .04); margin-bottom: 6px; }
.tb2-cimg img { width: 100%; height: 100%; object-fit: cover; }
.tb2-cimg img.mx { object-fit: contain; padding: 4px; }
.tb2-cimg em { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 999px; font-style: normal; font-weight: 800; font-size: 12px; color: #1a1205; background: #ffb36b; }
.tb2-cimg em.had { background: rgba(255, 255, 255, .85); }
.tb2-cimg em svg { width: 13px; height: 13px; }
.tb2-card b { font-size: 13.5px; line-height: 1.25; }
.tb2-card small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.tb2-none { grid-column: 1 / -1; text-align: center; padding: 30px 0; }
.tb2-pbar { padding-top: 10px; border-top: 1px solid var(--line); }
.tb2-pbar .btn { min-height: 50px; }

/* ---------- Training eintragen ---------- */
.mi2 { max-width: 640px; margin: 0 auto; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.mi2 .tb2-top { margin-bottom: 8px; }
.mi2-lead { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.mi2-sec { margin: 0 0 14px; padding: 14px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); }
.mi2-sec > h2 { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.mi2-sports { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mi2-sports button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 70px; padding: 8px 4px; border-radius: 13px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; }
.mi2-sports button svg { width: 20px; height: 20px; color: var(--muted); }
.mi2-sports button.on { border-color: #7fd6ff; background: rgba(80, 190, 255, .1); }
.mi2-sports button.on svg { color: #7fd6ff; }
.mi2-more { display: flex; gap: 8px; margin-top: 8px; }
.mi2-more select { flex: 1; min-height: 46px; font-size: 15px; appearance: auto; }
.mi2-more .btn { flex: none; min-height: 46px; }
.mi2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mi2 label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2, var(--text)); min-width: 0; }
.mi2 .input { min-height: 48px; width: 100%; font-size: 16px; box-sizing: border-box; }
.mi2 select.input { appearance: auto; }
.mi2-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 10px; }
.mi2-seg button { min-height: 44px; padding: 4px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 700; line-height: 1.2; cursor: pointer; }
.mi2-seg button.on { background: var(--surface-2, #1a2336); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }
.mi2-hint { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.mi2-res { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(80, 190, 255, .07); border: 1px solid rgba(80, 190, 255, .2); }
.mi2-res span { font-size: 13px; color: var(--text-2, var(--text)); }
.mi2-res b { font-size: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mi2-rpe { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
.mi2-rpe button { min-height: 40px; padding: 0; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.mi2-rpe button.on { background: #7fd6ff; color: #05121c; border-color: #7fd6ff; }
.mi2-rpel { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.mi2 [hidden] { display: none !important; }
.mi2 .mi-error { margin: 0 0 10px; color: #f48c9f; font-size: 14px; }
.mi2 .mi-error:empty { display: none; }
.mi2 .tb2-bar .btn { flex: 1; }
.mi2 .mi-recent { margin-top: 22px; }
.mi2 .mi-recent h2 { font-size: 17px; margin: 0 0 6px; }
@media (max-width: 360px) { .mi2-sports { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mi2-grid { grid-template-columns: 1fr; } .mi2-seg button { font-size: 11.5px; } }

/* Zwei Türen: Programme / Trainingspläne */
.tx-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 6px; }
.tx-door { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; aspect-ratio: 3 / 4; border-radius: 20px; color: var(--text); text-decoration: none; border: 1px solid rgba(255,255,255,.07); background: #0d1424; }
.tx-door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; z-index: -2; transition: transform .6s ease; }
.tx-door::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6,10,21,.97) 0%, rgba(6,10,21,.75) 38%, rgba(6,10,21,.05) 75%); }
@media (hover: hover) { .tx-door:hover img { transform: scale(1.04); } }
.tx-door-in { display: flex; flex-direction: column; gap: 4px; padding: 14px; min-width: 0; }
.tx-door-in em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ember-2, #ffb36b); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-door-in b { font-size: 20px; font-weight: 800; line-height: 1.1; }
.tx-door-in small { font-size: 12px; line-height: 1.4; color: var(--text-2, #c8d0e0); }
@media (min-width: 700px) { .tx-door { aspect-ratio: 16 / 10; } .tx-door-in b { font-size: 24px; } }
.tx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.tx-grid .tx-pc { flex: none; width: 100%; aspect-ratio: 3 / 4; }
.tx-grid .tx-pc-in b { font-size: 16px; }
.tx-grid .tx-pc-in small { font-size: 11.5px; }
@media (min-width: 700px) { .tx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tb2-pick > * { flex-shrink: 0; }
.tb2-pick > .tb2-grid { flex: 1 1 auto; flex-shrink: 1; }

/* ---------- Muskelkarten-Karten (Programme & Pläne) ---------- */
.bm { display: flex; justify-content: center; gap: 0; width: 100%; height: 100%; }
.bm-fig { height: 100%; width: auto; max-width: 50%; display: block; }
.tm-rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 2px 18px 12px; scrollbar-width: none; scroll-padding-inline: 18px; }
.tm-rail::-webkit-scrollbar { display: none; }
.tm-rail > * { flex: 0 0 min(46vw, 190px); scroll-snap-align: start; }
.tm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
@media (min-width: 700px) { .tm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tm-rail > * { flex-basis: 210px; } }
.tm-card { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 18px; overflow: hidden; color: var(--text); text-decoration: none; text-align: left; font: inherit; cursor: pointer; padding: 0;
  background: radial-gradient(120% 80% at 50% 0%, #10203d 0%, #0a1222 55%, #080e1a 100%); border: 1px solid rgba(124, 196, 255, .14); }
@media (hover: hover) { .tm-card:hover { border-color: rgba(124, 196, 255, .4); } }
.tm-map { position: relative; display: block; height: 150px; padding: 10px 6px 0; }
.tm-map::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: linear-gradient(0deg, #0a1222, transparent); }
.tm-weeks { position: absolute; top: 8px; right: 8px; z-index: 1; font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; color: #cfe8ff; background: rgba(30, 91, 255, .35); border: 1px solid rgba(124, 196, 255, .3); }
.tm-in { display: flex; flex-direction: column; gap: 3px; padding: 4px 12px 13px; min-width: 0; }
.tm-in em { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #7cc4ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-in b { font-size: 16px; font-weight: 800; line-height: 1.2; }
.tm-in small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.tm-card.kira { border-color: rgba(255, 122, 77, .3); background: radial-gradient(120% 80% at 50% 0%, #3a1426 0%, #1a0f1c 60%, #0d0b14 100%); }
.tm-card.kira .tm-map { display: grid; place-items: center; }
.tm-card.kira .tm-map img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 159, 122, .5); }
.tm-card.kira .tm-in em { color: #ff9f7a; }
.tm-all { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 16px; border-radius: 18px; border: 1px dashed rgba(124, 196, 255, .3); color: var(--text); text-decoration: none; }
.tm-all svg { width: 24px; height: 24px; color: #7cc4ff; }
.tm-all b { font-size: 15px; }
.tm-all small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.tm-hero { position: relative; margin: -8px -18px 6px; padding: 54px 18px 18px; background: radial-gradient(90% 70% at 50% 25%, #12264a 0%, #0a1222 60%, var(--bg) 100%); }
.tm-hero .tr-xback { position: absolute; top: 12px; left: 14px; }
.tm-hero-map { height: 300px; margin-bottom: 8px; }
.tm-hero-in .h1 { margin: 6px 0 4px; }
.tm-hero-in p { margin: 0; color: var(--text-2, #c8d0e0); }
.tm-leg { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.tm-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: #2f7bff; vertical-align: -1px; }
.tm-leg i.lo { background: rgba(47, 123, 255, .4); }
@media (min-width: 900px) { .tm-hero { margin: 0 0 6px; border-radius: 22px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; } .tm-hero-map { height: 340px; } }

/* Programmkarten mit eigenen Muskelfotos (16:9, nichts abgeschnitten) */
.tm-photo { display: block; aspect-ratio: 16 / 9; background: #000; }
.tm-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tm-card { background: #0b0f17; border-color: rgba(255,255,255,.08); }
.tm-in em { color: var(--ember-2, #ffb36b); }
.tm-hero { padding: 54px 0 14px; background: #000; margin: -8px -18px 10px; }
.tm-hero-map { height: auto; margin: 0; }
.tm-hero-map img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; display: block; }
.tm-hero-in { padding: 6px 18px 0; }
@media (min-width: 900px) { .tm-hero { display: block; margin: 0 0 10px; border-radius: 22px; overflow: hidden; } .tm-hero-map img { max-height: 380px; } }
.tm-links { display: grid; gap: 10px; margin: 22px 0 6px; }
@media (min-width: 700px) { .tm-links { grid-template-columns: 1fr 1fr; } }
.tm-link { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); text-decoration: none; }
.tm-link img { width: 104px; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 12px; background: #000; flex: none; }
.tm-link span { flex: 1; min-width: 0; }
.tm-link b { display: block; font-size: 16px; }
.tm-link small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.tm-link > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.tm-kira { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.tm-kira img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.tm-kira span { flex: 1; min-width: 0; }
.tm-kira b { display: block; font-size: 15px; }
.tm-kira small { display: block; font-size: 12px; color: var(--muted); }
.tm-kira > svg { width: 18px; height: 18px; color: var(--muted); }
@media (max-width: 699px) {
  .tm-grid { grid-template-columns: 1fr; gap: 8px; }
  .tm-grid .tm-card { flex-direction: row; align-items: center; }
  .tm-grid .tm-photo { width: 46%; flex: none; }
  .tm-grid .tm-in { padding: 10px 12px; }
}
/* 28.11.2026: Training nachtragen vereinfacht */
.mi2-seg4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mi2-seg2 { grid-template-columns: 1fr 1fr; margin-top: 10px; }
.mi2-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mi2-chips button { min-height: 36px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: none; color: var(--text-2, var(--text)); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.mi2-chips button.on { border-color: var(--text-2, var(--text)); color: var(--text); background: var(--surface-2); }
.mi2-link { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 12px; padding: 10px 2px 2px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text-2, var(--text)); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.mi2-link svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.mi2-link span { flex: 1; }
.mi2-link em { font-style: normal; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.mi2 label.mi2-check { flex-direction: row; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; font-weight: 600; cursor: pointer; }
.mi2 label.mi2-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: currentColor; }
