/* ==========================================================================
   trenz.codes — Theme-Styles (Basis + Komponenten)
   Produktive Basis- und Komponentenstile. Alle Werte kommen aus den Tokens
   (assets/css/tokens.css) — keine Hardcoded-Farben/-Größen.
   ========================================================================== */

:root {
	--tc-header-row-h: 84px;
	--tc-header-h: var(--tc-header-row-h);
}

/* --------------------------------------------------------------------------
   Basis
   -------------------------------------------------------------------------- */

html {
	scroll-behavior: smooth;
	/* clip statt hidden: verhindert horizontales Scrollen, ohne
	   position:sticky im Header zu brechen. */
	overflow-x: clip;
}

body {
	-webkit-font-smoothing: antialiased;
}

::selection {
	background: var(--cyan-tint);
	color: var(--white);
}

img {
	max-width: 100%;
	height: auto;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: var(--radius-xs);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* --------------------------------------------------------------------------
   Utilities: Monospace-Stimme (Eyebrow, Kicker, Index-Label)
   -------------------------------------------------------------------------- */

.tc-eyebrow {
	font-family: var(--font-mono);
	font-size: var(--text-2xs);
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--marker);
}

.tc-eyebrow--muted {
	color: var(--text-muted);
}

/* 11px-Metatext braucht auf der Card-Fläche mehr Kontrast als auf der Seite. */
.tc-featured .tc-eyebrow--muted {
	color: var(--text-muted-on-card);
}

.tc-kicker {
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--text-muted);
}

.tc-index {
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	font-weight: var(--fw-medium);
	letter-spacing: 0.1em;
	color: var(--index-label);
}

.tc-mono {
	font-family: var(--font-mono);
}

.tc-balance {
	text-wrap: balance;
}

.tc-lead {
	font-size: var(--text-lg);
	line-height: var(--lh-normal);
	color: var(--text-body);
	max-width: 48ch;
}

.tc-measure {
	max-width: var(--measure);
}

/* !important nötig: das Constrained-Layout von Core zentriert Kinder mit
   margin-left/right:auto!important — links ausgerichtet bleiben soll die
   Headline trotzdem. */
h1.tc-max-20ch,
h2.tc-max-20ch,
h3.tc-max-20ch {
	max-width: 20ch;
	margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important;
	margin-right: auto !important;
}

.tc-copy {
	font-size: var(--text-base);
	line-height: var(--lh-relaxed);
	color: var(--text-body);
	max-width: 52ch;
}

.tc-copy--muted {
	color: var(--text-muted);
}

.tc-section-note {
	max-width: 34ch;
	font-size: var(--text-base);
	line-height: var(--lh-normal);
	color: var(--text-muted);
}

.tc-contact-mail {
	font-size: var(--text-sm);
	color: var(--text-secondary);
}

/* Hero: eigener, etwas kompakterer Rhythmus als reguläre Sektionen. */
.tc-hero {
	padding-top: clamp(3rem, 6vw, 5.5rem);
	padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

/* --------------------------------------------------------------------------
   Fluid Gaps — als Klassen statt blockGap-Attribut, weil WordPress
   blockGap-Werte mit Klammern (clamp/var) beim Layout-Rendering verwirft.
   Doppelte Klasse erhöht die Spezifität über .wp-container-* Regeln.
   -------------------------------------------------------------------------- */

.wp-block-columns.tc-cols-wide {
	column-gap: clamp(2rem, 5vw, 4.5rem);
	row-gap: var(--space-6);
}

.wp-block-group.tc-pf-grid {
	gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.wp-block-group.tc-header-tools {
	gap: clamp(1rem, 3vw, 2.25rem);
}

/* Statische Nav-Links im Header (wie in den Prototypen) */
.tc-header-nav .nav-link {
	font-family: var(--font-mono);
	font-size: var(--text-2xs);
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--text-muted);
	text-decoration: none;
}

.tc-header-nav .nav-link:hover {
	color: var(--off-white);
}

.tc-header-nav {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 3vw, 2.25rem);
}

.tc-site-header .wp-block-navigation__container {
	gap: clamp(1rem, 3vw, 2.25rem);
}

/* --------------------------------------------------------------------------
   Sektionen: Rhythmus, Bänder, Blueprint-Grid, Glows
   -------------------------------------------------------------------------- */

