/* Periodensystem der Elemente — Layout und Darstellung */

:root {
	--bg:            #0d1117;
	--bg-erhoben:    #161b22;
	--bg-panel:      #12171f;
	--linie:         #2b3440;
	--text:          #e8edf4;
	--text-leise:    #8b97a8;
	--akzent:        #5aa9ff;

	--zelle-b: 68px;
	--zelle-h: 68px;
	--luecke:  4px;

	/* Kategoriefarben: Grundton, Füllung, Rand */
	--kat-alkalimetall:        #ff9d4d;
	--kat-erdalkalimetall:     #ffd166;
	--kat-uebergangsmetall:    #ff6b7a;
	--kat-hauptgruppenmetall:  #6fb1ff;
	--kat-lanthanoid:          #c89b6a;
	--kat-actinoid:            #e08cc8;
	--kat-halbmetall:          #43cfc0;
	--kat-nichtmetall:         #7bdc7b;
	--kat-halogen:             #c7e35a;
	--kat-edelgas:             #a48cff;
	--kat-unbekannt:           #8b97a8;

	/* Aggregatzustände — kalt nach warm */
	--agg-fest:      #5b8fd4;
	--agg-fluessig:  #35c9b6;
	--agg-gas:       #ff8a4d;
	--agg-unbekannt: #7a8698;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-text-size-adjust: 100%;
}

/* ---------- Kopfbereich ---------- */

.kopf {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 1rem;
	border-bottom: 1px solid var(--linie);
}

.kopf h1 {
	margin: 0;
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 600;
	letter-spacing: -0.02em;
}

.kopf__sub {
	margin: 0.25rem 0 0;
	color: var(--text-leise);
	font-size: 0.85rem;
}

.schalter {
	display: inline-flex;
	padding: 3px;
	gap: 3px;
	background: var(--bg-erhoben);
	border: 1px solid var(--linie);
	border-radius: 10px;
}

