/* artist.css – Künstlerseite (single-kuenstler) und Künstlerübersicht.
   Tokens aus functions.php: --brand-red, --brand-gold, --text, --title-bg, --container.
   Breakpoints im Projekt: 1000px, 780px, 566px. */

/* ---------------------------------------------------------------- Künstler */

.artist__header {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	align-items: flex-start;
	margin-bottom: 30px;
}

.artist__portrait {
	flex: 0 0 220px;
	margin: 0;
}

.artist__portrait img {
	display: block;
	width: 100%;
	height: auto;
}

.artist__identity {
	flex: 1 1 320px;
	min-width: 0;
}

.artist__name {
	margin: 0 0 12px;
}

/* Faktenliste: Label/Wert-Paare, gleiche Struktur wie die Katalogfelder. */
.artist__facts,
.portfolio-artist__list {
	margin: 0;
}

.artist__facts-row,
.portfolio-artist__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0 10px;
	padding: 6px 0;
	border-bottom: 1px solid var(--title-bg);
}

.artist__facts-label,
.portfolio-artist__label {
	flex: 0 0 160px;
	color: #333;
}

.artist__facts-value,
.portfolio-artist__value {
	flex: 1 1 200px;
	min-width: 0;
	margin: 0;
}

/* Biographie. `BIOGRAPHIE` steht als Text im Template (CLAUDE.md §3),
   NICHT als text-transform – der Wortlaut ist Teil des Abnahmevertrags. */
.artist__biography {
	margin: 30px 0;
}

.artist__biography-title,
.artist__works-title {
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--title-bg);
	font-size: 1.1rem;
	letter-spacing: 0.04em;
}

.artist__biography-text > :first-child {
	margin-top: 0;
}

.artist__works {
	margin: 40px 0 0;
}

/* Fussnavigation der Künstlerseite. */
.artist__links,
.artist-index__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin-top: 40px;
	padding-top: 16px;
	border-top: 1px solid var(--title-bg);
}

/* ------------------------------------------------------- Künstler am Objekt */

.portfolio-artist {
	margin: 20px 0;
}

/* --------------------------------------------------------- Künstlerübersicht */

/* Der Altinhalt dieser Seite enthält einen 1.732 Zeichen langen base64-Blob
   ohne ein einziges Leerzeichen (der `[vc_raw_js]`-Block, siehe Template).
   Ohne Umbruchregel schiebt dieses eine Wort das Layout auf ~15.000 px Breite
   und die ganze Seite scrollt horizontal. `anywhere` bricht auch dort um, wo es
   keine Trennstelle gibt. Verschwindet mit includes/shortcodes.php, kostet bis
   dahin drei Zeilen und verhindert eine kaputte Seite. */
.artist-index__intro {
	overflow-wrap: anywhere;
}

.artist-index__sort {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 30px 0 20px;
}

.artist-index__sort-link {
	padding: 6px 0;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.artist-index__sort-link.is-current {
	color: var(--text);
	border-bottom-color: var(--brand-red);
}

/* Buchstabennavigation. Sprungmarken, kein JS-Filter (siehe Template). */
.letter-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 30px;
	padding: 10px 0;
	border-top: 1px solid var(--title-bg);
	border-bottom: 1px solid var(--title-bg);
}

.letter-nav__link {
	min-width: 32px;
	padding: 4px 6px;
	text-align: center;
	text-decoration: none;
}

.letter-nav__link:hover,
.letter-nav__link:focus {
	background: var(--title-bg);
}

.artist-index__group {
	margin: 0 0 30px;
	/* Damit die Sprungmarke nicht unter einem klebenden Kopf landet. */
	scroll-margin-top: 20px;
}

.artist-index__group-title {
	margin: 0 0 10px;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--title-bg);
	font-size: 1.25rem;
	color: var(--brand-red);
}

/* Mehrspaltige Namensliste. columns statt grid: die Einträge sind
   unterschiedlich hoch und sollen sich wie ein Register lesen. */
.artist-index__list {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 3;
	column-gap: 30px;
}

.artist-index__item {
	break-inside: avoid;
	padding: 3px 0;
}

.artist-index__link {
	text-decoration: none;
}

.artist-index__link:hover .artist-index__name,
.artist-index__link:focus .artist-index__name {
	text-decoration: underline;
}

.artist-index__dates {
	color: var(--text);
	font-size: 0.85rem;
}

.artist-index__dates::before {
	content: " ";
}

@media (max-width: 1000px) {
	.artist-index__list {
		columns: 2;
	}
}

@media (max-width: 780px) {
	.artist__facts-label,
	.portfolio-artist__label {
		flex-basis: 120px;
	}
}

@media (max-width: 566px) {
	.artist-index__list {
		columns: 1;
	}

	.artist__portrait {
		flex-basis: 100%;
	}

	.artist__facts-row,
	.portfolio-artist__row {
		display: block;
	}
}
