/* WebTrades – Komponenten: Wortmarke, Buttons, Links, Ruled Rows, Prozess, Formular */

/* Wortmarke (HTML bis finales Logo vorliegt) */
.wt-wordmark {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: clamp(1rem, 1.05vw, 1.12rem);
	font-weight: 650;
	line-height: 1;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

/* Buttons – rechteckig, Signal, Overlay schiebt von links ein */
.wt-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	min-height: 52px;
	padding: 0 18px 0 20px;
	border: 1px solid var(--wt-signal);
	border-radius: 0;
	background: var(--wt-signal);
	color: var(--wt-ink);
	font-size: 1rem;
	font-weight: 560;
	line-height: 1;
	letter-spacing: -0.005em;
	white-space: nowrap;
	cursor: pointer;
	isolation: isolate;
	overflow: hidden;
	transition: color 0.32s var(--wt-ease);
}

.wt-button::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--wt-ink);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.32s var(--wt-ease);
}

.wt-button .wt-arrow {
	flex: none;
	width: 14px;
	height: 14px;
	transition: transform 0.32s var(--wt-ease);
}

.wt-button:hover,
.wt-button:focus-visible {
	color: var(--wt-signal);
}

.wt-button:hover::before,
.wt-button:focus-visible::before {
	transform: scaleX(1);
}

.wt-button:hover .wt-arrow--ne {
	transform: translate(2px, -2px);
}

.wt-button:hover .wt-arrow--s {
	transform: translateY(3px);
}

.wt-button--compact {
	min-height: 42px;
	gap: 12px;
	padding: 0 14px 0 16px;
	font-size: 0.94rem;
}

/* Textlink – Linie zieht sich bei Hover kontrolliert neu auf */
.wt-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding-block: 6px 8px;
	font-weight: 540;
	line-height: 1.2;
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 100% 1px;
}

.wt-link .wt-arrow {
	width: 14px;
	height: 14px;
	transition: transform 0.3s var(--wt-ease);
}

.wt-link:hover {
	animation: wt-underline 0.7s var(--wt-ease);
}

.wt-link:hover .wt-arrow--e {
	transform: translateX(4px);
}

@keyframes wt-underline {
	0% { background-size: 100% 1px; background-position: 100% 100%; }
	45% { background-size: 0% 1px; background-position: 100% 100%; }
	46% { background-size: 0% 1px; background-position: 0 100%; }
	100% { background-size: 100% 1px; background-position: 0 100%; }
}

/* Ruled Rows – große Zeilen mit 1px-Linien, kein Hintergrund-Fill */
.wt-rows {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--wt-line);
}

.wt-rows__item {
	border-top: 1px solid var(--wt-line);
}

.wt-row {
	position: relative;
	display: grid;
	grid-template-columns: repeat(var(--wt-cols), minmax(0, 1fr));
	column-gap: var(--wt-gap);
	align-items: center;
}

.wt-row__node {
	position: absolute;
	top: 50%;
	left: calc(var(--wt-gutter) * -0.5 - 3px);
	width: 6px;
	height: 6px;
	margin-top: -3px;
	background: var(--wt-signal);
	opacity: 0;
	transform: scale(0.4);
	transition: opacity 0.25s var(--wt-ease), transform 0.25s var(--wt-ease);
}

.wt-row__body,
.wt-row__text {
	transition: transform 0.32s var(--wt-ease);
}

.wt-row__arrow {
	justify-self: end;
	transition: transform 0.32s var(--wt-ease);
}

.wt-row__arrow .wt-arrow {
	width: clamp(18px, 1.6vw, 26px);
	height: clamp(18px, 1.6vw, 26px);
}

.wt-row:focus-visible {
	outline-offset: -2px;
}

@media (hover: hover) {
	.wt-row:hover .wt-row__node {
		opacity: 1;
		transform: none;
	}

	.wt-row:hover .wt-row__arrow {
		transform: translate(4px, -4px);
	}

	.wt-row:hover .wt-row__body,
	.wt-row:hover .wt-row__text {
		transform: translateX(4px);
	}
}

/* Prozess-Rail */
.wt-process {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	column-gap: var(--wt-gap);
	border-top: 1px solid var(--wt-fg);
}

.wt-process__step {
	position: relative;
	display: grid;
	gap: 12px;
	padding-top: 22px;
}

