/* Hantelhelden – Beton, Gusseisen und die Farben der Wettkampfscheiben */
:root {
	--hh-bg: #E4E7EA;          /* Beton */
	--hh-surface: #F7F8F9;     /* Kreide */
	--hh-sunken: #D7DBDF;
	--hh-line: #C4CAD0;
	--hh-ink: #1B2129;         /* Gusseisen */
	--hh-muted: #5E6873;
	--hh-on-ink: #F7F8F9;
	--hh-red: #D3362D;         /* 25 kg */
	--hh-blue: #1F5BD8;        /* 20 kg */
	--hh-yellow: #EDB10C;      /* 15 kg */
	--hh-green: #2C9A4E;       /* 10 kg */
	--hh-focus: #1F5BD8;
	--hh-display: "DIN Condensed", "Bahnschrift SemiBold Condensed", "Bahnschrift", "Roboto Condensed", sans-serif-condensed, "Arial Narrow", sans-serif;
	--hh-text: "Bahnschrift", "DIN Alternate", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
	:root {
		--hh-bg: #14181F;
		--hh-surface: #1E242D;
		--hh-sunken: #0F1217;
		--hh-line: #323A45;
		--hh-ink: #EEF1F4;
		--hh-muted: #9AA4AF;
		--hh-on-ink: #14181F;
		--hh-blue: #4C80F0;
		--hh-focus: #6E97F3;
	}
}

html:has(body.hh-body) { background: var(--hh-bg); height: 100%; }
body.hh-body { margin: 0; min-height: 100%; background: var(--hh-bg); }

.hh-app, .hh-app *, .hh-toast { box-sizing: border-box; }
.hh-app {
	--plate: var(--hh-ink);
	max-width: 560px;
	margin: 0 auto;
	padding: 0 18px;
	color: var(--hh-ink);
	background: var(--hh-bg);
	font-family: var(--hh-text);
	font-size: 16px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}
:where(.hh-app) :where(h1, h2, h3, p) { margin: 0; color: inherit; }
:where(.hh-app) :where(button) { font: inherit; color: inherit; letter-spacing: normal; text-transform: none; box-shadow: none; }
.hh-app :focus-visible { outline: 3px solid var(--hh-focus); outline-offset: 2px; }

/* ---------- Die Scheiben-Leiste: das eine Markenelement ---------- */
.hh-plates { display: flex; gap: 5px; height: 10px; }
.hh-plates i { flex: 1; border-radius: 3px; }
.hh-plates i:nth-child(1) { background: var(--hh-red); flex: 2.5; }
.hh-plates i:nth-child(2) { background: var(--hh-blue); flex: 2; }
.hh-plates i:nth-child(3) { background: var(--hh-yellow); flex: 1.5; }
.hh-plates i:nth-child(4) { background: var(--hh-green); flex: 1; }

/* ---------- Anmeldung ---------- */
.hh-auth {
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: calc(28px + env(safe-area-inset-top, 0px)) 0 calc(28px + env(safe-area-inset-bottom, 0px));
}
.hh-wordmark {
	font-family: var(--hh-display);
	font-weight: 700;
	font-stretch: condensed;
	text-transform: uppercase;
	font-size: clamp(64px, 21vw, 104px);
	line-height: .82;
	letter-spacing: -.005em;
	margin: 0 0 16px;
}
.hh-wordmark span { display: block; }
.hh-brand .hh-plates { max-width: 260px; margin-bottom: 18px; }
.hh-tagline { color: var(--hh-muted); font-size: 17px; max-width: 30ch; margin-bottom: 28px; }

.hh-card {
	background: var(--hh-surface);
	border: 1px solid var(--hh-line);
	border-radius: 22px;
	padding: 20px;
}
.hh-card + .hh-card { margin-top: 14px; }

.hh-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	padding: 4px;
	margin-bottom: 20px;
	background: var(--hh-sunken);
	border-radius: 999px;
}
.hh-tabs button {
	border: 0;
	background: transparent;
	min-height: 42px;
	border-radius: 999px;
	font-weight: 600;
	color: var(--hh-muted);
	cursor: pointer;
}
.hh-tabs button.is-active { background: var(--hh-surface); color: var(--hh-ink); }

.hh-lead { font-family: var(--hh-display); font-size: 30px; line-height: 1; text-transform: uppercase; margin-bottom: 8px !important; }
.hh-sub { color: var(--hh-muted); margin-bottom: 18px !important; }

