/* WebTrades – Header + mobiles Vollbild-Menü */

.wt-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	height: var(--wt-header-h);
	color: var(--wt-paper);
	border-bottom: 1px solid transparent;
	transition: height 0.35s var(--wt-ease), background-color 0.3s var(--wt-ease), color 0.3s var(--wt-ease), border-color 0.3s var(--wt-ease);
}

.admin-bar .wt-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

/* Solide Fassungen – kein Glass Blur */
.wt-header[data-surface="solid"][data-theme="dark"] {
	background-color: var(--wt-ink);
	color: var(--wt-paper);
	border-bottom-color: var(--wt-line-dark);
}

.wt-header[data-surface="solid"][data-theme="light"] {
	background-color: var(--wt-paper);
	color: var(--wt-ink);
	border-bottom-color: var(--wt-line-light);
}

.wt-header[data-surface="transparent"][data-theme="light"] {
	color: var(--wt-ink);
}

.wt-header[data-compact] {
	height: var(--wt-header-h-compact);
}

.wt-header :focus-visible {
	outline-color: currentColor;
}

.wt-header__bar {
	display: flex;
	align-items: center;
	height: 100%;
}

.wt-header__nav {
	margin-left: auto;
}

.wt-header__list {
	display: flex;
	align-items: center;
	gap: clamp(20px, 2.1vw, 38px);
}

.wt-header__link {
	position: relative;
	display: inline-block;
	padding-block: 10px;
	font-size: 0.95rem;
	font-weight: 480;
	letter-spacing: -0.005em;
}

.wt-header__link::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 4px;
	left: 0;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform 0.3s var(--wt-ease);
}

.wt-header__link:hover::after,
.wt-header__link.is-page::after,
.wt-header__link.is-section::after {
	transform: scaleX(1);
	transform-origin: left center;
}

.wt-header__cta {
	margin-left: clamp(28px, 3vw, 52px);
}

.wt-header__trigger {
	display: none;
	align-items: center;
	gap: 14px;
	min-height: 44px;
	margin-left: auto;
	padding: 0 0 0 12px;
	font-size: 0.95rem;
	font-weight: 520;
	cursor: pointer;
}

.wt-header__trigger-icon,
.wt-menu__close-icon {
	position: relative;
	display: block;
	width: 22px;
	height: 10px;
}

.wt-header__trigger-icon i,
.wt-menu__close-icon i {
	position: absolute;
	left: 0;
	width: 100%;
	height: 1.5px;
	background: currentColor;
}

.wt-header__trigger-icon i:first-child {
	top: 0;
}

.wt-header__trigger-icon i:last-child {
	bottom: 0;
}

/* Vollbild-Menü – grafisch ruhig, Clip von oben */
.wt-menu {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: grid;
	grid-template-rows: auto 1fr auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	visibility: hidden;
	clip-path: inset(0 0 100% 0);
	transition: clip-path 0.55s var(--wt-ease-in-out), visibility 0s linear 0.55s;
}

.wt-menu[hidden] {
	display: none;
}

.wt-menu.is-open {
	visibility: visible;
	clip-path: inset(0 0 0 0);
	transition: clip-path 0.55s var(--wt-ease-in-out), visibility 0s;
}

.admin-bar .wt-menu {
	top: var(--wp-admin--admin-bar--height, 46px);
}

.wt-menu__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--wt-header-h);
}

.wt-menu__close {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-height: 44px;
	padding: 0 0 0 12px;
	border: 0;
	background: none;
	font-size: 0.95rem;
	font-weight: 520;
	cursor: pointer;
}

.wt-menu__close-icon i {
	top: 50%;
}

.wt-menu__close-icon i:first-child {
	transform: rotate(45deg);
}

.wt-menu__close-icon i:last-child {
	transform: rotate(-45deg);
}

.wt-menu__nav {
	align-content: center;
	padding-block: 5vh;
}

.wt-menu__list {
	grid-column: 1 / -1;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--wt-line);
}

.wt-menu__item {
	border-bottom: 1px solid var(--wt-line);
}

.wt-menu__link {
	display: flex;
	align-items: baseline;
	gap: clamp(16px, 4vw, 32px);
	padding-block: clamp(12px, 2.2vh, 20px);
}

.wt-menu__index {
	min-width: 2.2em;
	font-family: var(--wt-font-mono);
	font-size: var(--wt-micro);
	letter-spacing: 0.1em;
	color: var(--wt-muted);
}

.wt-menu__label {
	font-size: clamp(2.2rem, 8.6vw, 4.4rem);
	font-weight: 560;
	line-height: 1;
	letter-spacing: -0.04em;
}

.wt-menu__link[aria-current="page"] .wt-menu__index {
	color: var(--wt-signal);
}

.wt-menu__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 32px;
	padding-block: 20px 32px;
}

.wt-menu__mail a,
.wt-menu__legal a {
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 100% 1px;
}

.wt-menu__legal {
	display: flex;
	gap: 22px;
	margin-left: auto;
	font-size: var(--wt-small);
	color: var(--wt-muted);
}

html.wt-menu-open {
	overflow: hidden;
}

@media (max-width: 1099px) {
	.wt-header__nav,
	.wt-header__cta {
		display: none;
	}

	.wt-header__trigger {
		display: inline-flex;
	}
}
