/* ==========================================================================
   tbx – Unterseiten (Service, Showcase, Kontakt) und gemeinsame Bausteine.
   Masse vom Original bei 1440 × 900 abgenommen.
   ========================================================================== */

@font-face {
	font-family: "The Signature";
	src: url("../fonts/the-signature.woff") format("woff");
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

@property --glow {
	syntax: "<color>";
	inherits: true;
	initial-value: transparent;
}

/* Anker-Links (z. B. die Leiste auf der Service-Seite) sanft anscrollen */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

:root {
	--tbx-syne: var(--wp--preset--font-family--syne);
	--tbx-script: "The Signature", "Brush Script MT", cursive;
}

/* Header: fixiert, mit kleinem Logo (auf der Startseite steht die grosse Unterschrift) */

.tbx-header {
	position: fixed;
	align-items: center;
	padding-top: 21px;
}

.tbx-logo {
	display: block;
	width: 295px;
	line-height: 0;
}

.tbx-logo svg {
	width: 100%;
	height: auto;
	fill: #fff;
}

.home .tbx-logo {
	visibility: hidden;
}


/* Gemeinsame Bausteine ---------------------------------------------------- */

/* Sektionen direkt aneinander – sonst zeigt der 24px-Blockabstand von WordPress
   einen schwarzen Streifen zwischen hellen und dunklen Abschnitten */
.tbx-main > * {
	margin-block: 0 !important;
}

.tbx-wrap {
	max-width: 1280px;
	margin-inline: auto;
}

.tbx-light {
	background: #fff;
	color: #000;
}

.tbx-light a:where(:not(.wp-element-button)) {
	color: inherit;
}

.tbx-page-service h1,
.tbx-page-service h2,
.tbx-page-service h3,
.tbx-page-showcase h2,
.tbx-page-kontakt h1 {
	text-transform: none;
	letter-spacing: normal;
}

.tbx-eyebrow {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #8a8a8a;
}

.tbx-section-icon {
	width: 60px;
	margin: 0 auto 28px;
	line-height: 0;
}

.tbx-section-icon svg {
	width: 100%;
	height: auto;
	fill: currentColor;
}

/* Schreibschrift-SVGs: Formen nacheinander einblenden */
.tbx-write svg {
	display: block;
	width: 100%;
	height: auto;
	fill: #fff;
}

@keyframes tbx-fill {
	from { fill: transparent; }
	to   { fill: currentColor; }
}

.tbx-write {
	color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
	.js .tbx-write path {
		fill: transparent;
	}

	.js .tbx-write.is-in path {
		animation: tbx-fill 0.45s cubic-bezier(0.47, 0, 0.745, 0.715) var(--d, 0.15s) both;
	}

	/* Zweizeilige Handy-Unterschrift schreibt noch etwas schneller */
	.js .tbx-write.is-in .tbx-signature__stacked path {
		animation-duration: 0.2s;
	}

	.js .tbx-reveal {
		opacity: 0;
		transform: translateY(24px);
		transition: opacity 0.9s var(--tbx-ease), transform 0.9s var(--tbx-ease);
	}

	.js .tbx-reveal.is-visible {
		opacity: 1;
		transform: none;
	}
}

/* Buttons */
.tbx-btn-arrow .wp-block-button__link::before {
	transition: transform 0.3s ease;
}

.tbx-btn-arrow .wp-block-button__link:hover::before {
	transform: rotate(45deg);
}

.tbx-btn-light .wp-block-button__link {
	background: #fff;
	border-color: #fff;
	color: #000;
}

/* Hover wie im Original: bleibt gefüllt, wird nur hellgrau */
.tbx-btn-light .wp-block-button__link:hover,
.tbx-btn-light .wp-block-button__link:focus-visible {
	background: #e1e1e1;
	border-color: #e1e1e1;
	color: #000;
}

.tbx-btn-dark .wp-block-button__link {
	background: #000;
	border-color: #000;
	color: #fff;
}

.tbx-btn-dark .wp-block-button__link:hover,
.tbx-btn-dark .wp-block-button__link:focus-visible {
	background: #e1e1e1;
	border-color: #e1e1e1;
	color: #000;
}

/* Hintergrund-Varianten */
.tbx-bgfx--plain::before {
	display: none;
}

/* Service-Hero: farbiges Bild (kein Graufilter), weit nach oben versetzt –
   sichtbar bleibt nur sein unterer Rand als farbiger Schein am oberen Rand.
   Werte vom Original gemessen (1440 × 900 und Handy 655 px). */
.tbx-bgfx--soft {
	--bg-scale: 2.116;
}

.tbx-bgfx--soft::before {
	top: -67.7vw;
	left: -5vw;
	filter: none;
}

@media (max-width: 767px) {
	.tbx-bgfx--soft {
		--bg-rot: 158deg;
		--bg-scale: 2.8;
	}

	.tbx-bgfx--soft::before {
		top: -70vw;
		left: -2vw;
		width: 97.7vw;
	}
}

/* Kontakt: gleiches Hintergrundbild wie die Startseite, am unteren Rand verankert.
   Werte vom Original gemessen (Desktop 1440 × 900, Tablet 655 × 1324) und in vw umgerechnet,
   damit der Lichtschein bei jeder Fensterbreite an derselben Stelle sitzt. */
.tbx-bgfx--kontakt {
	--bg-scale: 1.8;
}

.tbx-bgfx--kontakt::before {
	top: auto;
	bottom: -68.75vw;
	left: -5.4vw;
}

@media (max-width: 1024px) {
	/* Grössen wie im Original bei Tablet- und Handybreite */
	.tbx-kontakt .tbx-kontakt__script {
		width: 240px;
	}

	.tbx-kontakt .tbx-kontakt__title {
		font-size: 18px;
	}

	.tbx-kontakt .tbx-mail {
		font-size: 24px;
	}

	.tbx-kontakt .tbx-mail svg {
		width: 30px;
		height: 30px;
	}

	.tbx-bgfx--kontakt {
		--bg-rot: -20deg;
	}

	.tbx-bgfx--kontakt::before {
		width: 97.7vw;
		bottom: -32.7vw;
		left: -9.8vw;
	}
}

/* E-Mail-Link */
.tbx-mail {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	font-family: var(--tbx-syne);
	font-size: 30px;
	font-weight: 600;
	color: #fff;
}

.tbx-mail svg {
	width: 30px;
	height: 30px;
	fill: currentColor;
}

/* Tabs (Liste links, Bild rechts) ----------------------------------------- */

.tbx-tabs {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
	gap: 48px;
	align-items: center;
}

.tbx-tabs__list {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
}

.tbx-tabs [role="tab"] {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	padding: 6px 18px 6px 0;
	border: 0;
	border-right: 3px solid transparent;
	background: none;
	color: #8a8a8a;
	font: inherit;
	font-size: 20px;
	text-align: right;
	cursor: pointer;
	transition: color 0.25s ease, border-color 0.25s ease;
}

.tbx-tabs [role="tab"][aria-selected="true"],
.tbx-tabs [role="tab"]:hover {
	color: currentColor;
	color: inherit;
}

.tbx-tabs [role="tab"][aria-selected="false"] {
	color: #8a8a8a;
}

.tbx-tabs__sub {
	max-width: 280px;
	font-size: 14px;
	line-height: 1.4;
	color: #8a8a8a;
}

.tbx-tabs [role="tabpanel"] {
	margin: 0;
}

.tbx-tabs [role="tabpanel"] img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: top;
	border-radius: 6px;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
	animation: tbx-tab-in 0.45s var(--tbx-ease);
}

