/* Wrist-Time Kalender — alle Regeln unter .wtk, damit das Theme unberührt bleibt. */
.wtk {
	--wtk-main: #1f2a44;
	--wtk-accent: #e07a2e;
	--wtk-bg: #f1f1f1;
	--wtk-text: #333333;
	--wtk-muted: #6b7280;
	--wtk-line: #e2e2e2;
	--wtk-card: #ffffff;
	--wtk-empty: #e9e9e9;
	position: relative;
	color: var(--wtk-text);
	font-size: 15px;
	line-height: 1.45;
	margin: 1.5em 0;
}
.wtk *, .wtk *::before, .wtk *::after { box-sizing: border-box; }
.wtk h3 { margin: 0; font-size: 1em; line-height: 1.3; color: var(--wtk-main); }
.wtk button { font: inherit; color: inherit; }

/* Heute */
.wtk-heute {
	display: flex; align-items: center; gap: .6em;
	margin: 0 0 1em; padding: .7em 1em;
	background: var(--wtk-main); color: #fff; border-radius: 10px;
}
.wtk-heute strong { color: #fff; }
.wtk-heute-run { opacity: .8; }
.wtk-heute-dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.8); flex: none; }

/* Kennzahlen */
.wtk-kacheln {
	display: grid; gap: 10px;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	margin-bottom: 1.4em;
}
.wtk-kachel {
	background: var(--wtk-bg); border-radius: 10px; padding: .8em .9em;
	display: flex; flex-direction: column; gap: .2em;
	border-top: 3px solid var(--wtk-main);
}
.wtk-kachel-akzent { border-top-color: var(--wtk-accent); }
.wtk-k-wert { font-size: 1.55em; font-weight: 700; color: var(--wtk-main); line-height: 1.15; font-variant-numeric: tabular-nums; }
.wtk-k-klein { font-size: 1.15em; }
.wtk-k-text { font-size: .85em; color: var(--wtk-muted); }

/* Zeitband */
.wtk-band {
	display: flex; height: 34px; border-radius: 6px; overflow: hidden;
	background: var(--wtk-empty);
}
.wtk-b { flex: 1 1 0; min-width: 0; transition: opacity .15s; }
.wtk-b.wtk-leer { background: var(--wtk-empty); }
.wtk-band-achse { display: flex; justify-content: space-between; font-size: .78em; color: var(--wtk-muted); margin: .25em 0 1.4em; }

