/*
 * Startseite (template-parts/startseite.php, Shortcode [wortlinie_startseite]).
 * Eigene Klassen „wls-…“, damit nichts mit Flatsome oder dem Shop kollidiert.
 */

.wls {
	--wls-text: #1f1b18;
	--wls-leise: rgba(31, 27, 24, .64);
	--wls-grund: #f7f3ee;
	--wls-sand: #ebe2d8;
	color: var(--wls-text);
	background: var(--wls-grund);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.wls *,
.wls *::before,
.wls *::after {
	box-sizing: border-box;
}

.wls a {
	color: inherit;
	text-decoration: none;
}

.wls h1,
.wls h2 {
	margin: 0;
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 400;
	color: var(--wls-text);
	text-wrap: balance;
}

.wls h2 {
	font-size: clamp(26px, 3vw, 36px);
	line-height: 1.2;
}

.wls p {
	margin: 0;
}

.wls-wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
}

.wls-upper {
	margin-bottom: 12px !important;
	font-size: 11px;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--wls-leise);
}

.wls-knopf {
	display: inline-block;
	padding: 14px 30px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-size: 13px;
	letter-spacing: .16em;
	text-transform: uppercase;
	text-align: center;
	transition: opacity .2s, background-color .2s;
}

.wls-knopf:hover {
	opacity: .82;
}

.wls-knopf--voll {
	background: var(--wls-text);
	color: #fff !important;
}

.wls-knopf--rand {
	border-color: rgba(31, 27, 24, .25);
}

.wls-knopf--hell {
	background: #fff;
	color: var(--wls-text) !important;
	white-space: nowrap;
}

.wls-link {
	border-bottom: 1px solid currentColor;
	font-size: 14px;
}

/* ── Hero ── */
.wls-hero {
	padding: 56px 0 40px;
}

.wls-hero__grid {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 48px;
	align-items: center;
}

.wls-hero__titel {
	font-size: clamp(40px, 5.4vw, 68px);
	line-height: 1.06;
}

.wls-hero__text {
	margin-top: 22px !important;
	max-width: 540px;
	font-size: 17px;
	line-height: 1.75;
	color: var(--wls-leise);
}

.wls-hero__knoepfe {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.wls-plus {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 28px;
	max-width: 520px;
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}

.wls-plus li {
	margin: 0;
	font-size: 13px;
	color: var(--wls-leise);
}

.wls-plus strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--wls-text);
}

/* Drei Poster, leicht versetzt */
.wls-buehne {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	align-items: center;
}

.wls-buehne a {
	grid-row: 1;
	display: block;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 18px 40px rgba(31, 27, 24, .16);
	transition: transform .3s ease;
}

.wls-buehne a:hover {
	transform: translateY(-6px);
}

.wls-buehne img {
	display: block;
	width: 100%;
	height: auto;
}

.wls-buehne a:nth-child(1) { grid-column: 1 / 5; z-index: 2; }
.wls-buehne a:nth-child(2) { grid-column: 4 / 7; margin-top: -38%; z-index: 1; }
.wls-buehne a:nth-child(3) { grid-column: 4 / 7; margin-top: 62%; z-index: 3; }
.wls-buehne--1 a { grid-column: 1 / 7; margin: 0; }
.wls-buehne--2 a:nth-child(2) { margin-top: 30%; }

/* ── Abschnitte ── */
.wls-abschnitt {
	padding: 56px 0;
}

.wls-abschnitt--hell {
	background: rgba(255, 255, 255, .7);
}

.wls-kopf {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 32px;
	margin-bottom: 32px;
}

.wls-kopf > p {
	max-width: 420px;
	font-size: 14px;
	line-height: 1.75;
	color: var(--wls-leise);
	text-align: right;
}

/* Kategorie-Kacheln */
.wls-kacheln {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.wls-kachel {
	display: flex;
	flex-direction: column;
	padding: 14px 14px 18px;
	border: 1px solid rgba(31, 27, 24, .08);
	border-radius: 22px;
	background: #fff;
	transition: transform .25s ease, box-shadow .25s ease;
}

.wls-kachel:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(31, 27, 24, .1);
}

