/* ==========================================================================
   HEADER — Laravel wm-public-header parity (Relaunch Wirtschaft-Magazin)
   ========================================================================== */

.wmh-topbar {
	background: #0d0d0d;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 0 20px;
	height: 44px;
}

.wmh-topbar-links {
	display: flex;
	gap: 18px;
}

.wmh-topbar a {
	color: #ccc;
	text-decoration: none;
	font-size: 14px;
	letter-spacing: 0.02em;
}

.wmh-topbar a:hover {
	color: #fff;
	text-decoration: none;
}

.wmh-date {
	color: #999;
	font-size: 14px;
}

.wmh-cta {
	background: #c41a1a;
	color: #fff !important;
	font-weight: 600;
	font-size: 14px;
	padding: 7px 14px;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.wmh-cta:hover {
	background: #a81515;
	color: #fff !important;
	text-decoration: none;
}

.wmh-masthead {
	background: var(--off, #f7f5f0);
	text-align: center;
	padding: 26px 16px 18px;
}

.wmh-logo {
	display: inline-block;
	text-decoration: none;
	color: #0d0d0d;
}

.wmh-logo:hover {
	text-decoration: none;
}

.wmh-logo-main {
	font-family: var(--font-display, 'Playfair Display', Georgia, serif);
	font-weight: 900;
	font-size: 58px;
	line-height: 1;
	letter-spacing: 0.02em;
	color: #0d0d0d;
}

.wmh-logo-sub {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 8px;
}

.wmh-logo-sub .line {
	display: block;
	width: 92px;
	height: 2px;
	background: #c41a1a;
}

.wmh-logo-sub .word {
	font-family: var(--font-ui, 'DM Sans', system-ui, sans-serif);
	font-weight: 500;
	font-size: 15px;
	letter-spacing: 0.55em;
	text-indent: 0.55em;
	color: #0d0d0d;
}

.wmh-subnav {
	background: var(--off, #f7f5f0);
	border-top: 1px solid var(--border, #d4d0c8);
	border-bottom: 2px solid #c41a1a;
}

.wmh-subnav__list {
	display: flex;
	justify-content: center;
	align-items: stretch;
}

/* Toggle is mobile-only; the row is shown in full on desktop. */
.wmh-navtoggle {
	display: none;
}

.wmh-subnav a {
	font-family: var(--font-ui, 'DM Sans', system-ui, sans-serif);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: #0d0d0d;
	padding: 13px 22px;
	border-left: 1px solid var(--border, #d4d0c8);
	white-space: nowrap;
}

.wmh-subnav__list > a:first-child,
.wmh-subnav__list > .wmh-has-sub:first-child > a {
	border-left: none;
}

/* ── Verzeichnis dropdown (Jens, 14.10) ──────────────────────────────────
   Opens on hover and on :focus-within, so tabbing into it works without JS. */
.wmh-has-sub {
	position: relative;
	display: flex;
}

.wmh-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 60;
	min-width: 210px;
	background: var(--off, #f7f5f0);
	border: 1px solid var(--border, #d4d0c8);
	border-top: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.12s ease;
}

.wmh-has-sub:hover .wmh-dropdown,
.wmh-has-sub:focus-within .wmh-dropdown {
	opacity: 1;
	visibility: visible;
}

.wmh-dropdown a {
	display: block;
	border-left: 0;
	border-bottom: 1px solid var(--border, #d4d0c8);
	padding: 12px 18px;
}

.wmh-dropdown a:last-child {
	border-bottom: 0;
}

.wmh-subnav a:hover {
	color: #c41a1a;
	text-decoration: none;
}

.wmh-subnav a.active {
	color: #c41a1a;
}

@media (max-width: 768px) {
	.wmh-topbar-links {
		display: none;
	}

	.wmh-logo-main {
		font-size: 38px;
	}

	.wmh-logo-sub .line {
		width: 48px;
	}

	/* Rubriken collapse behind a toggle — the row used to scroll
	   horizontally off-screen with no affordance that it did. */
	.wmh-navtoggle {
		display: flex;
		width: 100%;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		background: none;
		border: 0;
		margin: 0;
		padding: 12px 16px;
		cursor: pointer;
		font-family: var(--font-ui, 'DM Sans', system-ui, sans-serif);
		font-size: 15px;
		font-weight: 500;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: #0d0d0d;
	}

	.wmh-navtoggle__icon,
	.wmh-navtoggle__icon::before,
	.wmh-navtoggle__icon::after {
		display: block;
		width: 20px;
		height: 2px;
		background: #0d0d0d;
		transition: transform 0.15s ease, opacity 0.15s ease;
	}

	.wmh-navtoggle__icon {
		position: relative;
	}

	.wmh-navtoggle__icon::before,
	.wmh-navtoggle__icon::after {
		content: '';
		position: absolute;
		left: 0;
	}

	.wmh-navtoggle__icon::before { top: -6px; }
	.wmh-navtoggle__icon::after  { top: 6px; }

	.wmh-navtoggle[aria-expanded="true"] .wmh-navtoggle__icon { background: transparent; }
	.wmh-navtoggle[aria-expanded="true"] .wmh-navtoggle__icon::before { transform: translateY(6px) rotate(45deg); }
	.wmh-navtoggle[aria-expanded="true"] .wmh-navtoggle__icon::after  { transform: translateY(-6px) rotate(-45deg); }

	.wmh-subnav__list {
		display: none;
		flex-direction: column;
		border-top: 1px solid var(--border, #d4d0c8);
	}

	.wmh-subnav__list.is-open {
		display: flex;
	}

	.wmh-subnav a {
		padding: 12px 16px;
		font-size: 14px;
		border-left: none;
		border-bottom: 1px solid var(--border, #d4d0c8);
	}

	.wmh-subnav a:last-child {
		border-bottom: none;
	}

	/* Verzeichnis: no dropdown on mobile — the two targets sit indented
	   under the parent entry instead. */
	.wmh-has-sub {
		display: block;
	}

	.wmh-dropdown {
		position: static;
		min-width: 0;
		border: 0;
		opacity: 1;
		visibility: visible;
	}

	.wmh-dropdown a {
		padding-left: 34px;
		border-bottom: 1px solid var(--border, #d4d0c8);
		font-size: 14px;
	}

	.wmh-dropdown a:last-child {
		border-bottom: none;
	}

	/* Topbar: date + CTA only, keep them on one line without overflowing. */
	.wmh-topbar {
		gap: 10px;
		padding: 0 12px;
	}

	.wmh-date {
		font-size: 13px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.wmh-cta {
		font-size: 13px;
		padding: 6px 10px;
	}
}
