/* ==========================================================================
   Weltfieber-Theme – Instagram-Feed
   Farben als Variablen, damit sie leicht anpassbar sind.
   ========================================================================== */

.wf-insta {
	--wf-insta-accent: #e4b91b;   /* Gold aus den Kategorie-Zeilen */
	--wf-insta-dark: #111;        /* wie die schwarze Menüleiste */
	--wf-insta-muted: #6b6b6b;
	--wf-insta-line: #e6e6e6;
	--wf-insta-gap: 10px;
	--wf-insta-cols: 3;
	margin: 10px 0 0;
}

/* Seite in voller Breite (ohne Seitenleiste) */
.wf-insta-page.featured-content {
	width: 100%;
	margin-right: 0;
	float: none;
}
.wf-insta-page .entry-header {
	text-align: center;
}
.wf-insta-intro {
	max-width: 720px;
	margin: 0 auto 10px;
	text-align: center;
}

/* Profilkopf -------------------------------------------------------------- */
.wf-insta__profile {
	display: flex;
	align-items: center;
	gap: 18px;
	max-width: 720px;
	margin: 0 auto 28px;
	padding: 18px 0;
	border-top: 1px solid var(--wf-insta-line);
	border-bottom: 1px solid var(--wf-insta-line);
}
.wf-insta__avatar {
	flex: 0 0 88px;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--wf-insta-accent);
}
.wf-insta__avatar--icon {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wf-insta-dark);
	color: #fff;
	font-size: 44px;
}
.wf-insta__who {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.wf-insta .wf-insta__handle {
	font-size: 20px;
	font-weight: 700;
	color: var(--wf-insta-dark);
	text-decoration: none;
	overflow-wrap: anywhere;
}
.wf-insta__name {
	font-weight: 400;
}
.wf-insta__stats {
	font-size: 14px;
	color: var(--wf-insta-muted);
}

/* Buttons ----------------------------------------------------------------- */
.wf-insta .wf-insta__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px;
	border-radius: 999px;
	background: var(--wf-insta-dark);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	white-space: nowrap;
	transition: background .2s, color .2s;
}
.wf-insta .wf-insta__button:hover,
.wf-insta .wf-insta__button:focus-visible {
	background: var(--wf-insta-accent);
	color: var(--wf-insta-dark);
}
.wf-insta .wf-insta__button .fa {
	font-size: 1.2em;
}
.wf-insta .wf-insta__button--large {
	padding: 12px 24px;
	font-size: 16px;
}

/* Raster ------------------------------------------------------------------ */
.wf-insta__grid {
	display: grid;
	grid-template-columns: repeat(var(--wf-insta-cols), minmax(0, 1fr));
	gap: var(--wf-insta-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}
.wf-insta__item {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f1f1f1;
}
.wf-insta__item::before {
	content: none !important; /* Theme-Listenpunkte unterdrücken */
}
.wf-insta__item > a {
	display: block;
	width: 100%;
	height: 100%;
	color: #fff;
	text-decoration: none;
}
.wf-insta__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.wf-insta__item a:hover img,
.wf-insta__item a:focus-visible img {
	transform: scale(1.04);
}
.wf-insta__item a:focus-visible {
	outline: 3px solid var(--wf-insta-accent);
	outline-offset: -3px;
}

.wf-insta__badge {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	color: #fff;
	font-size: 18px;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}

.wf-insta__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 6px;
	padding: 14px;
	background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .35) 55%, rgba(0, 0, 0, 0) 100%);
	opacity: 0;
	transition: opacity .25s ease;
}
.wf-insta__item a:hover .wf-insta__overlay,
.wf-insta__item a:focus-visible .wf-insta__overlay {
	opacity: 1;
}
.wf-insta__caption {
	font-size: 14px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.wf-insta__date {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--wf-insta-accent);
}

/* Leerer Zustand / Fußbereich --------------------------------------------- */
.wf-insta__empty {
	text-align: center;
	font-size: 17px;
	margin: 10px auto 20px;
	max-width: 560px;
}
.wf-insta__admin {
	text-align: center;
	font-size: 14px;
	padding: 10px;
	background: #fff8e1;
	border: 1px dashed var(--wf-insta-accent);
}
.wf-insta__footer {
	margin-top: 28px;
	text-align: center;
}
.wf-insta__privacy {
	margin: 12px auto 0;
	max-width: 560px;
	font-size: 13px;
	color: var(--wf-insta-muted);
}

/* Responsiv --------------------------------------------------------------- */
@media (max-width: 800px) {
	.wf-insta__grid {
		grid-template-columns: repeat(min(var(--wf-insta-cols), 3), minmax(0, 1fr));
		--wf-insta-gap: 4px;
	}
	.wf-insta__overlay {
		display: none; /* Auf Touch-Geräten gibt es kein Überfahren */
	}
}
@media (max-width: 520px) {
	.wf-insta__profile {
		flex-wrap: wrap;
		gap: 12px;
	}
	.wf-insta__avatar {
		flex-basis: 64px;
		width: 64px;
		height: 64px;
	}
	.wf-insta__who {
		flex: 1 1 calc(100% - 80px);
	}
	.wf-insta .wf-insta__handle {
		font-size: 18px;
	}
	.wf-insta__profile .wf-insta__button {
		width: 100%;
		justify-content: center;
	}
	.wf-insta__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.wf-insta__item img,
	.wf-insta__overlay {
		transition: none;
	}
}
