/*
 * Design-system tokens as plain custom properties, aliased to the
 * theme.json presets so the tx-* component CSS (ported from
 * design/website/*.html, the Claude Design mockups) can be dropped in
 * near-verbatim instead of rewriting every declaration to
 * var(--wp--preset--color--...).
 */
:root {
	--paper: var(--wp--preset--color--paper);
	--surface: var(--wp--preset--color--surface);
	--sand: var(--wp--preset--color--sand);
	--line: var(--wp--preset--color--line);
	--line-strong: var(--wp--preset--color--line-strong);
	--ink: var(--wp--preset--color--ink);
	--ink-secondary: var(--wp--preset--color--ink-secondary);
	--ink-muted: var(--wp--preset--color--ink-muted);
	--coral: var(--wp--preset--color--coral);
	--coral-hover: var(--wp--preset--color--coral-hover);
	--coral-text: var(--wp--preset--color--coral-text);
	--coral-tint: var(--wp--preset--color--coral-tint);
	--coral-wash: var(--wp--preset--color--coral-wash);
	--coral-on-dark: var(--wp--preset--color--coral-on-dark);
	--on-dark-muted: var(--wp--preset--color--on-dark-muted);
	--success: var(--wp--preset--color--success);
	--success-tint: var(--wp--preset--color--success-tint);
	--warning: var(--wp--preset--color--warning);
	--warning-tint: var(--wp--preset--color--warning-tint);
	--error: var(--wp--preset--color--error);
	--error-tint: var(--wp--preset--color--error-tint);
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 20px;
	--space-6: 24px;
	--space-7: 28px;
	--space-8: 32px;
	--space-12: 48px;
	--space-24: 96px;
	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-full: 999px;
	--shadow-card: 0 1px 2px rgba(31, 33, 38, 0.06), 0 4px 16px rgba(31, 33, 38, 0.05);
	--shadow-lift: 0 2px 4px rgba(31, 33, 38, 0.08), 0 12px 32px rgba(31, 33, 38, 0.1);
	--focus-ring: 0 0 0 2px var(--paper), 0 0 0 4px var(--coral);
	--font-sans: var(--wp--preset--font-family--manrope);
	--font-mono: var(--wp--preset--font-family--jetbrains-mono);
	--container: 1200px;
}

/*
 * Design system: link underline is coral, not the ink text color — matches
 * design/website/*.html's global `a` rule (text stays ink, only the
 * underline is coral). Nav/footer/button links already turn the underline
 * off explicitly, so this only affects inline content links.
 */