.wt-process__step::before {
	content: "";
	position: absolute;
	top: -4px;
	left: 0;
	width: 7px;
	height: 7px;
	background: var(--wt-fg);
}

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

.wt-process__label {
	font-size: clamp(1.05rem, 1.35vw, 1.5rem);
	font-weight: 540;
	line-height: 1.1;
	letter-spacing: -0.018em;
}

/* Formular – große Eingabezeilen, keine grauen Container */
.wt-form {
	position: relative;
}

.wt-form__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--wt-gap);
	border-top: 1px solid var(--wt-line);
}

.wt-field {
	grid-column: 1 / -1;
	position: relative;
	padding: 20px 0 14px;
	border-bottom: 1px solid var(--wt-line);
	transition: box-shadow 0.2s var(--wt-ease);
}

.wt-field--half {
	grid-column: span 1;
}

.wt-field:focus-within {
	box-shadow: inset 0 -2px 0 var(--wt-fg);
}

.wt-field__label {
	display: block;
	margin-bottom: 8px;
	font-family: var(--wt-font-mono);
	font-size: var(--wt-micro);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wt-muted);
}

.wt-field__input {
	display: block;
	width: 100%;
	margin: 0;
	padding: 2px 0 6px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--wt-fg);
	font-size: clamp(1.12rem, 1.35vw, 1.4rem);
	line-height: 1.35;
	letter-spacing: -0.01em;
	-webkit-appearance: none;
	appearance: none;
}

.wt-field__input:focus-visible {
	outline: none;
}

.wt-field__textarea {
	min-height: 150px;
	resize: vertical;
}

.wt-field__select {
	position: relative;
}

.wt-field__select select {
	padding-right: 32px;
	cursor: pointer;
}

.wt-field__select .wt-arrow {
	position: absolute;
	top: 50%;
	right: 2px;
	width: 16px;
	height: 16px;
	transform: translateY(-50%);
	pointer-events: none;
}

.wt-field--check {
	display: grid;
	grid-template-columns: 22px 1fr;
	gap: 14px;
	align-items: start;
	padding-block: 22px;
	font-size: var(--wt-small);
	line-height: 1.5;
}

.wt-field--check .wt-field__error {
	grid-column: 2;
}

.wt-field--check a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wt-check {
	display: grid;
	place-content: center;
	width: 22px;
	height: 22px;
	margin: 1px 0 0;
	border: 1px solid var(--wt-fg);
	border-radius: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.wt-check::after {
	content: "";
	width: 12px;
	height: 12px;
	background: var(--wt-fg);
	transform: scale(0);
	transition: transform 0.18s var(--wt-ease);
}

.wt-check:checked::after {
	transform: scale(1);
}

.wt-check:focus-visible {
	outline: 2px solid var(--wt-fg);
	outline-offset: 3px;
}

/* Fehler: nicht nur über Farbe – Markierung, Linie und Text */
.wt-field:has([aria-invalid="true"]) {
	box-shadow: inset 0 -2px 0 var(--wt-fg);
}

.wt-field__error {
	display: flex;
	gap: 10px;
	margin-top: 10px;
	font-size: var(--wt-small);
	font-weight: 540;
}

.wt-field__error::before {
	content: "Fehler –";
	font-family: var(--wt-font-mono);
	font-size: var(--wt-micro);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.9;
}

.wt-form__notice {
	margin-bottom: 32px;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--wt-fg);
}

.wt-form__notice:focus {
	outline: none;
}

.wt-form__notice-title {
	margin-bottom: 6px;
	font-size: var(--wt-h4);
	font-weight: 600;
	letter-spacing: -0.02em;
}

.wt-form__notice a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wt-form__summary {
	margin-top: 12px;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 6px;
	font-size: var(--wt-small);
}

.wt-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 28px;
	margin-top: 36px;
}

.wt-form__note {
	font-size: var(--wt-small);
	color: var(--wt-muted);
}

.wt-form__hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Kontaktangaben */
.wt-contact-meta {
	margin: 0;
	border-top: 1px solid var(--wt-line);
}

.wt-contact-meta__item {
	display: grid;
	grid-template-columns: minmax(7.5rem, 30%) 1fr;
	gap: 16px;
	align-items: baseline;
	padding-block: 14px;
	border-bottom: 1px solid var(--wt-line);
}

.wt-contact-meta dd {
	margin: 0;
}

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