.wls-kachel__bild {
	display: block;
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 1;
	background: var(--wls-sand);
}

.wls-kachel__bild img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wls-kachel__titel {
	margin-top: 16px;
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 21px;
	line-height: 1.25;
}

.wls-kachel__text {
	margin-top: 4px;
	font-size: 13px;
	color: var(--wls-leise);
}

.wls-kachel__zahl {
	margin-top: auto;
	padding-top: 14px;
	font-size: 11px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--wls-leise);
}

.wls-kachel--eigen {
	background: var(--wls-sand);
	border-color: transparent;
}

.wls-kachel__eigen {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	border-radius: 14px;
	border: 1px dashed rgba(31, 27, 24, .35);
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(22px, 2.4vw, 32px);
}

/* Beliebte Poster */
.wls-poster {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.wls-poster a {
	display: block;
	text-align: center;
}

.wls-poster img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 18px;
	transition: transform .3s ease;
}

.wls-poster a:hover img {
	transform: scale(1.02);
}

.wls-poster span {
	display: block;
	margin-top: 12px;
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 18px;
}

/* Anlässe */
.wls-anlass {
	display: grid;
	grid-template-columns: .8fr 1.2fr;
	gap: 40px;
	align-items: center;
}

.wls-anlass ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wls-anlass li {
	margin: 0;
}

.wls-anlass li a {
	display: block;
	padding: 11px 22px;
	border: 1px solid rgba(31, 27, 24, .2);
	border-radius: 999px;
	background: #fff;
	font-size: 14px;
	transition: background-color .2s, color .2s;
}

.wls-anlass li a:hover {
	background: var(--wls-text);
	color: #fff;
}

/* Schritte */
.wls-schritte {
	display: grid;
	grid-template-columns: .8fr 1.2fr;
	gap: 40px;
	align-items: start;
}

.wls-schritte ol {
	display: grid;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: schritt;
}

.wls-schritte li {
	position: relative;
	margin: 0;
	padding-left: 58px;
	counter-increment: schritt;
}

.wls-schritte li::before {
	content: counter(schritt);
	position: absolute;
	left: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--wls-text);
	color: #fff;
	font-size: 15px;
}

.wls-schritte strong {
	display: block;
	font-size: 16px;
	font-weight: 600;
}

.wls-schritte span {
	font-size: 14px;
	color: var(--wls-leise);
}

/* Abschluss */
.wls-schluss {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 32px;
	padding: 44px 48px;
	border-radius: 28px;
	background: var(--wls-text);
	color: #fff;
}

.wls-schluss h2,
.wls-schluss .wls-upper {
	color: #fff;
}

.wls-schluss .wls-upper {
	opacity: .6;
}

.wls-schluss p:not(.wls-upper) {
	margin-top: 12px;
	max-width: 520px;
	font-size: 15px;
	opacity: .78;
}

@media (max-width: 1000px) {
	.wls-kacheln,
	.wls-poster {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 849px) {
	.wls-hero {
		padding: 36px 0 24px;
	}

	.wls-hero__grid,
	.wls-anlass,
	.wls-schritte {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.wls-abschnitt {
		padding: 40px 0;
	}

	.wls-kopf {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.wls-kopf > p {
		text-align: left;
	}

	.wls-schluss {
		flex-direction: column;
		align-items: flex-start;
		padding: 32px 26px;
	}

	.wls-knopf--hell {
		white-space: normal;
	}
}

@media (max-width: 480px) {
	.wls-wrap {
		padding: 0 16px;
	}

	.wls-kacheln,
	.wls-poster {
		gap: 12px;
	}

	.wls-kachel {
		padding: 10px 10px 14px;
		border-radius: 16px;
	}

	.wls-kachel__titel {
		font-size: 17px;
	}

	.wls-hero__knoepfe .wls-knopf {
		width: 100%;
	}
}