.tc-section {
	padding-top: var(--section-y);
	padding-bottom: var(--section-y);
}

.tc-section--band {
	background: var(--bg-raised);
	border-top: var(--border-w) solid var(--border-subtle);
	border-bottom: var(--border-w) solid var(--border-subtle);
}

/* Dekorative Layer als Pseudo-Elemente statt zusätzlicher DOM-Knoten. */
.tc-has-blueprint,
.tc-has-glow-cyan {
	position: relative;
	isolation: isolate;
}

.tc-has-blueprint::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: var(--bg-blueprint);
	background-size: var(--grid-size) var(--grid-size);
	pointer-events: none;
}

.tc-has-blueprint--faint::before {
	opacity: 0.6;
}

.tc-has-glow-cyan::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(60% 60% at 0% 0%, var(--cyan-tint), transparent 70%);
	opacity: 0.85;
	pointer-events: none;
}

/* Hero: Grid + Glow reichen hinter den transparenten Header hinauf. */
.tc-hero.tc-has-blueprint::before,
.tc-hero.tc-has-glow-cyan::after {
	top: calc(-1 * var(--tc-header-h));
}

/* --------------------------------------------------------------------------
   Wordmark (Site-Title) mit blinkendem Caret + Rotator
   -------------------------------------------------------------------------- */

.tc-wordmark {
	font-family: var(--font-mono);
	font-weight: var(--fw-bold);
	letter-spacing: -0.02em;
	margin: 0;
}

.tc-wordmark a {
	color: var(--off-white);
	text-decoration: none;
	display: inline-flex;
	align-items: baseline;
	white-space: nowrap;
}

.tc-wordmark a:hover {
	color: var(--off-white);
}

.tc-wordmark .tc-wm-rotate {
	display: inline-block;
	color: var(--text-muted);
	font-weight: var(--fw-medium);
}

.tc-wordmark a::after {
	content: "";
	display: inline-block;
	width: 0.08em;
	min-width: 2px;
	height: 1.05em;
	margin-left: 0.08em;
	background: var(--accent);
	transform: translateY(0.12em);
	animation: tc-caret 1s steps(1) infinite;
}

@keyframes tc-caret {
	0%, 49% { opacity: 1; }
	50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.tc-wordmark a::after,
	.tc-wordmark--header .tc-wm-rotate::after {
		animation: none;
	}
}

.tc-wordmark--header {
	font-size: 1.85rem;
}

.tc-wordmark--header a {
	min-width: 20ch;
}

.tc-wordmark--footer {
	font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   Header + Navigation
   -------------------------------------------------------------------------- */

.tc-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background-color: transparent;
	border-bottom: var(--border-w) solid transparent;
	box-shadow: none;
	transition:
		background-color var(--dur-slow) var(--ease-out),
		border-color var(--dur-base) var(--ease-out),
		box-shadow var(--dur-base) var(--ease-out),
		backdrop-filter var(--dur-slow) var(--ease-out);
}

.tc-site-header.is-scrolled {
	background-color: color-mix(in srgb, var(--bg-page) 90%, transparent);
	border-bottom-color: var(--border-subtle);
	box-shadow: var(--shadow-sm);
	-webkit-backdrop-filter: var(--blur-panel);
	backdrop-filter: var(--blur-panel);
}

.tc-header-bar {
	min-height: var(--tc-header-h);
}

.tc-site-header .wp-block-navigation-item__content {
	font-family: var(--font-mono);
	font-size: var(--text-2xs);
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--text-muted);
	transition: color var(--dur-base) var(--ease-out);
}

.tc-site-header .wp-block-navigation-item__content:hover,
.tc-site-header .wp-block-navigation-item__content:focus-visible {
	color: var(--off-white);
}

.tc-site-header .wp-block-navigation__responsive-container-open,
.tc-site-header .wp-block-navigation__responsive-container-close {
	color: var(--off-white);
}

.tc-site-header .wp-block-navigation__responsive-container {
	z-index: 1000;
}

/* Overlay (mobile Navigation): dunkle Fläche, große Touch-Ziele. */
.tc-site-header .wp-block-navigation__responsive-container.is-menu-open {
	inset: 0;
	box-sizing: border-box;
	width: 100vw;
	height: 100dvh;
	min-height: 100vh;
	overflow-y: auto;
	padding-top: var(--space-6);
}