@keyframes tbx-tab-in {
	from { opacity: 0; transform: translateY(10px); }
}

/* ==========================================================================
   Service
   ========================================================================== */

/* Hero */
.tbx-s-hero {
	min-height: 100svh;
	padding: 110px 20px 0;
	text-align: center;
}

.tbx-s-hero__vision {
	width: min(510px, 80vw);
	margin: 0 auto 12px;
}

.tbx-s-hero h1 {
	max-width: 700px;
	margin: 0 auto;
	font-family: var(--tbx-syne);
	font-size: 34px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 1.1px;
}

.tbx-s-hero h2 {
	max-width: 440px;
	margin: 14px auto 0;
	font-family: var(--tbx-syne);
	font-size: 30px;
	font-weight: 500;
	line-height: 1.3;
}

.tbx-s-hero .wp-block-buttons {
	margin-top: 34px;
}

.tbx-marquee {
	margin-top: 64px;
	overflow: hidden;
	mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.tbx-marquee__track {
	display: flex;
	gap: 28px;
	width: max-content;
	animation: tbx-marquee 60s linear infinite;
}

.tbx-marquee img {
	width: 420px;
	height: 262px;
	object-fit: cover;
	object-position: top;
	border-radius: 4px;
}

@keyframes tbx-marquee {
	to { transform: translateX(calc(-50% - 14px)); }
}

@media (prefers-reduced-motion: reduce) {
	.tbx-marquee__track { animation: none; }
}

/* Mein Fokus */
.tbx-fokus {
	padding: 140px 40px 160px;
	background: #000;
	overflow-x: clip; /* rotierender Kreistext darf nicht seitlich scrollen lassen */
}

.tbx-fokus__title {
	margin: 0;
	font-family: var(--tbx-syne);
	font-size: clamp(56px, 9.2vw, 133px);
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase !important;
}

/* Bühne = „Deine Ziele“ + Mockup + Freiraum darunter. „Deine Ziele“ klebt oben,
   solange die Bühne im Bild ist, und kommt im Freiraum unter dem Mockup zur Ruhe –
   also direkt über „Interaktionen“. Freiraum = Höhe der Schrift + Luft. */
.tbx-fokus {
	--script-h: clamp(90px, 13.9vw, 200px);
}

.tbx-fokus__stage {
	position: relative;
	margin-top: 0 !important; /* WordPress-Blockabstand aufheben: „Deine Ziele“ direkt unter „MEIN FOKUS“ */
}

/* Freiraum als echter Inhalt (nicht padding): ein „sticky“ Element darf nicht ins
   Padding seines Containers – hier kommt „Deine Ziele“ zur Ruhe. */
.tbx-fokus__stage::after {
	content: "";
	display: block;
	height: calc(var(--script-h) + clamp(40px, 8vw, 120px));
}

.tbx-fokus__script {
	position: sticky;
	top: 20px;
	z-index: 0;
	margin: 0 0 -5px;
	font-family: var(--tbx-script);
	font-size: var(--script-h);
	font-weight: 300;
	line-height: 1;
}

.tbx-demo {
	box-sizing: border-box;
	position: relative;
	z-index: 1;
	width: min(920px, 100%);
	aspect-ratio: 920 / 676;
	margin: 0 auto;
	padding: 26px;
	border-radius: 22px;
	overflow: visible;
	display: flex;
	flex-direction: column;
	color: #fff;
	isolation: isolate;
}

.tbx-demo__video {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
	background: #222;
	filter: brightness(0.72);
}

.tbx-demo__badge {
	position: absolute;
	top: -50px;
	right: -50px;
	width: 100px;
	animation: tbx-rotate 20s linear infinite;
}

.tbx-demo__badge svg {
	display: block;
	overflow: visible;
}

.tbx-demo__badge text {
	fill: rgba(255, 255, 255, 0.49);
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 30px;
	font-weight: 500;
	letter-spacing: 5.9px;
	word-spacing: 4px;
	text-transform: uppercase;
}

@keyframes tbx-rotate {
	to { transform: rotate(360deg); }
}

.tbx-demo__nav {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 60px;
	box-sizing: border-box;
	padding: 10px 20px;
	border-radius: 1000px;
	background: linear-gradient(126deg, rgba(255, 255, 255, 0.55) 0%, #fff 100%);
	backdrop-filter: blur(26px);
	-webkit-backdrop-filter: blur(26px);
	color: #000;
	font-size: 14px;
	font-weight: 500;
}

.tbx-demo__links {
	color: #8b8b8b;
}

/* Menü im Mockup: Hover hellblau, wie im Original */
.tbx-demo__links span,
.tbx-demo__login {
	cursor: pointer;
	transition: color 0.3s ease;
}

.tbx-demo__links span:hover {
	color: #95b2d4;
}

.tbx-demo__login {
	color: #95b2d4;
}

.tbx-demo__logo {
	width: 107px;
	line-height: 0;
}

.tbx-demo__logo svg,
.tbx-demo__login svg,
.tbx-demo__cta svg,
.tbx-demo__social svg {
	fill: currentColor;
}

.tbx-demo__logo svg {
	width: 100%;
	height: auto;
}

.tbx-demo__links {
	display: flex;
	gap: 18px;
	margin-left: auto;
}

.tbx-demo__login {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.tbx-demo__login svg {
	width: 16px;
	height: 16px;
}

.tbx-demo__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.tbx-demo__title {
	margin: 0;
	font-family: var(--tbx-syne);
	font-size: clamp(26px, 2.8vw, 40px);
	font-weight: 600;
	line-height: 1.2;
}

.tbx-demo__text {
	max-width: 540px;
	margin: 12px 0 0;
}

.tbx-demo__bubbles {
	display: flex;
	align-items: flex-start; /* nicht auf gleiche Höhe strecken */
	gap: 20px 10px;
	margin-top: 30px;
}

.tbx-bubble {
	padding: 20px;
	background: rgba(255, 255, 255, 0.16);
	backdrop-filter: blur(26px);
	-webkit-backdrop-filter: blur(26px);
	font-size: 18px;
	font-weight: 600;
	line-height: 18px;
	text-transform: uppercase;
	text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
	will-change: transform;
}

/* Versatz wie im Original: Retreats 60px, Ausbildungen 30px tiefer als Kurse */
.tbx-bubble--1 { border-radius: 1500px 1900px 1200px 1300px; }
.tbx-bubble--2 { border-radius: 1500px 1400px 800px 1000px; margin-top: 60px; }
.tbx-bubble--3 { border-radius: 500px 900px 800px 1000px; margin-top: 30px; }

.tbx-demo__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border: 2px solid #fff;
	border-radius: 100px;
	background: rgba(255, 255, 255, 0.36);
	box-shadow: 0 15px 34px -8px rgba(255, 255, 255, 0.59);
	font-weight: 700;
	text-transform: uppercase;
	transition: transform 0.3s ease;
}

.tbx-demo__cta-wrap {
	display: inline-block;
	margin-top: 28px;
}

.tbx-demo__cta {
	cursor: pointer;
}

.tbx-demo__cta:hover,
.tbx-demo__cta:focus-visible {
	transform: scale(1.1); /* Elementor „grow“ */
	background: rgba(205, 219, 236, 0.55);
}

/* Tooltip wie im Original: schwarze Box über dem Element, 240px breit, mit Pfeil */
[data-tooltip] {
	position: relative;
	z-index: 5;
}

[data-tooltip]::before,
[data-tooltip]::after {
	position: absolute;
	bottom: 120%;
	left: 50%;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

[data-tooltip]::before {
	content: attr(data-tooltip);
	width: 240px;
	margin: 0 0 5px -120px;
	padding: 7px;
	border-radius: 3px;
	background: #000;
	color: #fff;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
	text-transform: none;
}

[data-tooltip]::after {
	content: "";
	width: 0;
	margin-left: -5px;
	border-top: 5px solid #000;
	border-right: 5px solid transparent;
	border-left: 5px solid transparent;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after,
[data-tooltip]:focus-within::before,
[data-tooltip]:focus-within::after {
	visibility: visible;
	opacity: 1;
}

.tbx-demo__cta svg {
	width: 10px;
	height: 16px;
}

.tbx-demo__social {
	display: flex;
	justify-content: center;
	gap: 40px;
	color: #95b2d4;
}

.tbx-demo__social svg {
	width: 20px;
	height: 20px;
}

.tbx-fokus__words {
	margin: 20px auto 0 !important;
	max-width: 1280px;
}

.tbx-word {
	margin: 0 0 20px;
	font-family: var(--tbx-syne);
	font-size: clamp(36px, 5.6vw, 80px);
	font-weight: 400;
	line-height: 1.2;
	text-transform: uppercase !important;
}

.tbx-word--left   { text-align: left; }
.tbx-word--right  { text-align: right; }
.tbx-word--center { text-align: center; }

/* Drei kleiner werdende Punkte unter „Umsatz“, blenden nacheinander ein (wie im Original) */
.tbx-fokus__dots {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 44px;
	margin: 40px auto 50px;
}

.tbx-fokus__dots span {
	display: block;
	border-radius: 50%;
	background: #fff;
}

.tbx-fokus__dots span:nth-child(1) { width: 10px; height: 10px; }
.tbx-fokus__dots span:nth-child(2) { width: 6px;  height: 6px; }
.tbx-fokus__dots span:nth-child(3) { width: 3px;  height: 3px; }

.tbx-fokus__text {
	max-width: 618px;
	margin: 0 auto;
}

/* Website Beispiele */
.tbx-beispiele {
	padding: 130px 40px;
}

.tbx-beispiele__title {
	margin: 0 0 70px;
	font-family: var(--tbx-syne);
	font-size: clamp(40px, 5vw, 72px);
	font-weight: 400;
	line-height: 1.2;
	text-transform: uppercase !important;
}

.tbx-beispiele {
	overflow-x: clip; /* Bild fährt von ausserhalb rechts herein */
}

.tbx-beispiele .tbx-tabs [role="tab"] {
	position: relative;
	padding: 4px 0;
	border-right: 0;
	font-size: 26px;
	font-weight: 500;
	color: #999;
}

.tbx-beispiele .tbx-tabs [role="tab"][aria-selected="true"] {
	color: #000;
}

/* Unterstrich wie im Original: 3px, wächst beim Hover von links nach rechts */
.tbx-beispiele .tbx-tabs [role="tab"]::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 3px;
	background: #000;
	transform: scaleX(0);
	transform-origin: right bottom;
	transition: transform 0.3s ease-out;
}

.tbx-beispiele .tbx-tabs [role="tab"]:hover::after,
.tbx-beispiele .tbx-tabs [role="tab"]:focus-visible::after {
	transform: scaleX(1);
	transform-origin: left bottom;
}

.tbx-beispiele .tbx-tabs [role="tabpanel"] img {
	animation: tbx-fade-in-right 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
	transition: transform 0.3s ease;
}

.tbx-beispiele .tbx-tabs [role="tabpanel"] img:hover {
	transform: scale(1.05);
}

@keyframes tbx-fade-in-right {
	from { opacity: 0; transform: translate3d(100%, 0, 0); }
}

.tbx-beispiele__foot {
	max-width: 420px;
	margin-top: 50px;
	font-size: 16px;
}

.tbx-beispiele__foot .wp-block-buttons {
	margin-top: 22px;
}

/* Meine Basics */
.tbx-basics {
	padding: 140px 40px;
	background: #000;
}

.tbx-basics .tbx-section-icon {
	color: #fff;
}

.tbx-basics__title {
	max-width: 720px;
	margin: 0 auto 110px;
	font-family: var(--tbx-syne);
	font-size: clamp(30px, 3.1vw, 44px);
	font-weight: 600;
	line-height: 1.2;
}

.tbx-basics__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 110px 80px;
	max-width: 1174px;
	margin: 0 auto;
}

/* Basics-Kacheln: weiches Einblenden mit leichtem Anstieg (40px) */
@keyframes tbx-a-rise { from { opacity: 0; transform: translate3d(0, 40px, 0); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
	.js .tbx-basic.is-animated.anim-fade {
		animation-name: tbx-a-rise;
		animation-duration: 1s;
		animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
	}
}

/* Versatz beim Einblenden: rechte Spalte 0.25s nach der linken. Auf dem Handy
   (eine Spalte) erscheint jede Kachel einfach, wenn sie ins Bild kommt. */
@media (min-width: 782px) {
	.js .tbx-basic.is-animated.anim-fade:nth-child(even) {
		animation-delay: 0.25s;
	}
}

.tbx-basic__icon {
	display: block;
	width: 60px;
	margin-bottom: 22px;
	color: #9a9a9a;
	line-height: 0;
}

.tbx-basic__icon svg {
	width: 100%;
	height: auto;
	fill: currentColor;
}

.tbx-basic__title {
	margin: 0;
	font-size: clamp(26px, 2.5vw, 36px);
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase !important;
}

.tbx-basic__sub {
	margin: 10px 0 22px;
	font-size: clamp(16px, 1.5vw, 22px);
	font-weight: 600;
	line-height: 1.1;
	text-transform: uppercase;
	color: #666;
}

.tbx-basic__text {
	margin: 0;
}

/* Leistungen */
.tbx-leistungen {
	padding: 140px 40px 120px;
}

.tbx-leistungen .tbx-section-icon {
	color: #000;
}

.tbx-leistungen__title {
	margin: 0;
	font-family: var(--tbx-syne);
	font-size: clamp(30px, 3.1vw, 45px);
	font-weight: 600;
	line-height: 1.2;
}

.tbx-leistungen__cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 384px));
	justify-content: center;
	align-items: start;
	column-gap: 42px;
	margin: 70px auto 60px;
	text-align: center;
}