a {
	text-decoration-color: var(--coral);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

/* Utility text styles (from the design system: kicker/price/h3/data) */
.kicker {
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 16px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.price {
	font-family: var(--font-sans);
	font-size: 28px;
	line-height: 32px;
	font-weight: 800;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}
.data {
	font-family: var(--font-mono);
	font-size: 14px;
	line-height: 20px;
}

/*
 * WordPress adds `:where(.wp-site-blocks) > * { margin-block-start: 24px }`
 * (theme.json blockGap) between top-level template blocks. Every section on
 * this theme's pages manages its own vertical rhythm via padding, so that
 * default would just show up as a stray seam between sections.
 */
.wp-site-blocks > * {
	margin-block-start: 0;
}

header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 30;
}

[id] {
	scroll-margin-top: 88px;
}

/*
 * A few components set `display: flex/grid` on the same class an element also
 * carries the `hidden` attribute on (e.g. .tx-contact-success), which beats the
 * UA stylesheet's `[hidden]{display:none}` at equal specificity. Force it back.
 */
[hidden] {
	display: none !important;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---------- Header ---------- */
.tx-site-header {
	background: rgba(251, 249, 247, 0.94);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.tx-site-header__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 18px var(--space-6);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-6);
}
.tx-brand {
	display: flex;
	align-items: center;
}
/*
 * WooCommerce's own woocommerce-layout.css ships `.woocommerce img,
 * .woocommerce-page img { height: auto; max-width: 100% }` — on every
 * WooCommerce page (shop, cart, checkout, my-account all carry the
 * `woocommerce-page` body class) that beats a single-class `.tx-brand__logo`
 * rule at equal specificity, so the header/footer logo rendered at its full
 * intrinsic SVG size (498×120) instead of 30px tall. The extra class here
 * only exists to outrank that WooCommerce selector.
 */
.tx-site-header .tx-brand__logo {
	height: 30px;
	width: auto;
	display: block;
}
.tx-site-header__right {
	display: flex;
	align-items: center;
	gap: var(--space-8);
}
.tx-nav {
	display: flex;
	gap: var(--space-6);
	font-size: 15px;
	font-weight: 600;
}
.tx-nav a {
	text-decoration: none;
	color: var(--ink);
}
.tx-nav a:hover {
	color: var(--coral-text);
}
.tx-site-header__actions {
	display: flex;
	gap: var(--space-2);
	align-items: center;
}
.tx-cart-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--ink);
	border-radius: var(--radius-sm);
}
.tx-cart-link:hover {
	background: var(--surface);
}
.tx-cart-link__count {
	position: absolute;
	top: 3px;
	right: 1px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-sans);
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	color: #fff;
	background: var(--coral-text);
	border-radius: var(--radius-full);
}
.tx-nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 0;
	padding: 8px;
	cursor: pointer;
}
.tx-nav-toggle__bar {
	width: 22px;
	height: 2px;
	background: var(--ink);
	display: block;
}

@media (max-width: 860px) {
	.tx-nav-toggle {
		display: flex;
	}
	.tx-site-header__right {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		padding: var(--space-4) var(--space-6) var(--space-6);
		display: none;
	}
	.tx-site-header__right.is-open {
		display: flex;
	}
	.tx-nav {
		flex-direction: column;
		gap: var(--space-4);
		padding: var(--space-4) 0;
	}
	.tx-site-header__actions {
		flex-direction: column;
		align-items: stretch;
	}
}

/* ---------- Footer ---------- */
.tx-site-footer {
	background: var(--ink);
	color: var(--on-dark-muted);
	padding: var(--space-12) var(--space-6) var(--space-6);
}
.tx-site-footer__top {
	max-width: var(--container);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: var(--space-8);
	padding-bottom: var(--space-6);
}
.tx-site-footer__brand {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}
.tx-site-footer .tx-site-footer__logo {
	height: 30px;
	width: auto;
	display: block;
	/* In the column flex the image box was stretched to the widest sibling, and the SVG
	   (centred inside its box) sat about 50 px right of the claim and the icons. */
	align-self: flex-start;
}
.tx-site-footer__claim {
	font-size: 14px;
	font-weight: 600;
	color: var(--coral-on-dark);
}
.tx-site-footer__social {
	display: flex;
	gap: var(--space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}
.tx-site-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--ink-secondary);
	border-radius: var(--radius-sm, 6px);
	color: #fff;
}
.tx-site-footer__social a:hover,
.tx-site-footer__social a:focus-visible {
	border-color: var(--coral-on-dark);
	color: var(--coral-on-dark);
}
.tx-site-footer__nav {
	display: grid;
	grid-template-columns: repeat(3, auto);
	column-gap: var(--space-12);
	row-gap: var(--space-3);
	font-size: 14px;
}
.tx-site-footer__nav a {
	color: #fff;
	text-decoration: none;
}
.tx-site-footer__nav a:hover {
	color: var(--coral-on-dark);
}
/* "Abo kündigen": always one click away, on purpose (Dan, 2026-10-04: transparency). */
.tx-site-footer__cancel {
	align-self: flex-start;
	padding: 8px 16px;
	border: 1px solid var(--on-dark-muted, #fff);
	border-radius: var(--radius-sm, 6px);
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
}
.tx-site-footer__cancel:hover,
.tx-site-footer__cancel:focus-visible {
	border-color: var(--coral-on-dark);
	color: var(--coral-on-dark);
}
.tx-site-footer__bottom {
	max-width: var(--container);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-4);
	padding-top: var(--space-4);
	border-top: 1px solid var(--ink-secondary);
	font-size: 13px;
}
.tx-site-footer__bottom a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.tx-site-footer__bottom a:hover,
.tx-site-footer__bottom a:focus-visible {
	color: var(--coral-on-dark);
}