.tc-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: var(--text-base);
	padding: var(--space-3) 0;
}

/* --------------------------------------------------------------------------
   Buttons (Pill) — primär via theme.json, hier Padding, Ghost, Größen, Motion
   -------------------------------------------------------------------------- */

.wp-block-button__link {
	padding: 0.9rem 1.9rem;
	line-height: 1;
	border: var(--border-w) solid var(--accent);
	box-shadow: var(--shadow-accent);
	transition:
		background-color var(--dur-base) var(--ease-out),
		border-color var(--dur-base) var(--ease-out),
		color var(--dur-base) var(--ease-out),
		transform var(--dur-fast) var(--ease-out),
		box-shadow var(--dur-base) var(--ease-out);
}

.wp-block-button__link:hover {
	border-color: var(--accent-hover);
}

.wp-block-button__link:active {
	background-color: var(--accent-press);
	border-color: var(--accent-press);
	transform: translateY(1px);
}

.wp-block-button.is-style-ghost .wp-block-button__link {
	background: transparent;
	color: var(--off-white);
	border-color: var(--border-subtle);
	box-shadow: none;
}

.wp-block-button.is-style-ghost .wp-block-button__link:hover {
	background: var(--grid-line);
	border-color: var(--border-strong);
	color: var(--off-white);
}

.wp-block-button.is-style-ghost .wp-block-button__link:active {
	background: transparent;
	transform: translateY(1px);
}

.tc-btn-sm .wp-block-button__link {
	padding: 0.5rem 1rem;
	font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   Cards (Design System: surface, hairline, sheen, kleine Radien)
   -------------------------------------------------------------------------- */

.is-style-card {
	background-color: var(--surface-card);
	background-image: var(--card-sheen);
	border: var(--border-w) solid var(--border-subtle);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
	padding: var(--space-6);
}

.is-style-card > * + * {
	margin-block-start: var(--space-4);
}

/* Interaktive Card: kompletter Klickbereich über stretched link im Titel. */
.tc-card-link {
	position: relative;
	transition:
		transform var(--dur-base) var(--ease-out),
		border-color var(--dur-base) var(--ease-out),
		box-shadow var(--dur-base) var(--ease-out);
}

.tc-card-link a {
	color: inherit;
	text-decoration: none;
}

/* Stretched Link: dehnt den Link im markierten Element auf den nächsten
   positionierten Vorfahren (Card, Featured-Panel, Portfolio-Item). */
.tc-stretch a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.tc-card-link:hover,
.tc-card-link:focus-within {
	border-color: var(--border-strong);
	box-shadow: var(--shadow-lg);
	transform: translateY(-2px);
}

.tc-card-head {
	display: flex;
	align-items: center;
	gap: var(--space-3);
}

.tc-card-title {
	font-size: var(--text-xl);
	letter-spacing: var(--ls-tight);
	line-height: var(--lh-snug);
	color: var(--text-heading);
}

.tc-card-body {
	font-size: var(--text-sm);
	line-height: var(--lh-normal);
	color: var(--text-body);
}

/* --------------------------------------------------------------------------
   Portfolio: Featured-Panel + Grid-Items
   -------------------------------------------------------------------------- */

.tc-featured {
	position: relative;
	border: var(--border-w) solid var(--border-subtle);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--surface-card);
	box-shadow: var(--shadow-card);
	transition: border-color var(--dur-base) var(--ease-out);
}

.tc-featured:hover,
.tc-featured:focus-within {
	border-color: var(--border-strong);
}

.tc-featured-media {
	position: relative;
	min-height: 340px;
	background: var(--bg-panel);
}

.tc-featured-media .wp-block-image,
.tc-pf-media .wp-block-image,
.tc-portrait-card .wp-block-image {
	margin: 0;
}

.tc-pf-media .wp-block-image {
	height: 100%;
}

.tc-featured-desc {
	font-size: var(--text-base);
	line-height: var(--lh-relaxed);
	color: var(--text-body);
	max-width: 46ch;
}

