/* WebTrades – Basis: Fonts, Reset, Typografie, Fokus */

@font-face {
	font-family: "Instrument Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations"),
		url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--wt-header-h) + 16px);
}

body.wt-site {
	margin: 0;
	background: var(--wt-ink);
	color: var(--wt-paper);
	font-family: var(--wt-font-display);
	font-size: var(--wt-body);
	font-weight: 400;
	line-height: 1.55;
	font-kerning: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

.wt-site :where(h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure, blockquote) {
	margin: 0;
}

.wt-site :where(h1, h2, h3, h4) {
	font-weight: 600;
	line-height: 0.94;
	letter-spacing: -0.035em;
}

.wt-site :where(ul[role="list"], ol[role="list"], .wt-list-reset) {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wt-site :where(img, svg, video) {
	display: block;
	max-width: 100%;
}

.wt-site img {
	height: auto;
}

/* :where() hält die Spezifität niedrig, damit Komponenten (z. B. .wt-button) ihre Farben behalten. */
.wt-site :where(a) {
	color: inherit;
	text-decoration: none;
}

.wt-site :where(button, input, select, textarea) {
	font: inherit;
	color: inherit;
}

.wt-site :where(p, li, dd) {
	text-wrap: pretty;
}

/* Lange Komposita und Pfade (z. B. „PayPal/Stripe/Shopify-Payments-Payouts“) dürfen nie aus der Spalte laufen. */
.wt-site :where(h1, h2, h3, h4, p, li, dd, dt, span, a) {
	overflow-wrap: break-word;
}

.wt-site [lang="en"] {
	hyphens: manual;
}

::selection {
	background: var(--wt-signal);
	color: var(--wt-ink);
}

/* Fokus: klar sichtbar, auf Dunkel in Signal, auf Hell in Ink */
.wt-site :focus {
	outline: none;
}

.wt-site :focus-visible {
	outline: 2px solid var(--wt-signal);
	outline-offset: 4px;
}

.wt-theme-light :focus-visible {
	outline-color: var(--wt-ink);
}

/* Skip-Link kommt aus Blocksy (.skip-link.screen-reader-text); Blocksy-Styles sind ausgebunden. */
.wt-site .screen-reader-text:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.wt-site .skip-link:focus {
	position: fixed;
	top: 12px;
	left: var(--wt-gutter);
	z-index: 1000;
	padding: 14px 18px;
	background: var(--wt-signal);
	color: var(--wt-ink);
	font-weight: 600;
	outline: 2px solid var(--wt-ink);
	outline-offset: 2px;
}

.wt-site #main:focus {
	outline: none;
}

/* Dokumentierte !important-Ausnahme: Screenreader-Text darf nie sichtbar werden. */
.wt-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