@media (max-width: 780px) {
	.tx-site-footer__nav {
		grid-template-columns: repeat(2, auto);
	}
}

/* ---------- Components (design system: design/Tarvexa Design-System Basis.html) ---------- */
.tx-icon {
	flex: none;
	display: block;
}
.tx-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 15px;
	line-height: 20px;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
	text-decoration: none;
	white-space: nowrap;
}
.tx-btn-md {
	padding: 11px 20px;
	min-height: 44px;
}
.tx-btn-sm {
	padding: 6px 12px;
	font-size: 14px;
	min-height: 32px;
}
.tx-btn-primary {
	background: var(--coral);
	color: var(--ink);
}
.tx-btn-primary:hover {
	background: var(--coral-hover);
	color: var(--ink);
}
.tx-btn-secondary {
	background: var(--surface);
	color: var(--ink);
	border-color: var(--line-strong);
}
.tx-btn-secondary:hover {
	border-color: var(--ink);
	color: var(--ink);
}
.tx-btn-quiet {
	background: transparent;
	color: var(--ink);
}
.tx-btn-quiet:hover {
	background: var(--sand);
	color: var(--ink);
}
.tx-btn:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring);
}
.tx-btn:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.tx-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: var(--radius-sm);
	font-family: var(--font-sans);
	font-size: 13px;
	line-height: 18px;
	font-weight: 700;
	white-space: nowrap;
}
.tx-badge-neutral {
	background: var(--sand);
	color: var(--ink);
}
.tx-badge-deal {
	background: var(--coral-tint);
	color: var(--coral-text);
}
.tx-badge-success {
	background: var(--success-tint);
	color: var(--success);
}
.tx-badge-warning {
	background: var(--warning-tint);
	color: var(--warning);
}
.tx-badge-error {
	background: var(--error-tint);
	color: var(--error);
}
.tx-dot {
	width: 8px;
	height: 8px;
	border-radius: var(--radius-full);
	background: currentColor;
}
.tx-badge-neutral .tx-dot {
	background: var(--coral);
	animation: tx-pulse 1.2s ease-out infinite;
}
@keyframes tx-pulse {
	50% {
		opacity: 0.35;
	}
}
@media (prefers-reduced-motion: reduce) {
	.tx-badge-neutral .tx-dot {
		animation: none;
	}
}

.tx-field {
	font-family: var(--font-sans);
	color: var(--ink);
	max-width: 560px;
}
.tx-field-label {
	display: block;
	font-size: 14px;
	line-height: 20px;
	font-weight: 700;
	margin-bottom: var(--space-2);
}
.tx-field-row {
	display: flex;
	gap: var(--space-2);
}
.tx-input-wrap {
	position: relative;
	flex: 1;
}
.tx-input {
	width: 100%;
	box-sizing: border-box;
	min-height: 44px;
	padding: 10px 12px;
	font-family: var(--font-mono);
	font-size: 15px;
	letter-spacing: 0.04em;
	color: var(--ink);
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	transition: border-color 150ms ease-out;
}
.tx-input::placeholder {
	color: var(--ink-muted);
}
.tx-input:hover {
	border-color: var(--ink);
}
.tx-input:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring);
	border-color: var(--ink);
}
.tx-field-valid .tx-input {
	border-color: var(--success);
}
.tx-field-msg {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin: var(--space-2) 0 0;
	min-height: 24px;
}
.tx-field-hint {
	font-size: 14px;
	line-height: 22px;
	color: var(--ink-muted);
}

