/* ============================================================
   AnalogClock - Stylesheet der gesamten Seite
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

[hidden] { display: none !important; }

body {
	margin: 0;
	min-height: 100vh;
	background: #eef0f3;
	background-image: radial-gradient(ellipse at 50% -10%, #ffffff 0%, #e6e9ee 65%);
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: #3a4553;
}

.page-title {
	font-size: clamp(1rem, 2.4vw, 1.4rem);
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #8b95a3;
	margin: 0;
	text-align: center;
	padding-top: 2.5rem;
}

/* -- Tabs ---------------------------------------------- */
.tabs {
	position: sticky;
	top: 0;
	z-index: 100;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 1.8rem;
	padding: 0.6rem 1rem;
	background: rgba(238, 240, 243, 0.88);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid #d7dbe1;
}

.tab-btn {
	background: transparent;
	border: 0;
	padding: 0.7rem 1.6rem;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #8b95a3;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.tab-btn:hover { color: #3a4553; }

.tab-btn[aria-selected="true"] {
	color: #d4372c;
	border-bottom-color: #d4372c;
}

.tab-btn:focus-visible { outline: 2px solid #d4372c; outline-offset: 2px; }

.tab-panel { display: none; }
.tab-panel[data-active="true"] { display: block; }

/* Verweis von der Doku in den Add-on-Tab */
.tab-link {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: #a8322a;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.tab-link:hover { color: #d4372c; }
.tab-link:focus-visible { outline: 2px solid #d4372c; outline-offset: 2px; }

/* -- Demo-Panel ---------------------------------------- */
#panel-demo {
	max-width: 1180px;
	margin: 0 auto;
	padding: 2rem 1.5rem 2rem;
}

#panel-demo[data-active="true"] { display: block; }

.demo-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2.6rem 3rem;
	margin-bottom: 3.4rem;
}

.demo {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.9rem;
}

.demo .caption {
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: #8b95a3;
	text-align: center;
	max-width: 15rem;
}

.demo .caption b { color: #3a4553; font-weight: 600; }

.section-head {
	text-align: center;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: #b0b8c3;
	margin: 0 0 2rem;
}

.section-head::after {
	content: "";
	display: block;
	width: 3rem;
	height: 1px;
	background: #d0d6de;
	margin: 0.8rem auto 0;
}

/* -- Ebenenstapel (Add-ons-Tab) ------------------------
   Die Reihenfolge im Markup ist die Dokumentreihenfolge im
   SVG - zuunterst zuerst. column-reverse dreht sie fuer die
   Anzeige um, damit oben liegt, was zuletzt gezeichnet wird. */
.ebenen-stapel {
	display: flex;
	flex-direction: column-reverse;
	gap: 0.3rem;
	max-width: 36rem;
	margin: 1.6rem auto 0.9rem;
	padding-left: 2.4rem;
}

.ebene {
	display: flex;
	align-items: baseline;
	gap: 0.85rem;
	padding: 0.6rem 1.15rem;
	background: #ffffff;
	border: 1px solid #dfe3e9;
	border-left: 3px solid #c9ced6;
	border-radius: 3px;
	box-shadow: 0 1px 0 rgba(29, 37, 48, .07);
	transform: skewX(-26deg);
}

/* Inhalt wieder geradestellen - nur die Platte ist schraeg. */
.ebene>* {
	transform: skewX(26deg);
}

.ebene.is-addon {
	background: #fdf4f2;
	border-color: #f0cdc6;
	border-left-color: #d4372c;
}

.ebene-nr {
	min-width: 1.1rem;
	color: #a5adb9;
	font-size: 0.68rem;
	font-variant-numeric: tabular-nums;
}

.ebene-name {
	color: #1d2530;
	font-size: 0.86rem;
	font-weight: 600;
}

.ebene.is-addon .ebene-name {
	color: #9c2b22;
}

.ebene-name code {
	font-size: 0.82em;
}

.ebene-hint {
	margin-left: auto;
	padding-left: 1rem;
	color: #8b95a3;
	font-size: 0.74rem;
	text-align: right;
}

.ebenen-legende {
	max-width: 36rem;
	margin: 0 auto 2.4rem;
	color: #8b95a3;
	font-size: 0.72rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	text-align: center;
}

@media (max-width: 40rem) {
	.ebenen-stapel {
		padding-left: 0;
	}

	.ebene,
	.ebene>* {
		transform: none;
	}

	.ebene-hint {
		display: none;
	}
}

/* -- Aufgaben-Block (Demo) ----------------------------- */
.task {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2.5rem;
	max-width: 46rem;
	margin: 0 auto 1rem;
	padding: 1.8rem;
	background: #fff;
	border: 1px solid #dde1e7;
	border-radius: 10px;
}

.task-side { flex: 1 1 15rem; min-width: 14rem; }

.task-prompt {
	font-size: 1.05rem;
	color: #3a4553;
	margin: 0 0 0.3rem;
}

.task-target {
	font-family: ui-monospace, "SF Mono", Consolas, monospace;
	font-size: 2.2rem;
	color: #1d2530;
	letter-spacing: 0.04em;
	margin: 0 0 1.1rem;
}

.task-result {
	min-height: 1.6rem;
	font-size: 0.92rem;
	font-weight: 500;
	margin-bottom: 1rem;
}

.task-result[data-ok="true"] { color: #1f7a4d; }
.task-result[data-ok="false"] { color: #d4372c; }

.task-readout {
	font-family: ui-monospace, "SF Mono", Consolas, monospace;
	font-size: 0.78rem;
	color: #8b95a3;
	margin-bottom: 1rem;
}

/* -- Doku- und Add-on-Panel ---------------------------- */
#panel-docs,
#panel-addons,
.abschnitt {
	max-width: 1100px;
	margin: 0 auto;
	padding: 2rem 1.5rem 2rem;
	line-height: 1.65;
}

#panel-docs h2,
#panel-addons h2,
.abschnitt h2 {
	font-size: 1.35rem;
	font-weight: 600;
	color: #1d2530;
	margin: 2.6rem 0 1rem;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid #d7dbe1;
}

#panel-docs h2:first-of-type,
#panel-addons h2:first-of-type,
.abschnitt h2:first-of-type { margin-top: 1rem; }

#panel-docs h3,
#panel-addons h3,
.abschnitt h3 {
	font-size: 1rem;
	font-weight: 600;
	color: #3a4553;
	margin: 1.6rem 0 0.6rem;
}

#panel-docs p,
#panel-addons p,
.abschnitt p { margin: 0.6rem 0; }

#panel-docs strong,
#panel-addons strong,
.abschnitt strong { color: #1d2530; font-weight: 600; }

#panel-docs code,
#panel-addons code,
.abschnitt code {
	font-family: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, monospace;
	font-size: 0.86em;
	background: #e2e6ec;
	color: #a8322a;
	padding: 0.1em 0.4em;
	border-radius: 3px;
}

#panel-docs pre,
#panel-addons pre,
.abschnitt pre {
	background: #1d2530;
	border-radius: 6px;
	padding: 1rem 1.2rem;
	overflow-x: auto;
	line-height: 1.55;
}

#panel-docs pre code,
#panel-addons pre code,
.abschnitt pre code {
	background: none;
	color: #d8dee7;
	padding: 0;
	font-size: 0.82rem;
}

#panel-docs table,
#panel-addons table,
.abschnitt table {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0 1.6rem;
	font-size: 0.88rem;
}

#panel-docs th,
#panel-docs td,
#panel-addons th,
#panel-addons td,
.abschnitt th,
.abschnitt td {
	text-align: left;
	padding: 0.55rem 0.8rem;
	border-bottom: 1px solid #dde1e7;
	vertical-align: top;
}

#panel-docs th,
#panel-addons th,
.abschnitt th {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: #8b95a3;
	font-weight: 600;
}

#panel-docs td:first-child,
#panel-addons td:first-child,
.abschnitt td:first-child { white-space: nowrap; }

/* Auf schmalen Displays scrollen die Tabellen für sich, statt die
   ganze Seite waagerecht zu schieben. */
@media (max-width: 640px) {
	#panel-docs table,
	#panel-addons table,
	.abschnitt table {
		display: block;
		max-width: 100%;
		overflow-x: auto;
	}
}

/* -- Download-Box -------------------------------------- */
.dl-box {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	padding: 1.2rem;
	margin: 1.6rem 0 2.2rem;
	background: #fff;
	border: 1px solid #dde1e7;
	border-radius: 8px;
}

.dl-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.7rem 1.2rem;
	background: #f6f8fa;
	border: 1px solid #d0d6de;
	border-radius: 5px;
	color: #1d2530;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.86rem;
	letter-spacing: 0.04em;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.dl-btn:hover { background: #eef1f5; border-color: #b6bfca; }
.dl-btn:active { transform: translateY(1px); }
.dl-btn:focus-visible { outline: 2px solid #d4372c; outline-offset: 2px; }

.dl-btn svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: #d4372c;
}

.dl-btn .dl-size {
	color: #8b95a3;
	font-weight: 400;
	font-size: 0.78rem;
	letter-spacing: 0;
}

#panel-docs .lead,
#panel-addons .lead,
.abschnitt .lead {
	font-size: 1.02rem;
	color: #3a4553;
	margin: 0 0 0.4rem;
}

.note {
	border-left: 3px solid #d4372c;
	background: #f7e9e7;
	padding: 0.9rem 1.1rem;
	margin: 1.4rem 0;
	font-size: 0.92rem;
}

/* Uhren mitten im Fließtext der Add-on-Seite */
.inline-clocks {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem 2.6rem;
	padding: 1.8rem 1rem;
	margin: 1.6rem 0 2rem;
	background: #fff;
	border: 1px solid #dde1e7;
	border-radius: 10px;
}

/* -- Spielwiese ---------------------------------------- */
#panel-playground {
	max-width: 1180px;
	margin: 0 auto;
	padding: 2rem 1.5rem 2rem;
}

.pg-layout {
	display: grid;
	grid-template-columns: minmax(280px, 1fr) minmax(320px, 460px);
	gap: 2.5rem;
	align-items: start;
}

@media (max-width: 860px) {
	.pg-layout { grid-template-columns: 1fr; }
}

.pg-stage {
	position: sticky;
	top: 5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.2rem;
	padding: 2rem 1rem;
	background: #fff;
	border: 1px solid #dde1e7;
	border-radius: 10px;
}

#pg-clock { --ac-size: min(20rem, 62vw); }

.pg-readout {
	font-family: ui-monospace, "SF Mono", Consolas, monospace;
	font-size: 1.4rem;
	letter-spacing: 0.08em;
	color: #1d2530;
}

.pg-state {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: #8b95a3;
}

.pg-panel {
	background: #fff;
	border: 1px solid #dde1e7;
	border-radius: 10px;
	padding: 1.4rem 1.5rem 1.8rem;
}

.pg-field { margin-bottom: 1.15rem; }

.pg-label {
	display: block;
	font-size: 0.68rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: #8b95a3;
	margin-bottom: 0.45rem;
}

.pg-select,
.pg-input {
	width: 100%;
	padding: 0.5rem 0.65rem;
	font: inherit;
	font-size: 0.9rem;
	color: #1d2530;
	background: #f6f8fa;
	border: 1px solid #d0d6de;
	border-radius: 5px;
}

.pg-select:focus,
.pg-input:focus {
	outline: 2px solid #d4372c;
	outline-offset: -1px;
}

.pg-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.pg-btn {
	flex: 1 1 auto;
	padding: 0.45rem 0.7rem;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 500;
	color: #3a4553;
	background: #f6f8fa;
	border: 1px solid #d0d6de;
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.12s ease, border-color 0.12s ease;
}

.pg-btn:hover { background: #e9edf2; border-color: #b6bfca; }
.pg-btn:focus-visible { outline: 2px solid #d4372c; outline-offset: 1px; }
.pg-btn.is-primary { background: #1d2530; border-color: #1d2530; color: #fff; }
.pg-btn.is-primary:hover { background: #2b3441; }

.pg-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.1rem;
}

.pg-check {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.88rem;
	cursor: pointer;
}

.pg-themes {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.pg-theme {
	padding: 0.35rem 0.75rem;
	font-size: 0.8rem;
	border: 1px solid #d0d6de;
	border-radius: 999px;
	background: #f6f8fa;
	cursor: pointer;
}

.pg-theme[aria-pressed="true"] {
	background: #1d2530;
	border-color: #1d2530;
	color: #fff;
}

.pg-log {
	font-family: ui-monospace, "SF Mono", Consolas, monospace;
	font-size: 0.74rem;
	line-height: 1.75;
	max-height: 13rem;
	overflow-y: auto;
	border: 1px solid #e4e8ed;
	border-radius: 6px;
	padding: 0.5rem 0.7rem;
	background: #fbfcfd;
}

.pg-log:empty::after {
	content: "Zieh an einem Zeiger oder drück einen Knopf.";
	color: #b0b8c3;
	font-family: inherit;
}

.pg-log-row { white-space: pre; color: #5a6675; }
.pg-log-row b { display: inline-block; width: 4.6rem; font-weight: 600; }
.pg-log-row[data-type="start"] b,
.pg-log-row[data-type="end"] b { color: #8b95a3; }
.pg-log-row[data-type="slide"] b { color: #2f6f8f; }
.pg-log-row[data-type="update"] b { color: #1d2530; }
.pg-log-row[data-type="change"] b,
.pg-log-row[data-type="set"] b { color: #d4372c; }
.pg-log-row[data-type="tick"] { color: #b0b8c3; }

.pg-code {
	margin-top: 1.6rem;
	background: #1d2530;
	border-radius: 8px;
	padding: 1rem 1.1rem;
	overflow-x: auto;
}

.pg-code pre {
	margin: 0;
	font-family: ui-monospace, "SF Mono", Consolas, monospace;
	font-size: 0.78rem;
	line-height: 1.6;
	color: #d8dee7;
	white-space: pre;
}

footer {
	text-align: center;
	padding: 2rem 1rem 3rem;
	font-size: 0.75rem;
	color: #a3acb8;
}

/* ============================================================
   Ab hier: was seit der Aufteilung auf mehrere Seiten dazukam.
   Diese Datei gilt fuer die ganze Site - Hauptseite, Add-on-
   Seiten und Rezepte. Alles davor stammt unveraendert aus dem
   frueheren <style>-Block der index.html.
   ============================================================ */

/* -- Kopfleiste ------------------------------------------- */
/* Auf Unterseiten steht ueber dem Titel der Weg zurueck.     */

.site-head {
	max-width: 62rem;
	margin: 0 auto;
	padding: 1.6rem 1.5rem 0;
}

.site-back {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #8b95a3;
	text-decoration: none;
	transition: color 0.15s ease;
}

.site-back:hover { color: #d4372c; }
.site-back svg { width: 0.85em; height: 0.85em; }

.site-back:focus-visible { outline: 2px solid #d4372c; outline-offset: 3px; border-radius: 2px; }

/* Untertitel unter dem Seitentitel, z.B. "Add-on fuer AnalogClock" */
.page-kicker {
	text-align: center;
	margin: 0.5rem 0 0;
	font-size: 0.78rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #b3bcc7;
}

/* -- Katalog der Add-ons ---------------------------------- */

.katalog {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
	gap: 1.1rem;
	margin: 0 auto 0;
}

.karte {
	position: relative;          
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #dfe3e9;
	border-radius: 0.7rem;
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.karte:hover {
	border-color: #c3cad4;
	box-shadow: 0 6px 18px rgba(58, 69, 83, 0.09);
}

/* Lebende Vorschau: eine echte Uhr mit dem Add-on darauf. */
.karte-buehne {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 9.5rem;
	padding: 1.1rem 1rem 0.6rem;
	background: radial-gradient(ellipse at 50% 20%, #fbfcfd 0%, #eef1f5 100%);
	border-bottom: 1px solid #eceff3;
}

.karte-buehne .analogclock { --ac-size: 7.5rem; }

.karte-text {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 0.95rem 1.1rem 1.1rem;
}

.karte-titel {
	margin: 0 0 0.35rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #2b3542;
}

.karte-titel code {
	font-size: 0.82em;
	font-weight: 500;
	color: #8b95a3;
	background: none;
	padding: 0;
}

.karte-satz {
	margin: 0 0 0.85rem;
	font-size: 0.85rem;
	line-height: 1.5;
	color: #6b7684;
	flex: 1;
}

.karte-marken {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	margin-bottom: 0.85rem;
}

.marke {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.2rem 0.5rem;
	border-radius: 0.3rem;
	background: #eef1f5;
	color: #7b8593;
}

.marke[data-art="hinweis"] {
	background: #fdf1ef;
	color: #b0463c;
}

.karte-fuss {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.7rem;
	font-size: 0.78rem;
}

.karte-mehr {
	font-weight: 600;
	color: #a8322a;
	text-decoration: none;
}

/* Der Link deckt die ganze Karte ab - Trefferfläche statt Textzeile.
   Er bleibt ein echter <a>: Rechtsklick, Mittelklick, Statusleiste
   und Screenreader funktionieren unverändert. */
.karte-mehr::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.karte:has(.karte-mehr:focus-visible) {
	outline: 2px solid #d4372c;
	outline-offset: 3px;
}

@supports selector(:has(*)) {
	.karte-mehr:focus-visible { outline: none; }
}

/* Ohne :has bleibt der Fokusring am Link - besser als gar keiner. */
.karte-mehr:focus-visible { outline: 2px solid #d4372c; outline-offset: 3px; border-radius: 2px; }

.karte-titel code {
	position: relative;
	z-index: 2;
	user-select: text;
	/* … bestehende Deklarationen … */
}

.karte-groesse { color: #a3acb8; font-variant-numeric: tabular-nums; }

/* -- Filterleiste ----------------------------------------- */

.filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
	max-width: 62rem;
	margin: 0 auto 1.4rem;
	padding: 0 1.5rem;
}

.filter-btn {
	font: inherit;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0.35rem 0.85rem;
	border: 1px solid #dfe3e9;
	border-radius: 1rem;
	background: #fff;
	color: #8b95a3;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.filter-btn:hover { color: #3a4553; border-color: #c3cad4; }

.filter-btn[aria-pressed="true"] {
	background: #d4372c;
	border-color: #d4372c;
	color: #fff;
}

.filter-btn:focus-visible { outline: 2px solid #d4372c; outline-offset: 2px; }

/* -- Rezeptliste ------------------------------------------ */
/* Ein Rezept zeigt kein einzelnes Add-on, sondern ihr
   Zusammenspiel - daher schmaler und ohne Buehne.           */

.rezepte {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
	gap: 0.9rem;
	max-width: 62rem;
	margin: 0 auto 2.5rem;
	padding: 0 1.5rem;
}

.rezept {
	display: block;
	padding: 1rem 1.15rem;
	background: #fff;
	border: 1px solid #dfe3e9;
	border-left: 3px solid #d4372c;
	border-radius: 0.5rem;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.rezept:hover {
	border-color: #c3cad4;
	box-shadow: 0 6px 18px rgba(58, 69, 83, 0.09);
}
.rezept:focus-visible { outline: 2px solid #d4372c; outline-offset: 3px; }

.rezept-titel {
	margin: 0 0 0.3rem;
	font-size: 0.92rem;
	font-weight: 600;
	color: #2b3542;
}

.rezept-satz {
	margin: 0 0 0.6rem;
	font-size: 0.83rem;
	line-height: 1.5;
	color: #6b7684;
}

.rezept-zutaten {
	font-size: 0.72rem;
	color: #a3acb8;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* -- Add-on-Detailseite ----------------------------------- */
/* Kein Tab-Wechsel: ein Add-on hat weniger Stoff als die
   Bibliothek und liest sich in einem Durchgang besser.      */

.sprungmarken {
	position: sticky;
	top: 0;
	z-index: 100;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.2rem;
	margin-top: 1.6rem;
	padding: 0.6rem 1rem;
	background: rgba(238, 240, 243, 0.88);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid #d7dbe1;
}

.sprungmarken a {
	padding: 0.55rem 1.1rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #8b95a3;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.sprungmarken a:hover { color: #3a4553; }
.sprungmarken a:focus-visible { outline: 2px solid #d4372c; outline-offset: 2px; }
.sprungmarken a[aria-current="true"] { color: #d4372c; border-bottom-color: #d4372c; }

/* Damit die klebende Leiste die Ueberschrift nicht verdeckt.
   Breite, Typografie und Tabellen kommen aus der Selektorgruppe
   von #panel-docs weiter oben - eine Add-on-Seite sieht damit aus
   wie der Doku-Tab der Hauptseite. */
.abschnitt { scroll-margin-top: 4.5rem; padding-top: 1.2rem; }

/* Innen liegende Bloecke ruecken nicht noch einmal ein. */
.abschnitt .katalog,
.abschnitt .rezepte,
.abschnitt .filter,
.abschnitt .mini-pg { padding-left: 0; padding-right: 0; }

/* Zwei Uhren nebeneinander, Regler daneben - fuer die kleine
   Spielwiese einer Add-on-Seite. */
.mini-pg {
	display: grid;
	grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
	gap: 1.6rem;
	align-items: start;
	max-width: 52rem;
	margin: 0 auto 2rem;
	padding: 0 1.5rem;
}

@media (max-width: 46rem) {
	.mini-pg { grid-template-columns: 1fr; }
}

.mini-pg-buehne {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.7rem;
	padding: 1.4rem;
	background: #fff;
	border: 1px solid #dfe3e9;
	border-radius: 0.7rem;
	position: sticky;
	top: 4.5rem;
}

/* Auf sehr flachen Fenstern würde die Uhr oben abgeschnitten
   stehenbleiben - dann lieber normal mitlaufen. */
@media (max-height: 26rem) {
	.mini-pg-buehne { position: static; }
}

.mini-pg-buehne .analogclock { --ac-size: 15rem; }

.mini-ablesung {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.8rem;
	color: #6b7684;
	text-align: center;
	line-height: 1.6;
	font-variant-numeric: tabular-nums;
}

.mini-ablesung b { color: #2b3542; font-weight: 600; }

/* -- Ortseingabe ------------------------------------------ */
/* suntimes, moontimes und die Rezepte brauchen alle lat/lon. */

.ort {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 0.9rem;
	align-items: end;
	padding: 0.9rem 1.1rem;
	background: #fff;
	border: 1px solid #dfe3e9;
	border-radius: 0.6rem;
}

.ort label {
	display: block;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8b95a3;
	margin-bottom: 0.25rem;
}

.ort input,
.ort select {
	font: inherit;
	font-size: 0.85rem;
	padding: 0.35rem 0.5rem;
	border: 1px solid #dfe3e9;
	border-radius: 0.35rem;
	background: #fff;
	color: #3a4553;
}

.ort input { width: 6.5rem; font-variant-numeric: tabular-nums; }

.ort button {
	font: inherit;
	font-size: 0.8rem;
	padding: 0.4rem 0.8rem;
	border: 1px solid #dfe3e9;
	border-radius: 0.35rem;
	background: #fff;
	color: #3a4553;
	cursor: pointer;
}

.ort button:hover { background: #f4f6f8; border-color: #c3cad4; }
.ort input:focus-visible,
.ort select:focus-visible,
.ort button:focus-visible { outline: 2px solid #d4372c; outline-offset: 1px; }

/* -- Zeittafel -------------------------------------------- */

.tafel {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.83rem;
	font-variant-numeric: tabular-nums;
}

.tafel th,
.tafel td {
	padding: 0.4rem 0.9rem 0.4rem 0;
	text-align: left;
	border-bottom: 1px solid #eceff3;
}

.tafel th {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8b95a3;
}

.tafel td { color: #4a5563; }

/* -- Schieberegler ---------------------------------------- */
/* Ergaenzt .pg-input und .pg-select um den Typ range plus die
   mitlaufende Zahl im Label.                                 */

.pg-range {
	width: 100%;
	margin: 0.15rem 0 0;
	accent-color: #d4372c;
	background: none;
	cursor: pointer;
}

.pg-range:focus-visible { outline: 2px solid #d4372c; outline-offset: 3px; }

.pg-value {
	float: right;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: #6b7684;
	font-variant-numeric: tabular-nums;
}

/* ============================================================
   Vollbild-Modal
   ============================================================ */

.hero-actions {
	display: flex;
	justify-content: center;
	margin-top: 2rem;
}

.open-clock {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.6rem 1.15rem;
	border: 1px solid #c9ced6;
	border-radius: 999px;
	background: #fff;
	color: #1d2530;
	font: inherit;
	font-size: 0.86rem;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.open-clock:hover {
	border-color: #1d2530;
	box-shadow: 0 2px 10px rgba(29, 37, 48, .10);
	transform: translateY(-1px);
}
.open-clock svg { width: 1.05em; height: 1.05em; }

/* Der Dialog selbst: randlos über den ganzen Viewport ------- */
.clock-modal {
	--modal-pad: 0rem;              /* Luft zwischen Blattrand und Fensterkante */
	--modal-bg: #fff;               /* Hintergrund hinter der Uhr */

	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100svh;
	max-width: 100vw;
	max-height: 100svh;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--modal-bg);
	overflow: hidden;
}
.clock-modal[open] {
	display: grid;
	place-items: center;
}
.clock-modal::backdrop { background: rgba(20, 26, 34, .55); }

/* Dezentes X ----------------------------------------------- */
.clock-modal-close {
	position: absolute;
	top: 0.9rem;
	right: 0.9rem;
	z-index: 2;
	width: 2.4rem;
	height: 2.4rem;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: currentColor;
	opacity: .3;
	cursor: pointer;
	transition: opacity .15s, background-color .15s;
}
.clock-modal-close:hover,
.clock-modal-close:focus-visible { opacity: 1; background: rgba(128, 128, 128, .12); }
.clock-modal-close svg { width: 1.35rem; height: 1.35rem; }

/* ►►►►►  HIER wird die Uhr formatiert  ◄◄◄◄◄
   Größe: das Quadrat nimmt die kleinere der beiden
   Viewport-Kanten - also so groß wie irgend möglich. */
#modal-clock {
	--ac-size: calc(min(100vw, 100svh) - 2 * var(--modal-pad));

	/* ab hier frei: --ac-face, --ac-numeral, --ac-hand-second,
	   --ac-numeral-font, --ac-tick-hour-width … */
}
