/* Bloom – Gestaltung: hell, Creme und Pastellrosa, ruhig und übersichtlich, nach iOS-Vorbild.
   Schriftgrößen nur aus Apples Textstilen (34/28/22/20/17/16/15/13/12/11/10), Gewichte 400/500/600/700.
   Rosa ist die einzige Akzent- und Fortschrittsfarbe; Text in zwei Grautönen (--ink, --ink-2). */

:root {
	--bg: #FBF6F1;
	--card: #FFFFFF;
	--ink: #2D2326;
	--ink-2: #74666B;
	--ink-3: #A99BA0; /* nur für Nicht-Text: Pfeile, deaktiviert, Platzhalter */
	--sep: rgba(95, 55, 65, .11);
	--fill: rgba(120, 70, 85, .06);
	--rose-50: #FFF2F5;
	--rose-100: #FCE4EB;
	--rose-200: #F9CEDA;
	--rose-300: #F3AFC2;
	--rose-500: #E07393;
	--rose-600: #C9587A;
	--rose-700: #A63F5E;
	--rose-800: #8E2F4E;
	--danger: #C9374A;
	--check: #D76A8C;
	--shadow-1: 0 1px 1px rgba(90, 40, 55, .03), 0 2px 10px rgba(90, 40, 55, .045), 0 12px 30px -14px rgba(90, 40, 55, .09);
	--shadow-2: 0 2px 8px rgba(90, 40, 55, .08), 0 18px 48px -12px rgba(90, 40, 55, .24);
	--glass: rgba(255, 255, 255, .72);
	--glass-edge: inset 0 0 0 .5px rgba(255, 255, 255, .9), 0 0 0 .5px rgba(90, 40, 55, .08);
	--r-card: 22px;
	--ease: cubic-bezier(.22, 1, .36, 1);
	--safe-t: env(safe-area-inset-top, 0px);
	--safe-b: env(safe-area-inset-bottom, 0px);
	--bar-b: max(10px, calc(var(--safe-b) - 6px));
	--kb: 0px;
	color-scheme: light;
	accent-color: var(--rose-500);
}

.t-rose { --tb: #FCE4EB; --tf: #C9587A; --tm: #F2A6BB; }
.t-peach { --tb: #FDE8DA; --tf: #C46A3A; --tm: #F6BC97; }
.t-butter { --tb: #FBF0CF; --tf: #A47F17; --tm: #EFD27C; }
.t-mint { --tb: #DDF2E9; --tf: #35906C; --tm: #97D4B9; }
.t-sky { --tb: #E0EDFA; --tf: #3B7CBC; --tm: #A3C6EC; }
.t-lilac { --tb: #ECE6F9; --tf: #7A5FC0; --tm: #C3B2EE; }

*, *::before, *::after { box-sizing: border-box; }
html {
	-webkit-tap-highlight-color: transparent;
	-webkit-text-size-adjust: 100%;
	overscroll-behavior: none;
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
	font-size: 16px;
	line-height: 1.4;
}
body {
	margin: 0;
	position: fixed;
	inset: 0;
	overflow: hidden;
	overscroll-behavior: none;
	overflow-wrap: break-word;
	background: var(--bg);
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
}
::selection { background: var(--rose-200); color: var(--ink); }
p, h1, h2, h3 { margin: 0; }
button {
	font: inherit;
	color: inherit;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}
button:disabled { opacity: .35; cursor: default; }
/* antippbare Zeilen und Karten: kein Markieren und kein Kopieren-Menü beim langen Drücken */
[data-act] { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select { font-family: inherit; font-size: 17px; color: var(--ink); caret-color: var(--rose-600); }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--rose-300); outline-offset: 2px; }
.ic { width: 22px; height: 22px; display: block; flex: none; }
.num { font-variant-numeric: tabular-nums; }
/* Zeilen, die schöner umbrechen sollen */
.row-sub, .row-hint, .sc-sub, .sc-meta, .hero-msg, .lh-sub, .rv-sub, .ex-hint, .form-hint, .note p, .status-card p { text-wrap: pretty; }

/* ---------- Bildschirme ---------- */

#screens { position: fixed; inset: 0; }
.screen { position: absolute; inset: 0; background: var(--bg); isolation: isolate; }
.screen.pushed {
	touch-action: pan-y;
	box-shadow: -1px 0 0 var(--sep), -16px 0 40px -12px rgba(90, 40, 55, .2);
}
/* Abdunkeln der Seite darunter beim Wischen (eigene Ebene, damit nicht die ganze Seite neu gerechnet wird) */
.dim { position: absolute; inset: 0; z-index: 10; background: #2D2326; opacity: 0; pointer-events: none; }
.scroller {
	position: absolute;
	inset: 0;
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior-y: contain;
	-webkit-overflow-scrolling: touch;
}
.content {
	max-width: 640px;
	margin: 0 auto;
	padding: calc(var(--safe-t) + 44px) 16px calc(var(--safe-b) + 112px);
}

.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 5; padding-top: var(--safe-t); }
.topbar::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(251, 246, 241, .78);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	backdrop-filter: blur(20px) saturate(180%);
	box-shadow: 0 .5px 0 var(--sep);
	opacity: 0;
	transition: opacity .2s ease;
}
.screen.scrolled .topbar::before { opacity: 1; }
.tb-inner {
	position: relative;
	height: 44px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: 0 12px;
}
.tb-title {
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -.01em;
	max-width: 56vw;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	opacity: 0;
	transition: opacity .2s ease;
}
.screen.scrolled .tb-title { opacity: 1; }
.tb-right { justify-self: end; display: flex; gap: 8px; align-items: center; }

/* Knöpfe in der Navigationsleiste: Glas wie die Tab-Leiste (iOS 26) */
.back, .tb-right .circle-btn, .tb-right .link {
	height: 40px;
	border: 0;
	border-radius: 20px;
	background: var(--glass);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	backdrop-filter: blur(20px) saturate(180%);
	box-shadow: var(--glass-edge), 0 4px 14px -6px rgba(90, 40, 55, .2);
	transition: transform .2s var(--ease), opacity .25s ease-out;
}
.back {
	justify-self: start;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	padding: 0;
	color: var(--rose-700);
}
.back::after { content: ""; position: absolute; inset: -2px; }
.back span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.back .ic { width: 24px; height: 24px; margin-left: -2px; stroke-width: 2.3; }
.tb-right .circle-btn { width: 40px; }
.tb-right .link { padding: 0 16px; font-size: 17px; }
.back:active, .tb-right .circle-btn:active, .tb-right .link:active { transform: scale(.92); opacity: 1; transition-duration: .05s; }

.large-head { padding: 6px 4px 16px; }
.eyebrow {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--ink-2);
	margin-bottom: 2px;
}
.lh-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; row-gap: 8px; }
.large-head h1 {
	min-width: 0;
	font-size: 34px;
	line-height: 1.12;
	font-weight: 700;
	letter-spacing: -.022em;
	-webkit-hyphens: auto;
	hyphens: auto;
	-webkit-hyphenate-limit-before: 4;
	-webkit-hyphenate-limit-after: 4;
}
.lh-sub { color: var(--ink-2); font-size: 16px; margin-top: 4px; }

/* ---------- Tab-Leiste (schwebend, Glas) ---------- */

.tabbar {
	position: fixed;
	left: 50%;
	bottom: var(--bar-b);
	transform: translateX(-50%);
	width: min(calc(100% - 32px), 400px);
	height: 64px;
	padding: 4px;
	border-radius: 32px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	z-index: 50;
	background: rgba(255, 255, 255, .74);
	-webkit-backdrop-filter: blur(24px) saturate(180%);
	backdrop-filter: blur(24px) saturate(180%);
	box-shadow: var(--glass-edge), 0 12px 32px -10px rgba(90, 40, 55, .28);
}
.tabbar button {
	position: relative;
	z-index: 1;
	border: 0;
	background: none;
	border-radius: 28px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	color: var(--ink-2);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .01em;
	transition: color .2s ease;
}
.tabbar button .ic { width: 25px; height: 25px; transition: transform .2s var(--ease); }
.tabbar button.on { color: var(--rose-700); }
.tabbar button:active .ic { transform: scale(.88); transition-duration: .05s; }
.lens {
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: 0;
	border-radius: 28px;
	background: rgba(249, 206, 218, .55);
	box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .9), 0 1px 4px rgba(201, 88, 122, .12);
}

/* ---------- Karten und Listen ---------- */

.card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-1); }
.content > .card + .card { margin-top: 12px; }
.card.list:empty, .sc-sub:empty, .row-sub:empty { display: none; }
.group { margin-top: 28px; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 4px 10px; }
.group-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.015em; }
.link { position: relative; border: 0; background: none; color: var(--rose-700); font-size: 17px; font-weight: 500; padding: 4px 2px; }