.tx-plan {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	box-sizing: border-box;
	padding: var(--space-6);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
	font-family: var(--font-sans);
	color: var(--ink);
}
.tx-plan-hi {
	border: 2px solid var(--coral);
	box-shadow: var(--shadow-lift);
}
.tx-plan-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--space-2);
	min-height: 24px;
}
.tx-plan-kicker {
	color: var(--ink-muted);
}
.tx-plan-name {
	margin: 0;
	font-size: 22px;
}
.tx-plan-price {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin: 0;
	font-variant-numeric: tabular-nums;
}
.tx-plan-unit {
	font-size: 14px;
	color: var(--ink-muted);
	font-weight: 600;
}
.tx-plan-note {
	margin: 0;
	font-size: 14px;
	line-height: 22px;
	color: var(--ink-secondary);
}
.tx-plan-list {
	list-style: none;
	margin: var(--space-2) 0;
	padding: var(--space-4) 0 0;
	border-top: 1px solid var(--line);
	display: grid;
	gap: var(--space-2);
	font-size: 14px;
	line-height: 22px;
	color: var(--ink-secondary);
	flex: 1;
}
.tx-plan-list li {
	display: flex;
	gap: var(--space-2);
	align-items: flex-start;
}
.tx-plan-list li::before {
	content: "✓";
	color: var(--coral-text);
	font-weight: 700;
}
.tx-plan-cta {
	width: 100%;
}

.tx-feed {
	box-sizing: border-box;
	padding: var(--space-6);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
	font-family: var(--font-sans);
	color: var(--ink);
	max-width: 640px;
}
.tx-feed-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: var(--space-4);
}
.tx-feed-kicker {
	color: var(--ink-muted);
}
.tx-feed-title {
	margin: var(--space-1) 0 0;
	font-size: 22px;
}
.tx-feed-msg {
	margin: var(--space-4) 0 0;
	font-size: 14px;
	line-height: 22px;
	color: var(--ink-secondary);
}
.tx-feed-error .tx-feed-msg {
	color: var(--error);
}
.tx-feed-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: var(--space-4);
	margin: var(--space-6) 0 0;
	padding: var(--space-4) 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.tx-feed-stats div {
	margin: 0;
}
.tx-feed-stats dt {
	font-size: 13px;
	line-height: 18px;
	color: var(--ink-muted);
}
.tx-feed-stats dd {
	margin: var(--space-1) 0 0;
	font-size: 15px;
	line-height: 22px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.tx-feed-stats dd.price {
	font-size: 24px;
	line-height: 30px;
	font-weight: 800;
}
.tx-feed-url {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin-top: var(--space-4);
	padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3);
	background: var(--sand);
	border-radius: var(--radius-sm);
}
.tx-feed-url code {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--ink-secondary);
}
.tx-feed-foot {
	display: flex;
	justify-content: flex-end;
	margin-top: var(--space-4);
}

/* ---------- Section layout primitives (shared by the front page and all interior pages) ---------- */
.tx-section {
	max-width: var(--container);
	margin: 0 auto;
	padding: var(--space-24) var(--space-6);
}
.tx-section-bg--sand {
	background: var(--sand);
}
.tx-section-bg--sand > .tx-section {
	background: transparent;
}
.tx-section-bg--ink {
	background: var(--ink);
	color: #fff;
}
.tx-section__head {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	max-width: 720px;
	margin-bottom: var(--space-12);
}
.tx-section__head--narrow {
	max-width: 760px;
}
.tx-section__head--on-dark p {
	color: var(--on-dark-muted);
}
.tx-section__head h2,
.tx-section__head p {
	margin: 0;
}

/*
 * theme.json's global heading rule (`h1,h2,h3,h4,h5,h6{color:var(--wp--preset--color--ink)}`)
 * is printed as core global-styles CSS, after every enqueued theme stylesheet, and wins any
 * same-specificity tie by source order — so a bare heading inside a dark section would
 * otherwise render in the same dark ink as the section background. Every dark-background
 * wrapper needs an explicit, higher-specificity override.
 */