.tc-featured-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tc-featured-body {
	padding: clamp(1.75rem, 3vw, 2.75rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: var(--space-4);
}

.tc-media-tag {
	position: absolute;
	top: var(--space-3);
	left: var(--space-3);
	z-index: 1;
	font-family: var(--font-mono);
	font-size: var(--text-2xs);
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--off-white);
	background: color-mix(in srgb, var(--black-void) 72%, transparent);
	backdrop-filter: var(--blur-panel);
	padding: var(--space-1) var(--space-2);
	border-radius: var(--radius-xs);
	border: var(--border-w) solid var(--border-subtle);
}

.tc-pf-item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.tc-pf-media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--radius-md);
	border: var(--border-w) solid var(--border-subtle);
	background: var(--bg-panel);
}

.tc-pf-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform var(--dur-slow) var(--ease-out);
}

.tc-pf-item:hover .tc-pf-media img,
.tc-pf-item:focus-within .tc-pf-media img {
	transform: scale(1.04);
}

.tc-pf-title {
	font-weight: var(--fw-bold);
	font-size: var(--text-base);
	letter-spacing: var(--ls-tight);
	color: var(--text-heading);
}

.tc-pf-title a {
	color: inherit;
	text-decoration: none;
	transition: color var(--dur-base) var(--ease-out);
}

.tc-pf-item:hover .tc-pf-title a,
.tc-pf-item:focus-within .tc-pf-title a {
	color: var(--accent);
}

.tc-pf-desc {
	font-size: var(--text-sm);
	line-height: var(--lh-normal);
	color: var(--text-muted);
	margin-block-start: 0.15rem;
}

.tc-link-more {
	font-weight: var(--fw-semibold);
	font-size: var(--text-sm);
	color: var(--marker);
}

/* --------------------------------------------------------------------------
   Hero: Portrait-Karte
   -------------------------------------------------------------------------- */

.tc-portrait-card {
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: var(--border-w) solid var(--border-subtle);
	background: var(--surface-card);
	box-shadow: var(--shadow-lg);
}