.list { overflow: hidden; }
.row {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 60px;
	padding: 11px 14px;
	border: 0;
	background: none;
	text-align: left;
	transition: background-color .3s ease-out;
}
/* Trennlinien beginnen dort, wo der Text beginnt */
.list > .row + .row::before, .list > .row + .add::before {
	content: "";
	position: absolute;
	top: 0;
	left: var(--sep-l, 64px);
	right: 0;
	height: .5px;
	background: var(--sep);
}
.row:has(> .part-n) { --sep-l: 56px; }
.row:has(> .date-badge:not(.plain)) { --sep-l: 66px; }
.list.plain { --sep-l: 14px; }
/* kurz halten, bevor die Zeile hell wird – sonst blitzt sie beim Scrollen auf; loslassen blendet aus wie UIKit */
.row[data-act]:active, button.row:active { background: var(--fill); transition: background-color 0s 60ms; }
.row[data-act]:has(.check:active, .del-btn:active, .switch:active) { background: none; }
.row-text { flex: 1; min-width: 0; }
.row-title { font-size: 17px; font-weight: 500; letter-spacing: -.005em; line-height: 1.3; }
.row-title.muted { color: var(--ink-3); }
.row-sub { font-size: 15px; color: var(--ink-2); margin-top: 2px; line-height: 1.35; }
.row-hint { font-size: 13px; color: var(--ink-2); margin-top: 3px; line-height: 1.35; }
.chev { width: 18px; height: 18px; color: var(--ink-3); }
.chev.on { color: var(--rose-600); width: 22px; height: 22px; stroke-width: 2.4; }
.row.danger .row-title { color: var(--danger); }
.row.compact { min-height: 50px; }
.row.compact .row-title { flex: 1; min-width: 0; }
.add { color: var(--rose-700); font-weight: 600; min-height: 54px; font-size: 17px; }
.add .ic { width: 22px; height: 22px; margin: 0 8px; stroke-width: 2.2; }

.tile {
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: var(--tb, var(--rose-100));
	color: var(--tf, var(--rose-600));
	display: grid;
	place-items: center;
	flex: none;
}
.tile .ic { width: 22px; height: 22px; }
.tile.small { width: 30px; height: 30px; border-radius: 10px; }
.tile.small .ic { width: 18px; height: 18px; }

.goal.done .row-title { color: var(--ink-2); }
.goal.done .tile { filter: saturate(.7); }