.schalter__knopf {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 0.45rem 0.9rem;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: var(--text-leise);
	font: inherit;
	font-size: 0.85rem;
	line-height: 1.1;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.schalter__knopf span {
	font-size: 0.68rem;
	opacity: 0.75;
}

.schalter__knopf:hover { color: var(--text); }

.schalter__knopf.is-aktiv {
	background: var(--akzent);
	color: #08121e;
	font-weight: 600;
}

.schalter__knopf.is-aktiv span { opacity: 0.85; }

/* ---------- Bühne ---------- */

.buehne {
	padding: 1.25rem clamp(0.5rem, 3vw, 2.5rem) 2rem;
}

/* ---------- Temperaturleiste ---------- */

.temperatur {
	max-width: 76rem;
	margin: 0 auto 1.5rem;
	padding: 0.85rem 1rem 0.7rem;
	border: 1px solid var(--linie);
	border-radius: 10px;
	background: var(--bg-erhoben);
}

.temperatur__zeile {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.temperatur__fix {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	flex: 0 0 auto;
	font-size: 0.78rem;
	color: var(--text-leise);
	cursor: pointer;
	user-select: none;
}

.temperatur__fix input { accent-color: var(--akzent); cursor: pointer; margin: 0; }
.temperatur__fix:hover { color: var(--text); }

.temperatur__schritt {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border: 1px solid var(--linie);
	border-radius: 6px;
	background: var(--bg);
	color: var(--text);
	font: inherit;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
}

.temperatur__schritt:hover { background: var(--linie); }

/* Bahn trägt Regler und Marken übereinander */
.temperatur__bahn {
	container: bahn / inline-size;   /* Markenbeschriftung richtet sich nach der Reglerbreite */
	position: relative;
	flex: 1 1 auto;
	min-width: 180px;
	padding-bottom: 14px;     /* Platz für die Marken */
}

.temperatur__regler {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	height: 15px;
	margin: 0;
	border: 1px solid var(--linie);
	border-radius: 8px;
	cursor: pointer;
	background: linear-gradient(90deg,
		#1f3bd6   0%,
		#5f8cf0  10%,
		#dde6f7  20%,
		#fdf6c9  32%,
		#ffe25c  48%,
		#ff9c3a  70%,
		#ff3b2f 100%);
}

.temperatur__regler::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 13px;
	height: 25px;
	margin-top: -6px;
	border: 1px solid #0a0e14;
	border-radius: 4px;
	background: #f2f6fc;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45), 0 1px 4px rgba(0, 0, 0, 0.5);
	cursor: grab;
}

.temperatur__regler::-moz-range-thumb {
	width: 11px;
	height: 23px;
	border: 1px solid #0a0e14;
	border-radius: 4px;
	background: #f2f6fc;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
	cursor: grab;
}

.temperatur__regler:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

.temperatur__marken {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 14px;
	margin-top: -13px;
	pointer-events: none;
}

.marke {
	position: absolute;
	transform: translateX(-50%);
	padding: 0 2px;
	border: 0;
	background: transparent;
	color: var(--text-leise);
	font: inherit;
	font-size: 0.58rem;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	pointer-events: auto;
}

.marke::before {
	content: "";
	display: block;
	width: 1px;
	height: 4px;
	margin: 0 auto 2px;
	background: var(--text-leise);
}

.marke:hover { color: var(--text); }
.marke:hover::before { background: var(--text); }

.temperatur__felder {
	display: flex;
	flex: 0 0 auto;
	gap: 0.6rem;
}

.temperatur__felder span {
	display: flex;
	align-items: baseline;
	gap: 2px;
}

.temperatur__felder input {
	width: 4.2em;
	padding: 2px 3px;
	border: 0;
	border-bottom: 1px solid var(--linie);
	background: transparent;
	color: var(--text);
	font: inherit;
	font-size: 0.85rem;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.temperatur__felder input:focus {
	outline: none;
	border-bottom-color: var(--akzent);
}

.temperatur__felder u {
	color: var(--text-leise);
	font-size: 0.68rem;
	text-decoration: none;
}

/* ---------- Zustandsknöpfe ---------- */

.zustaende {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 0.3rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

.zustand__knopf {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.25rem 0.6rem;
	border: 1px solid transparent;
	border-radius: 20px;
	background: transparent;
	color: var(--text-leise);
	font: inherit;
	font-size: 0.75rem;
	cursor: pointer;
	transition: opacity 0.15s, color 0.15s, background 0.15s, border-color 0.15s;
}

.zustand__knopf i {
	width: 11px;
	height: 11px;
	flex: 0 0 auto;
	border-radius: 3px;
	background: color-mix(in srgb, var(--ton) 55%, var(--bg-erhoben));
	border: 1px solid var(--ton);
}

.zustand__zahl {
	min-width: 1.6em;
	padding: 1px 5px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--ton) 20%, transparent);
	color: color-mix(in srgb, var(--ton) 85%, var(--text));
	font-size: 0.68rem;
	font-weight: 600;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.zustand__knopf:hover,
.zustand__knopf:focus-visible { color: var(--text); outline: none; }

.zustand__knopf.is-gesperrt {
	background: color-mix(in srgb, var(--ton) 18%, transparent);
	border-color: color-mix(in srgb, var(--ton) 55%, transparent);
	color: var(--text);
	font-weight: 600;
}

.zustand__knopf.is-blass { opacity: 0.35; }

/* Solange die Einfärbung läuft, tritt die Leiste nach vorn. */
.zustaende.is-aktiv .zustand__knopf { color: var(--text); }

/* ---------- Einfärbung nach Aggregatzustand ----------
   Überschreibt nur --ton. Damit übernehmen Hover, Ausgrauen und
   Auswahlrahmen die Zustandsfarbe, ohne eigene Regeln zu brauchen. */

.tabelle.is-zustandsfarben .zelle[data-zustand="fest"]      { --ton: var(--agg-fest); }
.tabelle.is-zustandsfarben .zelle[data-zustand="fluessig"]  { --ton: var(--agg-fluessig); }
.tabelle.is-zustandsfarben .zelle[data-zustand="gas"]       { --ton: var(--agg-gas); }
.tabelle.is-zustandsfarben .zelle[data-zustand="unbekannt"] { --ton: var(--agg-unbekannt); }

.tabelle.is-zustandsfarben .zelle {
	background: color-mix(in srgb, var(--ton) 26%, var(--bg-erhoben));
	border-color: color-mix(in srgb, var(--ton) 60%, transparent);
}

/* Die Hülle ist der Größen-Container: Zellbreite und Detailstufe
   richten sich nach ihrer Breite (cqi = 1 % davon), nicht nach dem
   Fenster. So passt die Tabelle immer ohne waagerechtes Scrollen. */
.tabelle-huelle {
	container-type: inline-size;
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 0.75rem;
	scrollbar-color: var(--linie) transparent;
}

.laedt {
	color: var(--text-leise);
	font-size: 0.9rem;
	padding: 2rem 0;
}

.tabelle {
	--kopf-b: 28px;               /* Spalte der Periodennummern */
	--kopf-h: 28px;               /* Zeile der Gruppenköpfe */
	/* Kurzform: 18 Spalten füllen die Breite, höchstens 68 px je Zelle */
	--zelle-b: clamp(14px, calc((100cqi - var(--kopf-b) - 18 * var(--luecke)) / 18), 68px);
	--zelle-h: var(--zelle-b);
	display: grid;
	gap: var(--luecke);
	width: max-content;
	margin: 0 auto;
	grid-template-columns: var(--kopf-b) repeat(18, var(--zelle-b));
	grid-template-rows: var(--kopf-h) repeat(7, var(--zelle-h)) calc(var(--zelle-h) * 0.26) repeat(2, var(--zelle-h));
}

/* Langform: 32 Spalten, etwas höher als breit. Unter ca. 1440 px
   Containerbreite schaltet pse.js ohnehin auf die Kurzform. */
.tabelle[data-modus="lang"] {
	--zelle-b: clamp(30px, calc((100cqi - var(--kopf-b) - 32 * var(--luecke)) / 32), 46px);
	--zelle-h: calc(var(--zelle-b) * 1.22);
	grid-template-columns: var(--kopf-b) repeat(32, var(--zelle-b));
	grid-template-rows: var(--kopf-h) repeat(7, var(--zelle-h));
}

/* Achsenbeschriftung */

/* Gruppen- und Periodenköpfe sind Knöpfe: Hovern zeigt eine Vorschau,
   Klick rastet die Hervorhebung ein. */
.achse {
	font: inherit;               /* vor font-size, sonst überschreibt die Kurzform */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 5px;
	background: transparent;
	color: var(--text-leise);
	font-size: 0.7rem;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
	transition: opacity 0.15s, color 0.15s, background 0.15s, border-color 0.15s;
}

.achse:hover,
.achse:focus-visible {
	color: var(--text);
	background: var(--bg-erhoben);
	outline: none;
}

.achse.is-gesperrt {
	color: var(--text);
	background: color-mix(in srgb, var(--akzent) 22%, transparent);
	border-color: color-mix(in srgb, var(--akzent) 55%, transparent);
	font-weight: 700;
}

.achse.is-blass { opacity: 0.3; }

.achse--periode { justify-content: center; }

/* Haupt-/Nebengruppen: römische Ziffer mit a/b */
.achse--gruppe {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: color-mix(in srgb, var(--text) 70%, var(--text-leise));
}

/* VIII b läuft über die Gruppen 8–10 — Klammer darunter zeigt den Bereich. */
.achse--breit {
	position: relative;
}

.achse--breit::after {
	content: "";
	position: absolute;
	left: 6px;
	right: 6px;
	bottom: 1px;
	height: 4px;
	border: 1px solid var(--linie);
	border-top: 0;
	border-radius: 0 0 4px 4px;
}

/* ---------- Elementzellen ---------- */

/* Kategoriefarbe der Zellen: bewusst hier und nicht inline aus dem JS,
   damit die Einfärbung nach Aggregatzustand --ton überschreiben kann. */
.zelle[data-kategorie="alkalimetall"]       { --ton: var(--kat-alkalimetall); }
.zelle[data-kategorie="erdalkalimetall"]    { --ton: var(--kat-erdalkalimetall); }
.zelle[data-kategorie="uebergangsmetall"]   { --ton: var(--kat-uebergangsmetall); }
.zelle[data-kategorie="hauptgruppenmetall"] { --ton: var(--kat-hauptgruppenmetall); }
.zelle[data-kategorie="lanthanoid"]         { --ton: var(--kat-lanthanoid); }
.zelle[data-kategorie="actinoid"]           { --ton: var(--kat-actinoid); }
.zelle[data-kategorie="halbmetall"]         { --ton: var(--kat-halbmetall); }
.zelle[data-kategorie="nichtmetall"]        { --ton: var(--kat-nichtmetall); }
.zelle[data-kategorie="halogen"]            { --ton: var(--kat-halogen); }
.zelle[data-kategorie="edelgas"]            { --ton: var(--kat-edelgas); }

.zelle {
	--ton: var(--kat-unbekannt);
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 1px;
	padding: 3px 2px;
	border: 1px solid color-mix(in srgb, var(--ton) 45%, transparent);
	border-radius: 6px;
	background: color-mix(in srgb, var(--ton) 16%, var(--bg-erhoben));
	color: var(--text);
	font: inherit;
	text-align: center;
	cursor: pointer;
	overflow: hidden;
	transition: transform 0.1s ease, background 0.15s, border-color 0.15s, opacity 0.15s, filter 0.15s;
}

.zelle:hover,
.zelle:focus-visible {
	background: color-mix(in srgb, var(--ton) 34%, var(--bg-erhoben));
	border-color: var(--ton);
	transform: translateY(-2px);
	outline: none;
	z-index: 2;
}

.zelle.is-gewaehlt {
	background: color-mix(in srgb, var(--ton) 42%, var(--bg-erhoben));
	border-color: var(--ton);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--ton) 55%, transparent);
	z-index: 3;
}

.zelle__z {
	position: absolute;
	top: 3px;
	left: 5px;
	font-size: 0.6rem;
	color: var(--text-leise);
	font-variant-numeric: tabular-nums;
}

.zelle__symbol {
	/* wächst mit der Zelle: 68 px → 1,35 rem, 20 px → ca. 0,6 rem */
	font-size: clamp(0.58rem, calc(var(--zelle-b) * 0.34), 1.35rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.01em;
	color: var(--ton);
}

.zelle__name {
	font-size: 0.58rem;
	line-height: 1.1;
	color: var(--text-leise);
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.zelle__masse {
	font-size: 0.55rem;
	color: var(--text-leise);
	opacity: 0.7;
	font-variant-numeric: tabular-nums;
}

/* In der Langform ist es enger: Masse weg */
.tabelle[data-modus="lang"] .zelle__masse  { display: none; }
.tabelle[data-modus="lang"] .zelle__name   { font-size: 0.5rem; }

/* Platzhalter für die f-Block-Zeilen in der Kurzform */

.platzhalter {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px dashed color-mix(in srgb, var(--ton) 50%, transparent);
	border-radius: 6px;
	background: color-mix(in srgb, var(--ton) 8%, var(--bg-erhoben));
	color: color-mix(in srgb, var(--ton) 75%, var(--text));
	font-size: clamp(0.45rem, calc(var(--zelle-b) * 0.14), 0.62rem);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	overflow: hidden;
}

/* ---------- Legende ---------- */

.legende {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 0.3rem;
	justify-content: center;
	max-width: 76rem;
	margin: 1.5rem auto 0;
	padding: 0;
	list-style: none;
	font-size: 0.75rem;
	color: var(--text-leise);
}

.legende li { display: flex; }

.legende__knopf {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.25rem 0.55rem;
	border: 1px solid transparent;
	border-radius: 20px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: inherit;
	cursor: pointer;
	transition: opacity 0.15s, color 0.15s, background 0.15s, border-color 0.15s;
}

.legende__knopf i {
	width: 11px;
	height: 11px;
	flex: 0 0 auto;
	border-radius: 3px;
	background: color-mix(in srgb, var(--ton) 55%, var(--bg-erhoben));
	border: 1px solid var(--ton);
}

.legende__knopf:hover,
.legende__knopf:focus-visible {
	color: var(--text);
	outline: none;
}

.legende__knopf.is-gesperrt {
	background: color-mix(in srgb, var(--ton) 18%, transparent);
	border-color: color-mix(in srgb, var(--ton) 55%, transparent);
	color: var(--text);
	font-weight: 600;
}

/* ---------- Hervorheben nach Kategorie ---------- */

.zelle.is-blass,
.platzhalter.is-blass {
	opacity: 0.16;
	filter: saturate(0.25);
}

.legende__knopf.is-blass { opacity: 0.35; }

/* Ausgegraute Zellen bleiben anklickbar — nur optisch zurückgenommen. */
.zelle.is-blass:hover,
.zelle.is-blass:focus-visible { opacity: 0.5; }

/* Im gefilterten Zustand die passenden Zellen etwas anheben */
.tabelle.is-gefiltert .zelle:not(.is-blass) {
	background: color-mix(in srgb, var(--ton) 34%, var(--bg-erhoben));
	border-color: var(--ton);
}


/* ---------- Detailfenster (Modal) ---------- */

/* Seite dahinter nicht mitscrollen lassen */
body.is-modal { overflow: hidden; }

.modal {
	--rand: clamp(1rem, 2.5vw, 1.75rem);
	--modal-h: min(880px, 90dvh);
	width: min(1080px, 94vw);
	height: var(--modal-h);
	max-width: none;
	max-height: none;
	margin: auto;
	padding: 0;
	border: 1px solid var(--linie);
	border-radius: 14px;
	background: var(--bg-panel);
	color: var(--text);
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
	overflow: hidden;
}

.modal[open] { animation: aufgehen 0.18s ease; }

.modal::backdrop {
	background: rgba(3, 6, 12, 0.62);
	backdrop-filter: blur(3px);
}

.modal.is-vollbild {
	--modal-h: 100dvh;
	width: 100vw;
	border: 0;
	border-radius: 0;
}

@keyframes aufgehen {
	from { transform: translateY(10px) scale(0.985); opacity: 0; }
	to   { transform: none; opacity: 1; }
}

.modal__rahmen {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.modal__kopf {
	display: flex;
	align-items: center;
	gap: 1.1rem;
	padding: var(--rand) calc(var(--rand) + 5.5rem) 1rem var(--rand);
	/* ein Hauch Kategoriefarbe, damit man ohne Lesen weiß, wo man ist */
	background: linear-gradient(180deg, color-mix(in srgb, var(--ton) 9%, transparent), transparent);
}

.modal__aktionen {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	display: flex;
	gap: 0.25rem;
}

.modal__knopf {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 8px;
	background: transparent;
	color: var(--text-leise);
	cursor: pointer;
}

.modal__knopf svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.modal__knopf:hover { background: var(--bg-erhoben); border-color: var(--linie); color: var(--text); }
.modal__knopf:focus-visible { outline: 2px solid var(--akzent); outline-offset: 1px; }

.modal__knopf .ico-klein { display: none; }
.modal.is-vollbild .modal__knopf .ico-gross { display: none; }
.modal.is-vollbild .modal__knopf .ico-klein { display: block; }

/* Reiter */

.reiter {
	display: flex;
	gap: 0.25rem;
	padding: 0 var(--rand);
	border-bottom: 1px solid var(--linie);
}

.reiter__knopf {
	position: relative;
	padding: 0.65rem 0.9rem 0.7rem;
	border: 0;
	background: transparent;
	color: var(--text-leise);
	font: inherit;
	font-size: 0.85rem;
	cursor: pointer;
}

.reiter__knopf::after {
	content: "";
	position: absolute;
	left: 0.6rem;
	right: 0.6rem;
	bottom: -1px;
	height: 2px;
	border-radius: 2px 2px 0 0;
	background: transparent;
}

.reiter__knopf:hover { color: var(--text); }
.reiter__knopf:focus-visible { outline: 2px solid var(--akzent); outline-offset: -4px; border-radius: 6px; }

.reiter__knopf[aria-selected="true"] { color: var(--text); font-weight: 600; }
.reiter__knopf[aria-selected="true"]::after { background: var(--ton); }

.modal__inhalt {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 1.25rem var(--rand) 2rem;
	scrollbar-color: var(--linie) transparent;
}

.tab[hidden] { display: none; }

.tab__leer {
	max-width: 34rem;
	margin: 3rem auto;
	color: var(--text-leise);
	font-size: 0.9rem;
	text-align: center;
	line-height: 1.5;
}

/* Kopf-Inhalte */

.panel__kachel {
	position: relative;
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	border: 1px solid var(--ton);
	border-radius: 10px;
	background: color-mix(in srgb, var(--ton) 22%, var(--bg-erhoben));
}

.panel__kachel i {
	position: absolute;
	top: 5px;
	left: 7px;
	font-style: normal;
	font-size: 0.68rem;
	color: var(--text-leise);
	font-variant-numeric: tabular-nums;
}

/* ---------- Reiter Übersicht ---------- */

/* Kurzbeschreibung und Wertegruppen in einem Spaltenfluss */
.ueb__werte {
	columns: 260px;
	column-gap: 2.25rem;
}

.ueb__gruppe {
	break-inside: avoid;
	padding-bottom: 0.4rem;
}

.ueb__gruppe:first-child .gruppe__titel { margin-top: 0.2rem; }
.ueb__gruppe--text { padding-bottom: 0.9rem; }
.ueb__gruppe--text .beschreibung { margin: 0; }

/* Übersichtskarte im Kopf des Detailfensters */
.modal__kopf .karte {
	flex: 0 0 auto;
	width: 212px;
	margin-left: auto;
	padding: 0.5rem;
}

/* Übersichtskarte */

.karte {
	margin: 0;
	padding: 0.8rem;
	border: 1px solid var(--linie);
	border-radius: 10px;
	background: var(--bg);
}

.karte__gitter {
	display: grid;
	grid-template-columns: repeat(18, 1fr);
	grid-template-rows: repeat(7, auto) 5px repeat(2, auto);
	gap: 2px;
}

.karte__zelle,
.karte__platz {
	aspect-ratio: 1;
	min-width: 0;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: color-mix(in srgb, var(--ton) 55%, var(--bg-erhoben));
}

.karte__zelle { cursor: pointer; }
.karte__zelle:hover { background: var(--ton); }

.karte__platz {
	background: transparent;
	outline: 1px dashed color-mix(in srgb, var(--ton) 60%, transparent);
	outline-offset: -1px;
}

.karte__zelle.is-hier {
	position: relative;
	z-index: 1;
	background: var(--text);
	box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--text);
}

.konfig sup { font-size: 0.72em; line-height: 0; }

/* ---------- Reiter Elektronenhülle ---------- */

.huelle {
	display: grid;
	grid-template-columns: minmax(300px, 1.25fr) minmax(260px, 1fr);
	gap: 1.5rem 2.25rem;
	align-items: start;
}

.modal.is-vollbild .huelle { grid-template-columns: minmax(360px, 1.7fr) minmax(280px, 1fr); }

.huelle__daten > .gruppe__titel:first-child { margin-top: 0.2rem; }

.orbit__flaeche {
	position: relative;
	/* Ansicht samt Bedienleiste soll ohne Scrollen ins Fenster passen */
	width: min(100%, calc(var(--modal-h) - 21rem));
	min-width: min(100%, 280px);
	aspect-ratio: 1;
	border: 1px solid var(--linie);
	border-radius: 12px;
	background: radial-gradient(circle at 50% 42%, #141c28 0%, #080b10 72%);
	overflow: hidden;
}

.orb3d { position: absolute; inset: 0; }

.orb3d__leinwand {
	display: block;
	width: 100%;
	height: 100%;
	cursor: grab;
	touch-action: none;
}

.orb3d.is-ziehen .orb3d__leinwand { cursor: grabbing; }

.orb3d__achse {
	position: absolute;
	left: 0;
	top: 0;
	color: #dfe6f0;
	font-size: 0.72rem;
	font-weight: 600;
	pointer-events: none;
	text-shadow: 0 1px 3px #000;
}

.orb3d__info {
	position: absolute;
	right: 0.8rem;
	bottom: 0.7rem;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 1px;
	color: #e8edf4;
	font-family: "Cambria Math", "STIX Two Math", Cambria, Georgia, serif;
	font-size: 0.95rem;
	line-height: 1.2;
	pointer-events: none;
}

.orb3d__info b {
	margin-bottom: 3px;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 1.05rem;
	font-weight: 600;
}

.orb3d__info b sub { font-size: 0.68em; font-weight: 500; }

.orb3d__fehler {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	margin: 0;
	padding: 2rem;
	color: var(--text-leise);
	font-size: 0.85rem;
	text-align: center;
}

.orbit__leiste {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-top: 0.8rem;
}

.orbit__zeile {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.orbit__etikett {
	flex: 0 0 1.2rem;
	color: var(--text-leise);
	font-family: "Cambria Math", "STIX Two Math", Cambria, Georgia, serif;
	font-style: italic;
	font-size: 1rem;
	text-align: center;
}

.stufen {
	display: flex;
	flex-wrap: wrap;
	gap: 3px;
}

.stufen__knopf {
	min-width: 2.1rem;
	padding: 0.25rem 0.5rem;
	border: 1px solid var(--linie);
	border-radius: 6px;
	background: var(--bg-erhoben);
	color: var(--text);
	font: inherit;
	font-size: 0.78rem;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
}

.stufen__knopf small { color: var(--text-leise); font-size: 0.85em; }
.stufen__knopf:hover:not([aria-disabled="true"]) { border-color: color-mix(in srgb, var(--ton) 60%, var(--linie)); }
.stufen__knopf:focus-visible { outline: 2px solid var(--akzent); outline-offset: 1px; }
.stufen__knopf[aria-disabled="true"] { opacity: 0.28; cursor: default; }

.stufen__knopf.is-aktiv {
	border-color: var(--ton);
	background: color-mix(in srgb, var(--ton) 24%, var(--bg-erhoben));
	font-weight: 600;
}

.stufen__knopf.is-aktiv small { color: var(--text); }

.orbit__zeile--optionen {
	flex-wrap: wrap;
	gap: 0.4rem 1.1rem;
	margin-top: 0.25rem;
	padding-left: 1.8rem;
	font-size: 0.78rem;
	color: var(--text-leise);
}

.orbit__zeile--optionen label {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	cursor: pointer;
}

.orbit__zeile--optionen label:hover { color: var(--text); }
.orbit__zeile--optionen input { margin: 0; accent-color: var(--akzent); }

.orbit__zeile--optionen select {
	padding: 0.15rem 0.3rem;
	border: 1px solid var(--linie);
	border-radius: 5px;
	background: var(--bg-erhoben);
	color: var(--text);
	font: inherit;
}

.orbit__hinweis {
	margin: 0.8rem 0 0;
	color: var(--text-leise);
	font-size: 0.7rem;
	line-height: 1.5;
}

.panel__kachel b {
	font-size: 2.3rem;
	font-weight: 600;
	line-height: 1;
	color: var(--ton);
}

.panel__kachel small {
	margin-top: 3px;
	font-size: 0.62rem;
	color: var(--text-leise);
	font-variant-numeric: tabular-nums;
}

.panel__titel h2 {
	margin: 0.1rem 0 0.15rem;
	font-size: 1.3rem;
	font-weight: 600;
}

.panel__titel p {
	margin: 0;
	font-size: 0.75rem;
	color: var(--text-leise);
}

.panel__marke {
	display: inline-block;
	margin-bottom: 0.35rem;
	padding: 2px 8px;
	border-radius: 20px;
	background: color-mix(in srgb, var(--ton) 25%, transparent);
	border: 1px solid color-mix(in srgb, var(--ton) 50%, transparent);
	color: color-mix(in srgb, var(--ton) 80%, var(--text));
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.gruppe__titel {
	margin: 1.4rem 0 0.5rem;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-leise);
}

.werte {
	margin: 0;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0;
	font-size: 0.82rem;
}

.werte dt {
	padding: 0.42rem 0;
	color: var(--text-leise);
	border-bottom: 1px solid color-mix(in srgb, var(--linie) 60%, transparent);
}

.werte dd {
	margin: 0;
	padding: 0.42rem 0 0.42rem 1rem;
	text-align: right;
	font-variant-numeric: tabular-nums;
	border-bottom: 1px solid color-mix(in srgb, var(--linie) 60%, transparent);
}

.werte dd u {
	margin-left: 0.25rem;
	color: var(--text-leise);
	font-size: 0.75em;
	text-decoration: none;
}

.werte dd.is-leer { color: var(--text-leise); opacity: 0.5; }

.schalen {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 0.4rem;
}

.schalen span {
	min-width: 26px;
	padding: 3px 6px;
	border: 1px solid var(--linie);
	border-radius: 5px;
	background: var(--bg-erhoben);
	text-align: center;
	font-size: 0.72rem;
	font-variant-numeric: tabular-nums;
}

.schalen span b {
	display: block;
	font-size: 0.55rem;
	font-weight: 500;
	color: var(--text-leise);
}

.konfig {
	margin-top: 0.4rem;
	padding: 0.5rem 0.65rem;
	border: 1px solid var(--linie);
	border-radius: 6px;
	background: var(--bg-erhoben);
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: 0.78rem;
	word-spacing: 0.15em;
}

/* ---------- Fuß ---------- */

.fuss {
	padding: 1rem clamp(1rem, 3vw, 2.5rem) 2rem;
	border-top: 1px solid var(--linie);
	color: var(--text-leise);
	font-size: 0.72rem;
}

.fuss p { margin: 0; }

/* ---------- Schmale Fenster ---------- */

/* Detailstufen der Tabelle nach Containerbreite:
   ab ~1100 px alles, darunter ohne Masse, darunter nur Symbol und
   Ordnungszahl, ganz schmal (Handy hochkant) nur noch das Symbol. */
@container (max-width: 1100px) {
	.zelle__masse { display: none; }
}

@container (max-width: 900px) {
	.zelle__name { display: none; }
	.zelle__symbol { margin-top: 0.35em; }
}

.achse__nr { display: none; }
.achse--gruppe { white-space: nowrap; }

/* Kurzer Regler: „100 °C" und „2000 K" nur noch als Strich, sonst überlappen die Marken */
@container bahn (max-width: 440px) {
	.marke { font-size: 0.52rem; }
	.marke:nth-child(2) span,
	.marke:nth-child(4) span { display: none; }
	.marke:last-child { transform: translateX(-85%); }
}

@container (max-width: 900px) {
	.achse--gruppe { font-size: 0.62rem; letter-spacing: 0; }
}

@container (max-width: 620px) {
	.tabelle { --luecke: 2px; --kopf-b: 16px; --kopf-h: 20px; }
	.zelle { border-radius: 4px; }
	.zelle__z { top: 1px; left: 2px; font-size: 0.45rem; }
	/* „IV b" passt nicht mehr in eine Zelle — Gruppennummer statt römischer Ziffer */
	.achse__roem { display: none; }
	.achse__nr { display: inline; }
	.achse--gruppe { font-size: 0.55rem; letter-spacing: 0; overflow: hidden; }
	.achse--periode { font-size: 0.55rem; }
	.achse--breit::after { display: none; }
	/* „57 – 71" passt nicht: Pfeil auf die f-Block-Zeilen darunter */
	.platzhalter { font-size: 0; }
	.platzhalter::after { content: "↓"; font-size: 0.6rem; }
}

@container (max-width: 470px) {
	.zelle__z { display: none; }
	.zelle__symbol { margin-top: 0; }
}

/* Keine Langform möglich (pse.js setzt die Klasse): Umschalter ausblenden */
body.is-nur-kurz .schalter { display: none; }

@media (max-width: 640px) {
	/* Temperaturzeile umbrechen: Regler bekommt eine eigene volle Zeile */
	.temperatur__zeile { flex-wrap: wrap; gap: 0.6rem 0.5rem; }
	.temperatur__fix { flex: 1 0 100%; }
	.temperatur__bahn { flex: 1 1 0; min-width: 0; order: 2; }
	.temperatur__schritt[data-schritt="-1"] { order: 1; }
	.temperatur__schritt[data-schritt="1"] { order: 3; }
	.temperatur__felder { order: 4; flex: 1 0 100%; justify-content: space-between; }

	.modal { --modal-h: 100dvh; width: 100vw; border: 0; border-radius: 0; }
	.modal__kopf { padding-right: 6rem; }
	.panel__kachel { width: 64px; height: 64px; }
	.panel__kachel b { font-size: 1.7rem; }
	.reiter__knopf { padding-inline: 0.55rem; }
}

@media (max-width: 820px) {
	.huelle, .modal.is-vollbild .huelle { grid-template-columns: 1fr; }
	/* auf schmalen Fenstern hat der Kopf keinen Platz für die Karte */
	.modal__kopf .karte { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
	.zelle:hover { transform: none; }
}

/* Solange nach Aggregatzustand eingefärbt wird, gelten die Kategoriefarben
   nicht — die Legende tritt sichtbar zurück. */
.legende.is-ruht .legende__knopf i { opacity: 0.2; }
.legende.is-ruht .legende__knopf   { color: color-mix(in srgb, var(--text-leise) 60%, transparent); }

/* ---------- Orbitalblöcke ---------- */

.bloecke {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 0.3rem;
	justify-content: center;
	margin: 0.5rem auto 0;
	padding: 0;
	list-style: none;
}

.block__knopf {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.2rem 0.55rem;
	border: 1px solid transparent;
	border-radius: 20px;
	background: transparent;
	color: var(--text-leise);
	font: inherit;
	font-size: 0.75rem;
	cursor: pointer;
	transition: opacity 0.15s, color 0.15s, background 0.15s, border-color 0.15s;
}

.block__knopf i {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 4px;
	background: var(--akzent);
	color: #08121e;
	font-style: normal;
	font-weight: 700;
	font-size: 0.68rem;
}

.block__knopf:hover,
.block__knopf:focus-visible { color: var(--text); outline: none; }

.block__knopf.is-gesperrt {
	background: color-mix(in srgb, var(--akzent) 18%, transparent);
	border-color: color-mix(in srgb, var(--akzent) 55%, transparent);
	color: var(--text);
	font-weight: 600;
}

.block__knopf.is-blass { opacity: 0.35; }

/* ---------- Panel: Zustand und Ladehinweis ---------- */

.panel__titel p.panel__zustand {
	display: inline-block;
	margin: 0.45rem 0 0;
	padding: 0.2rem 0.55rem;
	border-left: 3px solid var(--ton);
	border-radius: 0 5px 5px 0;
	background: color-mix(in srgb, var(--ton) 12%, transparent);
	color: var(--text);
	font-size: 0.74rem;
}

.panel__laedt {
	margin: 1rem 0;
	color: var(--text-leise);
	font-size: 0.8rem;
}

/* ---------- Orbitaldiagramm ---------- */

.orbitale {
	display: flex;
	flex-direction: column;
	gap: 1px;
	margin-top: 0.5rem;
}

.orbital {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	width: 100%;
	padding: 2px 4px;
	margin: 0 -4px;
	border: 1px solid transparent;
	border-radius: 5px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.7rem;
	text-align: left;
	cursor: pointer;
}

.orbital:hover { background: var(--bg-erhoben); }
.orbital:focus-visible { outline: 2px solid var(--akzent); outline-offset: 0; }

.orbital.is-gezeigt {
	border-color: color-mix(in srgb, var(--ton) 45%, transparent);
	background: color-mix(in srgb, var(--ton) 10%, transparent);
}

.orbital.is-gezeigt > b { color: var(--text); }

.orbital > b {
	flex: 0 0 1.7em;
	color: var(--text-leise);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.orbital > i {
	color: var(--text-leise);
	font-style: normal;
	font-size: 0.62rem;
	font-variant-numeric: tabular-nums;
}

.orbital__kaesten { display: flex; gap: 2px; }

.kasten {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 17px;
	border: 1px solid var(--linie);
	border-radius: 3px;
	background: var(--bg);
	color: var(--text-leise);
	font-size: 0.62rem;
	line-height: 1;
	letter-spacing: -1px;
}

.kasten.is-belegt {
	border-color: color-mix(in srgb, var(--ton) 55%, transparent);
	background: color-mix(in srgb, var(--ton) 18%, var(--bg));
	color: var(--text);
}

/* ---------- Ionisierungsreihe ---------- */

.ionisierung {
	display: flex;
	align-items: flex-end;
	gap: 2px;
	height: 76px;
	margin-top: 0.5rem;
	padding: 0 2px;
	border-bottom: 1px solid var(--linie);
}

.ionisierung__saeule {
	flex: 1 1 0;
	min-width: 3px;
	border-radius: 2px 2px 0 0;
	background: linear-gradient(180deg,
		color-mix(in srgb, var(--ton) 90%, transparent),
		color-mix(in srgb, var(--ton) 40%, transparent));
	cursor: default;
}

.ionisierung__saeule:hover { background: var(--ton); }

/* ---------- Isotope ---------- */

.isotope {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin-top: 0.5rem;
}

.isotop {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.72rem;
}

.isotop > b {
	flex: 0 0 2.6em;
	text-align: right;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.isotop > b sup { font-size: 0.85em; }

.isotop__balken {
	flex: 1 1 auto;
	height: 9px;
	border-radius: 5px;
	background: var(--bg);
	border: 1px solid var(--linie);
	overflow: hidden;
}

.isotop__balken i {
	display: block;
	height: 100%;
	background: color-mix(in srgb, var(--ton) 70%, transparent);
}

.isotop > em {
	flex: 0 0 4.2em;
	text-align: right;
	color: var(--text-leise);
	font-style: normal;
	font-size: 0.68rem;
	font-variant-numeric: tabular-nums;
}

.isotope__hinweis {
	margin: 0.5rem 0 0;
	color: var(--text-leise);
	font-size: 0.68rem;
}

/* ---------- Beschreibung ---------- */

.beschreibung {
	margin: 0.4rem 0 0;
	color: var(--text-leise);
	font-size: 0.76rem;
	line-height: 1.5;
}

.konfig--lang {
	margin-top: 0.3rem;
	font-size: 0.68rem;
	color: var(--text-leise);
}

/* ---------- Reiter Isotope: Zerfallskarten ---------- */

:root {
	/* Zerfallsarten — angelehnt an die Karlsruher Nuklidkarte */
	--zf-alpha:     #f0d24a;
	--zf-bminus:    #8e9cff;
	--zf-bplus:     #ff9a45;
	--zf-ec:        #2fb8ac;
	--zf-sf:        #5fd862;
	--zf-p:         #ff5a4e;
	--zf-n:         #e257e2;
	--zf-cluster:   #c9a27a;
	--zf-unbekannt: #7c8797;

	/* die vier klassischen Zerfallsreihen */
	--reihe-uran:      #ef6a5e;
	--reihe-actinium:  #6ee05a;
	--reihe-thorium:   #f3e34f;
	--reihe-neptunium: #55e3e8;
}

.zf--alpha     { --zf: var(--zf-alpha); }
.zf--bminus    { --zf: var(--zf-bminus); }
.zf--bplus     { --zf: var(--zf-bplus); }
.zf--ec        { --zf: var(--zf-ec); }
.zf--sf        { --zf: var(--zf-sf); }
.zf--p         { --zf: var(--zf-p); }
.zf--n         { --zf: var(--zf-n); }
.zf--cluster   { --zf: var(--zf-cluster); }
.zf--unbekannt { --zf: var(--zf-unbekannt); }
.zf--stabil    { --zf: #e8edf4; }

.iso { display: flex; flex-direction: column; gap: 0.25rem; }

/* Isotopenleiste */

.iso__leiste {
	display: flex;
	flex-wrap: wrap;
	gap: 3px;
}

.iso-chip {
	min-width: 3.1rem;
	padding: 0.28rem 0.4rem 0.22rem;
	border: 1px solid color-mix(in srgb, var(--zf) 45%, transparent);
	border-bottom: 3px solid var(--zf);
	border-radius: 5px;
	background: color-mix(in srgb, var(--zf) 10%, var(--bg-erhoben));
	color: var(--text);
	font: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
}

.iso-chip sup { font-size: 0.68em; font-weight: 500; color: var(--text-leise); margin-right: 1px; }
.iso-chip.zf--stabil { background: #020304; border-bottom-color: var(--text); }
.iso-chip.is-primordial { border-width: 2px 2px 3px; border-color: var(--text); }
.iso-chip:hover { background: color-mix(in srgb, var(--zf) 24%, var(--bg-erhoben)); }
.iso-chip:focus-visible { outline: 2px solid var(--akzent); outline-offset: 1px; }

.iso-chip[aria-pressed="true"] {
	background: color-mix(in srgb, var(--zf) 36%, var(--bg-erhoben));
	box-shadow: 0 0 0 2px var(--bg-panel), 0 0 0 4px var(--ton);
}

.iso-chip[aria-pressed="true"] sup { color: var(--text); }

.iso__zaehler,
.iso__hinweis {
	margin: 0.3rem 0 0;
	color: var(--text-leise);
	font-size: 0.72rem;
	line-height: 1.5;
}

/* Gewähltes Isotop + nächster Zerfall */

.iso__oben {
	display: grid;
	grid-template-columns: minmax(250px, 320px) 1fr;
	gap: 1rem 2.25rem;
	align-items: start;
	margin-top: 1rem;
}

.iso-karte {
	padding: 0.9rem 1rem 0.4rem;
	border: 1px solid var(--linie);
	border-left: 4px solid var(--zf);
	border-radius: 10px;
	background: var(--bg);
}

.iso-karte__kopf {
	font-size: 2.2rem;
	font-weight: 600;
	line-height: 1;
	color: var(--ton);
}

.iso-karte__kopf sup,
.iso-karte__kopf sub {
	display: inline-block;
	width: 0;
	font-size: 0.4em;
	font-weight: 500;
	color: var(--text-leise);
	vertical-align: 0;
}

/* Massenzahl oben, Ordnungszahl unten, beide links vor dem Symbol */
.iso-karte__kopf sup { transform: translateY(-1.25em); }
.iso-karte__kopf sub { transform: translateY(0.35em); margin-right: 1.9em; }

.iso-karte > p {
	margin: 0.35rem 0 0.3rem;
	color: var(--text-leise);
	font-size: 0.78rem;
}

.iso-karte .werte { font-size: 0.78rem; }
.iso-karte .werte dt:last-of-type,
.iso-karte .werte dd:last-of-type { border-bottom: 0; }

.iso__naechst > .gruppe__titel:first-child,
.iso__kettenkopf .gruppe__titel { margin-top: 0; }

/* Kettenkopf mit Schwelle */

.iso__kette { margin-top: 1.6rem; }

.iso__kettenkopf {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin-bottom: 0.6rem;
}

.iso__schwelle {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--text-leise);
	font-size: 0.76rem;
}

.iso__schwelle select {
	padding: 0.15rem 0.3rem;
	border: 1px solid var(--linie);
	border-radius: 5px;
	background: var(--bg-erhoben);
	color: var(--text);
	font: inherit;
}

/* Reihen-Knöpfe */

.reihen {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 0.6rem;
}

.reihe--uran      { --reihe: var(--reihe-uran); }
.reihe--actinium  { --reihe: var(--reihe-actinium); }
.reihe--thorium   { --reihe: var(--reihe-thorium); }
.reihe--neptunium { --reihe: var(--reihe-neptunium); }

.reihe__knopf {
	position: relative;
	padding: 0.35rem 0.75rem;
	border: 1px solid color-mix(in srgb, var(--reihe) 45%, transparent);
	border-radius: 6px;
	background: color-mix(in srgb, var(--reihe) 10%, var(--bg-erhoben));
	color: color-mix(in srgb, var(--reihe) 70%, var(--text));
	font: inherit;
	font-size: 0.78rem;
	cursor: pointer;
}

.reihe__knopf small { margin-left: 0.25rem; color: var(--text-leise); font-size: 0.85em; }
.reihe__knopf:hover { background: color-mix(in srgb, var(--reihe) 22%, var(--bg-erhoben)); }
.reihe__knopf:focus-visible { outline: 2px solid var(--akzent); outline-offset: 1px; }

.reihen { align-items: center; gap: 0.4rem 0.9rem; }

.reihen__text {
	color: var(--text-leise);
	font-size: 0.74rem;
}

.reihe__knopf[aria-pressed="true"] {
	background: var(--reihe);
	border-color: var(--reihe);
	color: #0b0f15;
	font-weight: 600;
}

.reihe__knopf[aria-pressed="true"] small { color: #0b0f15; opacity: 0.7; }

/* Legende der Zerfallsarten */

.zf-legende {
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 0.3rem;
	margin: 0 0 0.5rem;
	padding: 0;
	list-style: none;
}

.zf-legende__knopf {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.2rem 0.55rem;
	border: 1px solid transparent;
	border-radius: 20px;
	background: transparent;
	color: var(--text-leise);
	font: inherit;
	font-size: 0.75rem;
	cursor: default;
}

.zf-legende__knopf i {
	width: 14px;
	height: 3px;
	border-radius: 2px;
	background: var(--zf);
}

.zf-legende__knopf.zf--stabil i {
	height: 11px;
	width: 11px;
	background: #020304;
	outline: 1px solid var(--text);
}

.zf-legende__knopf:hover,
.zf-legende__knopf:focus-visible {
	color: var(--text);
	border-color: color-mix(in srgb, var(--zf) 50%, transparent);
	outline: none;
}

/* Kartenrahmen */

.zf-huelle {
	overflow: auto;
	max-height: 70dvh;
	padding: 0.6rem;
	border: 1px solid var(--linie);
	border-radius: 10px;
	background: var(--bg);
	scrollbar-color: var(--linie) transparent;
}

/* Die große Karte begrenzt ihre Höhe per JS auf den sichtbaren Bereich. */

/* bewegbare Karte mit Zoomleiste */

.zf-buehne {
	display: grid;
	grid-template-columns: 50px minmax(0, 1fr);
	grid-template-rows: auto 26px;     /* Karte oben, N-Achse darunter */
}

.zf-ecke {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-right: 6px;
	color: var(--text-leise);
	font-size: 0.66rem;
}

.zf-ecke i { font-weight: 600; }

.zf-achse {
	position: relative;
	overflow: hidden;
	color: var(--text-leise);
	font-size: 0.66rem;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.zf-achse > div { position: absolute; inset: 0; }

.zf-achse span { position: absolute; }
.zf-achse--unten span { top: 6px; transform: translateX(-50%); }
.zf-achse--links span { right: 7px; transform: translateY(-50%); }

/* Zeile und Spalte des gewählten Isotops auf den Achsen betonen */
.zf-achse span.is-markiert { color: var(--ton); font-weight: 700; }

/* Rahmen der bewegbaren Karte: kein Innenabstand, sonst fluchten die Achsen nicht */
.zf-huelle.is-bewegbar { padding: 0; user-select: none; -webkit-user-select: none; }

.zf-huelle.is-bewegbar { cursor: grab; }
.zf-huelle.is-bewegbar:focus-visible { outline: 2px solid var(--akzent); outline-offset: 1px; }
.zf-huelle.is-ziehen { cursor: grabbing; }
.zf-huelle.is-ziehen .zf-zelle { cursor: grabbing; }

.iso__kartenleiste {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.4rem 1rem;
	margin-bottom: 0.5rem;
}

.iso__kartenleiste .zf-legende { margin: 0; }

.zf-zoom {
	display: flex;
	padding: 2px;
	gap: 2px;
	margin-left: auto;
	border: 1px solid var(--linie);
	border-radius: 8px;
	background: var(--bg-erhoben);
}

.zf-zoom button {
	min-width: 28px;
	height: 26px;
	padding: 0 0.4rem;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--text);
	font: inherit;
	font-size: 0.95rem;
	line-height: 1;
	cursor: pointer;
}

.zf-zoom .zf-zoom__wert {
	min-width: 3.4rem;
	color: var(--text-leise);
	font-size: 0.72rem;
	font-variant-numeric: tabular-nums;
}

.zf-zoom button:hover:not(:disabled) { background: var(--bg-erhoben); color: var(--text); }
.zf-zoom button:focus-visible { outline: 2px solid var(--akzent); outline-offset: -1px; }
.zf-zoom button:disabled { opacity: 0.3; cursor: default; }

.zf-huelle--klein { display: inline-block; max-width: 100%; }

.zf-huelle--reihe {
	border-color: color-mix(in srgb, var(--reihe) 55%, transparent);
	box-shadow: inset 0 3px 0 var(--reihe);
}

.zf { display: block; font-family: inherit; }

.zf-achsen text {
	fill: var(--text-leise);
	font-size: 10px;
	font-variant-numeric: tabular-nums;
}

.zf-achse-titel { font-style: italic; font-weight: 600; }

.zf-raster rect {
	fill: none;
	stroke: color-mix(in srgb, var(--linie) 55%, transparent);
	stroke-width: 1;
}

/* Zellen */

.zf-zelle { cursor: pointer; outline: none; }

.zf-zelle rect {
	fill: color-mix(in srgb, var(--zf) 24%, var(--bg-erhoben));
	stroke: color-mix(in srgb, var(--zf) 60%, transparent);
	stroke-width: 1;
	transition: fill 0.12s;
}

.zf-zelle.zf--stabil rect { fill: #020304; stroke: #c9d2de; }

/* natürlich vorkommend: dicker heller Rand wie in der Vorlage */
.zf-zelle.is-primordial rect { stroke: var(--text); stroke-width: 2.5; }

.zf-zelle:hover rect,
.zf-zelle:focus-visible rect { fill: color-mix(in srgb, var(--zf) 42%, var(--bg-erhoben)); }
.zf-zelle.zf--stabil:hover rect { fill: #1a212b; }

.zf-zelle.is-markiert rect {
	stroke: var(--ton);
	stroke-width: 3;
	filter: drop-shadow(0 0 5px color-mix(in srgb, var(--ton) 70%, transparent));
}

.zf-name {
	fill: var(--text);
	font-size: 13px;
	font-weight: 600;
}

.zf-a { fill: var(--text-leise); font-weight: 500; }
.zf--stabil .zf-a { fill: #b8c2cf; }

.zf-hw {
	fill: var(--text-leise);
	font-size: 8.5px;
	font-variant-numeric: tabular-nums;
}

/* Pfeile */

.zf-kante { pointer-events: stroke; }

.zf-saum {
	stroke: #06080c;
	stroke-width: 5;
	stroke-linecap: round;
	opacity: 0.85;
}

.zf-strich {
	stroke: var(--zf);
	stroke-width: 2.2;
	stroke-linecap: round;
}

.zf-spitze {
	fill: var(--zf);
	stroke: #06080c;
	stroke-width: 1.2;
	stroke-linejoin: round;
	paint-order: stroke;
}

.zf-kante.is-klein .zf-strich { stroke-width: 1.5; stroke-dasharray: 4 3; stroke-linecap: butt; }
.zf-kante.is-klein .zf-saum { stroke-width: 4; }

.zf-anteil {
	fill: var(--zf);
	font-size: 9.5px;
	font-weight: 600;
	paint-order: stroke;
	stroke: #06080c;
	stroke-width: 3px;
	stroke-linejoin: round;
}

.zf-ende rect { fill: var(--zf); }
.zf-ende text { fill: #06080c; font-size: 7.5px; font-weight: 700; }

/* Legende-Hover: nur eine Zerfallsart hervorheben */
.zf.is-fokus .zf-kante:not(.is-hell),
.zf.is-fokus .zf-ende:not(.is-hell) { opacity: 0.12; }
.zf.is-fokus .zf-zelle:not(.is-hell) { opacity: 0.45; }

@media (max-width: 820px) {
	.iso__oben { grid-template-columns: 1fr; }
}

/* ---------- Anleitung ---------- */

.kopf__hilfe {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-right: 0.6rem;
	padding: 0.4rem 0.75rem 0.4rem 0.45rem;
	border: 1px solid var(--linie);
	border-radius: 8px;
	background: var(--bg-erhoben);
	color: var(--text-leise);
	font: inherit;
	font-size: 0.8rem;
	cursor: pointer;
}

.kopf__hilfe span {
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--akzent) 22%, transparent);
	color: var(--akzent);
	font-weight: 700;
	font-size: 0.78rem;
}

/* Knöpfe im Kopf nebeneinander und gleich hoch wie der Kurz-/Langform-Umschalter */
.kopf__steuerung {
	display: flex;
	align-items: stretch;
	gap: 0.5rem;
}

.kopf__steuerung .kopf__hilfe { margin-right: 0; }

.kopf__hilfe:hover { color: var(--text); border-color: color-mix(in srgb, var(--akzent) 50%, var(--linie)); }
.kopf__hilfe:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

.modal--hilfe {
	--ton: var(--akzent);
	--modal-h: min(820px, 90dvh);
	width: min(860px, 94vw);
}

.hilfe__kopf {
	padding: var(--rand) calc(var(--rand) + 3rem) 0.9rem var(--rand);
	border-bottom: 1px solid var(--linie);
}

.hilfe__kopf h2 {
	margin: 0 0 0.7rem;
	font-size: 1.25rem;
}

.hilfe__sprung {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.hilfe__sprung a {
	padding: 0.22rem 0.6rem;
	border: 1px solid var(--linie);
	border-radius: 20px;
	color: var(--text-leise);
	font-size: 0.74rem;
	text-decoration: none;
}

.hilfe__sprung a:hover,
.hilfe__sprung a:focus-visible {
	border-color: color-mix(in srgb, var(--akzent) 55%, var(--linie));
	color: var(--text);
	outline: none;
}

.hilfe {
	font-size: 0.86rem;
	line-height: 1.6;
	color: color-mix(in srgb, var(--text) 86%, var(--text-leise));
}

.hilfe section { max-width: 44rem; padding-bottom: 0.4rem; }
.hilfe #h-quellen { max-width: none; }
.hilfe section + section { border-top: 1px solid color-mix(in srgb, var(--linie) 60%, transparent); }

.hilfe h3 {
	margin: 1.1rem 0 0.4rem;
	color: var(--text);
	font-size: 0.95rem;
}

.hilfe section:first-child h3 { margin-top: 0.2rem; }
.hilfe p { margin: 0 0 0.6rem; }
.hilfe b { color: var(--text); font-weight: 600; }
.hilfe a { color: var(--akzent); }
.hilfe code { font-size: 0.9em; color: var(--text); }

.hilfe kbd {
	display: inline-block;
	min-width: 1.5em;
	padding: 0 0.35em;
	border: 1px solid var(--linie);
	border-bottom-width: 2px;
	border-radius: 4px;
	background: var(--bg-erhoben);
	color: var(--text);
	font-family: inherit;
	font-size: 0.8em;
	line-height: 1.5;
	text-align: center;
}

.hilfe__ico {
	width: 14px;
	height: 14px;
	vertical-align: -2px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hilfe__hinweis {
	padding: 0.5rem 0.75rem;
	border-left: 3px solid var(--linie);
	border-radius: 0 6px 6px 0;
	background: var(--bg-erhoben);
	color: var(--text-leise);
	font-size: 0.8rem;
}

.hilfe__farben {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 1rem;
	margin: 0 0 0.7rem;
	padding: 0;
	list-style: none;
	font-size: 0.8rem;
}

.hilfe__farben li { display: flex; align-items: center; gap: 0.4rem; }
.hilfe__farben i { width: 16px; height: 3px; border-radius: 2px; background: var(--zf); }
.hilfe__farben i.is-stabil { width: 11px; height: 11px; background: #020304; outline: 1px solid var(--text); border-radius: 2px; }

.hilfe table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.hilfe td, .hilfe th { padding: 0.4rem 0.6rem 0.4rem 0; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
.hilfe th { color: var(--text-leise); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.hilfe__tasten td:first-child { width: 7.5rem; white-space: nowrap; }

.hilfe__breit { overflow-x: auto; margin: 0.3rem 0 0.8rem; }
.hilfe__quellen { min-width: 36rem; }
.hilfe__quellen td:nth-child(2) { white-space: nowrap; }

.fuss a { color: var(--text-leise); }
.fuss a:hover { color: var(--text); }

/* ---------- Nuklidkarte ---------- */

.kopf__ico-nuklid svg {
	width: 12px;
	height: 12px;
	fill: currentColor;
}

.modal--nuklid {
	--ton: var(--akzent);
	--modal-h: 94dvh;
	width: 96vw;
}

.nuklid__kopf h2 { margin-bottom: 0.25rem; }

.nuklid__sub {
	margin: 0;
	color: var(--text-leise);
	font-size: 0.78rem;
}

.nuklid { padding-top: 0.9rem; }

.zf-raster-muster {
	fill: none;
	stroke: color-mix(in srgb, var(--linie) 55%, transparent);
	stroke-width: 1;
}

.zf-magisch line {
	stroke: #3fbf5a;
	stroke-width: 1.4;
	stroke-dasharray: 5 4;
	opacity: 0.7;
}

.zf-achse span.is-magisch { color: #5fd862; font-weight: 700; }

.zf-legende__magisch {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.2rem 0.55rem;
	color: var(--text-leise);
	font-size: 0.75rem;
}

.zf-legende__magisch i {
	width: 16px;
	border-top: 2px dashed #3fbf5a;
}

/* Detailstufen nach Zoom (Klassen setzt pse.js) */
.zf.is-leer .zf-name,
.zf.is-leer .zf-hw,
.zf.is-kompakt .zf-hw { display: none; }

/* Ohne Halbwertszeit sitzt das Symbol in der Mitte */
.zf.is-kompakt .zf-name { transform: translateY(6px); }

/* In der Übersicht kräftiger färben, damit die Bereiche wie in der Segré-Karte hervortreten */
.zf--nuklidkarte .zf-zelle rect { fill: color-mix(in srgb, var(--zf) 52%, var(--bg-erhoben)); }
.zf--nuklidkarte .zf-zelle.zf--stabil rect { fill: #020304; }
.zf--nuklidkarte .zf-zelle:hover rect { fill: color-mix(in srgb, var(--zf) 75%, var(--bg-erhoben)); }
/* Ohne Beschriftung: nur stabile und natürliche Kerne behalten ihren Rand */
.zf.is-leer .zf-zelle:not(.zf--stabil):not(.is-primordial):not(.is-markiert) rect { stroke: none; }

/* ---------- Nuklidkarte: Färbung nach Halbwertszeit ---------- */

.nk-farbe {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	color: var(--text-leise);
	font-size: 0.76rem;
}

.nk-farbe select {
	padding: 0.3rem 0.5rem;
	border: 1px solid var(--linie);
	border-radius: 7px;
	background: var(--bg-erhoben);
	color: var(--text);
	font: inherit;
	font-size: 0.8rem;
}

.nk-quantil {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	cursor: pointer;
}

.nk-quantil[hidden] { display: none; }
.nk-quantil input { margin: 0; accent-color: var(--akzent); }

.nk-farbe select:focus-visible { outline: 2px solid var(--akzent); outline-offset: 1px; }

.nk-skala {
	flex: 1 1 420px;
	display: flex;
	min-width: 280px;
	max-width: 760px;
	color: var(--text-leise);
	font-size: 0.74rem;
}

.nk-skala[hidden] { display: none; }
.nk-skala .hw { flex: 1 1 auto; max-width: none; }

/* Farbbalken mit Doppelregler */
.hw {
	flex: 1 1 420px;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 280px;
	max-width: 760px;
}

.hw__bahn {
	position: relative;
	height: 16px;
	margin: 0 9px 16px;          /* Platz für Griffe links/rechts und Marken darunter */
}

.hw__balken {
	position: absolute;
	inset: 3px 0;
	border-radius: 3px;
	outline: 1px solid var(--linie);
}

/* abgedunkelte Enden außerhalb des gewählten Bereichs */
.hw__aus {
	position: absolute;
	top: 3px;
	bottom: 3px;
	background: rgba(6, 8, 12, 0.72);
	pointer-events: none;
}

.hw__aus--links { left: 0; width: 0; border-radius: 3px 0 0 3px; }
.hw__aus--rechts { right: 0; left: 100%; border-radius: 0 3px 3px 0; }

/* Zwei übereinanderliegende Regler: nur die Griffe fangen Zeiger ab */
.hw__griff {
	position: absolute;
	inset: 0 -9px;
	width: calc(100% + 18px);
	height: 16px;
	margin: 0;
	background: transparent;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.hw__griff::-webkit-slider-runnable-track { background: transparent; height: 16px; }
.hw__griff::-moz-range-track { background: transparent; height: 16px; }

.hw__griff::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 12px;
	height: 18px;
	margin-top: -1px;
	border: 2px solid #0b0f15;
	border-radius: 4px;
	background: #f4f6f9;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
	cursor: ew-resize;
	pointer-events: auto;
}

.hw__griff::-moz-range-thumb {
	width: 10px;
	height: 16px;
	border: 2px solid #0b0f15;
	border-radius: 4px;
	background: #f4f6f9;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
	cursor: ew-resize;
	pointer-events: auto;
}

.hw__griff:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--akzent); outline-offset: 1px; }

.hw__marken {
	position: absolute;
	left: 0;
	right: 0;
	top: 17px;
	height: 12px;
	pointer-events: none;
}

.hw__marken span {
	position: absolute;
	transform: translateX(-50%);
	color: var(--text-leise);
	font-size: 0.6rem;
	white-space: nowrap;
}

.hw__marken span::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -4px;
	width: 1px;
	height: 3px;
	background: var(--text-leise);
}

.hw__info {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0 9px;
	color: var(--text-leise);
	font-size: 0.72rem;
}

.hw__alle {
	padding: 0.1rem 0.5rem;
	border: 1px solid var(--linie);
	border-radius: 5px;
	background: var(--bg-erhoben);
	color: var(--text);
	font: inherit;
	cursor: pointer;
}

/* hidden-Attribut gegen display:flex durchsetzen */
.zf-legende[hidden],
.hw[hidden] { display: none; }

.hw__alle:hover { border-color: color-mix(in srgb, var(--akzent) 55%, var(--linie)); }

/* Zellen im Halbwertszeitmodus */
.zf--nuklidkarte.is-wert .zf-zelle rect { fill: var(--fw, transparent); }
.zf--nuklidkarte.is-wert .zf-zelle.is-ohne-wert rect { fill: transparent; stroke: #6b7686; stroke-width: 1; }
.zf--nuklidkarte.is-wert .zf-zelle:hover rect { filter: brightness(1.25); }

/* helle Farben (lila, gelb): Schrift mit dunklem Saum, damit sie lesbar bleibt */
.zf--nuklidkarte.is-wert .zf-name,
.zf--nuklidkarte.is-wert .zf-hw {
	paint-order: stroke;
	stroke: rgba(4, 6, 10, 0.85);
	stroke-width: 2.5px;
	stroke-linejoin: round;
}

/* außerhalb des markierten Bereichs abblenden */
.zf.is-auswahl .zf-zelle.is-aus { opacity: 0.1; }

/* ---------- Reiter Isotope: Kerndaten ---------- */

.iso__kerndaten { margin-top: 1.4rem; }
.iso__kerndaten > .gruppe__titel { margin-top: 0; }

.iso__kernwerte {
	columns: 250px;
	column-gap: 2.25rem;
}

.iso__gruppentitel {
	margin: 0.2rem 0 0.3rem;
	color: var(--text-leise);
	font-size: 0.72rem;
	font-weight: 600;
}

.iso__kernwerte .werte { font-size: 0.78rem; margin-bottom: 0.8rem; }

/* Quellenangabe direkt unter der Kurzbeschreibung */
.beschreibung__quelle {
	margin: 0.35rem 0 0;
	color: var(--text-leise);
	font-size: 0.66rem;
}

.beschreibung__quelle a { color: inherit; }
.beschreibung__quelle a:hover { color: var(--text); }
/* ---------- Tooltips (data-tipp) ---------- */

.tipp {
	position: fixed;
	z-index: 1000;
	max-width: min(360px, calc(100vw - 16px));
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--linie);
	border-radius: 8px;
	background: #1c2330;
	color: var(--text);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 0.76rem;
	font-weight: 400;
	font-style: normal;
	line-height: 1.5;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
	white-space: normal;
	pointer-events: none;
}

.tipp[hidden] { display: none; }
.tipp b { font-weight: 600; }
.tipp small { color: var(--text-leise); font-size: 0.92em; }
.tipp sub, .tipp sup { font-size: 0.75em; line-height: 0; }
.tipp__rot  { color: #ff7a70; font-weight: 600; }
.tipp__blau { color: #7c9cff; font-weight: 600; }

/* ⓘ-Knopf, z. B. hinter Abschnittstiteln */
.tipp-i {
	display: inline-grid;
	place-items: center;
	width: 16px;
	height: 16px;
	margin-left: 0.45rem;
	padding: 0;
	border: 1px solid var(--linie);
	border-radius: 50%;
	background: var(--bg-erhoben);
	color: var(--text-leise);
	font: italic 600 0.64rem/1 Georgia, "Times New Roman", serif;
	letter-spacing: 0;
	text-transform: none;
	vertical-align: 1px;
	cursor: help;
}

.tipp-i:hover,
.tipp-i:focus-visible {
	color: var(--text);
	border-color: var(--akzent);
	outline: none;
}

/* ⓘ oben links in der 3D-Ansicht */
.orbit__flaeche > .tipp-i {
	position: absolute;
	top: 0.6rem;
	left: 0.6rem;
	z-index: 2;
	width: 24px;
	height: 24px;
	margin: 0;
	background: rgba(13, 17, 23, 0.72);
	font-size: 0.82rem;
}

/* n, l, m: Etikett erklärt die Quantenzahl */
.orbit__etikett[data-tipp] {
	cursor: help;
	border-radius: 4px;
	text-decoration: underline dotted color-mix(in srgb, var(--text-leise) 60%, transparent);
	text-underline-offset: 3px;
}

.orbit__etikett[data-tipp]:hover,
.orbit__etikett[data-tipp]:focus-visible { color: var(--text); outline: none; }

.orbit__zeile--optionen label[data-tipp] { cursor: help; }

/* Zurücksetzen auf das Valenzorbital des Elements */
.orbit__zurueck {
	margin-left: auto;
	padding: 0.25rem 0.6rem;
	border: 1px solid color-mix(in srgb, var(--ton) 55%, var(--linie));
	border-radius: 6px;
	background: color-mix(in srgb, var(--ton) 14%, var(--bg-erhoben));
	color: var(--text);
	font: inherit;
	font-size: 0.76rem;
	white-space: nowrap;
	cursor: pointer;
}

.orbit__zurueck small { margin-left: 0.2rem; color: var(--text-leise); }
.orbit__zurueck:hover { background: color-mix(in srgb, var(--ton) 26%, var(--bg-erhoben)); }
.orbit__zurueck:focus-visible { outline: 2px solid var(--akzent); outline-offset: 1px; }

/* unsichtbar, aber Platz halten — sonst springt die Zeile */
.orbit__zurueck.is-aus { visibility: hidden; }

/* ⓘ als Zeichen im Anleitungstext */
.hilfe__i {
	display: inline-grid;
	place-items: center;
	width: 15px;
	height: 15px;
	border: 1px solid var(--linie);
	border-radius: 50%;
	font: italic 600 0.62rem/1 Georgia, serif;
	vertical-align: 1px;
}