/* Spalte: 40px Innenabstand oben – so ragen die Linien der mittleren Spalte über die Überschrift hinaus */
.tbx-leistungen__col {
	position: relative;
	padding: 40px 0;
}

.tbx-leistungen__col--mid {
	padding-inline: 20px;
}

/* Linien links/rechts der mittleren Spalte (2px, #666) – eigene Animation: zeichnen sich von oben nach unten */
.tbx-leistungen__col--mid::before,
.tbx-leistungen__col--mid::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 2px;
	background: #666;
	transform-origin: top;
}

.tbx-leistungen__col--mid::before { left: 0; }
.tbx-leistungen__col--mid::after  { right: 0; }

@media (prefers-reduced-motion: no-preference) {
	.js .draw-lines::before,
	.js .draw-lines::after {
		transform: scaleY(0);
		transition: transform 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.15s;
	}

	.js .draw-lines::after {
		transition-delay: 0.45s;
	}

	.js .draw-lines.is-animated::before,
	.js .draw-lines.is-animated::after {
		transform: scaleY(1);
	}
}

/* Innenteil fährt weich von unten ein (sanftere Kurve als Standard) */
.tbx-leistungen__inner.is-animated {
	animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1) !important;
}

.tbx-leistungen .tbx-eyebrow {
	margin: 0;
	font-size: 12px;
	font-weight: 500;
	line-height: 28.8px;
	letter-spacing: 3px;
	color: #666;
}

