/* Karrierlinge Social Wall 1.1: an den Bereich „Aktuelles“ angepasst.
   Zentriert, leichte Schrift, dünne rote Linien, runde Formen wie die Social-Icons. */

.klw {
	--klw-rot: #d22630;
	--klw-grau: #dadfe5;
	--klw-flaeche: #f4f6f8;
	--klw-schrift: #212121;
	--klw-text: #55595e;
	font-family: inherit;
	color: var(--klw-schrift);
	margin-top: 32px;
}

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

/* Filter: zentriert, rund und rot umrandet wie die Icons */
.klw-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 36px;
}

.klw-filter__btn {
	font: inherit;
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1;
	padding: 0.65em 1.3em;
	border: 1px solid var(--klw-rot);
	border-radius: 999px;
	background: #fff;
	color: var(--klw-rot);
	cursor: pointer;
}

.klw-filter__btn:hover {
	background: #fdf0f1;
}

.klw-filter__btn.is-aktiv {
	background: var(--klw-rot);
	color: #fff;
}

/* Raster */
.klw-raster {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 1140px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 32px 24px;
}

.klw-karte {
	margin: 0;
	padding: 0;
}

.klw-karte[hidden] {
	display: none;
}

.klw-karte__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.klw-karte__link:hover .klw-karte__hook,
.klw-karte__link:hover .klw-karte__gross {
	color: var(--klw-rot);
}

.klw-karte__link:focus-visible {
	outline: 2px solid var(--klw-rot);
	outline-offset: 4px;
}

.klw-karte__bild {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--klw-flaeche);
}

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

/* Karte ohne Bild: helle Fläche, rote Linie wie neben den Icons */
.klw-karte__bild--text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 32px 28px 72px;
}

.klw-karte__strich {
	display: block;
	width: 64px;
	height: 3px;
	margin-bottom: 18px;
	background: var(--klw-rot);
}

.klw-karte__gross {
	font-size: 1.3rem;
	font-weight: 500;
	line-height: 1.35;
	color: var(--klw-schrift);
	display: -webkit-box;
	-webkit-line-clamp: 7;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Play-Symbol im Stil der runden Social-Icons */
.klw-karte__play {
	position: absolute;
	left: 18px;
	bottom: 18px;
	width: 38px;
	height: 38px;
	border: 1px solid var(--klw-rot);
	border-radius: 50%;
	background: #fff;
}

.klw-karte__play::after {
	content: "";
	position: absolute;
	left: 15px;
	top: 12px;
	border-style: solid;
	border-width: 6.5px 0 6.5px 10px;
	border-color: transparent transparent transparent var(--klw-rot);
}

.klw-karte__text {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 2px 0;
	flex: 1;
}

.klw-karte__plattform {
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--klw-rot);
}

.klw-karte__hook {
	font-size: 1.05rem;
	font-weight: 400;
	line-height: 1.45;
	color: var(--klw-schrift);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.klw-karte__datum {
	font-size: 0.9rem;
	color: var(--klw-text);
}

/* Mehr anzeigen */
.klw-mehr-wrap {
	text-align: center;
	margin-top: 40px;
}

.klw-mehr {
	font: inherit;
	font-weight: 400;
	padding: 0.8em 2em;
	border: 1px solid var(--klw-rot);
	border-radius: 999px;
	background: #fff;
	color: var(--klw-rot);
	cursor: pointer;
}

.klw-mehr:hover {
	background: var(--klw-rot);
	color: #fff;
}

.klw-mehr[hidden] {
	display: none;
}

/* Fenster mit dem Beitrag */
.klw-fenster {
	padding: 0;
	border: 0;
	background: #fff;
	color: var(--klw-schrift);
	font-family: inherit;
	width: min(540px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
}

.klw-fenster--quer {
	width: min(960px, calc(100vw - 32px));
}

.klw-fenster::backdrop {
	background: rgba(0, 0, 0, 0.7);
}

.klw-fenster__kopf {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 10px 10px 20px;
	border-bottom: 1px solid var(--klw-grau);
}

.klw-fenster__titel {
	margin: 0;
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--klw-rot);
}

.klw-fenster__zu {
	font: inherit;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 10px;
	border: 0;
	background: none;
	color: var(--klw-schrift);
	cursor: pointer;
}

.klw-fenster__zu:focus-visible,
.klw-zustimmung button:focus-visible,
.klw-zustimmung a:focus-visible,
.klw-filter__btn:focus-visible,
.klw-mehr:focus-visible {
	outline: 2px solid var(--klw-rot);
	outline-offset: 3px;
}

.klw-fenster__inhalt iframe {
	display: block;
	width: 100%;
	height: min(820px, calc(100vh - 110px));
	border: 0;
}

.klw-fenster--quer .klw-fenster__inhalt iframe {
	height: auto;
	aspect-ratio: 16 / 9;
}

/* Zustimmung vor dem Laden */
.klw-zustimmung {
	padding: 32px 28px 36px;
	text-align: center;
}

.klw-zustimmung h3 {
	margin: 0 0 14px;
	font-size: 1.35rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--klw-schrift);
}

.klw-zustimmung p {
	margin: 0 0 20px;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--klw-text);
}

.klw-zustimmung a {
	color: var(--klw-rot);
}

.klw-zustimmung__merken {
	display: inline-flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 24px;
	font-size: 0.95rem;
	text-align: left;
	color: var(--klw-schrift);
	cursor: pointer;
}

.klw-zustimmung__merken input {
	margin-top: 4px;
	accent-color: var(--klw-rot);
}

.klw-zustimmung__aktionen {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.klw-zustimmung__laden {
	font: inherit;
	padding: 0.8em 2em;
	border: 1px solid var(--klw-rot);
	border-radius: 999px;
	background: var(--klw-rot);
	color: #fff;
	cursor: pointer;
}

.klw-zustimmung__laden:hover {
	background: #fff;
	color: var(--klw-rot);
}

.klw-leer {
	padding: 16px 20px;
	text-align: center;
	background: #f4f6f8;
}

/* Fortschrittsbalken, nur in der Wisch-Ansicht sichtbar */
.klw-fortschritt {
	display: none;
}

/* Handy: Beiträge nebeneinander zum Wischen */
@media (max-width: 767px) {
	.klw--wischen .klw-raster {
		display: flex;
		gap: 16px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		padding-bottom: 4px;
	}

	.klw--wischen .klw-raster::-webkit-scrollbar {
		display: none;
	}

	.klw--wischen .klw-karte {
		flex: 0 0 78%;
		scroll-snap-align: start;
	}

	.klw--wischen .klw-mehr-wrap {
		display: none;
	}

	.klw--wischen .klw-fortschritt {
		display: block;
		position: relative;
		height: 3px;
		max-width: 180px;
		margin: 24px auto 0;
		background: var(--klw-grau);
	}

	.klw--wischen .klw-fortschritt__balken {
		position: absolute;
		top: 0;
		left: 0;
		height: 100%;
		width: 30%;
		background: var(--klw-rot);
	}
}

@media (max-width: 600px) {
	.klw-raster { gap: 28px 16px; }
	.klw-karte__gross { font-size: 1.15rem; }
	.klw-zustimmung { padding: 24px 20px 28px; }
}