.tc-portrait-card img {
	width: 100%;
	display: block;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.tc-portrait-card--tall img {
	aspect-ratio: 4 / 5;
}

.tc-portrait-caption {
	padding: 1.1rem 1.35rem 1.35rem;
}

.tc-portrait-caption .tc-eyebrow {
	margin: 0 0 var(--space-2);
}

.tc-portrait-claim {
	font-weight: var(--fw-bold);
	font-size: var(--text-lg);
	line-height: var(--lh-snug);
	letter-spacing: var(--ls-tight);
	color: var(--text-heading);
	margin: 0;
}

.tc-hero .wp-block-columns {
	align-items: flex-start;
}

/* Hero rechts: Portrait rückt optisch auf Höhe der H1 */
.tc-hero-figure {
	margin-top: calc(var(--space-6) + var(--space-10));
}

.tc-statement .wp-block-columns > .wp-block-column:last-child {
	align-self: center;
	padding-top: 0 !important;
}

@media (max-width: 781px) {
	:root {
		--tc-header-h: calc(var(--tc-header-row-h) + var(--space-10));
	}

	.tc-header-bar {
		box-sizing: border-box;
		min-height: var(--tc-header-h);
		flex-direction: column !important;
		align-items: stretch !important;
		justify-content: flex-start !important;
		gap: var(--space-1) !important;
		padding-block: var(--space-3);
	}

	/* Burger + Kontakt oben, Logo als eigene Zeile darunter (Mobile) */
	.tc-header-bar .tc-header-tools {
		order: 1;
		width: 100%;
		justify-content: space-between !important;
	}

	.tc-header-bar .tc-wordmark--header {
		order: 2;
		width: 100%;
		font-size: clamp(var(--text-xl), 6.5vw, var(--text-2xl));
		line-height: var(--lh-snug);
		margin-top: 0.25rem;
	}

	/* Wordmark zweizeilig: trenz.codes + /rotator (verhindert Overflow) */
	.tc-header-bar .tc-wordmark--header a {
		display: block;
		white-space: normal;
		min-width: 0;
		max-width: 100%;
	}

	.tc-header-bar .tc-wordmark--header .tc-wm-rotate {
		display: block;
	}

	.tc-header-bar .tc-wordmark--header a::after {
		display: none;
	}

	.tc-header-bar .tc-wordmark--header .tc-wm-rotate::after {
		content: "";
		display: inline-block;
		width: 0.08em;
		min-width: 2px;
		height: 1.05em;
		margin-left: 0.08em;
		background: var(--accent);
		transform: translateY(0.12em);
		animation: tc-caret 1s steps(1) infinite;
	}

	.tc-site-header.is-scrolled,
	.tc-site-header.has-open-menu {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.tc-site-header.has-open-menu {
		z-index: 1000;
		transition: none;
	}

	.tc-site-header .wp-block-navigation__responsive-container-open {
		position: relative;
		width: calc(var(--space-7) + var(--space-1));
		height: calc(var(--space-7) + var(--space-1));
		padding: 0;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.tc-site-header .wp-block-navigation__responsive-container-open svg {
		display: none;
	}

	.tc-site-header .wp-block-navigation__responsive-container-open::before {
		content: "";
		width: var(--space-5);
		height: var(--space-4);
		background:
			linear-gradient(currentColor, currentColor) top / 100% var(--border-w-strong) no-repeat,
			linear-gradient(currentColor, currentColor) center / 100% var(--border-w-strong) no-repeat,
			linear-gradient(currentColor, currentColor) bottom / 100% var(--border-w-strong) no-repeat;
	}

	.tc-section {
		padding-top: var(--space-10);
		padding-bottom: var(--space-10);
	}

	.tc-hero {
		padding-top: var(--space-6);
		padding-bottom: var(--space-8);
	}

	.wp-block-columns.tc-cols-wide {
		row-gap: var(--space-5);
	}

	.wp-block-group.tc-header-tools {
		width: 100%;
		justify-content: space-between !important;
	}

	.tc-header-tools .wp-block-navigation {
		margin-right: auto;
	}

	.tc-header-tools .tc-btn-sm {
		margin-left: auto;
	}

	.tc-hero-figure {
		margin-top: 0;
	}

	.tc-statement .wp-block-columns > .wp-block-column:last-child {
		align-self: auto;
	}
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.tc-quote {
	font-size: var(--text-base);
	line-height: var(--lh-relaxed);
	color: var(--text-secondary);
}

.tc-attribution {
	margin-top: auto;
	padding-top: var(--space-4);
	border-top: var(--border-w) solid var(--border-subtle);
}

.tc-attribution-name {
	font-weight: var(--fw-bold);
	font-size: var(--text-sm);
	color: var(--text-heading);
	letter-spacing: var(--ls-tight);
}

.tc-attribution-role {
	font-family: var(--font-mono);
	font-size: var(--text-2xs);
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--index-label);
	margin-block-start: var(--space-1);
}

.tc-testimonial.is-style-card {
	display: flex;
	flex-direction: column;
}

/* --------------------------------------------------------------------------
   Kontakt-Panel
   -------------------------------------------------------------------------- */

.tc-contact-panel {
	background-color: var(--surface-card);
	background-image: var(--card-sheen);
	border: var(--border-w) solid var(--border-subtle);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	padding: clamp(2rem, 4vw, 3.5rem);
}

.tc-contact-panel .wp-block-buttons {
	flex-direction: column;
	align-items: flex-start;
}

/* --------------------------------------------------------------------------
   Formularelemente (globale Basis — Design System: dunkle Flächen,
   Hairline-Border, kleine Radien, roter Fokus)
   -------------------------------------------------------------------------- */

input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
textarea,
select {
	font-family: var(--font-body);
	font-size: var(--text-base);
	color: var(--off-white);
	background: var(--bg-panel);
	border: var(--border-w) solid var(--border-strong);
	border-radius: var(--radius-md);
	padding: var(--space-3) var(--space-4);
	transition: border-color var(--dur-base) var(--ease-out);
}

input:not([type="submit"]):focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--red-tint);
}

::placeholder {
	color: var(--text-muted);
	opacity: 1;
}

label {
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.tc-site-footer {
	background: var(--bg-void);
	border-top: var(--border-w) solid var(--border-subtle);
}

.tc-site-footer .wp-block-navigation-item__content,
.tc-footer-link {
	font-family: var(--font-mono);
	font-size: var(--text-2xs);
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--text-muted);
	transition: color var(--dur-base) var(--ease-out);
}

.tc-site-footer .wp-block-navigation-item__content:hover,
.tc-footer-link:hover {
	color: var(--off-white);
}

.tc-copyright {
	font-family: var(--font-mono);
	font-size: var(--text-2xs);
	color: var(--text-muted);
}

/* Secondary contact links (phone, WhatsApp) in Kontakt panel */
.tc-contact-secondary a {
	color: var(--text-muted);
	text-decoration: none;
}
.tc-contact-secondary a:hover {
	color: var(--off-white);
	text-decoration: underline;
}

/* Prominent contact in footer (next to logo / left column) */
.tc-footer-contact {
	margin-top: .5rem;
}
.tc-footer-contact .tc-footer-phone {
	display: block;
	font-family: var(--font-mono);
	font-size: var(--text-sm);
	color: var(--text-muted);
	text-decoration: none;
	line-height: 1.3;
}

/* Make sure all direct contact items in the left footer column behave the same */
.tc-footer-contact a {
	color: var(--text-muted);
}
.tc-footer-contact a:hover {
	color: var(--off-white);
}
.tc-footer-contact .tc-footer-wa {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	font-family: var(--font-mono);
	font-size: var(--text-sm);
	color: var(--text-muted);
	text-decoration: none;
	line-height: 1.3;
}
.tc-footer-contact .tc-footer-wa:hover {
	color: var(--off-white);
}
.tc-footer-contact .tc-wa-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.tc-footer-contact-email {
	display: block;
	font-family: var(--font-mono);
	font-size: var(--text-sm);
	color: var(--text-muted);
	text-transform: none;
	text-decoration: none;
	line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Rechtliche Seiten: ruhige Lesespalte, native Blocks, klare Gliederung
   -------------------------------------------------------------------------- */

.tc-legal-page {
	--tc-content-axis: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2));
}

