/* ==========================================================================
   ALLTAGSFUCHS – EDITORIAL MASTHEAD v4 CLEAN
   Konsolidierter Stand. Keine v3.x-Override-Historie.
   ========================================================================== */

:root {
	--afmh4-max: 1200px;
	--afmh4-orange: #ff7518;
	--afmh4-ink: #151515;
	--afmh4-text: #373737;
	--afmh4-muted: #777774;
	--afmh4-line: #dededb;
	--afmh4-soft: #f5f5f2;
	--afmh4-shadow: 0 18px 45px rgba(0,0,0,.11);
}

/*
 * Legacy-Knoten werden von JS nach der Social-Übernahme entfernt.
 * Bis dahin verhindern diese Regeln FOUC/Doppelheader.
 */
body.af-editorial-masthead-v4 > .af-topbar,
body.af-editorial-masthead-v4 > .top-bar,
body.af-editorial-masthead-v4 > .site-header,
body.af-editorial-masthead-v4 > #site-navigation,
body.af-editorial-masthead-v4 #af-search-overlay {
	display: none !important;
}

.afmh4,
.afmh4 * {
	box-sizing: border-box;
}

.afmh4 {
	position: relative;
	z-index: 120;
	width: 100%;
	background: #fff;
	color: var(--afmh4-text);
	font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.afmh4-wrap {
	width: min(100% - 36px, var(--afmh4-max));
	margin-inline: auto;
}

/* Masthead */
.afmh4-mast {
	background: #fff;
	border-bottom: 1px solid var(--afmh4-line);
}

.afmh4-mast__grid {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 30px;
	min-height: 122px;
	padding: 19px 0 17px;
}

.afmh4-meta {
	justify-self: start;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-left: 14px;
	border-left: 2px solid #181818;
}

.afmh4-meta__edition {
	color: #111;
	font-size: 10px;
	font-weight: 850;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.afmh4-meta__date {
	color: #757572;
	font-size: 12px;
	font-weight: 550;
}

.afmh4-brand {
	justify-self: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.afmh4-logo .custom-logo-link {
	display: block;
	line-height: 0;
}

.afmh4-logo img {
	display: block;
	width: auto;
	max-width: 285px;
	height: 68px;
	object-fit: contain;
}

.afmh4-text-logo {
	color: var(--afmh4-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 42px;
	font-weight: 700;
	text-decoration: none;
}

.afmh4-tagline {
	margin-top: 6px;
	color: #777774;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .045em;
}

/* Tools / Socials */
.afmh4-tools {
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 14px;
}

.afmh4-socials {
	display: flex;
	align-items: center;
	gap: 4px;
}

.afmh4-socials:empty {
	display: none;
}

.afmh4-socials .af-social-link {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 30px !important;
	height: 30px !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	color: #646461 !important;
	opacity: 1 !important;
	transform: none !important;
	text-decoration: none !important;
	transition: color .15s ease, transform .15s ease !important;
}

.afmh4-socials .af-social-link:hover,
.afmh4-socials .af-social-link:focus-visible {
	color: var(--afmh4-orange) !important;
	transform: translateY(-2px) !important;
}

.afmh4-socials .af-social-link svg {
	display: block !important;
	width: 14px !important;
	height: 14px !important;
	fill: currentColor !important;
}

.afmh4-tools::after {
	content: "";
	width: 1px;
	height: 25px;
	background: var(--afmh4-line);
	order: 2;
}

.afmh4-search-toggle {
	order: 3;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 12px;
	background: #fff;
	border: 1px solid #d8d8d5;
	border-radius: 8px;
	color: #171717;
	font: inherit;
	font-size: 11px;
	font-weight: 780;
	letter-spacing: .025em;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.afmh4-search-toggle svg,
.afmh4-mobile-search-toggle svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.afmh4-search-toggle:hover,
.afmh4-search-toggle:focus-visible,
.afmh4-search-toggle[aria-expanded="true"] {
	background: #171717;
	border-color: #171717;
	color: #fff;
}

/* Search panel */
.afmh4-search-panel {
	background: var(--afmh4-soft);
	border-bottom: 1px solid #dcdcd8;
}

.afmh4-search-panel[hidden] {
	display: none !important;
}

.afmh4-search-panel .afmh4-wrap {
	padding: 20px 0 22px;
}

.afmh4-search-deck {
	max-width: 820px;
	margin: 0 auto;
}

.afmh4-search-deck__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	margin: 0 2px 10px;
}

.afmh4-search-deck__eyebrow {
	color: #151515;
	font-size: 9px;
	font-weight: 850;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.afmh4-search-deck__hint {
	color: #7d7d79;
	font-size: 11px;
	font-weight: 520;
}

.afmh4-search {
	display: grid;
	grid-template-columns: 46px minmax(0,1fr) 46px;
	align-items: center;
	gap: 0;
	min-height: 58px;
	padding: 5px;
	background: #fff;
	border: 1px solid #d4d4d0;
	border-radius: 10px;
	box-shadow: 0 8px 26px rgba(0,0,0,.055);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.afmh4-search:focus-within {
	border-color: #1d1d1d;
	box-shadow: 0 10px 30px rgba(0,0,0,.075);
}

.afmh4-search__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: #737370;
}

.afmh4-search__icon svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.afmh4-search input {
	width: 100%;
	min-width: 0;
	height: 46px;
	padding: 0 7px;
	background: transparent;
	border: 0;
	outline: 0;
	box-shadow: none;
	color: #181818;
	font: inherit;
	font-size: 17px;
	font-weight: 520;
	letter-spacing: -.015em;
}

.afmh4-search input::placeholder {
	color: #969692;
	opacity: 1;
}

.afmh4-search button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	background: #171717;
	border: 0;
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
}

.afmh4-search button svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .15s ease;
}

.afmh4-search button:hover,
.afmh4-search button:focus-visible {
	background: #333;
}

.afmh4-search button:hover svg,
.afmh4-search button:focus-visible svg {
	transform: translateX(2px);
}

/* Navigation */
.afmh4-navbar {
	background: #fff;
	border-bottom: 2px solid #171717;
}

.afmh4-desktop-menu,
.afmh4-desktop-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.afmh4-desktop-menu {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 4px;
	min-height: 49px;
}

.afmh4-desktop-menu > li {
	position: relative;
	display: flex;
	align-items: stretch;
}

.afmh4-desktop-menu > li > a {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 49px;
	padding: 0 15px;
	color: #222;
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: -.01em;
	text-decoration: none;
	transition: background .15s ease, color .15s ease;
}

.afmh4-desktop-menu > li:hover > a,
.afmh4-desktop-menu > li:focus-within > a {
	background: #f3f3f0;
	color: #111;
}

.afmh4-desktop-menu > li.current-menu-item > a,
.afmh4-desktop-menu > li.current-menu-ancestor > a {
	color: #111;
	font-weight: 780;
}

.afmh4-desktop-menu > li.current-menu-item > a::before,
.afmh4-desktop-menu > li.current-menu-ancestor > a::before {
	content: "";
	position: absolute;
	left: 15px;
	right: 15px;
	bottom: 5px;
	height: 2px;
	background: #171717;
}

.afmh4-desktop-menu .menu-item-has-children > a::after {
	content: "";
	width: 5px;
	height: 5px;
	margin-left: 8px;
	border-right: 1.4px solid currentColor;
	border-bottom: 1.4px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	opacity: .5;
}

.afmh4-desktop-menu > li.current-menu-item.menu-item-has-children > a::before,
.afmh4-desktop-menu > li.current-menu-ancestor.menu-item-has-children > a::before {
	right: 29px;
}

.afmh4-desktop-menu .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	z-index: 1000;
	width: 290px;
	padding: 10px;
	background: #fff;
	border: 1px solid var(--afmh4-line);
	border-radius: 10px;
	box-shadow: var(--afmh4-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 7px);
	transition: opacity .15s ease, visibility .15s ease, transform .15s ease;
}

.afmh4-desktop-menu li:hover > .sub-menu,
.afmh4-desktop-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.afmh4-desktop-menu .sub-menu a {
	display: block;
	padding: 10px 11px;
	border-radius: 6px;
	color: #333;
	font-size: 13px;
	font-weight: 550;
	line-height: 1.35;
	text-decoration: none;
}

.afmh4-desktop-menu .sub-menu a:hover,
.afmh4-desktop-menu .sub-menu a:focus-visible {
	background: #f3f3f0;
	color: #111;
}

/* Mobile */
.afmh4-mobile-menu-toggle,
.afmh4-mobile-search-toggle,
.afmh4-mobile-panel {
	display: none;
}

@media (max-width: 1024px) {
	.afmh4-wrap {
		width: min(100% - 28px, var(--afmh4-max));
	}

	.afmh4-mast__grid {
		grid-template-columns: 44px minmax(0,1fr) 44px;
		gap: 10px;
		min-height: 76px;
		padding: 9px 0;
	}

	.afmh4-meta,
	.afmh4-tools,
	.afmh4-tagline,
	.afmh4-navbar {
		display: none;
	}

	.afmh4-brand {
		grid-column: 2;
		justify-self: center;
		min-width: 0;
	}

	.afmh4-logo img {
		max-width: 190px;
		height: 50px;
	}

	.afmh4-mobile-menu-toggle,
	.afmh4-mobile-search-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 42px;
		padding: 0;
		background: transparent;
		border: 0;
		border-radius: 8px;
		color: #1d1d1d;
		cursor: pointer;
		transition: background .15s ease;
	}

	.afmh4-mobile-menu-toggle:hover,
	.afmh4-mobile-menu-toggle:focus-visible,
	.afmh4-mobile-search-toggle:hover,
	.afmh4-mobile-search-toggle:focus-visible {
		background: #f2f2ef;
		color: #111;
	}

	.afmh4-mobile-menu-toggle[aria-expanded="true"],
	.afmh4-mobile-search-toggle[aria-expanded="true"] {
		background: #171717;
		color: #fff;
	}

	.afmh4-mobile-menu-toggle {
		grid-column: 1;
		grid-row: 1;
		justify-self: start;
	}

	.afmh4-mobile-search-toggle {
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
	}

	.afmh4-burger {
		display: flex;
		flex-direction: column;
		gap: 4px;
		width: 19px;
	}

	.afmh4-burger i {
		display: block;
		width: 19px;
		height: 1.5px;
		background: currentColor;
		border-radius: 2px;
		transition: transform .15s ease, opacity .15s ease;
	}

	.afmh4-mobile-menu-toggle[aria-expanded="true"] .afmh4-burger i:nth-child(1) {
		transform: translateY(5.5px) rotate(45deg);
	}

	.afmh4-mobile-menu-toggle[aria-expanded="true"] .afmh4-burger i:nth-child(2) {
		opacity: 0;
	}

	.afmh4-mobile-menu-toggle[aria-expanded="true"] .afmh4-burger i:nth-child(3) {
		transform: translateY(-5.5px) rotate(-45deg);
	}

	.afmh4-search-panel .afmh4-wrap {
		padding: 16px 0 18px;
	}

	.afmh4-search-deck__head {
		display: block;
		margin-bottom: 9px;
	}

	.afmh4-search-deck__hint {
		display: none;
	}

	.afmh4-search {
		grid-template-columns: 42px minmax(0,1fr) 44px;
		min-height: 54px;
		padding: 4px;
	}

	.afmh4-search input {
		height: 44px;
		font-size: 15px;
	}

	.afmh4-search button {
		width: 40px;
		height: 40px;
	}

	.afmh4-mobile-panel {
		display: block;
		background: #fff;
		border-top: 1px solid var(--afmh4-line);
		border-bottom: 2px solid #171717;
	}

	.afmh4-mobile-panel[hidden] {
		display: none !important;
	}

	.afmh4-mobile-panel__inner {
		padding: 8px 0 18px;
	}

	.afmh4-mobile-menu,
	.afmh4-mobile-menu ul {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.afmh4-mobile-menu > li {
		position: relative;
		border-bottom: 1px solid #e6e6e3;
	}

	.afmh4-mobile-menu > li > a {
		display: flex;
		align-items: center;
		min-height: 52px;
		padding: 12px 42px 12px 2px;
		color: #222;
		font-size: 16px;
		font-weight: 720;
		line-height: 1.25;
		text-decoration: none;
	}

	.afmh4-mobile-menu > li.current-menu-item > a,
	.afmh4-mobile-menu > li.current-menu-ancestor > a {
		color: #111;
		font-weight: 780;
	}

	.afmh4-mobile-subtoggle {
		position: absolute;
		top: 8px;
		right: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		padding: 0;
		background: transparent;
		border: 0;
		color: #6f6f6b;
		cursor: pointer;
	}

	.afmh4-mobile-subtoggle::before {
		content: "";
		width: 7px;
		height: 7px;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: rotate(45deg) translate(-1px,-1px);
	}

	.afmh4-mobile-menu > li.is-submenu-open > .afmh4-mobile-subtoggle::before {
		transform: rotate(225deg) translate(-1px,-1px);
	}

	.afmh4-mobile-menu .sub-menu {
		display: none;
		margin: 0 0 10px;
		padding: 6px 8px 8px 14px;
		border-left: 2px solid #d8d8d5;
	}

	.afmh4-mobile-menu > li.is-submenu-open > .sub-menu {
		display: block;
	}

	.afmh4-mobile-menu .sub-menu a {
		display: block;
		padding: 9px 10px;
		color: #484845;
		font-size: 13.5px;
		font-weight: 550;
		line-height: 1.35;
		text-decoration: none;
	}

	.afmh4-mobile-menu .sub-menu a:hover,
	.afmh4-mobile-menu .sub-menu a:focus-visible {
		color: #111;
	}

	.afmh4-mobile-contact {
		margin-top: 18px;
		padding: 18px;
		background: #f5f5f2;
		border: 1px solid #dededb;
		border-radius: 10px;
	}

	.afmh4-mobile-contact__eyebrow {
		display: block;
		margin-bottom: 7px;
		color: #777774;
		font-size: 9px;
		font-weight: 850;
		letter-spacing: .12em;
		text-transform: uppercase;
	}

	.afmh4-mobile-contact__title {
		display: block;
		max-width: 420px;
		color: #171717;
		font-size: 15px;
		font-weight: 780;
		line-height: 1.35;
	}

	.afmh4-mobile-contact__text {
		margin: 7px 0 13px;
		color: #62625f;
		font-size: 12.5px;
		line-height: 1.5;
	}

	.afmh4-mobile-contact__link {
		display: inline-flex;
		align-items: center;
		gap: 7px;
		color: #171717;
		font-size: 12px;
		font-weight: 800;
		text-decoration: none;
	}

	.afmh4-mobile-contact__link:hover,
	.afmh4-mobile-contact__link:focus-visible {
		color: #ff7518;
	}

	.afmh4-mobile-footer {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 15px;
		margin-top: 16px;
		padding-top: 15px;
		border-top: 1px solid #e5e5e2;
	}

	.afmh4-mobile-footer__label {
		color: #777774;
		font-size: 9px;
		font-weight: 800;
		letter-spacing: .12em;
		text-transform: uppercase;
	}

	.afmh4-mobile-legal {
		display: flex;
		flex-wrap: wrap;
		gap: 6px 14px;
		margin-top: 14px;
		padding-top: 13px;
		border-top: 1px solid #e5e5e2;
	}

	.afmh4-mobile-legal a {
		color: #666663;
		font-size: 11px;
		font-weight: 650;
		text-decoration: none;
	}

	.afmh4-mobile-legal a:hover,
	.afmh4-mobile-legal a:focus-visible {
		color: #111;
		text-decoration: underline;
		text-underline-offset: 3px;
	}
}

@media (max-width: 480px) {
	.afmh4-logo img {
		max-width: 165px;
		height: 44px;
	}
}


/* ==========================================================================
   ARTICLE OVERFLOW GUARD
   Nur der Artikelinhalt wird begrenzt. Rail-/Sidebar-Ads bleiben unberührt.
   ========================================================================== */

body.single-post .entry-content {
	min-width: 0;
	max-width: 100%;
	overflow-x: clip;
}

body.single-post .entry-content .af-adslot,
body.single-post .entry-content .af-ad-container,
body.single-post .entry-content ins.adsbygoogle {
	max-width: 100% !important;
	min-width: 0 !important;
	box-sizing: border-box !important;
}

body.single-post .entry-content .af-adslot,
body.single-post .entry-content .af-ad-container,
body.single-post .entry-content .code-block:has(ins.adsbygoogle) {
	overflow-x: clip !important;
}

body.single-post .entry-content ins.adsbygoogle {
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

body.single-post .entry-content .af-adslot iframe,
body.single-post .entry-content .af-ad-container iframe,
body.single-post .entry-content ins.adsbygoogle iframe {
	max-width: 100% !important;
}

body.single-post .entry-content .wp-block-table {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* Dark Mode */
html.dark-mode .afmh4,
html.dark-mode .afmh4-mast,
html.dark-mode .afmh4-navbar,
html.dark-mode .afmh4-mobile-panel {
	background: var(--af-bg-main, #151515);
}

html.dark-mode .afmh4-mast,
html.dark-mode .afmh4-mobile-panel {
	border-color: var(--af-border, #333);
}

html.dark-mode .afmh4-meta {
	border-left-color: #eee;
}

html.dark-mode .afmh4-meta__edition {
	color: #f4f4f4;
}

html.dark-mode .afmh4-meta__date,
html.dark-mode .afmh4-tagline,
html.dark-mode .afmh4-mobile-footer__label {
	color: var(--af-text-muted, #999);
}

html.dark-mode .afmh4-socials .af-social-link,
html.dark-mode .afmh4-mobile-menu-toggle,
html.dark-mode .afmh4-mobile-search-toggle {
	color: var(--af-text-body, #ddd) !important;
}

html.dark-mode .afmh4-search-toggle {
	background: transparent;
	border-color: #444;
	color: #eee;
}

html.dark-mode .afmh4-search-toggle:hover,
html.dark-mode .afmh4-search-toggle:focus-visible,
html.dark-mode .afmh4-search-toggle[aria-expanded="true"] {
	background: #f2f2f2;
	border-color: #f2f2f2;
	color: #111;
}

html.dark-mode .afmh4-search-panel {
	background: var(--af-bg-soft, #1d1d1d);
	border-color: var(--af-border, #333);
}

html.dark-mode .afmh4-search {
	background: var(--af-bg-elev, #242424);
	border-color: var(--af-border, #383838);
	box-shadow: none;
}

html.dark-mode .afmh4-search:focus-within {
	border-color: #eee;
	box-shadow: none;
}

html.dark-mode .afmh4-search input {
	color: var(--af-text-head, #f4f4f4);
}

html.dark-mode .afmh4-search input::placeholder {
	color: var(--af-text-muted, #888);
}

html.dark-mode .afmh4-search button {
	background: #f2f2f2;
	color: #111;
}

html.dark-mode .afmh4-navbar {
	border-bottom-color: #eee;
}

html.dark-mode .afmh4-desktop-menu > li > a,
html.dark-mode .afmh4-mobile-menu > li > a {
	color: var(--af-text-head, #f2f2f2);
}

html.dark-mode .afmh4-desktop-menu > li:hover > a,
html.dark-mode .afmh4-desktop-menu > li:focus-within > a {
	background: var(--af-bg-soft, #202020);
	color: #fff;
}

html.dark-mode .afmh4-desktop-menu > li.current-menu-item > a::before,
html.dark-mode .afmh4-desktop-menu > li.current-menu-ancestor > a::before {
	background: #eee;
}

html.dark-mode .afmh4-desktop-menu .sub-menu {
	background: var(--af-bg-elev, #202020);
	border-color: var(--af-border, #333);
}

html.dark-mode .afmh4-desktop-menu .sub-menu a,
html.dark-mode .afmh4-mobile-menu .sub-menu a {
	color: var(--af-text-body, #ddd);
}


html.dark-mode .afmh4-mobile-menu-toggle[aria-expanded="true"],
html.dark-mode .afmh4-mobile-search-toggle[aria-expanded="true"] {
	background: #f2f2f2;
	color: #111 !important;
}

html.dark-mode .afmh4-mobile-contact {
	background: var(--af-bg-soft, #202020);
	border-color: var(--af-border, #333);
}

html.dark-mode .afmh4-mobile-contact__title {
	color: var(--af-text-head, #f2f2f2);
}

html.dark-mode .afmh4-mobile-contact__text,
html.dark-mode .afmh4-mobile-legal a {
	color: var(--af-text-body, #cfcfcf);
}

html.dark-mode .afmh4-mobile-contact__link {
	color: #f2f2f2;
}

html.dark-mode .afmh4-mobile-contact__link:hover,
html.dark-mode .afmh4-mobile-contact__link:focus-visible {
	color: #ff7518;
}

html.dark-mode .afmh4-mobile-legal {
	border-top-color: var(--af-border, #333);
}

@media (prefers-reduced-motion: reduce) {
	.afmh4 *,
	.afmh4 *::before,
	.afmh4 *::after {
		transition: none !important;
	}
}