/* ---------- Formulare ---------- */
.hh-field { display: grid; gap: 6px; margin-bottom: 14px; }
.hh-field > label { font-size: 14px; font-weight: 600; color: var(--hh-muted); }
.hh-input, .hh-app select.hh-input {
	width: 100%;
	height: 52px;
	padding: 0 14px;
	font: inherit;
	font-size: 17px;
	color: var(--hh-ink);
	background: var(--hh-bg);
	border: 1.5px solid var(--hh-line);
	border-radius: 12px;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none;
	margin: 0;
}
.hh-input:focus { border-color: var(--hh-focus); outline: none; }
.hh-pw { position: relative; }
.hh-pw .hh-input { padding-right: 52px; }
.hh-pw-toggle {
	position: absolute; right: 4px; top: 4px;
	width: 44px; height: 44px;
	display: grid; place-items: center;
	border: 0; background: transparent; border-radius: 10px;
	color: var(--hh-muted); cursor: pointer;
}
.hh-pw-toggle[aria-pressed="true"] { color: var(--hh-ink); }
.hh-hint { font-size: 13px; color: var(--hh-muted); }
.hh-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }

.hh-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: 15px; cursor: pointer; }
.hh-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--hh-ink); flex: none; }
.hh-check a { color: inherit; text-decoration: underline; }

.hh-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; border: 0; padding: 0; }
.hh-choice legend { font-size: 14px; font-weight: 600; color: var(--hh-muted); margin-bottom: 6px; padding: 0; }
.hh-opt { position: relative; cursor: pointer; }
.hh-opt input { position: absolute; opacity: 0; pointer-events: none; }
.hh-opt span {
	display: block; height: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--hh-line);
	border-radius: 14px;
	background: var(--hh-bg);
}
.hh-opt strong { display: block; font-size: 16px; }
.hh-opt small { color: var(--hh-muted); font-size: 13px; line-height: 1.3; display: block; margin-top: 2px; }
.hh-opt input:checked + span { border-color: var(--hh-ink); box-shadow: inset 0 0 0 1px var(--hh-ink); }
.hh-opt input:focus-visible + span { outline: 3px solid var(--hh-focus); outline-offset: 2px; }

.hh-btn {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	width: 100%; min-height: 54px; padding: 0 22px;
	border: 0; border-radius: 999px;
	font-weight: 700; font-size: 17px;
	cursor: pointer; text-decoration: none;
}
.hh-btn-primary { background: var(--hh-ink); color: var(--hh-on-ink); }
.hh-btn-quiet { background: transparent; border: 1.5px solid var(--hh-line); color: var(--hh-ink); }
.hh-btn[disabled] { opacity: .6; cursor: progress; }
.hh-btn.is-busy::after {
	content: ""; width: 16px; height: 16px; border-radius: 50%;
	border: 2px solid currentColor; border-right-color: transparent;
	animation: hh-spin .7s linear infinite;
}
@keyframes hh-spin { to { transform: rotate(360deg); } }
.hh-link {
	display: block; margin: 14px auto 0; padding: 8px;
	border: 0; background: none; color: var(--hh-muted);
	font-size: 15px; text-decoration: underline; cursor: pointer;
}
.hh-form-error {
	margin: 0 0 14px !important; padding: 10px 12px;
	border-left: 4px solid var(--hh-red);
	background: color-mix(in srgb, var(--hh-red) 10%, transparent);
	border-radius: 6px; font-size: 15px;
}
.hh-form-error[hidden] { display: none; }

