/* ==========================================================================
   Idyllic Child – globale Anpassungen
   ========================================================================== */

/* --- Sticky Header (Ersatz für Elementor Pro "Sticky: Oben") -------------
   Idyllic setzt body { overflow-x: hidden }, das verhindert position: sticky.
   "clip" schneidet weiterhin horizontal ab, erzeugt aber keinen Scroll-Container. */
body.afro-has-sticky-header {
	overflow-x: hidden;
	overflow-x: clip;
}

.afro-has-sticky-header .afro-location-header {
	position: sticky;
	top: 0;
	z-index: 999;
}

.admin-bar.afro-has-sticky-header .afro-location-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar.afro-has-sticky-header .afro-location-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	/* Admin-Bar scrollt hier mit */
	.admin-bar.afro-has-sticky-header .afro-location-header {
		top: 0;
	}
}

/* Sprungziele (One-Pager-Anker) nicht unter dem Sticky Header verstecken */
html:has(body.afro-has-sticky-header) {
	scroll-padding-top: 90px;
}

/* --- Einzelner Beitrag (Ersatz für Theme-Builder-Template "Single Post") -- */
.afro-single {
	max-width: 1140px;
	margin: 0 auto;
	padding: 40px 20px;
}

.afro-single__article {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.afro-single__media,
.afro-single__body {
	flex: 1 1 calc(50% - 10px);
	min-width: 0;
}

.afro-single__media {
	text-align: center;
}

.afro-single__image {
	max-width: 100%;
	height: auto;
}

.afro-single__title {
	margin-top: 0;
}

@media (max-width: 767px) {
	.afro-single__media,
	.afro-single__body {
		flex-basis: 100%;
	}
}

/* --- Fallback-Header/-Footer (nur ohne Elementor) ------------------------ */
.afro-fallback-header,
.afro-fallback-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	background: #000;
	color: #fff;
}

.afro-fallback-header ul,
.afro-fallback-footer ul {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.afro-fallback-header a,
.afro-fallback-footer a {
	color: #fff;
}

.afro-fallback-header .custom-logo {
	max-width: 228px;
	height: auto;
}