/* Haken: ruhig füllen, kurz nachgeben (Abhaken passiert dutzendfach am Tag) */
.check {
	position: relative;
	width: 32px;
	height: 32px;
	padding: 0;
	flex: none;
	border-radius: 50%;
	border: 2px solid var(--rose-300);
	background: transparent;
	color: #fff;
	display: grid;
	place-items: center;
	transition: background-color .2s ease-out, border-color .2s ease-out, transform .2s var(--ease);
}
.check::after { content: ""; position: absolute; inset: -8px; }
.check .ic { width: 18px; height: 18px; stroke-width: 2.8; opacity: 0; transform: scale(.6); transition: opacity .15s ease-out, transform .25s var(--ease); }
.check.on { background-color: var(--check); border-color: transparent; }
.check.on .ic { opacity: 1; transform: scale(1); }
.check:active { transform: scale(.9); transition-duration: .05s; }

.del-btn {
	position: relative;
	width: 24px;
	height: 24px;
	padding: 0;
	flex: none;
	border: 0;
	border-radius: 50%;
	background: #E5484D;
	color: #fff;
	display: grid;
	place-items: center;
	transition: transform .2s var(--ease);
}
.del-btn .ic { width: 14px; height: 14px; stroke-width: 3; }

/* Knöpfe: sofort drücken (50 ms), langsamer loslassen */
.pill-btn {
	border: 0;
	border-radius: 999px;
	padding: 9px 15px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	background: var(--rose-200);
	color: var(--rose-800);
	transition: transform .2s var(--ease);
}
.pill-btn.soft { background: var(--rose-50); color: var(--rose-700); }
.pill-btn:active { transform: scale(.95); }
.circle-btn {
	position: relative;
	width: 34px;
	height: 34px;
	padding: 0;
	flex: none;
	border: 0;
	border-radius: 50%;
	background: var(--fill);
	color: var(--ink);
	display: grid;
	place-items: center;
	transition: transform .2s var(--ease);
}
.circle-btn .ic { width: 20px; height: 20px; stroke-width: 2.1; }
.circle-btn.small { width: 30px; height: 30px; }
.circle-btn.small .ic { width: 16px; height: 16px; }
.circle-btn.primary { background: var(--rose-200); color: var(--rose-800); }
.circle-btn:active { transform: scale(.92); }
.circle-spacer { width: 34px; }
.big-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 56px;
	margin-top: 26px;
	border: 0;
	border-radius: 18px;
	font-size: 17px;
	font-weight: 600;
	color: var(--rose-800);
	background: var(--rose-200);
	box-shadow: none;
	transition: transform .2s var(--ease), background-color .2s ease-out;
}
.big-btn .ic { stroke-width: 2.6; }
.big-btn.done { background: var(--card); color: var(--rose-700); box-shadow: var(--shadow-1); }
.big-btn:active { transform: scale(.98); background: var(--rose-300); }
.big-btn.done:active { background: var(--card); }
.text-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	padding: 14px;
	border: 0;
	background: none;
	color: var(--rose-700);
	font-size: 17px;
	font-weight: 500;
}
.text-btn .ic { width: 20px; height: 20px; }
.text-btn.danger { color: var(--danger); }
.link, .text-btn { transition: opacity .25s ease-out; }
.link:active, .text-btn:active { opacity: .45; transition-duration: 0s; }
.pill-btn:active, .circle-btn:active, .step:active, .big-btn:active, .session:active { transition-duration: .05s; }

/* größere Trefferflächen (44 pt), ohne das Aussehen zu ändern */
.circle-btn::after, .del-btn::after, .link::after, .tint-pick button::after, .timer button::after { content: ""; position: absolute; }
.circle-btn::after { inset: -5px; }
.circle-btn.small::after { inset: -7px -3px; }
.del-btn::after { inset: -10px; }
.link::after { inset: -9px -6px; }
.tint-pick button::after { inset: -6px; }
.timer button::after { inset: -5px; }