/* ---------- App-Rahmen ---------- */
.hh-shell { min-height: 100vh; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.hh-top {
	display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
	padding: calc(22px + env(safe-area-inset-top, 0px)) 0 18px;
}
.hh-date { color: var(--hh-muted); font-size: 15px; }
.hh-hello {
	font-family: var(--hh-display);
	font-size: clamp(36px, 10vw, 46px);
	line-height: .9;
	text-transform: uppercase;
	margin-top: 4px !important;
	overflow-wrap: anywhere;
}
.hh-view-plate { height: 6px; width: 72px; border-radius: 3px; background: var(--plate); margin-bottom: 16px; }

.hh-nav {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
	background: color-mix(in srgb, var(--hh-surface) 94%, transparent);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border-top: 1px solid var(--hh-line);
	padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
}
.hh-nav-inner { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(var(--n), 1fr); }
.hh-nav button {
	position: relative;
	display: flex; flex-direction: column; align-items: center; gap: 3px;
	min-height: 56px; padding: 8px 2px 4px;
	border: 0; background: none; cursor: pointer;
	color: var(--hh-muted); font-size: 12px; font-weight: 600;
}
.hh-nav button::before {
	content: ""; position: absolute; top: 0; left: 30%; right: 30%;
	height: 4px; border-radius: 0 0 3px 3px;
	background: var(--plate); transform: scaleX(0); transition: transform .18s ease;
}
.hh-nav button.is-active { color: var(--hh-ink); }
.hh-nav button.is-active::before { transform: scaleX(1); }

.hh-p-red { --plate: var(--hh-red); }
.hh-p-blue { --plate: var(--hh-blue); }
.hh-p-yellow { --plate: var(--hh-yellow); }
.hh-p-green { --plate: var(--hh-green); }
.hh-p-ink { --plate: var(--hh-ink); }

/* ---------- Leere Zustände (Bereiche kommen in den nächsten Meilensteinen) ---------- */
.hh-empty h2 { font-family: var(--hh-display); font-size: 30px; line-height: 1; text-transform: uppercase; margin-bottom: 10px; }
.hh-empty p { color: var(--hh-muted); max-width: 42ch; }
.hh-empty ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.hh-empty li { display: flex; gap: 10px; align-items: flex-start; }
.hh-empty li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--plate); }
.hh-soon { display: inline-block; margin-top: 18px; padding: 6px 12px; border-radius: 999px; background: var(--hh-sunken); font-size: 13px; font-weight: 600; color: var(--hh-muted); }

/* ---------- Profil ---------- */
.hh-me { display: flex; gap: 16px; align-items: center; }
.hh-avatar {
	flex: none; width: 64px; height: 64px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--hh-ink); color: var(--hh-on-ink);
	font-family: var(--hh-display); font-size: 28px; text-transform: uppercase;
	box-shadow: 0 0 0 5px var(--hh-surface), 0 0 0 9px var(--plate);
	margin: 4px;
}
.hh-me h2 { font-size: 21px; line-height: 1.2; overflow-wrap: anywhere; }
.hh-me p { color: var(--hh-muted); font-size: 15px; overflow-wrap: anywhere; }
.hh-role { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1.5px solid var(--hh-line); }
.hh-h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px !important; }
.hh-muted { color: var(--hh-muted); }
.hh-small { font-size: 13px; color: var(--hh-muted); }
.hh-code {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	margin: 14px 0 10px; padding: 8px 8px 8px 16px;
	background: var(--hh-bg); border: 1.5px dashed var(--hh-line); border-radius: 14px;
}
.hh-code b { font-family: var(--hh-display); font-size: 32px; letter-spacing: .12em; font-weight: 700; }
.hh-icon-btn {
	width: 46px; height: 46px; flex: none;
	display: grid; place-items: center;
	border: 0; border-radius: 12px; background: var(--hh-surface); cursor: pointer;
}
.hh-logout { margin-top: 22px; }
.hh-version { text-align: center; margin: 18px 0 8px !important; }