/* !important: Core zentriert Constrained-Kinder per margin:auto — Seitentitel
   und Lesespalte starten auf der Content-Achse (wie tc-max-20ch / .tc-lp). */
.tc-legal-page > .wp-block-post-title {
	max-width: var(--measure);
	font-size: var(--text-display-md);
	line-height: var(--lh-tight);
	margin-left: var(--tc-content-axis) !important;
	margin-right: auto !important;
}

.tc-legal-page > .wp-block-post-content {
	margin-left: var(--tc-content-axis) !important;
	margin-right: auto !important;
	max-width: var(--wp--style--global--content-size) !important;
}

.tc-legal {
	max-width: var(--measure);
	margin-top: var(--space-8);
	font-size: var(--text-base);
	line-height: var(--lh-relaxed);
	color: var(--text-body);
}

.tc-legal > * {
	margin-top: var(--space-5);
	margin-bottom: 0;
}

.tc-legal > :first-child {
	margin-top: 0;
}

.tc-legal > h2 {
	margin-top: var(--space-10);
	font-size: var(--text-3xl);
	line-height: var(--lh-snug);
	overflow-wrap: anywhere;
}

.tc-legal > h2:first-child {
	margin-top: 0;
}

.tc-legal > h3 {
	margin-top: var(--space-8);
	font-size: var(--text-xl);
	line-height: var(--lh-snug);
	overflow-wrap: anywhere;
}

.tc-legal > h4 {
	margin-top: var(--space-6);
	font-size: var(--text-base);
	line-height: var(--lh-normal);
}

.tc-legal a {
	text-decoration: underline;
	text-decoration-thickness: var(--border-w);
	text-underline-offset: var(--space-1);
	overflow-wrap: anywhere;
}

.tc-legal .wp-block-list {
	padding-left: var(--space-5);
}

.tc-legal .wp-block-list li + li {
	margin-top: var(--space-3);
}

.tc-legal-emphasis {
	font-size: var(--text-sm);
	font-weight: var(--fw-semibold);
	color: var(--text-secondary);
}

.tc-legal-source {
	padding-top: var(--space-6);
	border-top: var(--border-w) solid var(--border-subtle);
	font-size: var(--text-sm);
	color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Editor-Feinschliff (Canvas dunkel, Wordmark lesbar)
   -------------------------------------------------------------------------- */

.editor-styles-wrapper .tc-wordmark a::after {
	animation: none;
}