/* Jahre */
.wtk-jahre { display: flex; gap: 6px; margin-bottom: 1em; flex-wrap: wrap; }
.wtk-jahr-btn {
	border: 1px solid var(--wtk-line); background: var(--wtk-card); border-radius: 999px;
	padding: .3em .9em; cursor: pointer;
}
.wtk-jahr-btn[aria-selected="true"] { background: var(--wtk-main); border-color: var(--wtk-main); color: #fff; }

/* Monate */
.wtk-monate {
	display: grid; gap: 14px;
	grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
}
.wtk-monat {
	background: var(--wtk-card); border: 1px solid var(--wtk-line); border-radius: 10px; padding: .75em;
}
.wtk-monat-kopf { margin-bottom: .55em; min-height: 2.6em; }
.wtk-monat-top { display: flex; align-items: center; gap: .4em; font-size: .78em; color: var(--wtk-muted); margin-top: .15em; }
.wtk-raster { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.wtk-wt { font-size: .66em; text-align: center; color: var(--wtk-muted); padding-bottom: 2px; }
.wtk-z {
	aspect-ratio: 1; border-radius: 4px;
	display: flex; align-items: center; justify-content: center;
	font-size: .68em; font-variant-numeric: tabular-nums;
	transition: opacity .15s, transform .15s, filter .15s;
}
.wtk-voll { cursor: pointer; font-weight: 600; }
.wtk-voll:hover, .wtk-voll:focus-visible { transform: scale(1.18); outline: 2px solid var(--wtk-main); outline-offset: 1px; z-index: 2; position: relative; }
.wtk-leer { background: var(--wtk-empty); color: #9a9a9a; }
.wtk-vor { color: #c9c9c9; }
.wtk-zukunft { color: #bdbdbd; border: 1px dashed var(--wtk-line); }
.wtk-heute-z { box-shadow: 0 0 0 2px var(--wtk-card), 0 0 0 4px var(--wtk-accent); }

/* Filter aktiv */
.wtk.wtk-filter .wtk-voll:not(.wtk-an),
.wtk.wtk-filter .wtk-b:not(.wtk-an) { opacity: .12; filter: grayscale(1); }
.wtk.wtk-filter .wtk-voll.wtk-an { transform: none; }

/* Rangliste */
.wtk-rang { margin-top: 1.8em; }
.wtk-rang-kopf { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.wtk-alle { border: 0; background: var(--wtk-accent); color: #fff; border-radius: 999px; padding: .3em .9em; cursor: pointer; font-size: .85em; }
.wtk-hinweis { font-size: .82em; color: var(--wtk-muted); margin: .2em 0 .7em; }
.wtk-liste { list-style: none; margin: 0; padding: 0; }
.wtk-liste li { display: flex; align-items: center; gap: 4px; margin: 0 0 2px; padding: 0; }
.wtk-uhr {
	flex: 1; min-width: 0;
	display: grid; align-items: center; column-gap: .6em;
	grid-template-columns: 12px minmax(0, 13em) 1fr 4.5em;
	grid-template-areas: "dot name bar num" ". meta meta meta";
	text-align: left; background: transparent; border: 1px solid transparent; border-radius: 8px;
	padding: .35em .5em; cursor: pointer;
}
.wtk-uhr:hover { background: var(--wtk-bg); }
.wtk-uhr[aria-pressed="true"] { background: var(--wtk-bg); border-color: var(--wtk-main); }
.wtk-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; grid-area: dot; }
.wtk-uhr-name { grid-area: name; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wtk-balken { grid-area: bar; height: 10px; background: var(--wtk-empty); border-radius: 5px; overflow: hidden; }
.wtk-balken span { display: block; height: 100%; border-radius: 5px; }
.wtk-uhr-zahl { grid-area: num; font-variant-numeric: tabular-nums; font-size: .9em; white-space: nowrap; }
.wtk-uhr-meta { grid-area: meta; font-size: .75em; color: var(--wtk-muted); }
.wtk-uhr-link { width: 1.8em; text-align: center; flex: none; text-decoration: none; color: var(--wtk-accent); font-weight: 700; padding: .3em .45em; border-radius: 6px; }
.wtk-uhr-link:hover { background: var(--wtk-bg); }
.wtk-nie { font-size: .85em; color: var(--wtk-muted); margin-top: .8em; }
.wtk-quelle { font-size: .78em; color: var(--wtk-muted); margin-top: 1.4em; }
.wtk-fehler { padding: .8em 1em; border-left: 4px solid var(--wtk-accent, #e07a2e); background: #fff6ef; }

/* Tooltip */
.wtk-tip {
	position: absolute; z-index: 20; pointer-events: none;
	background: var(--wtk-main); color: #fff; border-radius: 8px;
	padding: .45em .7em; font-size: .82em; line-height: 1.35; max-width: 240px;
	box-shadow: 0 6px 18px rgba(0,0,0,.18);
	transform: translate(-50%, calc(-100% - 10px));
}
.wtk-tip strong { display: block; color: #fff; }
.wtk-tip em { font-style: normal; opacity: .75; }

@media (max-width: 520px) {
	.wtk-monate { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.wtk-monat { padding: .5em; }
	.wtk-raster { gap: 2px; }
	.wtk-z { font-size: .58em; border-radius: 3px; }
	.wtk-monat-kopf { min-height: 2.9em; }
	.wtk-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wtk-k-wert { font-size: 1.3em; }
	.wtk-k-klein { font-size: 1em; }
	.wtk-uhr { grid-template-columns: 12px minmax(0, 1fr) auto; grid-template-areas: "dot name num" ". bar bar" ". meta meta"; row-gap: .25em; }
}

@media (prefers-reduced-motion: reduce) {
	.wtk-z, .wtk-b { transition: none; }
}

/* Tragebilanz einer Uhr ([wristtime_uhr]) */
.wtk-bilanz {
	display: flex; align-items: center; flex-wrap: wrap; gap: .3em .5em;
	font-size: .85em; color: #333333; margin: .3em 0 .5em;
}
.wtk-bilanz strong { color: #1f2a44; }
.wtk-bilanz .wtk-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.wtk-bilanz > span:nth-child(2) { flex: 1 1 0; min-width: 0; }
.wtk-bilanz-balken { flex: 1 0 100%; height: 5px; background: #e2e2e2; border-radius: 3px; overflow: hidden; }
.wtk-bilanz-balken span { display: block; height: 100%; border-radius: 3px; }
.wtk-bilanz-leer { color: #6b7280; font-style: italic; }
.wtk-bilanz-heute .wtk-dot { box-shadow: 0 0 0 2px #f1f1f1, 0 0 0 4px #e07a2e; }

/* Karten auf der Sammlungsseite: Gruppen-Block mit Klasse wtk-karte */
.wtk-karte {
	background: #f1f1f1; border-radius: 10px; padding: 12px 14px 14px;
	display: flex; flex-direction: column; gap: .35em;
}
.wtk-karte > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.wtk-karte figure { margin: 0 0 .4em !important; }
.wtk-karte img { width: 100%; height: auto; aspect-ratio: 5 / 6; object-fit: cover; border-radius: 6px; display: block; }
.wtk-karte figcaption { font-size: .7em; color: #6b7280; margin: .3em 0 0; text-align: left; }
.wtk-karte h3 { font-size: 1.1em; color: #1f2a44; margin: 0; }
.wtk-karte .wtk-karte-meta { font-size: .8em; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; }
.wtk-karte .wtk-karte-text { font-size: .9em; }
.wtk-karte a { color: #e07a2e; font-weight: 600; }
.wtk-ehemalig img { filter: grayscale(1); opacity: .75; }