/* ---------- Hinweis-Toast ---------- */
.hh-toast {
	position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 100;
	transform: translate(-50%, 12px); opacity: 0;
	max-width: calc(100% - 36px); padding: 12px 18px; border-radius: 14px;
	background: var(--hh-ink); color: var(--hh-on-ink);
	font-family: var(--hh-text); font-size: 15px; font-weight: 600;
	transition: opacity .2s ease, transform .2s ease; pointer-events: none;
}
.hh-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.hh-toast.is-error { background: var(--hh-red); color: #fff; }

@media (prefers-reduced-motion: reduce) {
	.hh-app *, .hh-toast { transition: none !important; animation-duration: 0s !important; }
}

/* ================= M2: Übungsbibliothek ================= */
.hh-mt { margin-top: 16px; }
.hh-label { font-size: 14px; font-weight: 600; color: var(--hh-muted); }
.hh-textarea { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.45; resize: vertical; }
.hh-textbtn { border: 0; background: none; padding: 8px 4px; font-size: 15px; font-weight: 600; color: var(--hh-ink); text-decoration: underline; cursor: pointer; }

.hh-toolbar { display: grid; gap: 12px; margin-bottom: 18px; }
.hh-toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hh-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 18px 4px; margin: 0 -18px; scrollbar-width: none; }
.hh-chips::-webkit-scrollbar { display: none; }
.hh-chips-wrap { flex-wrap: wrap; overflow: visible; padding: 0; margin: 4px 0 0; }
.hh-chip {
	flex: none; display: inline-flex; align-items: center;
	min-height: 38px; padding: 0 14px;
	border: 1.5px solid var(--hh-line); border-radius: 999px;
	background: var(--hh-surface); color: var(--hh-ink);
	font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.hh-chip.is-on { background: var(--hh-ink); border-color: var(--hh-ink); color: var(--hh-on-ink); }
.hh-chip-check { position: relative; padding: 0; border: 0; background: none; }
.hh-chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.hh-chip-check span {
	display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px;
	border: 1.5px solid var(--hh-line); border-radius: 999px; background: var(--hh-bg);
}
.hh-chip-check input:checked + span { background: var(--hh-ink); border-color: var(--hh-ink); color: var(--hh-on-ink); }
.hh-chip-check input:focus-visible + span { outline: 3px solid var(--hh-focus); outline-offset: 2px; }

.hh-switch { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.hh-switch input {
	-webkit-appearance: none; appearance: none; margin: 0;
	width: 44px; height: 26px; border-radius: 999px; background: var(--hh-line);
	position: relative; cursor: pointer; flex: none; transition: background .15s ease;
}
.hh-switch input::after {
	content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
	border-radius: 50%; background: var(--hh-surface); transition: transform .15s ease;
}
.hh-switch input:checked { background: var(--hh-green); }
.hh-switch input:checked::after { transform: translateX(18px); }

.hh-group { margin-bottom: 22px; }
.hh-group-title { font-family: var(--hh-display); font-size: 24px; text-transform: uppercase; line-height: 1; margin-bottom: 10px !important; display: flex; align-items: baseline; gap: 8px; }
.hh-group-title span { font-family: var(--hh-text); font-size: 14px; color: var(--hh-muted); font-weight: 600; }
.hh-list { background: var(--hh-surface); border: 1px solid var(--hh-line); border-radius: 18px; overflow: hidden; }
.hh-ex-row {
	display: flex; align-items: center; gap: 14px; width: 100%;
	padding: 10px 14px; border: 0; border-bottom: 1px solid var(--hh-line);
	background: none; text-align: left; cursor: pointer;
}
.hh-ex-row:last-child { border-bottom: 0; }
.hh-ex-row:active { background: var(--hh-sunken); }
.hh-thumb { flex: none; width: 58px; height: 58px; border-radius: 12px; background: var(--hh-bg); overflow: hidden; display: grid; place-items: center; }
.hh-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hh-thumb-lg { width: 96px; height: 96px; }
.hh-ex-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.hh-ex-text strong { font-size: 16px; line-height: 1.25; }
.hh-ex-text small { font-size: 13px; color: var(--hh-muted); }
.hh-tag { flex: none; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--hh-yellow); color: #231a00; }
.hh-center-card { text-align: center; }

/* Strichfigur */
.hh-fig { width: 100%; height: 100%; display: block; }
.hh-fig .hf-ground { stroke: var(--hh-line); stroke-width: 2; }
.hh-fig .hf-body, .hh-fig .hf-back { fill: none; stroke: var(--hh-ink); stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; }
.hh-fig .hf-back { opacity: .35; }
.hh-fig .hf-head { fill: var(--hh-ink); }
.hh-fig .hf-eq { fill: var(--hh-muted); }
.hh-fig .hf-eqs { stroke: var(--hh-muted); stroke-width: 3; stroke-linecap: round; }
.hh-fig .hf-cable { stroke: var(--hh-muted); stroke-width: 1.5; stroke-dasharray: 3 3; }
.hh-fig .hf-plate { fill: var(--hh-red); }
.hh-fig .hf-hole { fill: var(--hh-bg); }
.hh-fig .hf-db { fill: var(--hh-blue); }
.hh-fig .hf-kb { fill: var(--hh-yellow); }
.hh-thumb .hh-fig { width: 88%; height: 88%; }

/* Detail */
.hh-back { border: 0; background: none; padding: 6px 0; margin-bottom: 10px; font-size: 16px; font-weight: 600; color: var(--hh-muted); cursor: pointer; }
.hh-ex-media { padding: 12px; display: grid; gap: 12px; }
.hh-fig-lg { max-height: 300px; aspect-ratio: 1; margin: 0 auto; background: var(--hh-bg); border-radius: 14px; }
.hh-photo { width: 100%; max-height: 360px; object-fit: cover; border-radius: 14px; display: block; }
.hh-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--hh-sunken); border-radius: 999px; }
.hh-seg button { border: 0; background: none; min-height: 38px; border-radius: 999px; font-weight: 600; color: var(--hh-muted); cursor: pointer; }
.hh-seg button.is-on { background: var(--hh-surface); color: var(--hh-ink); }
.hh-ex-title { font-family: var(--hh-display); font-size: clamp(32px, 9vw, 42px); line-height: .95; text-transform: uppercase; margin: 20px 0 10px !important; overflow-wrap: anywhere; }
.hh-facts { display: grid; gap: 4px; margin-bottom: 16px; font-size: 16px; }
.hh-steps { margin: 8px 0 0; padding-left: 1.4em; display: grid; gap: 10px; }
.hh-steps li { padding-left: 4px; }
.hh-steps li::marker { font-family: var(--hh-display); font-size: 20px; color: var(--plate); }
.hh-tip { margin-top: 16px !important; padding: 12px 14px; border-radius: 12px; background: var(--hh-bg); border-left: 4px solid var(--hh-yellow); border-top-left-radius: 0; border-bottom-left-radius: 0; }
.hh-actions { display: grid; gap: 10px; justify-items: center; }
.hh-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.hh-file { position: relative; overflow: hidden; }
.hh-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.hh-file:focus-within { outline: 3px solid var(--hh-focus); outline-offset: 2px; }
.hh-btn-danger { background: transparent; border: 1.5px solid var(--hh-red); color: var(--hh-red); }
.hh-pattern-pick { display: flex; gap: 12px; align-items: center; }
.hh-pattern-pick select { flex: 1; }

