/*
 * Äusserer Container der Startseite: begrenzt die Breite und
 * zentriert den gesamten Inhalt im Browserfenster.
 */
.longku-home-layout {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1.5rem 0 1.5rem;
}

/*
 * Grid mit benannten Bereichen: Marken-Block oben links, News darunter,
 * Kacheln rechts über die volle Höhe beider Zeilen.
 */
.longku-home-grid {
	display: grid;
	grid-template-columns: 1fr 2fr;
	grid-template-areas:
		"brand tiles"
		"news  tiles";
	gap: 2rem;
}

.longku-brand-area {
	grid-area: brand;
}

.longku-news-area {
	grid-area: news;
	padding-left: 1rem;
}

.longku-tiles-area {
	grid-area: tiles;
}

/*
 * Mobile Anpassung: Bereiche stapeln sich untereinander,
 * Marken-Block zuerst, dann Kacheln, dann News.
 */
@media (max-width: 768px) {

	.longku-home-grid {
		grid-template-columns: 1fr;
		grid-template-areas:
			"brand"
			"tiles"
			"news";
	}

	.longku-tiles {
		grid-template-columns: repeat(2, var(--longku-tile-size));
	}
}

/*
 * Marken-Block: Zentrumsname, Untertitel, Social-Icons, Standortlink.
 */
.longku-brand-block {
	width: 300px;
}

.longku-brand-block .longku-title {
	font-size: 72px;
	margin-bottom: 0;
	text-align: center;
}

.longku-brand-block .longku-subtitle {
	font-size: 24px;
	text-align: center;
}

.longku-brand-block .longku-social-links {
	font-size: 18px;
	text-align: center;
}

.longku-brand-block .longku-home-location {
	font-size: 18px;
	margin-top: 1rem;
	text-align: center;
}

.longku-brand-block .longku-home-location a {
	color: var(--longku-link-color);
}

.longku-brand-block .longku-home-location a:hover {
	color: var(--longku-link-color);
	text-decoration: underline;
}

/*
 * Container für die Facebook- und Instagram-Icons im Marken-Block,
 * nebeneinander mit gleichmässigem Abstand.
 */
.longku-social-links {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	justify-content: center;
}

/*
 * Einheitliche Grösse für die Social-Media-Icons (PNG und SVG).
 */
.longku-social-icon {
	width: 30px;
	height: 30px;
}

/*
 * Vertikale Liste der News-Teaser.
 */
.longku-news-section {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.longku-news-section-title {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	text-align: center;
}

.longku-news-teaser {
	padding-bottom: 1rem;
	border-bottom: 1px solid #e0e0e0;
}

.longku-news-teaser-title {
	font-size: 1.1rem;
	margin: 0 0 0.5rem 0;
}

.longku-news-teaser-title a {
	color: inherit;
	text-decoration: none;
}

.longku-news-teaser-title a:hover {
	text-decoration: underline;
}

.longku-news-teaser-excerpt {
	margin: 0;
	color: #4a4a4a;
	line-height: 1.5;
}

/*
 * Kachel-Grid für die kategoriefilterten Event-Links,
 * standardmässig drei Kacheln pro Zeile, Grösse zentral über
 * die Variable --longku-tile-size steuerbar.
 */
.longku-tiles {
	--longku-tile-size: 250px;
	display: grid;
	grid-template-columns: repeat(3, var(--longku-tile-size));
	gap: 1rem;
}

/*
 * Einzelne Kachel: quadratisch, Hintergrundbild oder -farbe füllt die Fläche,
 * Titel als weisser Text zentriert darüber.
 */
.longku-tile {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1;
	background-size: cover;
	background-position: center;
	color: #fff;
	text-decoration: none;
	font-weight: normal;
	font-size: 2rem;
	text-align: center;
}

.longku-tile-label {
	white-space: pre-line;
	text-shadow:
		-1px -1px 0 rgba(0, 0, 0, 0.5),
		1px -1px 0 rgba(0, 0, 0, 0.5),
		-1px 1px 0 rgba(0, 0, 0, 0.5),
		1px 1px 0 rgba(0, 0, 0, 0.5);
}
