/*
 * Wortlinie Editor – Typografie-Poster: Vorschau und Auswahl von Layout und Farben.
 * Plakatschriften lokal eingebunden (keine Verbindung zu Google), gebaut mit .claude/bin/plakatschriften-bauen.py.
 * Lizenz SIL OFL 1.1 – siehe assets/fonts/OFL-plakat-*.txt. Dieselben Glyphen wie in der Druck-PDF.
 */

@font-face { font-family: 'WL Plakat Schmal'; font-display: swap; src: url('../fonts/plakat-schmal.woff2') format('woff2'); }
@font-face { font-family: 'WL Plakat Breit'; font-display: swap; src: url('../fonts/plakat-breit.woff2') format('woff2'); }
@font-face { font-family: 'WL Plakat Slab'; font-display: swap; src: url('../fonts/plakat-slab.woff2') format('woff2'); }
@font-face { font-family: 'WL Plakat Fett'; font-display: swap; src: url('../fonts/plakat-fett.woff2') format('woff2'); }
@font-face { font-family: 'WL Plakat Rund'; font-display: swap; src: url('../fonts/plakat-rund.woff2') format('woff2'); }

.wl-typo__poster {
	width: 100%;
	max-width: 520px;
	aspect-ratio: 210 / 297;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 12px 32px rgba(31, 27, 24, .16);
	box-sizing: border-box;
	overflow: hidden;
	transition: opacity .15s ease;
}

.wl-typo__poster[data-rahmen="1"] {
	border: 14px solid #1b1917;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 2px 4px rgba(0, 0, 0, .2), 0 18px 40px rgba(31, 27, 24, .28);
}

.wl-typo__poster.is-laden {
	opacity: .8;
}

.wl-typo__svg,
.wl-typo__mini {
	display: block;
	width: 100%;
	height: auto;
}

/* Auswahl Layout und Farben: Karten statt Auswahlpunkte */
[data-uniqid="wl_typo_layout"] ul.tmcp-ul-wrap,
[data-uniqid="wl_typo_farben"] ul.tmcp-ul-wrap {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
}

[data-uniqid="wl_typo_layout"] ul.tmcp-ul-wrap::before,
[data-uniqid="wl_typo_layout"] ul.tmcp-ul-wrap::after,
[data-uniqid="wl_typo_farben"] ul.tmcp-ul-wrap::before,
[data-uniqid="wl_typo_farben"] ul.tmcp-ul-wrap::after {
	display: none;
}

[data-uniqid="wl_typo_layout"] li.tmcp-field-wrap,
[data-uniqid="wl_typo_farben"] li.tmcp-field-wrap {
	width: auto !important;
	max-width: none !important;
	float: none;
	margin: 0 !important;
	padding: 0 !important;
}

[data-uniqid="wl_typo_layout"] label,
[data-uniqid="wl_typo_farben"] label {
	display: block !important;
	margin: 0;
	padding: 6px 6px 4px;
	border: 2px solid transparent;
	border-radius: 10px;
	background: #f4f1ec;
	text-align: center;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}

[data-uniqid="wl_typo_layout"] label:hover,
[data-uniqid="wl_typo_farben"] label:hover {
	background: #ece6dd;
}

[data-uniqid="wl_typo_layout"] li:has(input:checked) label,
[data-uniqid="wl_typo_farben"] li:has(input:checked) label {
	border-color: #1f1b18;
	background: #fff;
}

[data-uniqid="wl_typo_layout"] li:has(input:focus-visible) label,
[data-uniqid="wl_typo_farben"] li:has(input:focus-visible) label {
	outline: 2px solid #1f1b18;
	outline-offset: 2px;
}

/* Auswahlpunkt bleibt bedienbar (Tastatur), ist aber nicht sichtbar */
[data-uniqid="wl_typo_layout"] .tc-input-wrap,
[data-uniqid="wl_typo_farben"] .tc-input-wrap {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

[data-uniqid="wl_typo_layout"] .tc-label-wrap,
[data-uniqid="wl_typo_farben"] .tc-label-wrap,
[data-uniqid="wl_typo_layout"] .tc-label,
[data-uniqid="wl_typo_farben"] .tc-label {
	display: block;
	padding: 0;
}

[data-uniqid="wl_typo_layout"] .tc-label-text,
[data-uniqid="wl_typo_farben"] .tc-label-text {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
}

.wl-typo__mini-box {
	display: block;
	width: 100%;
	aspect-ratio: 210 / 297;
	border-radius: 4px;
	overflow: hidden;
	background: #e6e0d6;
}

.wl-typo__farbe {
	display: flex;
	width: 100%;
	height: 34px;
	border-radius: 6px;
	overflow: hidden;
}

.wl-typo__farbe i {
	flex: 3;
}

.wl-typo__farbe i + i {
	flex: 2;
}

.wl-typo__farbe i + i + i {
	flex: 1;
}

@media (max-width: 549px) {
	[data-uniqid="wl_typo_layout"] ul.tmcp-ul-wrap,
	[data-uniqid="wl_typo_farben"] ul.tmcp-ul-wrap {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
