/* Bedburger Schachverein – Startseite (Kopfbereich, nächste Termine). Paket zu style.css, geladen von inc/css-pakete.php. */

/* ==========================================================================
   Startseite: Kopfbereich
   ========================================================================== */

.hero {
	position: relative;
	background: var(--bsv-blue);
	color: var(--bsv-white);
}

.hero__grid {
	display: grid;
	gap: 1.5rem;
	align-items: center;
	padding-block: 2.25rem 3rem;
}

.hero__logo {
	display: none;
	order: -1;
}

@media (min-width: 40em) {
	.hero__logo {
		display: block;
	}
}

.hero__logo img {
	display: block;
	width: min(100%, 300px);
	height: auto;
	margin-inline: auto;
}

/*
 * Schatten nur beim mitgelieferten (freigestellten) Logo. Ein eigenes Logo aus dem Customizer
 * hat oft einen festen Hintergrund – mit Schatten sähe es aus wie ein schwebender Kasten.
 */
.hero__logo img:not(.bsv-logo--custom) {
	filter: drop-shadow(0 18px 28px rgba(0, 28, 62, 0.35));
}

.hero__title {
	max-width: 13ch;
	margin: 0 0 1.25rem;
	font-size: clamp(2.75rem, 1.4rem + 5.2vw, 5.5rem);
	font-stretch: 68%;
	font-weight: 850;
	line-height: 0.94;
	letter-spacing: -0.008em;
}

.hero__lead {
	max-width: 32rem;
	margin: 0 0 2rem;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
	line-height: 1.5;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0;
}

@media (min-width: 60em) {
	.hero__grid {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		gap: 3rem;
		padding-block: 3.5rem 4.5rem;
	}

	.hero__logo {
		order: 0;
	}

	.hero__logo img {
		width: min(100%, 540px);
		margin-right: 0;
	}
}

/* Startseite: nächste Termine */
.front-termine {
	--t-date: 3.75rem;
}

.front-termine + .news {
	padding-top: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
}

.front-termine__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Vier Termine: 2 × 2 auf mittleren Bildschirmen, eine Reihe auf großen (statt 3 + 1) */
@media (min-width: 40em) {
	.front-termine[data-count="4"] .front-termine__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 70em) {
	.front-termine[data-count="4"] .front-termine__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.front-termine .bsv-termin {
	align-content: start;
	padding: 1rem;
	border: 1px solid var(--bsv-line);
	border-radius: var(--bsv-radius);
	background: var(--bsv-white);
}

.front-termine .bsv-termin[hidden] {
	display: none;
}

.front-termine .bsv-termin:first-child {
	border-color: var(--bsv-blue);
	box-shadow: inset 4px 0 0 var(--bsv-blue);
}

.front-termine .bsv-termin:first-child .bsv-termin__date,
.front-termine .bsv-termin.is-today .bsv-termin__date {
	background: var(--bsv-blue);
	color: var(--bsv-white);
}

.front-termine .bsv-termin:first-child .bsv-termin__date span,
.front-termine .bsv-termin.is-today .bsv-termin__date span {
	color: inherit;
}

.front-termine .bsv-termin__title {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.35;
}

.front-termine .bsv-termin__sub {
	margin: 0.3rem 0 0;
	padding-left: 1.1rem;
	font-size: 0.9375rem;
}

.front-termine .bsv-termin__meta {
	margin: 0.3rem 0 0;
	color: var(--bsv-muted);
	font-size: 0.875rem;
	font-weight: 600;
}

.bsv-termin__soon {
	display: inline-block;
	margin: 0 0.35rem 0.3rem 0;
	padding: 0.12rem 0.5rem;
	border-radius: 3px;
	background: #1d8a3e;
	color: var(--bsv-white);
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.35;
}