.meta-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--fill);
	color: var(--ink-2);
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
}
.meta-chip .ic { width: 15px; height: 15px; }
.meta-chip.warm { background: var(--rose-50); color: var(--rose-700); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

/* Ringe */
.ring { transform: rotate(-90deg); display: block; overflow: visible; }
.ring-track { fill: none; stroke: #F6E6EA; }
.ring-bar { fill: none; stroke: url(#g-ring); stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); }
.ring.big .ring-track { stroke: var(--rose-100); }
.bar { height: 5px; margin-top: 10px; border-radius: 3px; background: var(--rose-100); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--rose-500); transition: width .6s var(--ease); }

/* ---------- Heute ---------- */

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin: -4px -6px 14px; touch-action: pan-y; }
.wday {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 8px 0 10px;
	border: 0;
	border-radius: 18px;
	background: none;
	color: var(--ink-2);
	transition: background-color .2s ease, box-shadow .2s ease, transform .2s var(--ease);
}
.wd { font-size: 12px; font-weight: 600; }
.wring { position: relative; width: 36px; height: 36px; }
.wnum { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.wday.today .wd { color: var(--rose-700); }
.wday.future .wnum { color: var(--ink-3); }
.wday.sel { background: var(--card); box-shadow: var(--shadow-1); }

.hero { display: flex; align-items: center; gap: 18px; padding: 16px; }
.hero.complete { background: var(--rose-50); }
.hero-ring { position: relative; width: 92px; height: 92px; flex: none; }
.hero-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.05; }
.hero-num b { font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-num span { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.hero-text { flex: 1; min-width: 0; }
.hero-hi { font-size: 15px; color: var(--ink-2); font-weight: 500; }
.hero-msg { font-size: 17px; font-weight: 600; line-height: 1.28; letter-spacing: -.012em; margin: 2px 0 10px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px; }

.hint { display: flex; align-items: center; gap: 12px; padding: 14px; margin-top: 12px; }
.news-hint { transition: transform .2s var(--ease); }
.news-hint:active:not(:has(.circle-btn:active)) { transform: scale(.98); }
.news-hint .row-sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.empty-card { display: flex; align-items: center; gap: 12px; padding: 16px; }
.empty-card p { min-width: 0; color: var(--ink-2); font-size: 15px; }
.empty-msg { color: var(--ink-2); text-align: center; padding: 20px; }
.empty-msg.small { font-size: 15px; text-align: left; padding: 16px; line-height: 1.45; }

/* Training des Tages (ohne eigene Überschrift, damit die Ziele ohne Scrollen sichtbar sind) */
.sessions { margin-top: 12px; }
.sessions > .card:last-child { margin-bottom: 0; }
.sessions + .group { margin-top: 24px; }
.session { display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 10px; transition: transform .2s var(--ease); }
.session:active { transform: scale(.985); }
.session:has(.check:active) { transform: none; }
.session .tile { width: 44px; height: 44px; border-radius: 14px; }
.session .tile .ic { width: 24px; height: 24px; }
.sc-text { flex: 1; min-width: 0; }
.sc-title { font-size: 17px; font-weight: 600; letter-spacing: -.012em; }
.sc-sub { font-size: 15px; color: var(--ink-2); margin-top: 1px; }
.sc-meta { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.sc-extra { color: var(--rose-700); margin-left: 6px; }
.sc-extra::before { content: "· "; color: var(--ink-3); }
.sc-extra.solo { margin-left: 0; }
.sc-extra.solo::before { content: none; }
.sc-prog { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.sc-prog .bar { flex: 1; margin: 0; }
.sc-prog span { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.session .check { width: 38px; height: 38px; }
.session .check .ic { width: 21px; height: 21px; }
.session.done .sc-title { color: var(--ink-2); }
.session.ghost { background: transparent; box-shadow: none; border: 1.5px dashed var(--rose-200); }
.session.ghost .tile { opacity: .55; }
.session.ghost .pill-btn { padding: 8px 12px; }
.session.ghost:active { transform: none; }

.count-num { margin-left: 8px; font-size: 15px; font-weight: 600; color: var(--rose-700); font-variant-numeric: tabular-nums; }
.glasses { display: flex; gap: 4px; margin-top: 8px; max-width: 220px; }
.glasses i { flex: 1; height: 6px; border-radius: 3px; background: var(--rose-100); transition: background-color .3s ease; }
.glasses i.f { background: var(--rose-500); }
.stepper { display: flex; gap: 8px; flex: none; }
.step {
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--fill);
	color: var(--ink);
	display: grid;
	place-items: center;
	transition: transform .2s var(--ease);
}
.step .ic { width: 20px; height: 20px; stroke-width: 2.4; }
.step.plus { background: var(--rose-100); color: var(--rose-700); }
.step:active { transform: scale(.92); }

/* ---------- Training ---------- */

.part-n {
	width: 30px;
	height: 30px;
	flex: none;
	border-radius: 50%;
	background: var(--rose-50);
	color: var(--rose-700);
	display: grid;
	place-items: center;
	font-size: 15px;
	font-weight: 700;
	transition: background-color .25s ease;
}
.part-n .ic { width: 16px; height: 16px; stroke-width: 2.8; }
/* Status der Übung (nicht antippbar): darf nicht wie der gefüllte Haken aussehen */
.part.done .part-n { background: var(--rose-100); color: var(--rose-700); }
.dots { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.dots i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--rose-100); transition: background-color .25s ease; }
.dots i.f { background: var(--rose-500); }
.dots i.opt:not(.f) { background: transparent; box-shadow: inset 0 0 0 1.5px var(--rose-200); }
.part-right { display: flex; align-items: center; gap: 4px; flex: none; }
.last { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--fill); padding: 4px 8px; border-radius: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.last.now, .last.up { background: var(--rose-50); color: var(--rose-700); }
.alt-label { margin-right: 4px; color: var(--ink-2); font-weight: 500; }
.note { display: flex; gap: 10px; padding: 14px 16px; margin-top: 12px; background: #FFF8EA; box-shadow: none; }
.note .ic { width: 20px; height: 20px; color: #A47F17; margin-top: 1px; }
.note p { min-width: 0; font-size: 15px; line-height: 1.45; color: #5B4826; }
.link-row { margin-top: 12px; }
.card.row { background: var(--card); }
button.card.row:active { background: #F7F0F1; }
.note-input {
	display: block;
	width: 100%;
	border: 0;
	padding: 14px 16px;
	font-size: 17px;
	line-height: 1.4;
	resize: none;
	outline: none;
	overflow: hidden;
}
.note-input:focus { box-shadow: var(--shadow-1), 0 0 0 2px var(--rose-200); }
.banner { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 14px; background: var(--rose-50); box-shadow: none; color: var(--rose-700); }
.banner p { flex: 1; min-width: 0; font-size: 15px; color: var(--ink); }

/* Sätze */
.ex-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.ex-hint { font-size: 15px; color: var(--ink-2); margin: 0 2px 12px; }
.last-box { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin-bottom: 14px; border-radius: 16px; background: var(--rose-50); color: var(--rose-600); }
.last-box .ic { width: 20px; height: 20px; margin-top: 1px; }
.last-box.soft { background: var(--fill); color: var(--ink-2); }
.last-box.soft .lb-title { color: var(--ink-2); }
.lb-title { font-size: 13px; font-weight: 600; color: var(--rose-700); }
.lb-sets { font-size: 15px; font-weight: 500; color: var(--ink); margin-top: 2px; font-variant-numeric: tabular-nums; }
.set-table { padding: 4px 12px 8px; background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-1); }
.set-head, .set-row { display: grid; grid-template-columns: 40px 1fr 1fr 44px; gap: 10px; align-items: center; }
.set-table.time .set-head, .set-table.time .set-row { grid-template-columns: 40px 1fr 44px; }
.set-head span { padding: 8px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); text-align: center; }
.set-head span:first-child { text-align: left; }
.set-row { padding: 5px 0; }
.set-n { display: flex; flex-direction: column; font-size: 17px; font-weight: 700; color: var(--ink-2); line-height: 1; font-variant-numeric: tabular-nums; }
.set-n small { margin-top: 3px; font-size: 11px; font-weight: 500; color: var(--ink-2); }
.set-in {
	width: 100%;
	height: 46px;
	border: 0;
	border-radius: 12px;
	background: var(--fill);
	text-align: center;
	font-size: 20px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color .2s ease, box-shadow .2s ease;
}
/* der graue Vorschlag, den sie mit dem Haken übernimmt, muss gut lesbar sein */
.set-in::placeholder { color: var(--ink-2); font-weight: 500; }
.set-in:focus { background: var(--rose-50); box-shadow: inset 0 0 0 2px var(--rose-300); }
.set-row.done .set-in { background: transparent; }
.set-row .check { width: 42px; height: 42px; justify-self: end; }
.set-row .check .ic { width: 22px; height: 22px; }
.set-tip { font-size: 13px; color: var(--ink-2); text-align: center; margin-top: 10px; }
.best-line { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.best-line .ic { width: 16px; height: 16px; color: #C79A1C; }

/* ---------- Plan ---------- */

.date-badge {
	width: 40px;
	height: 44px;
	flex: none;
	border-radius: 12px;
	background: var(--fill);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1.05;
}
.date-badge small { font-size: 11px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; }
.date-badge b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.date-badge.plain { width: 38px; height: 38px; background: var(--tb, var(--fill)); color: var(--tf, var(--ink)); }
.date-badge.plain b { font-size: 15px; }
.date-badge.today { background: var(--rose-100); color: var(--rose-700); }
.date-row.past { opacity: .5; }
.date-row.current { background: var(--rose-50); }
.reorder { display: flex; gap: 6px; flex: none; }
.prose { padding: 16px 18px; }
.prose p { font-size: 17px; line-height: 1.55; }

/* ---------- Fortschritt ---------- */

.review { padding: 16px 16px 18px; }
.rv-head { display: flex; align-items: center; gap: 10px; }
.rv-title { flex: 1; min-width: 0; text-align: center; }
.rv-title .eyebrow { font-size: 12px; }
.rv-title h3 { margin-top: 2px; font-size: 22px; font-weight: 700; letter-spacing: -.016em; }
.rv-sub { margin: 6px 4px 16px; text-align: center; color: var(--ink-2); font-size: 15px; }
.rv-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 16px; }
.rv-day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.rv-day.today span { color: var(--rose-700); }
.rv-day.future { opacity: .45; }
/* Kennzahlen als ein geteilter Block statt vier Kacheln */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.stat { padding: 10px 12px 10px 4px; border-radius: 0; background: none; min-width: 0; }
.stats:not(.three) .stat:nth-child(even) { padding-left: 16px; box-shadow: inset .5px 0 0 var(--sep); }
.stats:not(.three) .stat:nth-child(n+3) { border-top: .5px solid var(--sep); }
.stats.three { grid-template-columns: repeat(3, 1fr); margin: 0 0 8px; }
.stats.three .stat { padding: 2px 10px 4px; }
.stats.three .stat + .stat { box-shadow: inset .5px 0 0 var(--sep); }
.stat b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; white-space: nowrap; }
.stat b small { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.stat span { font-size: 13px; color: var(--ink-2); }
.rv-cmp { display: flex; align-items: center; gap: 8px; margin: 12px 2px 0; font-size: 15px; color: var(--ink-2); }
.rv-cmp .ic { width: 18px; height: 18px; color: var(--rose-500); }
.chart-card { padding: 12px 10px 6px; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.ch-area { fill: url(#g-area); }
.ch-line { fill: none; stroke: var(--rose-500); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.spark .ch-line { stroke-width: 2; }
.ch-grid { stroke: var(--sep); stroke-dasharray: 3 4; }
.ch-grid.base { stroke-dasharray: none; }
.ch-ylab, .ch-xlab { font-size: 11px; fill: var(--ink-2); }
.ch-val { font-size: 12px; font-weight: 700; fill: var(--rose-700); }
.ch-dot { fill: #fff; stroke: var(--rose-500); stroke-width: 1.5; }
.ch-last { fill: var(--rose-500); stroke: #fff; stroke-width: 2; }
.spark-wrap { width: 76px; flex: none; }
.ex-row { min-height: 64px; }
/* Draufhalten: senkrechte Linie, Punkt und Beschriftung über der Kurve (deckt die Zeile darüber ab) */
.chart-box { position: relative; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ch-val { transition: opacity .15s ease-out; }
.chart-box.scrubbing .ch-val { opacity: 0; }
/* die Zeile über der Kurve macht der Beschriftung Platz (wie in „Aktien“) */
.chart-card > .stats, .bw-card > .bw-one { transition: opacity .15s ease-out; }
.chart-card:has(.chart-box.scrubbing) > .stats, .bw-card:has(.chart-box.scrubbing) > .bw-one { opacity: 0; transition-duration: .05s; }
.ch-cur-line { stroke: var(--rose-300); stroke-width: 1.5; }
.ch-cur-dot { fill: var(--rose-500); stroke: #fff; stroke-width: 2.5; }
.ch-tip {
	position: absolute;
	left: 0;
	bottom: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 5px 12px 6px;
	border-radius: 12px;
	background: var(--card);
	box-shadow: 0 0 0 .5px var(--sep), 0 6px 18px -6px rgba(90, 40, 55, .22);
	white-space: nowrap;
	line-height: 1.25;
	pointer-events: none;
	opacity: 0;
	transition: opacity .15s ease-out;
}
.chart-box.scrubbing .ch-tip { opacity: 1; transition-duration: .05s; }
.ch-tip b { font-size: 17px; font-weight: 700; color: var(--rose-700); font-variant-numeric: tabular-nums; }
.ch-tip span { font-size: 13px; color: var(--ink-2); }
.bw-one { display: flex; align-items: baseline; gap: 8px; padding: 16px; }
.bw-one b { font-size: 22px; font-variant-numeric: tabular-nums; }
.bw-one span { color: var(--ink-2); }
.bw-card .bw-one { padding: 14px 16px 2px; }
.bw-chart { padding: 6px 10px 6px; }
.bw-all { border-top: .5px solid var(--sep); border-radius: 0 0 var(--r-card) var(--r-card); }

/* Kalender: Spalten = Wochen, Zeilen = Mo–So (Stufen l0–l4 = Anteil geschaffter Tagesziele) */
.cal-card { padding: 14px 14px 12px; }
.cal { display: grid; grid-auto-flow: column; grid-template-rows: 16px repeat(7, auto); grid-template-columns: 20px; grid-auto-columns: 1fr; gap: 3px; }
.cal-wd { font-size: 10px; line-height: 1; color: var(--ink-2); align-self: center; }
.cal-m { width: 0; overflow: visible; white-space: nowrap; font-size: 11px; color: var(--ink-2); }
.cal-c { display: block; aspect-ratio: 1; min-width: 0; padding: 0; border: 0; border-radius: 3.5px; background: var(--fill); }
.cal-c.l0 { background: #F6EBEE; }
.cal-c.l1 { background: #FAD9E2; }
.cal-c.l2 { background: #F5BCCC; }
.cal-c.l3 { background: #EE9AB2; }
.cal-c.l4 { background: #E07393; }
.cal-c.fut { background: transparent; box-shadow: inset 0 0 0 1px var(--sep); }
.cal-c.today:not(.sel) { outline: 1.5px solid var(--rose-300); outline-offset: 1px; }
.cal-c.sel { outline: 2px solid var(--rose-700); outline-offset: 1px; }
button.cal-c { position: relative; }
button.cal-c::after { content: ""; position: absolute; inset: -2px; }
.cal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: 12px; }
.cal-info { font-size: 15px; color: var(--ink-2); }
.cal-info b { color: var(--ink); font-weight: 600; }
.link.small { font-size: 15px; padding: 0 2px; }
.cal-legend { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--ink-2); }
.cal-legend .cal-c { width: 10px; }
.cal-legend .cal-c:first-of-type { margin-left: 3px; }
.cal-legend .cal-c:last-of-type { margin-right: 3px; }
/* eine Kachel pro Ziel, zwei nebeneinander, je ein Monat (seitlich wischen = blättern) */
.habits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; touch-action: pan-y; }
.habit { display: flex; flex-direction: column; min-width: 0; padding: 12px; }
.hb-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.hb-text { min-width: 0; }
.hb-name { font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-stats { display: flex; gap: 8px; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hb-stats span { display: flex; align-items: center; gap: 2px; }
.hb-stats .ic { width: 13px; height: 13px; stroke-width: 2.4; color: var(--tf); }
.hb-month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.hb-month i { display: block; aspect-ratio: 1; border-radius: 4px; background: var(--fill); }
.hb-month i.pad { background: none; }
.hb-month i.miss { background: var(--tb); }
.hb-month i.on { background: var(--tm); }
.hb-month i.fut { background: transparent; box-shadow: inset 0 0 0 1px var(--sep); }
.hb-month i.today { outline: 1.5px solid var(--tm); outline-offset: 1px; }
.month-nav { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; }
.month-nav h3 { flex: 1; text-align: center; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }

/* ---------- Profil ---------- */

.profile-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.avatar { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--rose-100); color: var(--rose-600); display: grid; place-items: center; }
.avatar .ic { width: 26px; height: 26px; }
button.avatar { border: 0; padding: 0; }
.avatar .ic { fill: currentColor; fill-opacity: .14; }

/* Neuigkeiten (aus CHANGELOG.md) */
.news-date { font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.news-card { padding: 14px 16px 14px 14px; }
.news-card > .news-date { margin: 10px 0 0 22px; font-size: 13px; }
.news-list { margin: 0; padding: 0; list-style: none; }
.news-list li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.45; text-wrap: pretty; }
.news-list li + li { margin-top: 10px; }
.news-list li::before { content: ""; position: absolute; left: 6px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--rose-300); }
.news-list b { font-weight: 600; }

/* Überraschung */
.love-card { padding: 28px 22px 24px; text-align: center; }
.love-card p { font-size: 17px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.love-card p + p { margin-top: 12px; }
.love-heart { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--rose-100); color: var(--rose-500); animation: beat 1.4s ease-in-out infinite; }
.love-heart .ic { width: 38px; height: 38px; fill: currentColor; }
.love-card .love-hi { font-size: 22px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.love-card .love-sign { margin-top: 18px; font-weight: 600; color: var(--rose-700); }
.love .big-btn { margin-top: 16px; }
@keyframes beat { 0%, 40%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 25% { transform: scale(.98); } }
.status-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 10px; }
.status-card > .ic { width: 22px; height: 22px; color: var(--rose-500); }
.status-card.ok > .ic { color: #35906C; stroke-width: 2.6; }
.status-card.warn > .ic { color: #C46A3A; }
.status-card p { flex: 1; min-width: 0; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
/* Zeiten: links die Beschriftung, rechts das Feld – wie in den iOS-Einstellungen */
.sub-row { flex-wrap: nowrap; justify-content: space-between; gap: 12px; min-height: 48px; padding-left: 64px; font-size: 15px; color: var(--ink-2); }
.sub-row .time-in { flex: none; }
.time-in {
	min-width: 0;
	padding: 7px 10px;
	border: 0;
	border-radius: 10px;
	background: var(--fill);
	font-size: 17px;
	font-weight: 500;
	-webkit-appearance: none;
	appearance: none;
}
.foot { margin: 28px 16px 0; text-align: center; font-size: 13px; line-height: 1.5; color: var(--ink-2); }

/* ---------- Formulare ---------- */

.form { padding: 0 16px; }
.field { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; }
.form > .field + .field::before { content: ""; position: absolute; top: 0; left: 0; right: -16px; height: .5px; background: var(--sep); }
.field > span { flex: none; width: 116px; font-size: 15px; color: var(--ink-2); }
.field input, .field textarea, .field select {
	flex: 1;
	min-width: 0;
	padding: 14px 0;
	border: 0;
	background: none;
	font-size: 17px;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}
.field input { text-overflow: ellipsis; }
.field select { color: var(--ink); }
.field textarea { resize: none; line-height: 1.4; }
/* mehrzeilige Felder: Beschriftung oben, Feld wächst mit dem Text */
.field.stack { flex-direction: column; align-items: stretch; gap: 0; padding-top: 12px; }
.field.stack > span { width: auto; font-size: 13px; }
.field.stack textarea { flex: none; padding: 2px 0 12px; overflow: hidden; }
.field.bare { flex: 1; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; }
.field.bare span { width: auto; font-size: 13px; }
.field.bare input { padding: 2px 0 4px; font-size: 17px; font-weight: 600; }
.card.form.field { padding: 0 16px; margin-top: 16px; }
.switch-field { justify-content: space-between; }
.switch-field > div > span { font-size: 15px; color: var(--ink); }
.switch-field small { display: block; font-size: 13px; color: var(--ink-2); }
.form-label { margin: 22px 4px 8px; font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); }
.form-hint { margin: 10px 4px 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.sheet-body > .card + .card { margin-top: 14px; }
.sheet-lead { margin: 0 4px 14px; font-size: 15px; color: var(--ink-2); }

/* Segmente gleich breit wie UISegmentedControl */
.seg { display: flex; flex-wrap: nowrap; gap: 2px; padding: 3px; border-radius: 12px; background: var(--fill); }
.seg button {
	flex: 1 1 0;
	min-width: 0;
	padding: 8px 4px;
	border: 0;
	border-radius: 10px;
	background: none;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	white-space: normal;
	transition: background-color .2s ease, box-shadow .2s ease, transform .2s var(--ease);
}
.seg button.on { background: var(--card); font-weight: 600; box-shadow: 0 1px 3px rgba(90, 40, 55, .14); }
.seg + .card { margin-top: 12px; }
.daypick { display: flex; justify-content: space-between; gap: 4px; margin-top: 12px; }
.daypick button {
	flex: 0 1 42px;
	min-width: 0;
	aspect-ratio: 1;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--fill);
	box-shadow: none;
	font-size: 15px;
	font-weight: 600;
	color: var(--ink-2);
	transition: transform .2s var(--ease);
}
.daypick button.on { background: var(--rose-200); color: var(--rose-800); box-shadow: none; }
.icon-pick { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.icon-pick button {
	aspect-ratio: 1;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: var(--fill);
	color: var(--ink-2);
	display: grid;
	place-items: center;
	box-shadow: none;
	transition: transform .2s var(--ease);
}
.icon-pick button.on { background: var(--tb); color: var(--tf); box-shadow: inset 0 0 0 2px var(--tf); }
.icon-pick .ic { width: 21px; height: 21px; }
.tint-pick { display: flex; gap: 12px; margin-top: 14px; padding: 0 2px; }
.tint-pick button { position: relative; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--tb); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .04); transition: transform .2s var(--ease); }
.tint-pick button.on { box-shadow: 0 0 0 2.5px var(--bg), 0 0 0 4.5px var(--tf); }
.wday:active, .rv-day:active { transform: scale(.94); transition-duration: .05s; }
.seg button:active, .daypick button:active, .icon-pick button:active, .tint-pick button:active, .del-btn:active { transform: scale(.92); transition-duration: .05s; }

.switch {
	width: 51px;
	height: 31px;
	flex: none;
	padding: 2px;
	border: 0;
	border-radius: 16px;
	background: #E8DEE1;
	transition: background-color .25s ease;
}
.switch span { display: block; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .14), 0 0 0 .5px rgba(0, 0, 0, .04); transition: transform .32s var(--ease); }
.switch.on { background: var(--rose-500); }
.switch.on span { transform: translateX(20px); }

/* ---------- Sheets ---------- */

#sheets { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.sheet-layer { position: absolute; inset: 0; pointer-events: auto; }
.sheet-layer.closing { pointer-events: none; }
.scrim { position: absolute; inset: 0; background: rgba(45, 25, 32, .3); opacity: 0; }
.sheet {
	position: absolute;
	left: 0;
	right: 0;
	bottom: var(--kb);
	max-width: 640px;
	margin: 0 auto;
	max-height: calc(100dvh - var(--safe-t) - 12px - var(--kb));
	display: flex;
	flex-direction: column;
	border-radius: 28px 28px 0 0;
	background: var(--bg);
	box-shadow: 0 -12px 40px -12px rgba(90, 40, 55, .26);
	will-change: transform;
}
/* oben Platz für den Pausen-Timer lassen, damit er Titel und Griff nicht verdeckt */
.sheet.tall { height: calc(100dvh - var(--safe-t) - 62px - var(--kb)); }
.sheet-top { flex: none; padding: 7px 14px 6px; touch-action: none; }
.grabber { display: block; width: 38px; height: 5px; margin: 0 auto 8px; border-radius: 3px; background: rgba(90, 50, 60, .18); }
.sheet-head { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 8px; }
.sheet-title {
	text-align: center;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.2;
	white-space: normal;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 10px 16px calc(var(--safe-b) + 24px); }
.as-msg { margin: 0 8px 14px; text-align: center; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.as-list { display: flex; flex-direction: column; gap: 8px; }
.as-item { height: 54px; border: 0; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-1); font-size: 17px; font-weight: 600; color: var(--rose-700); }
.as-item.danger { color: var(--danger); }
.as-item:active { background: var(--rose-50); }

/* ---------- Timer, Hinweise, Konfetti ---------- */

/* kommen in 350 ms, gehen in 200 ms */
.timer {
	position: fixed;
	left: 50%;
	top: calc(var(--safe-t) + 6px);
	z-index: 200;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 7px 7px 14px;
	border-radius: 999px;
	background: rgba(38, 30, 33, .92);
	color: #fff;
	box-shadow: var(--shadow-2);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, -12px) scale(.94);
	transform-origin: 50% 0;
	transition: opacity .15s ease-out, transform .2s ease-out, background-color .3s ease;
}
.timer.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(1); transition: opacity .2s ease-out, transform .35s var(--ease), background-color .3s ease; }
.timer.finished { background: rgba(176, 64, 98, .95); }
.tm-ic .ic { width: 20px; height: 20px; color: #F7B3C6; }
.timer.finished .tm-ic .ic { color: #fff; }
.tm-text { display: flex; flex-direction: column; min-width: 92px; }
.tm-time { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tm-label { max-width: 150px; font-size: 12px; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timer button { position: relative; white-space: nowrap; height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .15); color: #fff; font-size: 15px; font-weight: 600; transition: background-color .2s ease-out; }
.timer button:active { background: rgba(255, 255, 255, .3); transition-duration: 0s; }
.timer .tm-x { width: 34px; padding: 0; display: grid; place-items: center; }
.timer .tm-x .ic { width: 18px; height: 18px; }

/* der Hinweis fängt keine Tipps ab – nur sein Knopf („Rückgängig“) */
.toast {
	position: fixed;
	left: 50%;
	bottom: calc(var(--bar-b) + 76px);
	z-index: 300;
	display: flex;
	align-items: center;
	gap: 14px;
	width: max-content;
	max-width: calc(100% - 32px);
	padding: 12px 16px;
	border-radius: 16px;
	background: rgba(38, 30, 33, .92);
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	box-shadow: var(--shadow-2);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 14px);
	transition: opacity .15s ease-out, transform .2s ease-out;
}
.toast span { min-width: 0; }
.toast.show { opacity: 1; transform: translate(-50%, 0); transition: opacity .2s ease-out, transform .35s var(--ease); }
.toast.show button { pointer-events: auto; }
.toast button { padding: 0; border: 0; background: none; color: #F7B3C6; font-size: 15px; font-weight: 700; white-space: nowrap; }
.toast button:active { opacity: .5; }
.has-sheet .toast { bottom: calc(var(--safe-b) + 20px + var(--kb)); }

#fx { position: fixed; inset: 0; z-index: 400; pointer-events: none; }
.heart-fx { position: absolute; width: var(--s); height: var(--s); color: var(--c); opacity: 0; animation: heart-fx 2s cubic-bezier(.2, .6, .35, 1) forwards; }
.heart-fx svg { display: block; width: 100%; height: 100%; fill: currentColor; }
@keyframes heart-fx {
	0% { transform: translate(-50%, -50%) scale(.4); opacity: 0; }
	12% { opacity: .95; }
	75% { opacity: .9; }
	100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(var(--rot)); opacity: 0; }
}
.confetti { position: absolute; width: 8px; height: 11px; border-radius: 2px; animation: confetti 1.05s cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes confetti {
	0% { transform: translate(-50%, -50%) scale(.5) rotate(0); opacity: 1; }
	70% { opacity: 1; }
	100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 46px)) scale(1) rotate(var(--rot)); opacity: 0; }
}

/* ---------- Anmeldung ---------- */

.login {
	position: fixed;
	inset: 0;
	z-index: 500;
	display: grid;
	place-items: center;
	padding: 24px;
	background: radial-gradient(120% 70% at 50% 0%, #FDE3EB 0%, var(--bg) 62%);
}
.login-card { width: 100%; max-width: 340px; text-align: center; }
.login-icon { width: 92px; height: 92px; border-radius: 22px; box-shadow: var(--shadow-2); }
.login h1 { margin: 20px 0 4px; font-size: 34px; font-weight: 700; letter-spacing: -.022em; }
.login-card > p { color: var(--ink-2); font-size: 16px; }
.login-card > .login-label { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 99px; background: var(--rose-100); color: var(--rose-700); font-size: 13px; font-weight: 600; }
.login-label:empty { display: none; }
#pw {
	display: block;
	width: 100%;
	height: 56px;
	margin: 28px 0 12px;
	padding: 0 18px;
	border: 0;
	border-radius: 16px;
	background: var(--card);
	box-shadow: var(--shadow-1);
	font-size: 17px;
	outline: none;
}
#pw:focus { box-shadow: var(--shadow-1), 0 0 0 2px var(--rose-300); }
.login .big-btn { margin-top: 0; }
.login-err { min-height: 22px; margin-top: 14px; font-size: 15px; color: var(--danger); }
.shake { animation: shake .42s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---------- Bedienung mit Maus, weniger Bewegung, weniger Transparenz ---------- */

@media (hover: hover) and (pointer: fine) {
	.row[data-act]:hover, button.row:hover { background: rgba(120, 70, 85, .035); }
	.card.row:hover { background: var(--card); }
	.wday:hover:not(.sel) { background: rgba(255, 255, 255, .6); }
	.link:hover, .text-btn:hover { opacity: .75; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
	.tabbar { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
	.topbar::before { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
	.back, .tb-right .circle-btn, .tb-right .link { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
	:root { --ink-2: #5A4D52; --ink-3: #7E7076; --sep: rgba(60, 30, 40, .25); }
	.check { border-color: var(--rose-600); }
}