/* ================= M3: Trainingspläne ================= */
.hh-mb { margin-bottom: 16px; }
.hh-app button.hh-card { display: grid; gap: 4px; width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--hh-ink); }
.hh-plan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hh-plan-top strong { font-size: 18px; }
.hh-plan-card small, .hh-tpl small { color: var(--hh-muted); font-size: 14px; }
.hh-plan-card.is-active { border-color: var(--hh-green); box-shadow: inset 4px 0 0 var(--hh-green); }
.hh-plan-days { letter-spacing: .08em; }
.hh-tag-green { background: var(--hh-green); color: #fff; }
.hh-tpl-n { font-family: var(--hh-display); font-size: 28px; line-height: 1; color: var(--plate); }
.hh-tpl-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.hh-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.hh-dot-green { background: var(--hh-green); }
.hh-dot-yellow { background: var(--hh-yellow); }

.hh-goals { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.hh-goals legend { margin-bottom: 6px; padding: 0; }
.hh-wdpick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 4px; }
.hh-wdpick .hh-chip-check span { justify-content: center; width: 100%; padding: 0; min-height: 46px; border-radius: 12px; font-weight: 700; }

.hh-day { padding: 14px; }
.hh-day-head { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 12px; }
.hh-day-name { font-family: var(--hh-display); font-size: 22px; text-transform: uppercase; height: 46px; }
.hh-day-wd { width: auto; height: 46px; font-size: 15px; padding-right: 10px; }
.hh-day-tools, .hh-item-tools { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; }
.hh-textbtn[disabled] { opacity: .35; cursor: default; }
.hh-danger-text { color: var(--hh-red) !important; }
.hh-chev { flex: none; width: 28px; text-align: center; font-size: 22px; color: var(--hh-muted); }
.hh-item { border-bottom: 1px solid var(--hh-line); }
.hh-item:last-child { border-bottom: 0; }
.hh-item .hh-ex-row { border-bottom: 0; }
.hh-item.is-open { background: var(--hh-bg); }
.hh-item-edit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 14px 12px; }
.hh-item-edit .hh-item-tools { grid-column: 1 / -1; }
.hh-num { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--hh-muted); }
.hh-num .hh-input { height: 46px; padding: 0 8px; text-align: center; font-size: 18px; font-weight: 700; }