.tbx-leistungen__col ul {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.tbx-leistungen__col li {
	padding-block: 7.7px; /* 33,6px Zeile + 15,4px = 49px Abstand wie im Original */
	font-family: "Montserrat", var(--wp--preset--font-family--archivo);
	font-size: 24px;
	font-weight: 500;
	line-height: 33.6px;
	color: #000;
}

.tbx-leistungen__dots {
	display: block;
	margin-top: 10px;
	color: #999;
	font-size: 24px;
}

/* „Lass uns loslegen“ */
.tbx-cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100svh;
	padding: 120px 40px;
	background: #000; /* wie die Kontaktseite: Grau entsteht erst durch das Filmkorn */
	text-align: center;
}

.tbx-cta .tbx-section-icon {
	color: #fff;
}

.tbx-cta__script {
	width: min(556px, 86vw);
	margin: 0 auto 20px;
}

.tbx-cta__text {
	max-width: 520px;
	margin: 0 auto 24px;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.5;
}

/* Anker-Chips */
/* Fixiert am unteren Rand. theme.js schiebt die Leiste per --chips-lift nach oben,
   sobald der Footer ins Bild kommt – so läuft sie nie über den Footer. */
.tbx-chips {
	--chips-gap: 20px;
	position: fixed;
	bottom: var(--chips-gap);
	left: 50%;
	z-index: 30;
	display: flex;
	gap: 10px;
	transform: translate(-50%, calc(-1 * var(--chips-lift, 0px)));
}