.tx-section-bg--ink h1,
.tx-section-bg--ink h2,
.tx-section-bg--ink h3,
.tx-dark-strip h1,
.tx-dark-strip h2,
.tx-dark-strip h3,
.tx-backchannel h1,
.tx-backchannel h2,
.tx-backchannel h3 {
	color: #fff;
}

/* Button variants for use on a coral background (front-page + interior-page CTA banners) */
.tx-btn-cta-primary {
	background: var(--ink);
	color: #fff;
}
.tx-btn-cta-primary:hover {
	background: #000;
	color: #fff;
}
.tx-btn-cta-secondary {
	background: transparent;
	color: var(--ink);
	border-color: var(--ink);
}
.tx-btn-cta-secondary:hover {
	background: rgba(31, 33, 38, 0.08);
	color: var(--ink);
}

/* ---------- Generic content pages (page.html, index.html, 404.html) ---------- */
.tx-plain {
	max-width: 760px;
	margin: 0 auto;
	padding: var(--space-12) var(--space-6);
}
.tx-plain p,
.tx-plain ul,
.tx-plain ol {
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink-secondary);
}
/* Legal pages (Datenschutzhinweise): tables and section rhythm. */
.tx-plain .wp-block-table {
	overflow-x: auto;
	margin: var(--space-6) 0;
}
.tx-plain .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ink-secondary);
}
.tx-plain .wp-block-table th,
.tx-plain .wp-block-table td {
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}
.tx-plain .wp-block-table th {
	color: var(--ink);
	font-weight: 700;
	border-bottom: 2px solid var(--ink);
}
.tx-plain .wp-block-table code {
	overflow-wrap: anywhere;
}
.tx-plain h2.wp-block-heading {
	margin-top: var(--space-12);
	font-size: 30px;
	line-height: 1.2;
}
.tx-plain h3.wp-block-heading {
	margin-top: var(--space-8);
	font-size: 21px;
	line-height: 1.3;
}
@media (max-width: 640px) {
	.tx-plain h2.wp-block-heading {
		font-size: 25px;
	}
	.tx-plain .wp-block-table table {
		font-size: 14px;
	}
	.tx-plain .wp-block-table th,
	.tx-plain .wp-block-table td {
		padding: 8px 8px;
	}
	.tx-plain .wp-block-table code {
		font-size: 12px;
	}
}
.tx-404 {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-3);
}
.tx-404 .kicker {
	color: var(--coral-text);
}
.tx-404 .tx-btn {
	margin-top: var(--space-3);
}

/* ---------- Header: account pill (shown instead of Kontakt / Lizenz kaufen when logged in; every page, so it lives here, not in konto.css) ---------- */
.tx-account-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 6px 0 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--ink);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}
.tx-account-pill:hover {
	border-color: var(--ink);
}
.tx-account-pill__initials {
	width: 32px;
	height: 32px;
	border-radius: var(--radius-sm);
	background: var(--ink);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 800;
}

/* ---------- FAQ accordion (front page teaser and /faq/) ---------- */
.tx-faq {
	border-top: 1px solid var(--ink);
}
.tx-faq__item {
	border-bottom: 1px solid var(--line);
}
.tx-faq__question {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--space-6);
	padding: var(--space-5) 0;
	background: transparent;
	border: 0;
	cursor: pointer;
	text-align: left;
	font-family: var(--font-sans);
	font-size: 18px;
	line-height: 1.4;
	font-weight: 700;
	color: var(--ink);
}
.tx-faq__icon {
	font-size: 22px;
	font-weight: 500;
	color: var(--coral-text);
	flex: none;
}
.tx-faq__answer {
	margin: 0 0 var(--space-6);
	max-width: 640px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink-secondary);
}