.hh-vol { display: grid; gap: 8px; margin-top: 12px; }
.hh-vol-row { display: grid; grid-template-columns: 8.5em 1fr 2.5em; align-items: center; gap: 10px; font-size: 14px; }
.hh-vol-row em { font-style: normal; font-weight: 700; text-align: right; }
.hh-vol-bar { position: relative; height: 10px; border-radius: 5px; background: var(--hh-sunken); overflow: hidden; }
.hh-vol-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; }
/* markiert den empfohlenen Bereich 10–20 Sätze (bei Skala bis 24) */
.hh-vol-bar b { position: absolute; top: 0; bottom: 0; left: 41.67%; width: 41.67%; border-left: 2px solid var(--hh-muted); border-right: 2px solid var(--hh-muted); opacity: .5; }
.is-low { background: var(--hh-yellow); }
.is-ok { background: var(--hh-green); }
.is-high { background: var(--hh-red); }
.hh-vol-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 12px !important; }
.hh-vol-legend span { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: -4px; }

.hh-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 10px; }
.hh-wd { display: grid; justify-items: center; gap: 6px; padding: 8px 0; border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--hh-muted); }
.hh-wd i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--hh-line); }
.hh-wd.is-train i { background: var(--plate); border-color: var(--plate); }
.hh-wd.is-today { background: var(--hh-ink); color: var(--hh-on-ink); }
.hh-wd.is-today i { border-color: var(--hh-on-ink); }
.hh-today { margin: 22px 0 12px; }
.hh-today-title { font-family: var(--hh-display); font-size: clamp(38px, 11vw, 52px); line-height: .9; text-transform: uppercase; overflow-wrap: anywhere; }