.tbx-chips a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 15px;
	border-radius: 100px;
	background: rgba(70, 70, 70, 0.72);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.tbx-chips a svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.tbx-chips a:hover,
.tbx-chips a.is-active {
	background: rgba(235, 235, 235, 0.92);
	color: #000;
}

/* ==========================================================================
   Showcase – drei Panels, die sich beim Scrollen übereinanderschieben
   ========================================================================== */

.tbx-sc-panel {
	position: sticky;
	top: 0;
	display: flex;
	align-items: center;
	min-height: 100svh;
	padding: 86px 40px 60px;
	overflow: hidden;
	transition: --glow 0.6s ease;
	isolation: isolate;
}

.tbx-sc-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(ellipse 768px 1000px at 84% 67%, var(--glow) 0%, rgba(0, 0, 0, 0) 54%);
}

.tbx-sc-panel--dark {
	background: #000;
	color: #fff;
}

.tbx-sc-panel--light {
	background: #fff;
	color: #000;
}

.tbx-sc-panel--light .tbx-write {
	color: #000;
}

.tbx-sc-panel--light .tbx-write svg {
	fill: #000;
}

.tbx-sc-panel__inner {
	width: 100%;
	max-width: 1300px;
	margin-inline: auto;
	text-align: center;
}

.tbx-sc-panel__script {
	width: 195px;
	margin: 0 auto 14px;
}

