/* PSB Plotter-Studio: Start in der Lesespalte; bei der Arbeit Fläche links und Seitenleiste rechts, auf dem Handy untereinander.
   Knöpfe stehen im gleichmäßigen Raster, Hinweise direkt am Feld (Robert, 25.11.2026). */
.psb-plotter {
	--pl-akzent: var(--global-palette1, #1d4f91);
	--ed-akzent: var(--pl-akzent);
	--pl-linie: var(--psb-linie, #d8dee8);
	--pl-leise: var(--psb-leise, #5a6678);
	margin: 1.5rem 0;
}

.psb-plotter--arbeit {
	position: relative;
	left: 50%;
	width: min(calc(var(--global-content-width, 1180px) - 2 * var(--global-content-edge-padding, 1.5rem)), calc(100vw - 2rem));
	transform: translateX(-50%);
}

/* Start */
.psb-pl__start {
	display: grid;
	gap: 0.75rem;
}

/* Bedienungsanleitung als PDF, gut sichtbar unter den Startknöpfen */
.psb-plotter .psb-pl__anleitung {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.7rem 1rem;
	border: 1px dashed var(--pl-linie, #c9d3e0);
	border-radius: 0.6rem;
	background: #f5f7fa;
	color: #1d4f91;
	font-weight: 600;
	text-decoration: none;
}

.psb-plotter .psb-pl__anleitung:hover,
.psb-plotter .psb-pl__anleitung:focus-visible {
	border-style: solid;
	border-color: #1d4f91;
	background: #e6eef8;
}

.psb-pl__gross {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3rem;
	padding: 1.75rem 1rem;
	border-radius: 0.9rem;
	background: var(--pl-akzent);
	color: #fff;
	font-size: 0.9rem;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(29, 79, 145, 0.3);
	transition: transform 0.15s, box-shadow 0.15s;
}

.psb-pl__gross strong {
	font-size: 1.3rem;
}

.psb-pl__gross .psb-editor__symbol {
	width: 2.5rem;
	height: 2.5rem;
}

.psb-pl__gross:hover,
.psb-pl__gross:focus-within {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(29, 79, 145, 0.4);
}

.psb-pl__gross--klein {
	padding: 0.9rem 0.75rem;
	margin-bottom: 0.6rem;
}

.psb-pl__gross--klein strong {
	font-size: 1.05rem;
}

.psb-pl__datei {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

/* Gleichmäßiges Raster für alle Knopfgruppen */
.psb-pl__raster {
	display: grid;
	grid-template-columns: repeat(var(--spalten, 2), minmax(0, 1fr));
	gap: 0.5rem;
	align-items: end;
	margin: 0.5rem 0;
}

.psb-pl__raster--1 { --spalten: 1; }
.psb-pl__raster--2 { --spalten: 2; }
.psb-pl__raster--3 { --spalten: 3; }
.psb-pl__raster--4 { --spalten: 4; }
.psb-pl__raster--5 { --spalten: 5; }

.psb-pl__raster > .psb-editor__knopf,
.psb-pl__raster > button {
	width: 100%;
	min-height: 2.75rem;
	margin: 0;
	padding-inline: 0.4rem;
	line-height: 1.2;
}

.psb-pl__raster > .psb-editor__feld {
	margin: 0;
}

.psb-pl__knopfzelle {
	display: flex;
	align-items: end;
	min-height: 2.75rem;
}

.psb-pl__knopfzelle > .psb-editor__knopf {
	width: 100%;
}

/* Arbeit */
.psb-pl__arbeit {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 21rem;
	grid-template-rows: auto minmax(0, 1fr);
	gap: 0.75rem;
	padding: 0.75rem;
	border: 1px solid var(--pl-linie);
	border-radius: 0.9rem;
	background: #fff;
}

.psb-pl__arbeit[hidden],
.psb-pl__start[hidden],
.psb-pl__nz[hidden] {
	display: none;
}

.psb-pl__schritte {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.5rem;
}

.psb-pl__schritte button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 3rem;
	border: 2px solid var(--pl-linie);
	border-radius: 0.6rem;
	background: #f5f7fa;
	color: #14233a;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

.psb-pl__schritte button b {
	display: inline-grid;
	place-items: center;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 50%;
	background: #fff;
	color: var(--pl-akzent);
	font-size: 0.9rem;
}

.psb-pl__schritte button[aria-selected="true"] {
	border-color: var(--pl-akzent);
	background: var(--pl-akzent);
	color: #fff;
}

.psb-pl__flaeche {
	position: relative;
	min-height: 32rem;
	height: min(72vh, 46rem);
	border-radius: 0.6rem;
	overflow: hidden;
}

.psb-pl__canvas {
	display: block;
	width: 100%;
	height: 100%;
	touch-action: none;
	cursor: default;
	outline: none;
}

.psb-pl__canvas:focus-visible {
	box-shadow: inset 0 0 0 3px var(--pl-akzent);
}

.psb-pl__leiste {
	position: absolute;
	top: 2rem;
	right: 0.6rem;
	display: grid;
	grid-template-columns: repeat(7, 2.75rem);
	gap: 0.3rem;
}

.psb-pl__leiste button,
.psb-pl__leiste a {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	text-decoration: none;
	font-weight: 700;
	height: 2.75rem;
	border: 1px solid var(--pl-linie);
	border-radius: 0.5rem;
	background: rgba(255, 255, 255, 0.95);
	color: #14233a;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(20, 35, 58, 0.12);
}

.psb-pl__leiste button:hover,
.psb-pl__leiste button:focus-visible,
.psb-pl__leiste a:hover,
.psb-pl__leiste a:focus-visible {
	border-color: var(--pl-akzent);
	color: var(--pl-akzent);
}

.psb-pl__status {
	position: absolute;
	left: 1.9rem;
	bottom: 0.5rem;
	margin: 0;
	padding: 0.25rem 0.6rem;
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.92);
	color: var(--pl-leise);
	font-size: 0.85rem;
}

/* Seitenleiste */
.psb-pl__seite {
	max-height: min(72vh, 46rem);
	overflow-y: auto;
	padding-right: 0.2rem;
}

.psb-pl__gruppe {
	margin: 0 0 0.6rem;
	border: 1px solid var(--pl-linie);
	border-radius: 0.6rem;
	background: #fff;
}

.psb-pl__gruppe > summary {
	padding: 0.7rem 0.8rem;
	font-weight: 600;
	cursor: pointer;
	list-style-position: inside;
}

.psb-pl__gruppe-inhalt {
	padding: 0 0.8rem 0.6rem;
}

.psb-pl__feld,
.psb-pl__feld .psb-pl__eingabe {
	min-width: 0;
}

.psb-pl__feld .psb-pl__eingabe {
	display: flex;
	align-items: center;
	min-height: 2.6rem;
	border: 1px solid #b9c3d2;
	border-radius: 0.4rem;
	background: #fff;
}

.psb-pl__feld .psb-pl__eingabe:focus-within {
	border-color: var(--pl-akzent);
	box-shadow: 0 0 0 2px rgba(29, 79, 145, 0.2);
}

.psb-pl__feld input {
	flex: 1;
	width: 100%;
	min-width: 0;
	min-height: 2.5rem;
	padding: 0 0.5rem;
	border: 0;
	background: transparent;
	font-size: 1rem;
	outline: none;
}

.psb-pl__feld i {
	padding-right: 0.5rem;
	color: var(--pl-leise);
	font-style: normal;
	font-size: 0.9rem;
}

.psb-pl__feld > span:first-child {
	font-size: 0.9rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.psb-pl__haken {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.5rem;
	font-size: 0.95rem;
}

.psb-pl__haken input {
	width: 1.25rem;
	height: 1.25rem;
	accent-color: var(--pl-akzent);
}

.psb-pl__erklaerung {
	margin: 0.3rem 0 0.6rem;
	font-size: 0.9rem;
	color: var(--pl-leise);
}

.psb-pl__mat-satz {
	padding: 0.5rem 0.6rem;
	border-left: 3px solid var(--pl-akzent);
	background: #f2f6fb;
	color: #14233a;
}

.psb-pl__titel {
	margin: 0.4rem 0 0.4rem;
	font-size: 1rem;
}

.psb-pl__leer {
	padding: 1.5rem 1rem;
	border: 2px dashed var(--pl-linie);
	border-radius: 0.6rem;
	text-align: center;
}

.psb-pl__weiter {
	position: sticky;
	bottom: 0;
	padding: 0.4rem 0 0.2rem;
	background: linear-gradient(rgba(255, 255, 255, 0), #fff 30%);
}

/* Meldungen direkt über den Werkzeugen */
.psb-pl__meldung {
	margin: 0 0 0.6rem;
	padding: 0.6rem 0.75rem;
	border-radius: 0.6rem;
	background: #eaf2ea;
	color: #14233a;
	font-size: 0.95rem;
}

.psb-pl__meldung p {
	margin: 0 0 0.3rem;
}

.psb-pl__meldung--warnung {
	background: #fdf1e6;
	border-left: 4px solid #e35205;
}

.psb-pl__meldung[hidden] {
	display: none;
}

/* Teile-Liste */
.psb-pl__ebenen {
	margin: 0;
	padding: 0;
	list-style: none;
	max-height: 14rem;
	overflow-y: auto;
}

.psb-pl__ebene {
	display: grid;
	grid-template-columns: 1.2rem minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	min-height: 2.5rem;
	padding: 0.2rem 0.4rem;
	border: 0;
	border-radius: 0.4rem;
	background: transparent;
	text-align: left;
	cursor: pointer;
	font-size: 0.95rem;
}

.psb-pl__ebene i {
	width: 1.2rem;
	height: 1.2rem;
	border-radius: 0.25rem;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.psb-pl__ebene span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.psb-pl__ebene small {
	color: var(--pl-leise);
}

.psb-pl__an .psb-pl__ebene {
	background: #e6eef8;
	box-shadow: inset 3px 0 0 var(--pl-akzent);
}

.psb-pl__farben {
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	gap: 0.4rem;
	margin: 0.4rem 0;
}

.psb-pl__farbe {
	aspect-ratio: 1;
	min-height: 2.2rem;
	border: 2px solid #fff;
	border-radius: 0.4rem;
	box-shadow: 0 0 0 1px var(--pl-linie);
	cursor: pointer;
}

.psb-pl__farbe[aria-pressed="true"] {
	box-shadow: 0 0 0 3px var(--pl-akzent);
}

.psb-pl__farbe[aria-pressed="false"] {
	opacity: 0.25;
}

/* Zielprogramme */
.psb-pl__ziel,
.psb-pl__art {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.15rem;
	min-height: 4rem !important;
	border: 2px solid var(--pl-linie);
	border-radius: 0.6rem;
	background: #f5f7fa;
	color: #14233a;
	font-size: 0.85rem;
	cursor: pointer;
}

.psb-pl__ziel small {
	color: var(--pl-leise);
	font-weight: 600;
}

.psb-pl__art {
	min-height: 3rem !important;
}

.psb-pl__ziel[aria-pressed="true"],
.psb-pl__art[aria-pressed="true"] {
	border-color: var(--pl-akzent);
	background: #e6eef8;
	box-shadow: inset 0 0 0 1px var(--pl-akzent);
}

/* Prüfung */
.psb-pl__befund {
	margin: 0 0 0.5rem;
	padding: 0.6rem 0.75rem;
	border-radius: 0.6rem;
	border-left: 4px solid #f2a900;
	background: #fff8e6;
	font-size: 0.95rem;
}

.psb-pl__befund p {
	margin: 0;
}

.psb-pl__befund--fehler {
	border-left-color: #c8102e;
	background: #fdecee;
}

.psb-pl__befund--gut {
	border-left-color: #00843d;
	background: #eaf5ee;
}

.psb-pl__kennzahlen {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
	margin: 0;
}

.psb-pl__kennzahlen div {
	padding: 0.5rem 0.6rem;
	border-radius: 0.5rem;
	background: #f5f7fa;
}

.psb-pl__kennzahlen dt {
	font-size: 0.8rem;
	color: var(--pl-leise);
}

.psb-pl__kennzahlen dd {
	margin: 0;
	font-weight: 600;
}

/* Nachzeichnen: hängt am body (das Studio ist verschoben, sonst wäre „fixed“ an die Arbeitsfläche gebunden) */
.psb-pl__nz {
	--pl-akzent: var(--global-palette1, #1d4f91);
	--ed-akzent: var(--pl-akzent);
	--pl-linie: var(--psb-linie, #d8dee8);
	--pl-leise: var(--psb-leise, #5a6678);
	color: #14233a;
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	padding: 1rem;
	background: rgba(20, 35, 58, 0.55);
	overflow-y: auto;
}

.psb-pl__nz > * {
	/* border-box: Innenabstand zählt zur Breite, sonst ragte das Fenster rechts aus dem Bildschirm (gefunden 26.11.2026) */
	box-sizing: border-box;
	width: min(1180px, 100%);
	margin-inline: auto;
	background: #fff;
}

.psb-pl__nz-kopf {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.6rem 1rem;
	border-radius: 0.9rem 0.9rem 0 0;
	border-bottom: 1px solid var(--pl-linie);
}

.psb-pl__nz-kopf h2 {
	margin: 0;
	font-size: 1.2rem;
}

.psb-pl__nz-zu {
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	border-radius: 50%;
	background: #f5f7fa;
	font-size: 1.5rem;
	cursor: pointer;
}

.psb-pl__nz-arbeit {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 22rem;
	gap: 1rem;
	padding: 1rem;
	border-radius: 0 0 0.9rem 0.9rem;
}

.psb-pl__nz-bild {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
}

.psb-pl__nz-canvas {
	max-width: 100%;
	border: 1px solid var(--pl-linie);
	border-radius: 0.4rem;
	background: #fff;
	touch-action: none;
}

.psb-pl__nz--pinsel .psb-pl__nz-canvas {
	cursor: crosshair;
}

.psb-pl__nz-ansicht {
	width: min(24rem, 100%);
}

.psb-pl__nz-ansicht button {
	border: 2px solid var(--pl-linie);
	border-radius: 0.5rem;
	background: #f5f7fa;
	cursor: pointer;
}

.psb-pl__nz-ansicht button[aria-pressed="true"] {
	border-color: var(--pl-akzent);
	background: var(--pl-akzent);
	color: #fff;
}

.psb-pl__nz-info {
	margin: 0;
	font-size: 0.9rem;
	color: var(--pl-leise);
}

.psb-pl__regler {
	margin: 0.4rem 0;
}

.psb-pl__regler span {
	display: flex;
	justify-content: space-between;
}

.psb-pl__regler small {
	color: var(--pl-leise);
	font-size: 0.82rem;
}

.psb-pl__regler input {
	width: 100%;
	accent-color: var(--pl-akzent);
}

.psb-plotter--nz {
	overflow: visible;
}

/* Handy: Fläche oben, Werkzeuge darunter */
@media (max-width: 860px) {
	.psb-pl__arbeit {
		grid-template-columns: minmax(0, 1fr);
		padding: 0.5rem;
	}

	.psb-pl__flaeche {
		min-height: 22rem;
		height: 58vh;
	}

	.psb-pl__seite {
		max-height: none;
		overflow: visible;
	}

	.psb-pl__schritte button {
		flex-direction: column;
		gap: 0.15rem;
		min-height: 3.4rem;
		font-size: 0.85rem;
	}

	.psb-pl__leiste {
		top: auto;
		bottom: 2.4rem;
		right: 0.4rem;
	}

	.psb-pl__nz {
		padding: 0;
	}

	.psb-pl__nz-arbeit {
		grid-template-columns: minmax(0, 1fr);
	}

	.psb-pl__nz-kopf {
		border-radius: 0;
	}

	.psb-pl__raster--4 {
		--spalten: 2;
	}
}

/* Text: Schriftprobe direkt unter der Auswahl, Datei-Knopf im gleichen Raster wie alle Knöpfe */
.psb-pl__textfeld {
	box-sizing: border-box;
	width: 100%;
	min-height: 3.2rem;
	padding: 0.5rem;
	border: 1px solid #b9c3d2;
	border-radius: 0.4rem;
	font-size: 1.05rem;
	font-family: inherit;
	resize: vertical;
}

.psb-pl__textfeld:focus {
	border-color: var(--pl-akzent);
	outline: none;
	box-shadow: 0 0 0 2px rgba(29, 79, 145, 0.2);
}

.psb-pl__schriftprobe {
	display: block;
	width: 100%;
	height: 3.6rem;
	margin: 0.2rem 0 0.4rem;
	border-radius: 0.4rem;
	background: #f5f7fa;
}

.psb-pl__dateiknopf {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
}

.psb-pl__dateiknopf input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

/* Formen als Bildknöpfe im 4er-Raster */
.psb-pl__form svg {
	display: block;
	width: 100%;
	height: 1.6rem;
}

.psb-pl__form:hover svg,
.psb-pl__form:focus-visible svg {
	color: #fff;
}

/* Auswahllisten und Felder nie breiter als die Seitenleiste */
.psb-pl__seite {
	overflow-x: hidden;
}

.psb-pl__seite select,
.psb-pl__nz select {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
}

/* Schieberegler ausdrücklich gestalten: das Theme blendet die Standardform aus, und das Nachzeichnen-Fenster liegt
   außerhalb des Studios (Robert, 25.11.2026: „der Schieberegler ist nicht zu sehen“). Groß genug für Finger. */
.psb-plotter input[type="range"],
.psb-pl__nz input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	height: 2.2rem;
	margin: 0;
	background: transparent;
	cursor: pointer;
}

.psb-plotter input[type="range"]::-webkit-slider-runnable-track,
.psb-pl__nz input[type="range"]::-webkit-slider-runnable-track {
	height: 0.45rem;
	border-radius: 0.25rem;
	background: #c9d3e0;
}

.psb-plotter input[type="range"]::-webkit-slider-thumb,
.psb-pl__nz input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 1.6rem;
	height: 1.6rem;
	margin-top: -0.58rem;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--pl-akzent, #1d4f91);
	box-shadow: 0 1px 4px rgba(20, 35, 58, 0.35);
}

.psb-plotter input[type="range"]::-moz-range-track,
.psb-pl__nz input[type="range"]::-moz-range-track {
	height: 0.45rem;
	border-radius: 0.25rem;
	background: #c9d3e0;
}

.psb-plotter input[type="range"]::-moz-range-thumb,
.psb-pl__nz input[type="range"]::-moz-range-thumb {
	width: 1.3rem;
	height: 1.3rem;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--pl-akzent, #1d4f91);
	box-shadow: 0 1px 4px rgba(20, 35, 58, 0.35);
}

.psb-plotter input[type="range"]:focus-visible::-webkit-slider-thumb,
.psb-pl__nz input[type="range"]:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 4px rgba(29, 79, 145, 0.35);
}

/* Regler-Kopf: Name links, Zahlenfeld zum Eintippen rechts */
.psb-pl__regler-kopf {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.psb-pl__zahl {
	box-sizing: border-box;
	width: 5.2rem;
	min-height: 2.4rem;
	padding: 0 0.4rem;
	border: 1px solid #b9c3d2;
	border-radius: 0.4rem;
	font-size: 1rem;
	text-align: right;
}

.psb-pl__zahl:focus {
	border-color: var(--pl-akzent, #1d4f91);
	outline: none;
	box-shadow: 0 0 0 2px rgba(29, 79, 145, 0.2);
}

/* Nachzeichnen füllt den Bildschirm: Bild links so groß wie möglich, Einstellungen rechts scrollbar */
.psb-pl__nz {
	padding: 0.5rem;
}

.psb-pl__nz > * {
	width: min(1800px, 100%);
}

.psb-pl__nz-arbeit {
	grid-template-columns: minmax(0, 1fr) clamp(20rem, 26vw, 28rem);
	align-items: start;
}

.psb-pl__nz-seite {
	max-height: calc(100vh - 6.5rem);
	overflow-y: auto;
	padding-right: 0.3rem;
}

.psb-pl__nz-seite .psb-editor__knopf,
.psb-pl__nz-seite .psb-pl__art {
	min-height: 3rem;
	font-size: 1rem;
}

.psb-pl__nz-bild {
	position: sticky;
	top: 0;
}

@media (max-width: 860px) {
	.psb-pl__nz-seite {
		max-height: none;
		overflow: visible;
	}

	.psb-pl__nz-bild {
		position: static;
	}
}

/* Zahlenfeld fest schmal neben dem Namen, der Name nimmt den Rest */
.psb-pl__regler-kopf > label {
	flex: 1 1 auto;
	min-width: 0;
}

.psb-pl__regler-kopf > .psb-pl__zahl {
	flex: 0 0 5.5rem;
	width: 5.5rem;
	max-width: 5.5rem;
}

/* Haustier als eigene, ganze Reihe: hervorgehoben und symmetrisch unter den sechs anderen Arten */
.psb-pl__arten .psb-pl__art[data-art="tier"] {
	grid-column: 1 / -1;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border-color: #c98a3a;
	background: #fbf3e8;
}

.psb-pl__arten .psb-pl__art[data-art="tier"][aria-pressed="true"] {
	border-color: var(--pl-akzent);
	background: #e6eef8;
}

/* Bei der Arbeit füllt das Studio das Fenster: volle Breite und Höhe (Robert, 25.11.2026) */
.psb-plotter--arbeit {
	width: min(calc(100vw - 1.5rem), 2200px);
}

.psb-plotter--arbeit .psb-pl__arbeit {
	grid-template-columns: minmax(0, 1fr) clamp(20rem, 24vw, 26rem);
}

.psb-plotter--arbeit .psb-pl__flaeche {
	height: max(32rem, calc(100vh - 7.5rem));
	height: max(32rem, calc(100dvh - 7.5rem));
}

.psb-plotter--arbeit .psb-pl__seite {
	max-height: max(32rem, calc(100vh - 7.5rem));
	max-height: max(32rem, calc(100dvh - 7.5rem));
}

.psb-pl__leiste {
	grid-template-columns: repeat(7, 2.75rem);
}

/* Vollbild: ohne Seitenrahmen, alles auf den Bildschirm */
.psb-plotter--vollbild {
	left: 0;
	width: 100vw;
	height: 100vh;
	margin: 0;
	padding: 0.5rem;
	transform: none;
	background: #fff;
	overflow: auto;
}

.psb-plotter--vollbild .psb-pl__flaeche,
.psb-plotter--vollbild .psb-pl__seite {
	height: calc(100vh - 5.5rem);
	max-height: calc(100vh - 5.5rem);
}

@media (max-width: 860px) {
	.psb-plotter--arbeit .psb-pl__arbeit {
		grid-template-columns: minmax(0, 1fr);
	}

	.psb-plotter--arbeit .psb-pl__flaeche {
		height: max(22rem, calc(100dvh - 12rem));
	}

	.psb-plotter--arbeit .psb-pl__seite {
		max-height: none;
	}

	/* Am Handy alle sieben Knöpfe in einer Reihe, etwas kleiner, damit nichts allein in einer Zeile steht */
	.psb-pl__leiste {
		grid-template-columns: repeat(7, 2.4rem);
		gap: 0.25rem;
	}

	.psb-pl__leiste button,
	.psb-pl__leiste a {
		height: 2.4rem;
		font-size: 1.1rem;
	}
}

/* Gegen das Theme absichern (live gefunden 25.11.2026): Das Theme färbt Knopftexte weiß und rechnet den Innenabstand
   zur Breite. Im Studio bekommen Knöpfe darum ausdrücklich die Breitenberechnung und Listenknöpfe eine dunkle Schrift. */
.psb-plotter button,
.psb-plotter input,
.psb-plotter select,
.psb-plotter textarea,
.psb-pl__nz button,
.psb-pl__nz input,
.psb-pl__nz select {
	box-sizing: border-box;
}

.psb-pl__ebene,
.psb-pl__ebene:hover,
.psb-pl__ebene:focus {
	color: #14233a;
	background: transparent;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
}

.psb-pl__ebene:hover {
	background: #eef3f9;
}

.psb-pl__an .psb-pl__ebene,
.psb-pl__an .psb-pl__ebene:hover {
	background: #e6eef8;
	box-shadow: inset 3px 0 0 var(--pl-akzent);
}

.psb-plotter .psb-editor__knopf,
.psb-pl__nz .psb-editor__knopf {
	text-transform: none;
	letter-spacing: normal;
}

/* Knöpfe einer Rasterreihe immer gleich hoch, auch wenn einer umbricht (Symmetrie-Regel) */
.psb-pl__raster > .psb-editor__knopf,
.psb-pl__raster > button {
	align-self: stretch;
}

/* Schriftauswahl mit Vorschau (26.11.2026): Suche, Gruppen, jede Schrift zeigt ihren Namen in sich selbst */
.psb-plotter .psb-pl__schriftwahl {
	margin: 0 0 0.6rem;
	border: 1px solid var(--pl-linie, #c9d3e0);
	border-radius: 0.5rem;
	background: #fff;
}

.psb-plotter .psb-pl__schriftwahl > summary {
	padding: 0.55rem 0.75rem;
	color: #1d4f91;
	font-weight: 600;
	cursor: pointer;
}

.psb-plotter .psb-pl__schriftsuche {
	box-sizing: border-box;
	display: block;
	width: calc(100% - 1.2rem);
	margin: 0 0.6rem 0.5rem;
	padding: 0.5rem 0.6rem;
	border: 1px solid var(--pl-linie, #c9d3e0);
	border-radius: 0.4rem;
	font-size: 1rem;
}

.psb-plotter .psb-pl__schriftgruppen {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	padding: 0 0.6rem 0.5rem;
}

.psb-plotter .psb-pl__chip {
	padding: 0.3rem 0.6rem;
	border: 1px solid var(--pl-linie, #c9d3e0);
	border-radius: 999px;
	background: #f5f7fa;
	color: #14233a;
	font-size: 0.85rem;
	cursor: pointer;
}

.psb-plotter .psb-pl__chip[aria-pressed="true"] {
	border-color: #1d4f91;
	background: #1d4f91;
	color: #fff;
}

.psb-plotter .psb-pl__schriftliste {
	max-height: 20rem;
	overflow-y: auto;
	border-top: 1px solid var(--pl-linie, #c9d3e0);
}

.psb-plotter .psb-pl__schriftzeile {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.1rem;
	width: 100%;
	padding: 0.45rem 0.75rem;
	border: 0;
	border-bottom: 1px solid #eef1f5;
	background: #fff;
	color: #14233a;
	text-align: left;
	cursor: pointer;
}

.psb-plotter .psb-pl__schriftzeile:hover,
.psb-plotter .psb-pl__schriftzeile:focus-visible {
	background: #e6eef8;
}

.psb-plotter .psb-pl__schriftzeile[aria-selected="true"] {
	background: #e6eef8;
	box-shadow: inset 4px 0 0 #1d4f91;
}

.psb-plotter .psb-pl__schriftzeile svg {
	display: block;
	width: 100%;
	height: 1.9rem;
	fill: #14233a;
}

.psb-plotter .psb-pl__schriftzeile small {
	color: #5a6678;
	font-size: 0.75rem;
}

.psb-plotter .psb-pl__schriftname {
	display: block;
	overflow: hidden;
	font-size: 1.35rem;
	line-height: 1.9rem;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* Scrollen ohne Überschneidung (26.11.2026): Einstellfläche, Schriftliste und Nachzeichnen-Leiste scrollen für sich;
   am Ende angekommen läuft das Mausrad nicht in die Seite weiter, die Arbeitsfläche selbst zoomt mit dem Rad. */
.psb-plotter .psb-pl__seite,
.psb-plotter .psb-pl__schriftliste,
.psb-pl__nz,
.psb-pl__nz * {
	overscroll-behavior: contain;
}

/* Art-Knöpfe: wenig Innenabstand an den Seiten, damit „Automatisch“ auch in schmalen Spalten ganz hineinpasst */
.psb-pl__nz .psb-pl__art {
	box-sizing: border-box;
	padding: 0.3rem 0.2rem;
	align-items: center;
	text-align: center;
}

.psb-pl__nz .psb-pl__arten .psb-pl__art {
	font-size: 0.92rem;
}

/* Platz für den Rollbalken immer frei halten, damit die Knöpfe beim Aufklappen nicht schmaler werden */
.psb-pl__nz-seite,
.psb-plotter .psb-pl__seite {
	scrollbar-gutter: stable;
}

/* Knopftexte wie „Hintergrund“ oder „⇋ Spiegeln“ brauchen in schmalen Spalten wenig Seitenabstand */
.psb-plotter .psb-editor__knopf,
.psb-pl__nz .psb-editor__knopf {
	padding-inline: 0.35rem;
}

/* Vierer-Reihen (Drehen, Spiegeln, Kippen) in der schmalen Einstellspalte: etwas kleinere Schrift, kein Anstoßen */
.psb-plotter .psb-pl__raster--4 .psb-editor__knopf {
	padding-inline: 0.15rem;
	font-size: 0.88rem;
}

/* Theme färbt Knopftexte weiß; das Nachzeichnen-Fenster hängt außerhalb von .psb-plotter und braucht eigene Farben
   (live gefunden 26.11.2026: „×“, „Vorlage“ und „Ergebnis“ waren weiß auf hellem Grund) */
.psb-pl__nz .psb-pl__nz-zu,
.psb-pl__nz .psb-pl__nz-zu:hover,
.psb-pl__nz .psb-pl__nz-ansicht button {
	color: #14233a;
}

.psb-pl__nz .psb-pl__nz-ansicht button[aria-pressed="true"] {
	color: #fff;
}

/* Handy-Ansicht (Robert, 26.11.2026: „ganz weit weg von der Bearbeitungsfläche“, „Knöpfe viel kleiner“, „Symbole statt Schrift“).
   Am Handy passen Schritte, Arbeitsfläche und Einstellungen zusammen auf einen Bildschirm: oben die Fläche mit festem Anteil,
   darunter die Einstellungen, die für sich scrollen. Knöpfe zeigen ein Symbol über einem kleinen Wort. Eingabefelder behalten
   16 px Schrift, sonst vergrößert das iPhone beim Antippen die ganze Seite. */
@media (max-width: 860px) {
	/* 100vw enthält bei schmalen Rechnerfenstern den Rollbalken; 1,25rem Luft verhindert seitliches Scrollen */
	.psb-plotter--arbeit {
		width: calc(100vw - 1.25rem);
	}

	.psb-plotter .psb-pl__seite .psb-pl__gross,
	.psb-plotter .psb-pl__seite .psb-pl__gross--klein {
		padding: 0.45rem 0.75rem;
		gap: 0.1rem;
	}

	.psb-plotter .psb-pl__seite .psb-pl__gross span:last-child {
		font-size: 0.72rem;
	}

	.psb-plotter .psb-pl__seite .psb-pl__gross strong {
		font-size: 1rem;
	}

	.psb-plotter--arbeit .psb-pl__arbeit {
		display: flex;
		flex-direction: column;
		gap: 0.3rem;
		height: calc(100dvh - 0.5rem);
		padding: 0.25rem;
	}

	.psb-plotter--arbeit .psb-pl__schritte {
		flex: 0 0 auto;
		gap: 0.25rem;
	}

	.psb-plotter--arbeit .psb-pl__schritte button {
		flex-direction: row;
		gap: 0.25rem;
		min-height: 2.2rem;
		padding: 0.2rem 0.15rem;
		font-size: 0.74rem;
	}

	.psb-plotter--arbeit .psb-pl__schritte button b {
		width: 1.15rem;
		height: 1.15rem;
		font-size: 0.68rem;
		line-height: 1.15rem;
	}

	.psb-plotter--arbeit .psb-pl__flaeche {
		flex: 0 0 auto;
		height: 44dvh;
		min-height: 14rem;
	}

	.psb-plotter--arbeit .psb-pl__seite {
		flex: 1 1 auto;
		min-height: 0;
		max-height: none;
		overflow-y: auto;
		padding-right: 0;
	}

	/* Einstellungen kompakt */
	.psb-plotter .psb-pl__gruppe {
		margin-bottom: 0.35rem;
		border-radius: 0.45rem;
	}

	.psb-plotter .psb-pl__gruppe > summary {
		padding: 0.4rem 0.55rem;
		font-size: 0.86rem;
	}

	.psb-plotter .psb-pl__gruppe-inhalt {
		padding: 0.1rem 0.5rem 0.5rem;
	}

	.psb-plotter .psb-pl__raster {
		gap: 0.25rem;
	}

	.psb-plotter .psb-pl__seite .psb-editor__knopf {
		min-height: 2.25rem;
		padding: 0.15rem 0.2rem;
		font-size: 0.76rem;
		line-height: 1.15;
	}

	/* Symbol groß, Wort klein darunter */
	.psb-plotter .psb-pl__seite .psb-editor__knopf[data-symbol] {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 0.05rem;
		min-height: 2.9rem;
		font-size: 0.64rem;
	}

	.psb-plotter .psb-pl__seite .psb-editor__knopf[data-symbol]::before {
		content: attr(data-symbol);
		font-size: 1.15rem;
		line-height: 1.1;
	}

	.psb-plotter .psb-pl__seite .psb-editor__klein,
	.psb-plotter .psb-pl__seite .psb-pl__erklaerung {
		margin: 0.25rem 0;
		font-size: 0.72rem;
		line-height: 1.35;
	}

	.psb-plotter .psb-pl__seite .psb-editor__feld > span {
		font-size: 0.74rem;
	}

	.psb-plotter .psb-pl__seite input:not([type="checkbox"]):not([type="range"]),
	.psb-plotter .psb-pl__seite select,
	.psb-plotter .psb-pl__seite textarea {
		min-height: 2.25rem;
		padding-block: 0.2rem;
		font-size: 16px;
	}

	.psb-plotter .psb-pl__seite .psb-pl__haken {
		font-size: 0.78rem;
	}

	.psb-plotter .psb-pl__formen button,
	.psb-plotter .psb-pl__seite .psb-pl__raster--5 > button {
		min-height: 2.3rem;
	}

	.psb-plotter .psb-pl__schriftprobe {
		height: 2.6rem;
	}

	.psb-plotter .psb-pl__meldung {
		padding: 0.35rem 0.55rem;
		font-size: 0.76rem;
	}

	.psb-plotter .psb-pl__status {
		font-size: 0.68rem;
	}
}

@media (max-width: 860px) {
	/* Vier Symbolknöpfe in einer Reihe statt zwei mal zwei: spart am Handy eine Zeile, bleibt symmetrisch */
	.psb-plotter .psb-pl__seite .psb-pl__raster--2:has(> [data-symbol]:nth-child(4):last-child) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Nachzeichnen am Handy (gefunden 26.11.2026: die Rechner-Spaltenbreite überschrieb die Handy-Regel, das Bild schrumpfte
   zu einem Streifen). Bild oben mit festem Anteil, Einstellungen darunter, scrollen für sich; alles auf einem Bildschirm. */
@media (max-width: 860px) {
	.psb-pl__nz {
		padding: 0;
		overflow: hidden;
	}

	.psb-pl__nz > * {
		width: 100%;
	}

	.psb-pl__nz-kopf {
		flex: 0 0 auto;
		padding: 0.35rem 0.6rem;
		border-radius: 0;
	}

	.psb-pl__nz-kopf h2 {
		font-size: 1rem;
	}

	.psb-pl__nz .psb-pl__nz-zu {
		width: 2.3rem;
		height: 2.3rem;
		font-size: 1.25rem;
	}

	.psb-pl__nz .psb-pl__nz-arbeit {
		flex: 1 1 auto;
		display: flex;
		flex-direction: column;
		gap: 0.4rem;
		min-height: 0;
		padding: 0.4rem;
		border-radius: 0;
	}

	.psb-pl__nz .psb-pl__nz-bild {
		position: static;
		flex: 0 0 auto;
		gap: 0.25rem;
	}

	.psb-pl__nz .psb-pl__nz-canvas {
		max-height: 36dvh;
		width: auto;
		max-width: 100%;
	}

	.psb-pl__nz .psb-pl__nz-ansicht button {
		min-height: 2rem;
		font-size: 0.78rem;
	}

	.psb-pl__nz .psb-pl__nz-bild > p,
	.psb-pl__nz .psb-pl__nz-bild .psb-editor__klein {
		margin: 0;
		font-size: 0.7rem;
	}

	.psb-pl__nz .psb-pl__nz-seite {
		flex: 1 1 auto;
		min-height: 0;
		max-height: none;
		overflow-y: auto;
		padding-right: 0;
	}

	.psb-pl__nz .psb-pl__nz-seite .psb-editor__knopf,
	.psb-pl__nz .psb-pl__nz-seite .psb-pl__art {
		min-height: 2.3rem !important;
		font-size: 0.8rem;
	}

	.psb-pl__nz .psb-pl__nz-seite .psb-editor__klein,
	.psb-pl__nz .psb-pl__nz-seite .psb-pl__erklaerung {
		font-size: 0.72rem;
		line-height: 1.35;
	}
}

.psb-plotter .psb-pl__schriftaktion {
	padding: 0.5rem 0.6rem 0.6rem;
	border-top: 1px solid var(--pl-linie, #c9d3e0);
}

.psb-plotter .psb-pl__schriftaktion .psb-editor__knopf {
	width: 100%;
}

@media (max-width: 860px) {
	/* Weniger Rand zwischen Schrift und Knopfkante, ohne abzuschneiden (Robert, 26.11.2026) */
	.psb-plotter .psb-pl__seite .psb-editor__knopf,
	.psb-plotter .psb-pl__seite .psb-pl__art,
	.psb-pl__nz .psb-editor__knopf {
		padding: 0.1rem 0.12rem;
		overflow-wrap: anywhere;
		hyphens: auto;
	}

	.psb-plotter .psb-pl__seite .psb-editor__knopf[data-symbol] {
		min-height: 2.7rem;
	}

	.psb-plotter .psb-pl__schriftliste {
		max-height: 14rem;
	}

	.psb-plotter .psb-pl__schriftzeile {
		padding: 0.3rem 0.5rem;
	}

	.psb-plotter .psb-pl__schriftzeile svg {
		height: 1.5rem;
	}
}

/* Der Knopf unter der Schriftliste bleibt sichtbar über der Weiter-Leiste, solange die Auswahl offen ist */
.psb-plotter .psb-pl__schriftaktion {
	position: sticky;
	bottom: 3.4rem;
	z-index: 2;
	background: #fff;
	box-shadow: 0 -6px 10px -8px rgba(20, 35, 58, 0.25);
}

/* Handy wie die Photoshop-App (Robert, 26.11.2026): großes Motiv, darüber nichts Überflüssiges; unten eine wischbare
   Werkzeugleiste (Symbol + kurzes Wort), darüber nur der gewählte Abschnitt in einer schmalen Fläche. Am Rechner aus. */
.psb-pl__handyleiste {
	display: none;
}

@media (max-width: 860px) {
	.psb-plotter--arbeit .psb-pl__flaeche {
		flex: 1 1 auto;
		height: auto;
		min-height: 12rem;
	}

	.psb-plotter--arbeit .psb-pl__seite {
		flex: 0 1 auto;
		max-height: 34dvh;
		min-height: 0;
		overflow-y: auto;
	}

	/* Nur der gewählte Abschnitt; seine Überschrift steht klein und mittig wie bei Photoshop */
	.psb-plotter--arbeit .psb-pl__seite > details.psb-pl__gruppe:not(.psb-pl__gruppe--handy) {
		display: none;
	}

	.psb-plotter--arbeit .psb-pl__seite > details.psb-pl__gruppe--handy {
		margin: 0;
		border: 0;
		background: transparent;
	}

	.psb-plotter--arbeit .psb-pl__seite > details.psb-pl__gruppe--handy > summary {
		padding: 0.15rem 0 0.3rem;
		color: #14233a;
		font-size: 0.72rem;
		font-weight: 600;
		letter-spacing: 0.06em;
		text-align: center;
		text-transform: uppercase;
		list-style: none;
		pointer-events: none;
	}

	.psb-plotter--arbeit .psb-pl__seite > details.psb-pl__gruppe--handy > summary::-webkit-details-marker {
		display: none;
	}

	.psb-plotter--arbeit .psb-pl__seite > details.psb-pl__gruppe--handy > summary::marker {
		content: '';
	}

	/* Die Weiter-Leiste wandert als letzter Knopf in die Werkzeugleiste */
	.psb-plotter--arbeit .psb-pl__seite .psb-pl__weiter {
		display: none;
	}

	.psb-plotter--arbeit .psb-pl__handyleiste {
		display: flex;
		flex: 0 0 auto;
		gap: 0.1rem;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		margin: 0 -0.25rem -0.25rem;
		padding: 0.25rem 0.25rem calc(0.25rem + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid var(--pl-linie, #d8dee8);
		background: #fff;
	}

	.psb-plotter--arbeit .psb-pl__handyleiste::-webkit-scrollbar {
		display: none;
	}

	.psb-plotter .psb-pl__handyknopf {
		display: flex;
		flex: 0 0 4.1rem;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 0.1rem;
		min-height: 3.1rem;
		padding: 0.15rem 0.1rem;
		border: 0;
		border-radius: 0.4rem;
		background: transparent;
		box-shadow: none;
		color: #14233a;
		font-size: 0.66rem;
		line-height: 1.1;
		text-transform: none;
		letter-spacing: normal;
		cursor: pointer;
	}

	.psb-plotter .psb-pl__handyknopf span {
		font-size: 1.25rem;
		line-height: 1.1;
	}

	.psb-plotter .psb-pl__handyknopf[aria-pressed="true"] {
		color: #1d6fe0;
		background: #eef4fd;
	}

	.psb-plotter .psb-pl__handyknopf--weiter {
		margin-left: auto;
		color: #fff;
		background: #1d4f91;
	}
}

@media (max-width: 860px) {
	/* Meldungen am Handy auf zwei Zeilen; ein Tipp zeigt den ganzen Text */
	.psb-plotter--arbeit .psb-pl__seite .psb-pl__meldung {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
		margin-bottom: 0.3rem;
		cursor: pointer;
	}

	.psb-plotter--arbeit .psb-pl__seite .psb-pl__meldung--ganz {
		display: block;
	}
}

@media (max-width: 860px) {
	/* Unterer Abstand als Rand, damit die abgeschnittene dritte Zeile nicht im Innenabstand durchscheint */
	.psb-plotter--arbeit .psb-pl__seite .psb-pl__meldung:not(.psb-pl__meldung--ganz) {
		padding-bottom: 0;
		border-bottom: 0.35rem solid transparent;
	}
}

/* Noch kompakter am Handy (Robert, 26.11.2026, mit Bildschirmfoto): Farbfelder halb so groß, Eingabefelder mit wenig Rand
   zwischen Zahl und Rahmen, engere Abstände auf allen Ansichten. Schrift in Feldern bleibt 16 px (sonst zoomt das iPhone). */
@media (max-width: 860px) {
	.psb-plotter .psb-pl__farben {
		gap: 0.25rem;
		margin: 0.2rem 0;
	}

	.psb-plotter .psb-pl__farbe {
		min-height: 0;
		height: 1.55rem;
		aspect-ratio: auto;
		border-width: 1px;
		border-radius: 0.3rem;
	}

	.psb-plotter .psb-pl__feld .psb-pl__eingabe {
		min-height: 2rem;
	}

	.psb-plotter .psb-pl__feld input,
	.psb-plotter .psb-pl__seite input:not([type="checkbox"]):not([type="range"]),
	.psb-plotter .psb-pl__seite select,
	.psb-plotter .psb-pl__seite textarea {
		min-height: 1.9rem;
		padding-block: 0.05rem;
		padding-inline: 0.4rem;
		line-height: 1.2;
	}

	.psb-plotter .psb-pl__feld .psb-pl__eingabe i {
		font-size: 0.72rem;
		padding-right: 0.35rem;
	}

	.psb-plotter .psb-pl__seite .psb-editor__feld {
		gap: 0.1rem;
		margin: 0;
	}

	.psb-plotter .psb-pl__seite .psb-editor__feld > span:first-child {
		margin: 0;
		line-height: 1.2;
	}

	.psb-plotter .psb-pl__seite .psb-pl__raster {
		margin: 0.25rem 0;
	}

	.psb-plotter .psb-pl__seite .psb-editor__knopf {
		min-height: 2rem;
	}

	.psb-plotter .psb-pl__seite .psb-editor__knopf[data-symbol] {
		min-height: 2.45rem;
		font-size: 0.62rem;
	}

	.psb-plotter .psb-pl__seite .psb-editor__knopf[data-symbol]::before {
		font-size: 1rem;
	}

	.psb-plotter .psb-pl__seite .psb-editor__klein,
	.psb-plotter .psb-pl__seite .psb-pl__erklaerung {
		margin: 0.15rem 0;
		font-size: 0.68rem;
	}

	.psb-plotter--arbeit .psb-pl__seite > details.psb-pl__gruppe--handy > summary {
		padding: 0 0 0.15rem;
		font-size: 0.66rem;
	}

	.psb-plotter .psb-pl__seite .psb-pl__haken {
		margin: 0.15rem 0;
	}

	.psb-plotter .psb-pl__seite input[type="range"] {
		margin: 0.1rem 0;
	}
}

/* Text eingeben wie bei Photoshop: durchsichtige Fläche über dem ganzen Bildschirm, Abbrechen und Fertig oben */
.psb-pl__texteingabe {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	padding: calc(0.6rem + env(safe-area-inset-top, 0px)) 1rem 1rem;
	background: rgba(245, 247, 250, 0.82);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.psb-pl__texteingabe[hidden] {
	display: none;
}

.psb-pl__texteingabe-kopf {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.5rem;
}

.psb-pl__texteingabe-kopf button {
	padding: 0.4rem 0.2rem;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #14233a;
	font-size: 1rem;
	font-weight: 600;
	text-transform: none;
	cursor: pointer;
}

.psb-pl__texteingabe-kopf button[data-te="fertig"] {
	color: #1d6fe0;
}

.psb-pl__texteingabe textarea {
	flex: 1 1 auto;
	max-height: 45dvh;
	padding: 0.5rem;
	border: 0;
	background: transparent;
	color: #14233a;
	font-size: 1.6rem;
	line-height: 1.3;
	text-align: center;
	resize: none;
	outline: none;
	box-shadow: none;
}

.psb-pl__texteingabe textarea {
	font-family: inherit;
	font-weight: 600;
}

@media (max-width: 860px) {
	.psb-plotter .psb-pl__schriftwahl > summary {
		padding: 0.35rem 0.55rem;
		font-size: 0.8rem;
	}

	.psb-plotter .psb-pl__schriftwahl {
		margin-bottom: 0.3rem;
	}

	.psb-plotter .psb-pl__textfeld {
		min-height: 2.2rem;
	}
}

/* Motiv-Bibliothek: Themen als Reiter, Kacheln mit Vorschau und Namen; am Handy eine wischbare Reihe wie bei Photoshop */
.psb-plotter .psb-pl__formthemen {
	padding: 0 0 0.4rem;
}

.psb-plotter .psb-pl__motivliste {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.35rem;
	max-height: 19rem;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.psb-plotter .psb-pl__motiv {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.15rem;
	min-height: 4.6rem;
	padding: 0.3rem 0.15rem;
}

.psb-plotter .psb-pl__motiv svg {
	width: 2.6rem;
	height: 2.6rem;
}

.psb-plotter .psb-pl__motiv small {
	font-size: 0.64rem;
	line-height: 1.1;
	text-align: center;
}

@media (max-width: 860px) {
	.psb-plotter .psb-pl__motivliste {
		display: flex;
		gap: 0.3rem;
		max-height: none;
		overflow-x: auto;
		overflow-y: hidden;
		padding-bottom: 0.2rem;
	}

	.psb-plotter .psb-pl__motiv {
		flex: 0 0 4.4rem;
		min-height: 4.4rem;
	}

	.psb-plotter .psb-pl__motiv svg {
		width: 2.3rem;
		height: 2.3rem;
	}
}

.psb-plotter .psb-pl__motiv small {
	max-width: 100%;
	overflow-wrap: anywhere;
	hyphens: auto;
}

@media (min-width: 861px) {
	.psb-plotter .psb-pl__motivliste {
		overflow-x: hidden;
	}
}

.psb-plotter .psb-pl__bogenfeld input[type="range"] {
	width: 100%;
}

.psb-plotter .psb-pl__bogenfeld output {
	float: right;
	color: #1d4f91;
	font-weight: 600;
}