/* ================= M4: Training erfassen ================= */
.hh-btn-go { background: var(--hh-green); color: #fff; font-family: var(--hh-display); font-size: 22px; line-height: 1.05; padding: 8px 22px; text-transform: uppercase; min-height: 60px; letter-spacing: .02em; }
.hh-running { border-color: var(--hh-green); box-shadow: inset 4px 0 0 var(--hh-green); margin-top: 16px; }
.hh-hist-date { flex: none; width: 58px; font-weight: 700; font-size: 14px; }
button.hh-thumb { border: 0; padding: 0; cursor: pointer; }

.hh-progress { height: 8px; border-radius: 4px; background: var(--hh-sunken); overflow: hidden; margin-top: 10px; }
.hh-progress i { display: block; height: 100%; background: var(--hh-green); border-radius: 4px; transition: width .25s ease; }

.hh-log { padding: 14px; }
.hh-log-head { display: flex; align-items: center; gap: 12px; }
.hh-log-head .hh-thumb { width: 52px; height: 52px; }
.hh-last { margin-top: 10px !important; font-size: 14px; font-weight: 600; }
.hh-last span { color: var(--hh-muted); font-weight: 400; }
.hh-hint-up { margin-top: 8px !important; padding: 8px 12px; font-size: 14px; background: color-mix(in srgb, var(--hh-green) 12%, transparent); border-left: 4px solid var(--hh-green); }

.hh-set-head, .hh-set { display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr) 52px; gap: 8px; align-items: center; }
.hh-set-head { margin: 14px 0 4px; font-size: 13px; font-weight: 600; color: var(--hh-muted); text-align: center; }
.hh-set { padding: 4px 0; }
.hh-set-no { font-family: var(--hh-display); font-size: 22px; text-align: center; color: var(--hh-muted); }
.hh-set-in { height: 52px; padding: 0 6px; text-align: center; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hh-set-in::placeholder { font-size: 15px; font-weight: 400; color: var(--hh-muted); opacity: .8; }
.hh-check-btn {
	width: 52px; height: 52px; border-radius: 14px; border: 2px solid var(--hh-line);
	background: var(--hh-surface); color: var(--hh-muted); display: grid; place-items: center; cursor: pointer;
}
.hh-check-btn.is-busy { opacity: .6; }
.hh-set.is-next .hh-check-btn { border-color: var(--hh-green); color: var(--hh-green); }
.hh-set.is-next .hh-set-no { color: var(--hh-ink); }
.hh-set.is-done .hh-check-btn { background: var(--hh-green); border-color: var(--hh-green); color: #fff; }
.hh-set.is-done .hh-set-in { background: color-mix(in srgb, var(--hh-green) 10%, var(--hh-bg)); border-color: transparent; }
.hh-set.is-done.is-changed .hh-check-btn { background: var(--hh-yellow); border-color: var(--hh-yellow); color: #231a00; }
.hh-adjust { display: grid; grid-template-columns: 1fr 1fr 12px 1fr 1fr; gap: 6px; padding: 2px 0 8px 38px; margin-right: 60px; }
.hh-adjust button { min-height: 36px; border: 1.5px solid var(--hh-line); border-radius: 10px; background: var(--hh-bg); font-weight: 700; font-size: 14px; cursor: pointer; font-variant-numeric: tabular-nums; }
.hh-adjust button:active { background: var(--hh-sunken); }

.hh-done { margin: 12px 0 18px; }
.hh-done .hh-plates { max-width: 200px; margin-bottom: 16px; }
.hh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hh-stats div { background: var(--hh-surface); border: 1px solid var(--hh-line); border-radius: 16px; padding: 14px 10px; text-align: center; }
.hh-stats b { display: block; font-family: var(--hh-display); font-size: 34px; line-height: 1; }
.hh-stats span { font-size: 13px; color: var(--hh-muted); }
.hh-rec { margin: 8px 0 0; padding-left: 1.2em; }
.hh-rec li { font-weight: 700; }
.hh-rec li::marker { color: var(--hh-yellow); }

.hh-rest {
	position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); z-index: 60;
	width: min(520px, calc(100% - 24px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
	background: var(--hh-ink); color: var(--hh-on-ink); border-radius: 18px; overflow: hidden;
	font-family: var(--hh-text); transition: opacity .2s ease, transform .2s ease;
}
.hh-rest.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.hh-rest-bar { height: 5px; background: color-mix(in srgb, var(--hh-on-ink) 20%, transparent); }
.hh-rest-bar i { display: block; height: 100%; background: var(--hh-green); transition: width .25s linear; }
.hh-rest-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px 16px; }
.hh-rest-row span { font-size: 14px; opacity: .8; }
.hh-rest-row b { font-family: var(--hh-display); font-size: 34px; line-height: 1; flex: 1; font-variant-numeric: tabular-nums; }
.hh-rest-row button { min-height: 42px; padding: 0 14px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--hh-on-ink) 15%, transparent); color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .hh-rest, .hh-progress i, .hh-rest-bar i { transition: none; } }

/* ================= M5: Fortschritt ================= */
.hh-seg-3 { grid-template-columns: repeat(3, 1fr); }
.hh-seg-4 { grid-template-columns: repeat(4, 1fr); }
.hh-seg-5 { grid-template-columns: repeat(5, 1fr); }
.hh-seg-5 button, .hh-seg-4 button { font-size: 13px; padding: 0 2px; }
.hh-mt-s { margin-top: 8px; }
.hh-pnav { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin: 10px 0 4px; text-align: center; }
.hh-pnav strong { font-size: 17px; }
.hh-pnav button { height: 44px; border: 1.5px solid var(--hh-line); border-radius: 12px; background: var(--hh-surface); font-size: 22px; cursor: pointer; }
.hh-pnav button[disabled] { opacity: .3; cursor: default; }

.hh-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.hh-kpi { background: var(--hh-surface); border: 1px solid var(--hh-line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 2px; align-content: start; }
.hh-kpi b { font-family: var(--hh-display); font-size: 36px; line-height: 1; overflow-wrap: anywhere; }
.hh-kpi span { font-size: 14px; color: var(--hh-muted); }
.hh-kpis-sm .hh-kpi { background: var(--hh-bg); border: 0; }
.hh-kpis-sm .hh-kpi b { font-size: 28px; }
.hh-delta { font-size: 12px; font-weight: 600; color: var(--hh-muted); }
.hh-delta.is-up { color: var(--hh-green); }
.hh-delta.is-down { color: var(--hh-red); }
.hh-delta.is-neutral { color: var(--hh-muted); }

.hh-chart { width: 100%; height: auto; display: block; margin: 10px 0 6px; overflow: visible; }
.hh-chart .hc-grid { stroke: var(--hh-line); stroke-width: 1; }
.hh-chart .hc-t { fill: var(--hh-muted); font-size: 10px; font-family: var(--hh-text); }
.hh-chart-empty { padding: 30px 0; text-align: center; }
.hh-change { margin-top: 12px !important; font-size: 15px; color: var(--hh-muted); }
.hh-change b { font-family: var(--hh-display); font-size: 26px; margin-right: 4px; }
.hh-change .is-up { color: var(--hh-green); }
.hh-change .is-down { color: var(--hh-red); }

.hh-histlist { display: grid; margin-top: 8px; }
.hh-histrow { display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--hh-line); background: none; text-align: left; font-size: 15px; width: 100%; font-variant-numeric: tabular-nums; }
button.hh-histrow { cursor: pointer; }
.hh-histrow:last-child { border-bottom: 0; }
.hh-histrow span:first-child { font-weight: 700; }

.hh-mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.hh-m { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 1.5px solid transparent; border-radius: 14px; background: var(--hh-bg); cursor: pointer; }
.hh-m.is-on { border-color: var(--hh-green); }
.hh-m span { font-size: 13px; color: var(--hh-muted); }
.hh-m b { font-family: var(--hh-display); font-size: 26px; line-height: 1.05; }
.hh-m b small { font-family: var(--hh-text); font-size: 13px; color: var(--hh-muted); font-weight: 600; }
.hh-mform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }

/* ================= M6: Trainer ================= */
.hh-ctx .hh-hello { color: var(--hh-ink); }
.hh-ctx-back { flex: none; border: 1.5px solid var(--hh-line); background: var(--hh-surface); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; cursor: pointer; }
.hh-shell:has(.hh-ctx) .hh-top { border-bottom: 4px solid var(--hh-red); margin-bottom: 14px; }
.hh-inline { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.hh-inline .hh-btn { width: auto; min-height: 52px; }
.hh-linkform { margin-top: 14px; }
.hh-request { border-color: var(--hh-yellow); box-shadow: inset 4px 0 0 var(--hh-yellow); }
.hh-pending { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--hh-line); }
.hh-pending:last-child { border-bottom: 0; }
.hh-pending span { display: grid; min-width: 0; }
.hh-pending strong { overflow-wrap: anywhere; }
.hh-pending small { color: var(--hh-muted); font-size: 13px; }
.hh-app button.hh-feedback { border-color: var(--hh-blue); box-shadow: inset 4px 0 0 var(--hh-blue); margin-bottom: 10px; }
.hh-feedback small { color: var(--hh-muted); font-size: 14px; }
.hh-badge-n { flex: none; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--hh-red); color: #fff; font-size: 13px; font-weight: 700; display: inline-grid; place-items: center; }
.hh-athlete { padding: 12px 14px; }
.hh-avatar-sm { width: 46px; height: 46px; font-size: 20px; box-shadow: none; margin: 0; }
.hh-coach { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--hh-line); }
.hh-coach small { display: block; color: var(--hh-muted); font-size: 14px; }
.hh-coach .hh-textbtn { justify-self: start; padding-left: 0; }
.hh-tag-blue { background: var(--hh-blue); color: #fff; }

.hh-comment { padding: 10px 12px; border-radius: 14px; background: var(--hh-bg); margin-top: 8px; max-width: 92%; }
.hh-comment.is-coach { border-left: 4px solid var(--hh-blue); }
.hh-comment.is-mine { margin-left: auto; background: color-mix(in srgb, var(--hh-blue) 10%, var(--hh-bg)); }
.hh-comment p + p { margin-top: 4px !important; }
.hh-cm-del { padding: 0 4px; font-size: 13px; font-weight: 400; color: var(--hh-muted); }

.hh-set.is-ro { grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr) 52px; }
.hh-set-val { height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--hh-bg); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hh-set.is-ro.is-done .hh-set-val { background: color-mix(in srgb, var(--hh-green) 10%, var(--hh-bg)); }

/* ================= M7: Feinschliff ================= */
.hh-danger-card { border-color: var(--hh-red); box-shadow: inset 4px 0 0 var(--hh-red); }
.hh-btn-danger-solid { background: var(--hh-red); color: #fff; }
.hh-btn.is-busy::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: hh-spin .7s linear infinite; }
@media (display-mode: standalone) {
	.hh-top { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
}

/* ================= QS-Korrekturen ================= */
.hh-num select.hh-input { font-size: 15px; font-weight: 700; padding: 0 2px; text-align: center; text-align-last: center; }
.hh-top-sm { padding: calc(18px + env(safe-area-inset-top, 0px)) 0 14px; }
.hh-title { font-family: var(--hh-display); font-size: clamp(34px, 9vw, 42px); line-height: .9; text-transform: uppercase; }
.hh-top-none { height: calc(14px + env(safe-area-inset-top, 0px)); }
.hh-btn-primary, .hh-btn-go, .hh-btn-danger-solid { -webkit-tap-highlight-color: transparent; }
.hh-btn:active { transform: translateY(1px); }

/* Platz für den Pausen-Timer, damit nichts darunter verschwindet */
body.hh-resting .hh-shell { padding-bottom: calc(176px + env(safe-area-inset-bottom, 0px)); }