.tbx-sc-panel__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--archivo);
	font-size: clamp(24px, 8vw, 57.6px);
	font-weight: 400;
	line-height: 1.1;
	text-transform: uppercase !important;
	overflow-wrap: anywhere;
}

.tbx-sc-panel__text {
	max-width: 622px;
	margin: 6px auto 40px;
}

.tbx-sc-panel .tbx-tabs {
	grid-template-columns: minmax(0, 1fr) minmax(0, 768px);
	text-align: right;
}

.tbx-sc-panel .tbx-tabs [role="tab"] {
	color: inherit;
	opacity: 0.55;
}

.tbx-sc-panel .tbx-tabs [role="tab"][aria-selected="true"] {
	opacity: 1;
	border-right-color: currentColor;
}

.tbx-sc-panel .tbx-tabs [role="tabpanel"] img {
	animation: tbx-fade-in-right 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tbx-sc-panel .tbx-tabs__name {
	font-size: 22px;
	font-weight: 500;
}

/* ==========================================================================
   Kontakt
   ========================================================================== */

.tbx-kontakt {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: calc(100svh - var(--tbx-footer-h));
	padding: 120px 20px;
	text-align: center;
}

.tbx-kontakt__script {
	width: min(451px, 80vw);
	margin: 0 auto 20px;
}

.tbx-kontakt__title {
	margin: 0 0 26px;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 1.1px !important;
}

.tbx-kontakt__title strong {
	font-weight: 700;
}

.tbx-kontakt .tbx-mail {
	letter-spacing: 2px;
}

/* ==========================================================================
   Tablet & Mobil
   ========================================================================== */

@media (max-width: 1024px) {
	.tbx-demo__badge {
		right: -20px;
	}

	.tbx-demo__links {
		display: none;
	}
}

@media (max-width: 781px) {
	.tbx-logo {
		width: 180px;
	}

	.tbx-fokus,
	.tbx-beispiele,
	.tbx-basics,
	.tbx-leistungen {
		padding: 90px 20px;
	}

	.tbx-fokus__stage {
		margin-top: 0;
	}

	.tbx-demo {
		aspect-ratio: auto;
		min-height: 560px;
		padding: 16px;
	}

	.tbx-demo__badge {
		top: -40px;
		right: -8px;
		width: 80px;
	}

	.tbx-demo__login {
		margin-left: auto;
	}

	.tbx-demo__bubbles {
		flex-wrap: wrap;
		justify-content: center;
	}

	.tbx-fokus__words {
		margin-top: 20px !important;
	}

	.tbx-tabs,
	.tbx-sc-panel .tbx-tabs {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.tbx-tabs__list {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		align-items: flex-start;
	}

	.tbx-tabs [role="tab"] {
		align-items: center;
		padding: 4px 10px 8px;
		border-right: 0;
		border-bottom: 3px solid transparent;
		font-size: 16px;
		text-align: center;
	}

	.tbx-sc-panel .tbx-tabs [role="tab"][aria-selected="true"],
	.tbx-beispiele .tbx-tabs [role="tab"][aria-selected="true"] {
		border-bottom-color: currentColor;
	}

	.tbx-tabs__sub {
		display: none;
	}

	.tbx-basics__grid {
		grid-template-columns: 1fr;
		gap: 60px;
	}

	.tbx-leistungen__cols {
		grid-template-columns: 1fr;
		row-gap: 10px;
	}

	.tbx-leistungen__col--mid::before,
	.tbx-leistungen__col--mid::after {
		display: none;
	}

	.tbx-marquee {
		margin-top: 40px;
	}

	.tbx-marquee img {
		width: 268px;
		height: 151px;
	}

	/* Service-Hero auf dem Handy – Masse vom Original (323–767 px) */
	.tbx-s-hero {
		min-height: 0;
		padding-top: 148px;
	}

	.tbx-s-hero__vision {
		width: 248px;
		margin-bottom: 17px;
	}

	.tbx-s-hero h1,
	.tbx-s-hero h2 {
		max-width: 300px;
		font-size: 18px;
		line-height: 1.3;
	}

	.tbx-s-hero h2 {
		margin-top: 10px;
	}

	.tbx-s-hero .wp-block-buttons {
		margin-top: 20px;
	}

	.tbx-s-hero .wp-block-button__link {
		padding: 18px 24px;
		font-size: 18px;
		letter-spacing: 0;
	}

	/* Anker-Leiste wie im Original: mit Beschriftung, seitlich wischbar */
	.tbx-chips {
		--chips-gap: 12px;
		left: 0;
		right: 0;
		gap: 6px;
		padding-inline: 6px;
		overflow-x: auto;
		scrollbar-width: none;
		transform: translateY(calc(-1 * var(--chips-lift, 0px)));
	}

	.tbx-chips::-webkit-scrollbar {
		display: none;
	}

	.tbx-chips a {
		flex-shrink: 0;
		padding: 8px 20px 8px 16px;
		font-size: 16px;
	}

	.tbx-sc-panel {
		position: relative;
		padding: 90px 20px 60px;
	}

	.tbx-mail {
		font-size: 22px;
	}

}

/* ==========================================================================
   Rechtstexte (Impressum, Datenschutz, Cookies) – Standard-Seitenvorlage
   ========================================================================== */

.tbx-content .wp-block-post-title {
	margin-bottom: 40px;
}

.tbx-content .wp-block-post-content :is(h2, h3, h4, h5) {
	margin: 2em 0 0.6em;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
}

.tbx-content .wp-block-post-content h2 { font-size: 26px; }
.tbx-content .wp-block-post-content h3 { font-size: 22px; }
.tbx-content .wp-block-post-content h4 { font-size: 19px; }
.tbx-content .wp-block-post-content h5 { font-size: 17px; }

.tbx-content .wp-block-post-content :is(p, li) {
	font-size: 16px;
	line-height: 1.7;
}

.tbx-content .wp-block-post-content a {
	text-decoration: underline;
	text-underline-offset: 0.2em;
	overflow-wrap: anywhere;
}

.tbx-content .wp-block-post-content ul {
	padding-left: 1.2em;
}

.tbx-content .wp-block-post-content details {
	padding: 14px 0;
	border-top: 1px solid var(--wp--preset--color--line);
}

.tbx-content .wp-block-post-content details:last-of-type {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.tbx-content .wp-block-post-content summary {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.tbx-content .wp-block-post-content summary::-webkit-details-marker {
	display: none;
}

/* Complianz legt Überschrift und Kategorie in die Klickzeile */
.tbx-content .wp-block-post-content summary::before {
	content: "+";
	width: 1em;
	transition: transform 0.25s ease;
}

.tbx-content .wp-block-post-content details[open] > summary::before {
	transform: rotate(45deg);
}

.tbx-content .wp-block-post-content summary > * {
	margin: 0;
}

.tbx-content .wp-block-post-content summary :is(h3, h4) {
	font-size: 19px;
}

.tbx-content .wp-block-post-content summary p {
	font-size: 14px;
	font-weight: 500;
	color: var(--wp--preset--color--grey);
}

/* ==========================================================================
   Off-Canvas-Menü (Tablet & Handy) – Masse vom Original bei 768 × 1024
   ========================================================================== */

.tbx-burger {
	display: none;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	cursor: pointer;
}

/* Drei einzelne Linien, damit sie sich unabhängig bewegen können */
.tbx-burger {
	position: relative;
}

.tbx-burger span {
	position: absolute;
	right: 2px;
	width: 36px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition:
		top 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
		width 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
		transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
		opacity 0.25s ease;
}

.tbx-burger span:nth-child(1) { top: 10px; }
.tbx-burger span:nth-child(2) { top: 19px; transition-delay: 0.04s; }
.tbx-burger span:nth-child(3) { top: 28px; transition-delay: 0.08s; }

/* Hover: Linien versetzt verkürzen (nur mit Maus) */
@media (hover: hover) {
	.tbx-burger:hover span:nth-child(1) { width: 22px; }
	.tbx-burger:hover span:nth-child(3) { width: 30px; }
}

/* Geöffnet: Linien werden zum X (sichtbar, während das Panel darüberfährt) */
.tbx-burger[aria-expanded="true"] span:nth-child(1) {
	top: 19px;
	width: 36px;
	transform: rotate(45deg);
}

.tbx-burger[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
	transform: translateX(12px);
}

.tbx-burger[aria-expanded="true"] span:nth-child(3) {
	top: 19px;
	width: 36px;
	transform: rotate(-45deg);
}

@media (max-width: 1024px) {
	.tbx-header .wp-block-navigation {
		display: none;
	}

	.tbx-burger {
		display: block;
	}
}

html:has(.tbx-offcanvas[open]) {
	overflow: hidden;
}

.tbx-offcanvas {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	overflow: hidden;
}

.tbx-offcanvas::backdrop {
	background: rgba(0, 0, 0, 0.62);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	opacity: 0;
	transition: opacity 0.45s ease;
}

.tbx-offcanvas.is-open::backdrop {
	opacity: 1;
}

.tbx-offcanvas__panel {
	box-sizing: border-box;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: min(300px, 100%);
	padding: 20px 20px 20px;
	background: #000;
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tbx-offcanvas.is-open .tbx-offcanvas__panel {
	transform: none;
}

.tbx-offcanvas__close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	cursor: pointer;
	transition: opacity 0.3s ease;
}

.tbx-offcanvas__close:hover {
	opacity: 0.6;
}

.tbx-offcanvas__close svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
	opacity: 0;
	transform: rotate(-90deg) scale(0.4);
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s, opacity 0.3s ease 0.2s;
}

/* Das X im Panel dreht sich hinein, sobald das Panel aufgeht */
.tbx-offcanvas.is-open .tbx-offcanvas__close svg {
	opacity: 1;
	transform: none;
}

.tbx-offcanvas__logo {
	width: 260px;
	max-width: 100%;
	margin-top: 70px;
	line-height: 0;
}

.tbx-offcanvas__logo svg {
	width: 100%;
	height: auto;
	fill: #fff;
}

.tbx-offcanvas__nav {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 46px;
	margin-block: auto;
	padding-block: 40px;
}

.tbx-offcanvas__nav a {
	font-size: 24px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: #fff;
	transition: color 0.3s ease;
}

.tbx-offcanvas__nav a:hover,
.tbx-offcanvas__nav a[aria-current="page"] {
	color: #999;
}

.tbx-offcanvas__foot {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 14px;
	font-weight: 500;
	color: #999;
}

.tbx-offcanvas__foot p {
	margin: 0;
}

.tbx-offcanvas__legal {
	display: flex;
	gap: 10px;
}

.tbx-offcanvas__foot a {
	color: #999;
	transition: color 0.3s ease;
}

.tbx-offcanvas__foot a:hover {
	color: #fff;
}

.tbx-offcanvas__copy {
	margin-top: 20px !important;
}

.tbx-offcanvas__copy span {
	font-size: 20px;
	vertical-align: -2px;
}

.tbx-offcanvas .tbx-swiss {
	margin-top: 40px;
}

.tbx-offcanvas .tbx-swiss:hover {
	color: #da291c;
}

/* Handy: Panel füllt den ganzen Bildschirm */
@media (max-width: 767px) {
	.tbx-offcanvas__panel {
		width: 100%;
	}

	.tbx-offcanvas__logo {
		width: min(300px, 62vw);
		margin-top: 60px;
	}

	.tbx-offcanvas__nav {
		gap: clamp(46px, 7vh, 64px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tbx-offcanvas__panel,
	.tbx-offcanvas::backdrop,
	.tbx-offcanvas__close svg,
	.tbx-burger span {
		transition: none;
	}
}

/* ==========================================================================
   Einblend-Animationen wie Elementor (Werte aus dem Original):
   .anim-fade  = fadeIn      (nur Deckkraft)
   .anim-up    = fadeInUp    (von einer vollen Elementhöhe unten)
   .anim-right = fadeInRight (von einer vollen Elementbreite rechts)
   Dauer 1.25s, .anim-fast 0.75s, .anim-slow 2s; Verzögerung .delay-100 … .delay-600.
   theme.js setzt .is-animated, sobald das Element ins Bild kommt.
   ========================================================================== */

@keyframes tbx-a-fade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes tbx-a-up    { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
@keyframes tbx-a-right { from { opacity: 0; transform: translate3d(100%, 0, 0); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
	.js :is(.anim-fade, .anim-up, .anim-right):not(.is-animated) {
		opacity: 0;
	}

	.js .is-animated:is(.anim-fade, .anim-up, .anim-right) {
		animation-duration: 1.25s;
		animation-fill-mode: both;
		animation-timing-function: ease;
	}

	.js .is-animated.anim-fade  { animation-name: tbx-a-fade; }
	.js .is-animated.anim-up    { animation-name: tbx-a-up; }
	.js .is-animated.anim-right { animation-name: tbx-a-right; }

	.js .is-animated.anim-fast { animation-duration: 0.75s; }
	.js .is-animated.anim-slow { animation-duration: 2s; }

	.js .is-animated.delay-100 { animation-delay: 0.1s; }
	.js .is-animated.delay-200 { animation-delay: 0.2s; }
	.js .is-animated.delay-300 { animation-delay: 0.3s; }
	.js .is-animated.delay-400 { animation-delay: 0.4s; }
	.js .is-animated.delay-500 { animation-delay: 0.5s; }
	.js .is-animated.delay-600 { animation-delay: 0.6s; }
}
