/**
 * Chlaus Core — front-end styles for the dynamic blocks (termine, news,
 * lang-switch). Uses the theme's design-token CSS variables
 * (--wp--preset--color--*, --wp--preset--font-family--*) with the SPEC
 * fallback values baked in, so output still looks reasonable even before
 * the chlaus-zug theme's theme.json is active.
 */

.chlaus-termine-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.25rem;
}

.chlaus-termine-item {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var( --wp--preset--color--muted, #6b5d4a );
}

.chlaus-termine-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.chlaus-termine-badge {
	flex: 0 0 auto;
	min-width: 4.5rem;
	padding: 0.4rem 0.6rem;
	text-align: center;
	background: var( --wp--preset--color--red, #7a1f1f );
	color: var( --wp--preset--color--paper, #faf4e6 );
	font-family: var( --wp--preset--font-family--playfair, 'Playfair Display', serif );
	font-weight: 700;
	border-radius: 2px;
}

.chlaus-termine-body {
	flex: 1 1 auto;
}

.chlaus-termine-title {
	margin: 0 0 0.25rem;
	font-family: var( --wp--preset--font-family--playfair, 'Playfair Display', serif );
}

.chlaus-termine-title a {
	color: var( --wp--preset--color--ink, #1a1410 );
	text-decoration: none;
}

.chlaus-termine-title a:hover,
.chlaus-termine-title a:focus {
	text-decoration: underline;
}

.chlaus-termine-meta {
	margin: 0;
	color: var( --wp--preset--color--muted, #6b5d4a );
	font-family: var( --wp--preset--font-family--inter, 'Inter', sans-serif );
	font-size: 0.95rem;
}

.chlaus-termine-lang {
	display: inline-block;
	margin-top: 0.35rem;
	padding: 0.1rem 0.5rem;
	font-size: 0.75rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border: 1px solid var( --wp--preset--color--gold, #b88a3a );
	color: var( --wp--preset--color--gold, #b88a3a );
	border-radius: 999px;
}

.chlaus-termine-empty,
.chlaus-news-empty {
	color: var( --wp--preset--color--muted, #6b5d4a );
	font-family: var( --wp--preset--font-family--inter, 'Inter', sans-serif );
	font-style: italic;
}

.chlaus-news-list {
	display: grid;
	gap: 2rem;
}

.chlaus-news-item {
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var( --wp--preset--color--muted, #6b5d4a );
}

.chlaus-news-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.chlaus-news-date {
	margin: 0 0 0.25rem;
	font-family: var( --wp--preset--font-family--inter, 'Inter', sans-serif );
	font-size: 0.85rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var( --wp--preset--color--gold, #b88a3a );
}

.chlaus-news-title {
	margin: 0 0 0.5rem;
	font-family: var( --wp--preset--font-family--playfair, 'Playfair Display', serif );
}

.chlaus-news-title a {
	color: var( --wp--preset--color--ink, #1a1410 );
	text-decoration: none;
}

.chlaus-news-title a:hover,
.chlaus-news-title a:focus {
	text-decoration: underline;
}

.chlaus-news-excerpt {
	font-family: var( --wp--preset--font-family--inter, 'Inter', sans-serif );
	color: var( --wp--preset--color--ink, #1a1410 );
}

.chlaus-news-more {
	display: inline-block;
	margin-top: 0.5rem;
	color: var( --wp--preset--color--red, #7a1f1f );
	font-weight: 600;
	text-decoration: none;
}

.chlaus-news-more:hover,
.chlaus-news-more:focus {
	text-decoration: underline;
}

.chlaus-lang-switch {
	display: inline-flex;
	gap: 0.4rem;
}

.chlaus-lang-pill {
	display: inline-block;
	padding: 0.2rem 0.65rem;
	border: 1px solid var( --wp--preset--color--gold, #b88a3a );
	border-radius: 999px;
	font-family: var( --wp--preset--font-family--inter, 'Inter', sans-serif );
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var( --wp--preset--color--ink, #1a1410 );
	text-decoration: none;
}

.chlaus-lang-pill.is-current {
	background: var( --wp--preset--color--gold, #b88a3a );
	color: var( --wp--preset--color--paper, #faf4e6 );
}
