/* Padel & Gym – Dark UI nach den Referenz-Screenshots (iPhone, 3x) */
:root {
  --bg: #000000;
  --bg-2: #0f0f0f;
  --surface: #111111;
  --surface-2: #1c1c1c;
  --surface-3: #232323;
  --border: #262626;
  --border-2: #333333;
  --text: #ffffff;
  --text-2: #8e8e8e;
  --text-3: #5c5c5c;
  --light: #f2f2f2;
  --on-light: #0a0a0a;
  --orange: #f0803c;
  --orange-2: #f5a524;
  --grad: linear-gradient(90deg, #f5a524 0%, #ef6a3a 100%);
  --purple: #6b4fe0;
  --green: #4cc24a;
  --yellow: #f4e33a;
  --danger: #ff5a4f;
  --r-card: 22px;
  --r-btn: 22px;
  --r-tile: 14px;
  --gutter: 16px;
  --tabbar-h: 68px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
:root:not([data-theme="light"]) { color-scheme: dark; }
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); overscroll-behavior-y: none; }
body {
  font-family: "Montserrat", -apple-system, "SF Pro Text", system-ui, sans-serif;
  font-weight: 500; font-size: 16px; line-height: 1.35;
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
  -webkit-user-select: none; user-select: none;
}
input, textarea { -webkit-user-select: text; user-select: text; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.muted { color: var(--text-2); font-weight: 400; }

/* ---------- Layout ---------- */
#app { min-height: 100dvh; }
.view { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 40px); }
.content { padding: 0 var(--gutter); max-width: 720px; margin: 0 auto; }
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--safe-t) + 14px) var(--gutter) 18px;
  background: var(--bg); border-bottom: 1px solid var(--border);
  border-radius: 0 0 22px 22px; margin-bottom: 8px;
}
.topbar h1 { font-size: 27px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.streak { font-size: 22px; font-weight: 800; display: inline-flex; gap: 6px; align-items: center; }
.topbar-cal { display: block; padding-bottom: 14px; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pill-status {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px;
  border: 1px solid var(--border-2); border-radius: 16px; font-size: 17px; font-weight: 500;
}
.pill-ico { width: 30px; height: 30px; border-radius: 8px; background: #123b1d; display: grid; place-items: center; font-size: 15px; }
.cal-date { color: var(--text-2); font-size: 16px; margin: 18px 0 10px; font-weight: 400; }
.topbar-glow {
  background: radial-gradient(120% 140% at 30% -20%, rgba(240,128,60,.85) 0%, rgba(120,52,25,.55) 45%, rgba(0,0,0,0) 80%), var(--bg);
  border-bottom: 0; padding-top: calc(var(--safe-t) + 30px);
}
.view-stats .tabs { background: linear-gradient(180deg, rgba(70,30,15,.55), rgba(0,0,0,0)); }

.section-label {
  color: var(--text-2); font-size: 12.5px; font-weight: 600; letter-spacing: .8px;
  text-transform: uppercase; margin: 26px 16px 12px;
}

/* ---------- Cards ---------- */
.card {
  display: block; width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 18px 16px; position: relative; overflow: hidden;
}
.card h3 { font-size: 18px; font-weight: 600; }
.card h2 { font-size: 21px; font-weight: 600; }
.card + .card { margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.grid2 .card + .card { margin-top: 0; }
.habit h3 { font-size: 19px; }
.habit .muted { font-size: 15px; margin-top: 2px; }
.dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 16px 0 12px; }
.dots i { aspect-ratio: 1; border-radius: 4px; background: var(--surface-3); }
.dots i.on { background: var(--grad); }
.dots i.today { outline: 1.5px solid var(--text-3); outline-offset: 1px; }
.hr { height: 3px; border-radius: 2px; background: var(--surface-3); margin: 6px 0 12px; }
.habit-foot b { font-size: 19px; font-weight: 800; }
.habit-foot span { font-size: 14px; }
.row-card { display: flex; align-items: center; justify-content: space-between; }
.chev { font-size: 30px; color: var(--text); line-height: 1; font-weight: 300; }

.hero { padding: 22px 18px 24px; min-height: 140px; }
.hero h2 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.hero p { font-size: 16px; color: var(--text-2); font-weight: 400; max-width: 92%; }
.hero::after {
  content: ""; position: absolute; right: 22px; bottom: 6px; width: 120px; height: 90px; opacity: .14;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 45' fill='none' stroke='white' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 40 22 23l10 10L55 7M42 6h14v14'/%3E%3C/svg%3E");
}
.hero .btn { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 58px; padding: 0 22px; border-radius: var(--r-btn);
  font-size: 18px; font-weight: 700; letter-spacing: .1px;
}
.btn-center { justify-content: center; }
.btn-light { background: var(--light); color: var(--on-light); }
.btn-dark { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); justify-content: center; }
.btn-ghost { color: var(--text-2); justify-content: center; font-weight: 600; font-size: 16px; }
.btn-small { min-height: 40px; padding: 0 16px; border-radius: 14px; font-weight: 700; font-size: 15px; background: var(--surface-3); }
.btn-small.btn-light { background: var(--light); color: var(--on-light); }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: var(--surface-2); }
.btn:active, .btn-small:active, .card:active, .icon-btn:active { transform: scale(.985); transition: transform .08s; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; letter-spacing: .5px; }
.badge-orange { background: #3a2210; color: var(--orange); }
.badge-outline { border: 1.5px solid var(--yellow); color: var(--yellow); padding: 3px 9px; }

/* ---------- Woche ---------- */
.week { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.week .wd { color: var(--text-2); font-size: 16px; font-weight: 400; margin-bottom: 2px; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.week .day { display: grid; justify-items: center; gap: 10px; padding-bottom: 4px; }
.week .num {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px;
  font-size: 19px; font-weight: 400;
}
.week .day.sel .num { background: var(--light); color: var(--on-light); font-weight: 500; }
.week .marks { display: flex; gap: 0; height: 8px; }
.week .marks i { width: 9px; height: 8px; border-radius: 4px; }
.week .marks i + i { margin-left: -2px; }
.week .marks i.done { outline: 1.5px solid #fff; }

/* ---------- Trainingskarten ---------- */
.plan { padding: 20px 18px; }
.plan-head { display: flex; align-items: center; gap: 16px; }
.icon-tile { width: 48px; height: 48px; border-radius: var(--r-tile); display: grid; place-items: center; font-size: 22px; flex: none; }
.plan-head h3 { font-size: 21px; font-weight: 600; flex: 1; }
.plan-meta { display: flex; gap: 28px; margin-top: 18px; color: var(--text); font-size: 16px; font-weight: 400; }
.plan-meta span { display: inline-flex; gap: 10px; align-items: center; }
.plan-muscles { margin-top: 12px; font-size: 15px; font-weight: 400; color: var(--text); display: flex; gap: 10px; }
.plan-ex { display: flex; gap: 8px; overflow-x: auto; margin: 16px -18px 0; padding: 0 18px 2px; scrollbar-width: none; }
.plan-ex::-webkit-scrollbar { display: none; }
.plan-ex span { flex: none; padding: 7px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13px; color: var(--text-2); }
.plan .btn { margin-top: 18px; }
.plan.today-plan { border-color: var(--border-2); }
.recovery { text-align: left; padding: 26px 22px; }
.recovery .icon-tile { width: 72px; height: 72px; border-radius: 20px; background: linear-gradient(140deg, #1e3b1f, #2c3317); font-size: 32px; margin: 0 auto 26px; }
.recovery h2 { font-size: 22px; margin-bottom: 10px; }
.recovery p { font-size: 16px; }
.add-row { display: flex; align-items: center; gap: 18px; font-weight: 700; font-size: 18px; }
.add-row .sq { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-3); display: grid; place-items: center; font-size: 26px; font-weight: 300; }

/* ---------- Aktives Training ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 30; background: var(--bg);
  display: flex; flex-direction: column; animation: up .22s ease-out;
}
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head {
  display: flex; align-items: center; gap: 12px;
  padding: calc(var(--safe-t) + 10px) var(--gutter) 12px;
}
.sheet-title { flex: 1; min-width: 0; }
.sheet-title h2 { font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-title p { font-variant-numeric: tabular-nums; font-size: 14px; }
.wo-progress { height: 4px; margin: 0 var(--gutter); border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.wo-progress div { height: 100%; width: 0; background: var(--grad); transition: width .3s; }
.sheet-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px var(--gutter) calc(var(--safe-b) + 140px); }

.ex { padding: 18px 14px 14px; }
.ex + .ex { margin-top: 12px; }
.ex-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.ex-head .icon-tile { width: 42px; height: 42px; border-radius: 12px; font-size: 18px; }
.ex-head h3 { font-size: 18px; font-weight: 600; }
.ex-head p { font-size: 14px; }
.ex-head .more { margin-left: auto; width: 36px; height: 36px; font-size: 22px; color: var(--text-2); display: grid; place-items: center; }
.set-grid { display: grid; grid-template-columns: 40px 1fr 1fr 52px 34px; gap: 10px; align-items: center; }
.set-grid.labels { color: var(--text-3); font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 6px; padding: 0 4px; }
.set-row { padding: 5px 4px; border-radius: 14px; transition: background .2s; }
.set-row + .set-row { margin-top: 2px; }
.set-row.done { background: var(--accent-soft); }
.set-no { font-weight: 700; font-size: 16px; text-align: center; color: var(--text-2); }
.set-row.done .set-no { color: var(--orange); }
.prev { color: var(--text-2); font-size: 14px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.num-in {
  width: 100%; height: 52px; border-radius: 14px; border: 1px solid var(--border-2); background: var(--surface-2);
  color: var(--text); text-align: center; font: 600 17px/1 "Montserrat", system-ui, sans-serif; /* >=16px: kein iOS-Zoom */
  -moz-appearance: textfield; appearance: none;
}
.num-in::placeholder { color: var(--text-3); }
.num-in:focus { outline: none; border-color: var(--orange); background: #1a130d; }
.set-row.done .num-in { border-color: transparent; background: transparent; }
.check {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; justify-self: end;
  background: transparent; border: 2.5px solid var(--border-2); color: transparent; transition: all .15s;
}
.check svg { width: 26px; height: 26px; }
.set-row.done .check { border-color: transparent; }
.set-row.done .check { background: var(--grad); color: #fff; }
.ex-actions { display: flex; gap: 8px; margin-top: 12px; }
.ex-actions .btn-small { flex: 1; }
.target { font-size: 12px; color: var(--text-3); text-align: center; margin-top: 2px; }

.rest {
  position: fixed; z-index: 35; left: var(--gutter); right: var(--gutter); bottom: calc(var(--safe-b) + 16px);
  max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 10px; overflow: hidden; animation: up .2s ease-out;
  background: var(--surface-2); border: 1px solid var(--border-2); border-radius: var(--r-card);
  padding: 12px 12px 12px 20px; box-shadow: 0 10px 40px rgba(0,0,0,.6);
}
.rest b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rest .muted { font-size: 13px; }
.rest-btns { display: flex; gap: 6px; }

.mini {
  position: fixed; z-index: 15; left: var(--gutter); right: var(--gutter);
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 26px);
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px;
  background: var(--light); color: var(--on-light); font-weight: 700; box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.mini b { margin-left: auto; font-variant-numeric: tabular-nums; }
.mini-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- Tabbar ---------- */
.tabbar {
  position: fixed; z-index: 20; left: var(--gutter); right: var(--gutter);
  bottom: calc(var(--safe-b) + 10px); height: var(--tabbar-h);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(28,28,28,.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,.6);
  max-width: 720px; margin: 0 auto;
}
.tabbar button { display: grid; justify-items: center; align-content: center; gap: 5px; color: #8a8a8a; }
.tabbar svg { width: 25px; height: 25px; fill: currentColor; stroke: currentColor; }
.tabbar svg[fill="none"] { fill: none; }
.tabbar span { font-size: 11.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.tabbar button.active { color: #fff; }
.tabbar button.active[data-go="training"] svg, .tabbar button.active[data-go="padel"] svg { stroke: var(--orange); }

/* ---------- Statistik ---------- */
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 var(--gutter); margin-top: -8px; }
.tab { text-align: center; padding: 12px 0 14px; font-size: 19px; font-weight: 600; color: var(--text-2); position: relative; }
.tab.active { color: var(--text); }
.tab.active::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 3px; border-radius: 2px; background: var(--orange); }
.chart-card { padding: 18px 16px 12px; }
.chart-head { display: flex; justify-content: space-between; gap: 10px; }
.chart-head h3 { font-size: 18px; }
.chart-head p { font-size: 15px; }
.delta { color: var(--text-2); font-size: 17px; font-weight: 500; white-space: nowrap; }
.delta.up { color: var(--green); }
.delta.down { color: var(--danger); }
.chart { width: 100%; height: 170px; display: block; margin-top: 8px; overflow: visible; }
.chart .ln { fill: none; stroke: var(--orange); stroke-width: 2.4; stroke-linejoin: round; }
.chart .pt { fill: var(--surface); stroke: var(--orange); stroke-width: 2.4; }
.chart .val { fill: var(--orange); font: 500 13px "Montserrat", sans-serif; }
.chart .ax { fill: var(--text-2); font: 400 13px "Montserrat", sans-serif; }
.group-link { display: flex; align-items: center; gap: 8px; }

/* ---------- Formulare / Sheets ---------- */
.form-card { display: grid; gap: 14px; }
.field { display: grid; gap: 8px; }
.field span { color: var(--text-2); font-size: 14px; }
.field input {
  height: 54px; border-radius: 16px; border: 1px solid var(--border-2); background: var(--surface-2);
  color: var(--text); padding: 0 16px; font: 500 17px "Montserrat", system-ui, sans-serif;
}
.field input:focus { outline: none; border-color: var(--orange); }
.hero-empty { text-align: center; padding: 30px 22px; display: grid; justify-items: center; gap: 10px; }
.hero-empty .icon-tile { width: 72px; height: 72px; font-size: 34px; border-radius: 20px; margin-bottom: 8px; }
.icon-tile.padel { background: linear-gradient(140deg, #3a2210, #22140a); }
.li-row { display: flex; align-items: center; gap: 14px; }
.li-row .grow { flex: 1; min-width: 0; }
.li-row h3 { font-size: 16px; }
.li-row p { font-size: 14px; }

.backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.6); }
.bsheet {
  position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 86dvh; overflow-y: auto;
  background: #0d0d0d; border-top: 1px solid var(--border); border-radius: 26px 26px 0 0;
  padding: 10px var(--gutter) calc(var(--safe-b) + 20px); animation: up .2s ease-out;
}
.bsheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--border-2); margin: 0 auto 16px; }
.bsheet h2 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.bsheet .sub { color: var(--text-2); margin-bottom: 20px; font-weight: 400; }
.picker { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 26px 0 30px; }
.picker .val { min-width: 140px; text-align: center; font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; }
.picker .unit { font-size: 22px; color: var(--text-2); font-weight: 600; }
.picker .step { width: 56px; height: 56px; border-radius: 18px; background: var(--surface-3); font-size: 28px; font-weight: 400; display: grid; place-items: center; }
.ex-pick { display: grid; gap: 8px; }
.ex-pick button { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; }
.ex-pick button small { color: var(--text-2); font-weight: 400; }
.ex-pick .grp { color: var(--text-2); font-size: 12.5px; letter-spacing: .8px; text-transform: uppercase; margin: 14px 4px 2px; font-weight: 600; }
.option { display: block; width: 100%; padding: 20px; border-radius: var(--r-card); border: 1.5px solid var(--border); background: var(--surface); font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.option.danger { color: var(--danger); }

.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 22px; }
.summary div { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px 10px; text-align: center; }
.summary b { display: block; font-size: 22px; font-weight: 800; }
.summary span { font-size: 12px; color: var(--text-2); }

.toast {
  position: fixed; z-index: 60; left: 50%; transform: translateX(-50%);
  top: calc(var(--safe-t) + 12px); background: var(--light); color: var(--on-light);
  padding: 12px 18px; border-radius: 16px; font-weight: 700; font-size: 15px; box-shadow: 0 8px 30px rgba(0,0,0,.5);
  max-width: calc(100% - 32px);
}
.empty { color: var(--text-2); text-align: center; padding: 26px 12px; font-weight: 400; }

@media (max-width: 360px) {
  .set-grid { grid-template-columns: 30px 1fr 1fr 48px 32px; gap: 6px; }
  .topbar h1 { font-size: 23px; }
}

/* ---------- v1.1: Marken, Bilder, Timer ---------- */
.ico-lg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: #fff; }
.ex-img { position: relative; overflow: hidden; width: 56px !important; height: 56px !important; border-radius: 14px !important; }
.ex-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.brand { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: 14px; padding: 0 6px 0 14px; height: 48px; margin: 4px 0 8px; position: relative; }
.brand-lbl { color: var(--text-2); font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; flex: none; }
.brand select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: var(--text);
  font: 600 16px "Montserrat", system-ui, sans-serif; height: 100%; padding: 0 30px 0 4px; text-align: right; text-align-last: right; outline: none; }
.brand::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(45deg); pointer-events: none; }
.last-info { color: var(--text-3); font-size: 13px; margin: 2px 4px 10px; font-weight: 500; }
.rest-hint { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 13px; padding: 0 6px; }
.rest-hint .ico { width: 16px; height: 16px; }
.ex-actions { align-items: center; }
.ex-actions .btn-small { flex: 0 0 auto; padding: 0 20px; }
.ex-actions .rest-hint { margin-left: auto; }
.rest-bar { height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; width: 100%; }
.rest-bar div { height: 100%; width: 100%; background: var(--grad); transition: width .25s linear; }
.rest { padding: 12px 12px 14px 18px !important; }
.seg { display: flex; gap: 6px; margin-top: 16px; background: var(--surface-2); padding: 4px; border-radius: 14px; }
.seg button { flex: 1; text-align: center; padding: 10px 0; border-radius: 11px; font-weight: 600; font-size: 15px; color: var(--text-2); }
.seg button.on { background: var(--light); color: var(--on-light); }
.badge-type { background: var(--surface-3); color: var(--text-2); }

/* ---------- v1.2: wischbarer Kalender ---------- */
.cal-date { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.today-link { color: var(--orange); font-weight: 700; font-size: 14px; padding: 4px 10px; border: 1px solid #3a2210; border-radius: 10px; background: #1a110a; }
.cal-strip {
  display: flex; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter);
  scroll-padding: 0 var(--gutter);
}
.cal-strip::-webkit-scrollbar { display: none; }
.cal-strip .day {
  flex: 0 0 calc((100vw - 2 * var(--gutter)) / 7); max-width: calc(688px / 7); scroll-snap-align: center;
  display: grid; justify-items: center; gap: 8px; padding: 2px 0 6px; text-align: center;
}
.cal-strip .wd { color: var(--text-2); font-size: 15px; font-weight: 400; }
.cal-strip .num { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; font-size: 19px; font-weight: 400; transition: background .15s, color .15s; }
.cal-strip .day.past .num { color: var(--text-2); }
.cal-strip .day.is-today .num { color: var(--orange); font-weight: 700; }
.cal-strip .day.sel .num { background: var(--light); color: var(--on-light); font-weight: 600; }
.cal-strip .marks { display: flex; height: 8px; }
.cal-strip .marks i { width: 9px; height: 8px; border-radius: 4px; }
.cal-strip .marks i + i { margin-left: -2px; }
.cal-strip .marks i.done { box-shadow: 0 0 0 1.5px #000, 0 0 0 3px currentColor; color: #fff; width: 8px; height: 8px; }

.done-card, .missed { display: flex; align-items: center; gap: 14px; text-align: left; }
.done-card .grow, .missed .grow { flex: 1; min-width: 0; }
.missed { opacity: .55; }

/* ---------- Uebungs-Kacheln (Bild oder Hantel-Platzhalter, immer quadratisch) ---------- */
.thumb {
  position: relative; flex: none; aspect-ratio: 1 / 1; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(145deg, #1d1d1d, #141414); border: 1px solid var(--border); color: #4a4a4a;
}
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.thumb .ph { width: 52%; height: 52%; }
.thumb-xs { width: 40px; border-radius: 11px; }
.thumb-sm { width: 64px; border-radius: 14px; }
.thumb-md { width: 56px; border-radius: 14px; }
.thumb-xl { width: 100%; max-width: 360px; margin: 0 auto; border-radius: 22px; }
.thumb-xl .ph { width: 34%; height: 34%; }
.plan-thumbs { display: flex; gap: 10px; overflow-x: auto; margin: 16px -18px 0; padding: 0 18px 2px; scrollbar-width: none; scroll-snap-type: x proximity; }
.plan-thumbs::-webkit-scrollbar { display: none; }
.plan-thumbs button { flex: none; width: 64px; display: grid; gap: 6px; scroll-snap-align: start; }
.plan-thumbs span { font-size: 10.5px; line-height: 1.2; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: center; }

.ex-title { flex: 1; min-width: 0; }
.ex-name { display: flex; align-items: flex-start; gap: 6px; }
.ex-name h3 { min-width: 0; }
.info-btn { flex: none; width: 32px; height: 32px; margin: -5px 0 0 -2px; display: grid; place-items: center; color: var(--text-2); border-radius: 10px; }
.info-btn:active { background: var(--surface-3); }
.ex-done { border-color: var(--accent-mid); }
.sync { color: var(--orange); font-size: 12px; font-weight: 600; }

/* ---------- Info-Sheet ---------- */
.info-label { color: var(--text-2); font-size: 12.5px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; margin: 20px 0 10px; }
.info-text { font-size: 16px; line-height: 1.55; font-weight: 400; color: #d8d8d8; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 12px; background: var(--surface-3); color: #d0d0d0; font-size: 14px; font-weight: 600; }
.chip-primary { background: var(--grad); color: #fff; }
.chip-accent { background: #3a2210; color: var(--orange); }
.hist { display: grid; gap: 8px; }
.hist div { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: 15px; }
.hist .muted { grid-column: 1; font-size: 13px; }
.hist b { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 17px; }
.info-loading { padding: 10px 0 30px; }
.trophy { font-size: 54px; margin: 6px 0 4px; }

/* ---------- Trainingsdetails ---------- */
.sess-table { display: grid; gap: 8px; }
.sess-ex { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.sess-ex .grow { flex: 1; min-width: 0; }
.sess-ex h4 { margin: 2px 0 6px; font-size: 15px; font-weight: 600; }
.sess-ex p { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.setpill { padding: 4px 9px; border-radius: 9px; background: var(--surface-3); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sess-ex .chip { padding: 4px 9px; font-size: 12px; background: #3a2210; color: var(--orange); }
.ex-pick button { gap: 12px; justify-content: flex-start; text-align: left; }
.ex-pick button .grow { display: grid; gap: 2px; }

/* ---------- Statistik ---------- */
.stat-sum { margin: 6px 0 4px; }
.chart .area { fill: url(#ag); stroke: none; }
.bars { height: 190px; }
.table-card { padding: 4px 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; color: var(--text-3); font-size: 11.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; padding: 10px 14px; }
.tbl td { padding: 13px 14px; border-top: 1px solid var(--border); white-space: nowrap; }
.tbl td.nm { white-space: normal; font-weight: 600; }
.tbl tr[data-session-detail] { cursor: pointer; }
.tbl tr[data-session-detail]:active td { background: var(--surface-2); }
.tbl th:last-child, .tbl td:last-child { text-align: right; }
.tbl .pos { color: var(--green); }
.tbl .neg { color: var(--danger); }

/* ---------- Pause-Timer: fixed, auch minimiert sichtbar ---------- */
.rest.low { bottom: calc(var(--tabbar-h) + var(--safe-b) + 88px); z-index: 16; }
.sheet-body { padding-bottom: calc(var(--safe-b) + 170px); }

/* ---------- v1.3: Uebungsbilder im MCI-Stil: direkt auf der Karte, ohne Rahmen ---------- */
.thumb:has(img) { border-color: transparent; background: var(--surface); }
.thumb-xl:has(img) { background: #111111; }
.plan-thumbs { gap: 4px; margin-top: 10px; }
.plan-thumbs button { width: 84px; }
.plan-thumbs .thumb-sm { width: 84px; border-radius: 12px; }
.plan-thumbs span { display: none; }
.thumb-md { width: 64px; }
.thumb:has(img) { border: 0; border-radius: 0; }

/* ---------- v1.4: Auswahl, eigene Uebungen, Plan-Editor ---------- */
.search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; margin: 6px 0 12px;
  border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text-2); }
.search input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: none; color: var(--text);
  font: 500 17px "Montserrat", system-ui, sans-serif; -webkit-appearance: none; }
.filter-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 6px; padding: 0 var(--gutter) 4px; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chips button { flex: none; padding: 9px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-2); font-weight: 600; font-size: 14px; }
.filter-chips button.on { background: var(--light); color: var(--on-light); border-color: var(--light); }
.ex-pick button small { display: block; margin-top: 2px; font-size: 13px; }
.sel, .field textarea { width: 100%; min-height: 54px; border-radius: 16px; border: 1px solid var(--border-2); background: var(--surface-2);
  color: var(--text); padding: 0 14px; font: 500 17px "Montserrat", system-ui, sans-serif; -webkit-appearance: none; appearance: none; }
.field textarea { padding: 14px; resize: vertical; }
.edit-btn { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--text-2); background: var(--surface-2); margin-left: 4px; }
.edit-btn:active { background: var(--surface-3); }
.plan-head { gap: 12px; }
.wd-pick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wd-pick button { height: 46px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-weight: 700; text-align: center; }
.wd-pick button.on { background: var(--grad); color: #fff; border-color: transparent; }
.seg-scroll { overflow-x: auto; scrollbar-width: none; }
.seg-scroll::-webkit-scrollbar { display: none; }
.seg-scroll button { flex: 1 0 auto; padding: 10px 14px; }
.ed-list { display: grid; gap: 10px; margin: 16px 0 12px; }
.ed-row { padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.ed-top { display: flex; align-items: center; gap: 12px; }
.ed-top b { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; }
.ed-btns { display: flex; gap: 4px; flex: none; }
.ed-btns button { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-3); color: var(--text); font-size: 15px; display: grid; place-items: center; }
.ed-btns button:disabled { opacity: .3; }
.ed-btns [data-ed-rm] { color: var(--danger); }
.ed-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.ed-nums label { display: grid; gap: 4px; text-align: center; }
.ed-nums input { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text);
  text-align: center; font: 600 17px "Montserrat", system-ui, sans-serif; -webkit-appearance: none; }
.ed-nums input:focus { outline: none; border-color: var(--orange); }
.ed-nums span { font-size: 11px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.danger-text { color: var(--danger) !important; }
.info-label .muted { text-transform: none; letter-spacing: 0; font-weight: 400; }

/* ---------- v1.5: KI Coach ---------- */
.ai-cta { display: flex; align-items: center; gap: 14px; margin-top: 12px; text-align: left;
  border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
.ai-cta .grow { flex: 1; display: grid; gap: 3px; }
.ai-cta b { font-size: 17px; font-weight: 700; }
.ai-cta small { color: var(--text-2); font-size: 13.5px; font-weight: 400; }
.ai-spark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: #2a1a0e; flex: none; }
.coach { position: fixed; z-index: 32; left: 0; right: 0; top: 0; height: 100dvh; background: var(--bg); display: flex; flex-direction: column; animation: up .22s ease-out; }
.coach-head { display: flex; align-items: center; gap: 12px; padding: calc(var(--safe-t) + 10px) var(--gutter) 12px; border-bottom: 1px solid var(--border); }
.coach-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); font-size: 18px; flex: none; }
.coach-title { flex: 1; min-width: 0; }
.coach-title h2 { font-size: 18px; font-weight: 700; }
.coach-title p { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coach-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px var(--gutter) 8px; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; flex-direction: column; max-width: 86%; }
.msg.ai { align-self: flex-start; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.bubble { padding: 11px 15px; border-radius: 20px; font-size: 16px; line-height: 1.45; font-weight: 400; -webkit-user-select: text; user-select: text; word-wrap: break-word; }
.msg.ai .bubble { background: var(--surface-2); border-bottom-left-radius: 6px; }
.msg.me .bubble { background: var(--grad); color: #fff; border-bottom-right-radius: 6px; font-weight: 500; }
.msg.err .bubble { background: #2a1212; color: #ffb4ad; }
.bubble b { font-weight: 700; }
.bubble .li { display: block; padding-left: 14px; position: relative; }
.bubble .li::before { content: "•"; position: absolute; left: 2px; color: var(--orange); }
.typing { display: flex; gap: 5px; padding: 15px 16px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-2); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.plan-made { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--accent-mid); min-width: 260px; }
.plan-made .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.plan-made b { font-size: 15px; }
.plan-made .muted { font-size: 13px; }
.coach-chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px var(--gutter) 6px; scrollbar-width: none; flex-wrap: wrap; }
.coach-chips::-webkit-scrollbar { display: none; }
.coach-chips button { flex: none; padding: 11px 16px; border-radius: 18px; border: 1.5px solid var(--border-2); background: var(--surface); font-weight: 600; font-size: 15px; }
.coach-chips button:active { background: var(--surface-3); }
.composer { display: flex; align-items: flex-end; gap: 10px; padding: 8px var(--gutter) calc(var(--safe-b) + 10px); border-top: 1px solid var(--border); background: var(--bg); }
.coach.kb .composer { padding-bottom: 10px; }
.composer textarea { flex: 1; min-height: 46px; max-height: 140px; resize: none; padding: 12px 16px; border-radius: 23px; border: 1px solid var(--border-2);
  background: var(--surface-2); color: var(--text); font: 400 16px/1.35 "Montserrat", system-ui, sans-serif; outline: none; -webkit-appearance: none; }
.composer textarea:focus { border-color: var(--orange); }
.composer button { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; }
.plan.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 2px var(--orange); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- v2.0: Profil-Themes (Benutzer 1 = Orange, Sabrina = Violett) ---------- */
:root { --accent-soft: rgba(240,128,60,.10); --accent-mid: rgba(240,128,60,.40); }
:root[data-user="sabrina"] {
  --orange: #8b5cf6; --orange-2: #a78bfa; --grad: linear-gradient(90deg, #a78bfa 0%, #6d5bf6 100%);
  --accent-soft: rgba(139,92,246,.14); --accent-mid: rgba(139,92,246,.45); --purple: #f0803c;
}
:root[data-user="sabrina"] .topbar-glow { background: radial-gradient(120% 140% at 30% -20%, rgba(139,92,246,.85) 0%, rgba(70,40,140,.55) 45%, rgba(0,0,0,0) 80%), var(--bg); }
:root[data-user="sabrina"] .view-stats .tabs { background: linear-gradient(180deg, rgba(45,25,90,.55), rgba(0,0,0,0)); }
:root[data-user="sabrina"] .ai-spark { background: #1d1636; }
.profile-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--border-2); font-weight: 700; font-size: 14px; }
.pf-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 14px; flex: none; }
.pf-dot.big { width: 40px; height: 40px; font-size: 17px; }
.profile-opt { display: flex !important; align-items: center; gap: 14px; }
.profile-opt.on { border-color: var(--pc) !important; }
.export-btn { margin: 4px 0 6px; text-decoration: none; }
a.btn { text-decoration: none; }
.offline-badge { position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); top: calc(var(--safe-t) + 6px); padding: 6px 12px;
  border-radius: 12px; background: #3a2a10; color: #ffcf8a; font-size: 12.5px; font-weight: 700; }
.sheet-body, .coach-body, .bsheet { overscroll-behavior: contain; }
/* Padel */
.padel-sum { grid-template-columns: repeat(4, 1fr); margin-top: 8px; }
.padel-sum b { font-size: 20px; }
.match { display: flex; align-items: flex-start; gap: 14px; }
.match .grow { flex: 1; min-width: 0; }
.match h3 { font-size: 16px; }
.match p { font-size: 14px; margin-top: 2px; }
.match .score { font-weight: 800; font-size: 17px; letter-spacing: .5px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.res { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; flex: none; }
.res.w { background: rgba(76,194,74,.18); color: var(--green); }
.res.l { background: rgba(255,90,79,.15); color: var(--danger); }
.res.t { background: var(--surface-3); color: var(--text-2); }
.match .del { width: 32px; height: 32px; border-radius: 10px; color: var(--text-3); flex: none; }
input[type="date"] { color-scheme: dark; }
.form-card { min-width: 0; }
.form-card > *, .form-card .field, .form-card .grid2 > * { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; box-sizing: border-box; min-width: 0; max-width: 100%; }
input[type="date"] { -webkit-appearance: none; appearance: none; display: block; text-align: left; }

/* ---------- v2.1: Geraete-Auswahl ---------- */
.machine-btn { width: 100%; text-align: left; height: auto; min-height: 52px; padding: 8px 40px 8px 14px; }
.machine-val { flex: 1; min-width: 0; display: grid; text-align: right; font-size: 15px; line-height: 1.25; }
.machine-val b { font-weight: 700; }
.machine-val small { color: var(--text-2); font-size: 12px; font-weight: 500; }
.ex-pick button.sel { border-color: var(--orange); }
.filter-chips small { opacity: .6; font-weight: 500; margin-left: 3px; }

/* ---------- v2.2: Ziel / RIR / Gewichtsrechner ---------- */
.target-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: -4px 4px 10px; }
.target-info { flex: 1 0 auto; font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; }
.target-info i { color: var(--text-3); font-style: normal; margin: 0 7px; font-weight: 400; }
.target-info .rir { color: var(--orange); }
.calc-btn { flex: none; margin-left: auto; padding: 7px 11px; border-radius: 12px; background: var(--surface-3); font-size: 13px; font-weight: 700; white-space: nowrap; }
.calc-btn:active { transform: scale(.97); }
.rir-row { display: flex; gap: 6px; align-items: center; margin-top: 10px; }
.rir-row button { flex: 1; min-width: 0; height: 36px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-2);
  font-weight: 700; font-size: 15px; color: var(--text-2); display: grid; place-items: center; text-align: center; padding: 0; }
.rir-row button.on { background: var(--orange); border-color: var(--orange); color: #111; }
.rir-lbl { flex: none; width: 40px; font-size: 11px; color: var(--text-3); font-weight: 700; letter-spacing: .4px; }
.ed-hint { font-size: 12px; color: var(--text-3); margin: 8px 2px 0; line-height: 1.4; }
.ed-reset { color: var(--orange); font-weight: 700; font-size: 12px; padding: 2px 4px; }
.calc-nums { grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
.calc-opt { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; margin: 14px 2px 0; font-size: 14px; font-weight: 600; }
.calc-opt input { accent-color: var(--orange); width: 18px; height: 18px; transform: translateY(3px); }
.calc-opt small { flex-basis: 100%; padding-left: 26px; color: var(--text-3); font-weight: 500; font-size: 12px; }
.calc-step { margin-top: 14px; }
.calc-step button { font-size: 13px; }
.calc-result { margin: 16px 0; padding: 16px; border-radius: 16px; background: var(--surface-2); font-size: 16px; line-height: 1.5; display: grid; gap: 6px; }
.calc-result b.kg { color: var(--orange); font-size: 24px; }
.calc-result .formula { color: var(--text-3); font-size: 12px; }
.calc-result .calc-warn { color: var(--orange-2); font-size: 13px; }

/* ---------- v2.4.1: Satz streichen ---------- */
.set-del { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; justify-self: center;
  background: rgba(255,90,79,.14); color: var(--danger); font-size: 15px; font-weight: 800; line-height: 1; }
.set-del:active { transform: scale(.92); background: rgba(255,90,79,.3); }
.set-row.done .set-del { background: transparent; color: var(--text-3); }

/* ---------- v2.4: Trainings-Log (Notizen, Bugs, Auto-Anpassungen) ---------- */
.notes { display: grid; gap: 6px; margin-top: 10px; }
.note { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.4; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); font-weight: 500; overflow-wrap: anywhere; }
.note .grow { flex: 1; min-width: 0; }
.note-auto { color: var(--text-2); font-size: 12.5px; background: transparent; padding: 2px 4px; }
.note-bug { background: rgba(255,90,79,.12); }
.note-last { color: var(--text-2); margin: -2px 0 10px; font-size: 13px; }
.note-del { flex: none; color: var(--text-3); padding: 0 4px; }
.sess-notes { margin-top: 12px; }
.sess-notes h3 { font-size: 16px; margin-bottom: 4px; }
.ex-actions { gap: 8px; flex-wrap: wrap; }

/* ---------- v2.3: Geplante Matches (Kalender) + WhatsApp-Export ---------- */
.pm-head { display: flex; gap: 8px; align-items: center; }
.pm-head .sel { flex: 1; min-width: 0; font-size: 16px; }
.pm-reload { flex: none; width: 54px; height: 54px; border-radius: 16px; font-size: 22px; color: var(--text-2); }
.pm-list { display: grid; gap: 10px; margin-top: 14px; }
.pm-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.pm-row .grow { flex: 1; min-width: 0; }
.pm-row h3 { font-size: 16px; font-variant-numeric: tabular-nums; }
.pm-link { display: inline-block; margin-top: 8px; padding: 7px 12px; border-radius: 999px; background: var(--surface-3, #2a2a2a); color: inherit; font-weight: 700; font-size: 14px; text-decoration: none; }
.pm-row p { font-size: 14px; margin-top: 3px; overflow-wrap: anywhere; }
.pm-day { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-content: center; text-align: center;
  background: rgba(217,154,43,.16); color: var(--orange-2); line-height: 1.1; }
.pm-day b { font-size: 17px; font-weight: 800; }
.pm-day span { font-size: 12px; font-weight: 700; }
.pm-title { color: var(--text-3); }
.pm-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.planned-card .empty { padding: 20px 8px 6px; }
.btn-wa { margin-top: 16px; min-height: 64px; background: #25d366; color: #062e16; font-size: 19px; font-weight: 800; }
.btn-wa:disabled { background: var(--surface-3); color: var(--text-3); }
.cal-link { display: grid; gap: 10px; margin: 14px 0 6px; padding: 16px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); }
.cal-link .ed-hint { margin: 0 2px; }
.pm-loading { display: flex; align-items: center; gap: 10px; color: var(--text-2); margin-top: 14px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--surface-3); border-top-color: var(--orange-2); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- v2.6: Test-Profil "Demo" = Gruen ---------- */
:root[data-user="demo"] {
  --orange: #22c55e; --orange-2: #4ade80; --grad: linear-gradient(90deg, #4ade80 0%, #16a34a 100%);
  --accent-soft: rgba(34,197,94,.13); --accent-mid: rgba(34,197,94,.42);
}
:root[data-user="demo"] .topbar-glow { background: radial-gradient(120% 140% at 30% -20%, rgba(34,197,94,.75) 0%, rgba(20,90,45,.5) 45%, rgba(0,0,0,0) 80%), var(--bg); }
:root[data-user="demo"] .view-stats .tabs { background: linear-gradient(180deg, rgba(15,70,35,.55), rgba(0,0,0,0)); }
