/* ==========================================================================
   Layout B (Entwurf design/layout-b): ruhige Typografie, Karten mit feiner Linie,
   runde Bilder, Pillen-Buttons, heller Header und Footer.
   Nur Darstellung, Inhalte unverändert. Wird nach style.css geladen.
   ========================================================================== */

/* Fließtext etwas zurückgenommen (Grau auf Weiß, helles Grau auf Dunkel),
   Überschriften behalten die volle Textfarbe. */
:where(.wp-site-blocks) :where(p, li):not(.has-text-color) {
	color: color-mix(in srgb, currentColor 80%, transparent);
}
:where(.wp-site-blocks) :where(p, li) :is(strong, b) { color: var(--wp--preset--color--contrast); }
:where(.is-style-tb-dunkel, .is-style-tb-karte-dunkel, .is-style-tb-blau) :where(p, li) :is(strong, b) { color: inherit; }
.has-large-font-size { line-height: 1.55; }

/* Große Schauzeilen (Absatz in XX-Large, z. B. im Hero) wie Überschriften setzen */
p.has-xx-large-font-size,
p.has-x-large-font-size {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 600;
	letter-spacing: -0.035em;
	color: var(--wp--preset--color--contrast);
}
p.has-xx-large-font-size { font-size: clamp(2.25rem, 3.9vw, 3.5rem) !important; line-height: 1.05 !important; }
:is(.is-style-tb-dunkel, .is-style-tb-karte-dunkel) :is(p.has-xx-large-font-size, p.has-x-large-font-size) { color: inherit; }

/* H1 als Dachzeile in Großbuchstaben (Hero-Muster): klein, gesperrt, blau */
h1.wp-block-heading[style*="uppercase"] {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.8125rem !important;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.08em !important;
	color: var(--wp--preset--color--accent-3);
}
.is-style-tb-dunkel h1.wp-block-heading[style*="uppercase"] { color: var(--wp--preset--color--accent-1); }

/* Abschnitte auf Dunkel: Text hellgrau, Dachzeile grün */
.is-style-tb-dunkel :where(p, li):not(.has-text-color) { color: rgba(255, 255, 255, 0.82); }
.is-style-tb-dunkel .tb-dachzeile { color: var(--wp--preset--color--accent-1); }

/* Grüne und blaue Flächen: Text in voller Textfarbe für Kontrast */
.is-style-tb-blau :where(p, li):not(.has-text-color) { color: inherit; }

/* --- Abschnitte (Aufbau: migration/layout-b-inhalte.php) ---------------- */

/* Abschnittskopf: Überschrift links, Einleitung rechts (wie „Leistungen“ im Entwurf) */
.tb-abschnittskopf {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	column-gap: clamp(32px, 6vw, 96px);
	row-gap: 1rem;
	align-items: end;
	margin-bottom: var(--wp--preset--spacing--50) !important;
}
.tb-abschnittskopf > * { margin: 0 !important; }
.tb-abschnittskopf > :only-child { grid-column: 1 / -1; max-width: 820px; }
.tb-abschnittskopf > .wp-block-buttons { justify-content: flex-end; }
/* Einleitungstext unter der Überschrift statt daneben: Überschrift volle Breite, Text höchstens 820 px.
   Nur Köpfe mit Button (z. B. „Zum Blog“) behalten den Button rechts. */
.tb-abschnittskopf:not(:has(> .wp-block-buttons)) { grid-template-columns: minmax(0, 1fr); }
.tb-abschnittskopf:not(:has(> .wp-block-buttons)) > p { max-width: 820px; }
.tb-abschnittskopf--mitte { display: block; max-width: 820px !important; margin-inline: auto !important; text-align: center; }
.tb-abschnittskopf--mitte > * + * { margin-top: 1rem !important; }
/* Leitsatz im Abschnittskopf (Startseite „Wie wir arbeiten“, migration/startseite-zitat.php): dezent unter der Einleitung */
.tb-abschnittskopf > .wp-block-quote { max-width: 820px; margin-top: 1rem !important; }
.tb-leitsatz p { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); }
@media (max-width: 781px) {
	.tb-abschnittskopf { grid-template-columns: minmax(0, 1fr); }
	.tb-abschnittskopf > .wp-block-buttons { justify-content: flex-start; }
}

/* Linksbündig (Layout B, migration/linksbuendig-ohne-gruen.php): Absätze direkt im Abschnitt beginnen an der
   Kante der Überschrift (breite Spalte), Zeilen höchstens 820 px. */
.alignfull.is-layout-constrained > p.tb-links {
	max-width: var(--wp--style--global--wide-size) !important;
	padding-right: max(0px, calc(min(100%, var(--wp--style--global--wide-size)) - 820px));
	box-sizing: border-box;
}

/* Schmale Textabschnitte (z. B. 800 px) auf Landingpages linksbündig: die Spalte beginnt an der Kante der
   breiten Inhalte (wie Überschriften und Raster), nicht am Bildschirmrand. */
.alignfull.is-layout-constrained.is-content-justification-left > :not(.alignfull) {
	margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2)) !important;
}

/* Kennzahlen-Band (synchronisiertes Muster „Zahlen Fakten Banner“): weiß mit feinen Linien statt grün */
.tb-kennzahlen-band { border-block: 1px solid rgba(24, 24, 24, 0.12); }

/* Überschriften direkt in vollbreiten Abschnitten stehen auf Inhaltsbreite (bündig mit Karten und Rastern) */
.alignfull.is-layout-constrained:not(.wp-block-post-content) > h2.wp-block-heading:not(.has-text-align-center) {
	max-width: var(--wp--style--global--wide-size) !important;
	margin-bottom: var(--wp--preset--spacing--40);
}

/* Kennzahlen im Hero: Zeile unter den Buttons mit feiner Linie darüber */
.tb-hero-zahlen {
	gap: 16px clamp(24px, 4vw, 48px) !important;
	margin-top: var(--wp--preset--spacing--40) !important;
	padding-top: 24px;
	border-top: 1px solid rgba(24, 24, 24, 0.2);
}
.tb-hero-zahl > * { margin: 0 !important; }
.tb-hero-zahl__wert {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--contrast) !important;
}
.tb-hero-zahl .has-small-font-size { font-size: 0.8125rem !important; }

/* Layout-Shift im Seitenkopf vermeiden (PageSpeed CLS, Nutzer 2026-12-02):
   1. Google-Bewertung (Trustindex) wird per Skript nachgeladen: Platz in Endhöhe vorhalten, sonst schiebt sie
      Kennzahlen und alles darunter nach unten.
   2. Handy: Die Trustindex-Einbindung bringt ein Stylesheet mitten im Inhalt mit. Der Browser zeichnet bis dorthin
      schon, die Bildspalte kommt erst danach – Einleitung und Buttons stehen kurz direkt unter der H1 und springen
      dann unter das Bild. Solange die Bildspalte noch fehlt, bleibt alles nach H1/Leitsatz unsichtbar (kein Sprung). */
main .wp-block-column > .tb-bewertung:not(.tb-bewertung-slider) { min-height: 62px; }
@media (max-width: 380px) {
	main .wp-block-column > .tb-bewertung:not(.tb-bewertung-slider) { min-height: 82px; }
}
@media (max-width: 781px) {
	.wp-block-columns:has(> .wp-block-column:first-child > h1):not(:has(> .wp-block-column:nth-child(2))) > .wp-block-column:first-child > :not(h1, :has(~ h1), h1 + p.has-xx-large-font-size) {
		visibility: hidden;
	}
}

/* Seitenköpfe mit Bild auf dem Handy (Startseite, Leistungsseiten, Ratgeber – überall gleich):
   Bild direkt nach H1 und Leitsatz statt ganz unten, damit Botschaft und Bild beim ersten Blick zusammen stehen.
   Danach Einleitung, Buttons, Bewertung, Kennzahlen (in einer Reihe).
   Erkannt am Aufbau: zwei Spalten, die erste beginnt mit H1 (bzw. Dachzeile + H1), die zweite enthält nur ein Bild.
   So ziehen bestehende Seiten ohne Änderung am Inhalt mit; der Desktop bleibt unverändert. */
@media (max-width: 781px) {
	.wp-block-columns:has(> .wp-block-column:first-child > h1):has(> .wp-block-column:nth-child(2):last-child > :is(.wp-block-image, .wp-block-post-featured-image):only-child) {
		flex-direction: column;
		align-items: stretch !important;
		gap: 0 !important;
	}
	.wp-block-columns:has(> .wp-block-column:first-child > h1):has(> .wp-block-column:nth-child(2):last-child > :is(.wp-block-image, .wp-block-post-featured-image):only-child) > .wp-block-column:first-child {
		display: contents;
	}
	.wp-block-columns:has(> .wp-block-column:first-child > h1):has(> .wp-block-column:nth-child(2):last-child > :is(.wp-block-image, .wp-block-post-featured-image):only-child) > .wp-block-column:first-child > * {
		order: 3;
	}
	.wp-block-columns:has(> .wp-block-column:first-child > h1):has(> .wp-block-column:nth-child(2):last-child > :is(.wp-block-image, .wp-block-post-featured-image):only-child) > .wp-block-column:first-child > :is(h1, :has(~ h1), h1 + p.has-xx-large-font-size) {
		order: 1;
	}
	.wp-block-columns:has(> .wp-block-column:first-child > h1):has(> .wp-block-column:nth-child(2):last-child > :is(.wp-block-image, .wp-block-post-featured-image):only-child) > .wp-block-column:last-child {
		order: 2;
		flex-basis: auto !important;
		margin-block: var(--wp--preset--spacing--40) 0 !important;
	}
	.tb-hero-zahlen {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		align-items: start !important;
		gap: 12px !important;
	}
	.tb-hero-zahl__wert { font-size: 1.375rem; }
}

/* Logo-Leiste: graues Band mit feinen Linien, Logos in einer Reihe */
.tb-logoleiste {
	padding-top: 28px !important;
	padding-bottom: 28px !important;
	border-block: 1px solid rgba(24, 24, 24, 0.12);
}
.tb-logoleiste .tb-logos { justify-content: space-between !important; gap: 20px 28px !important; }
.tb-logoleiste .tb-logos img { width: 84px !important; mix-blend-mode: multiply; }
/* Ab Tablet-Quer eine Zeile: Logos schrumpfen bis 56 px, statt umzubrechen */
@media (min-width: 1024px) {
	.tb-logoleiste .tb-logos { flex-wrap: nowrap !important; gap: 20px !important; }
	.tb-logoleiste .tb-logos > .wp-block-image { flex: 0 1 84px; min-width: 56px; margin: 0; }
	.tb-logoleiste .tb-logos img { width: 100% !important; height: auto; }
}

/* Leistungskarten: Aussehen im Block triboot/leistungskarte (Plugin TT-Blocks) */

/* Dunkler Abschnitt (Muster triboot/ki-prozesse): Text links, Branchenkarten rechts (ohne Nummern,
   es gibt keine Reihenfolge; seit 28.11.2026). Zwei Spalten, die letzte Karte „Ihre Branche?“ gestrichelt
   über die ganze Breite: zeigt, dass die Branchen nur Beispiele sind.
   Regel: höchstens ein dunkler Abschnitt pro Landingpage. */
.tb-dunkler-abschnitt h2.wp-block-heading { margin-block: 1.25rem 1.25rem; }
.tb-dunkler-abschnitt .tb-dachzeile { margin: 0; }
.tb-dunkler-abschnitt .wp-block-buttons { margin-top: 2rem; }
.tb-nummernkarten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tb-nummernkarten > * { margin: 0 !important; }
.tb-nummernkarte {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 28px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 22px;
}
.tb-nummernkarte > * { margin: 0 !important; }
.tb-nummernkarte :is(h3, .tb-karte__titel) { font-size: 1.375rem !important; line-height: 1.3; }
.tb-nummernkarte p { font-size: 0.9375rem; line-height: 1.6; }
.tb-nummernkarte--offen { grid-column: 1 / -1; border-style: dashed; border-color: rgba(255, 255, 255, 0.35); }
.tb-nummernkarte--offen a { color: var(--wp--preset--color--accent-1); font-weight: 600; text-decoration: none; }
.tb-nummernkarte--offen a:hover { text-decoration: underline; }
@media (max-width: 599px) {
	.tb-nummernkarten { grid-template-columns: minmax(0, 1fr); }
	.tb-nummernkarte { padding: 24px; }
}
}

/* Ablauf: nummerierte Schritte mit Linie oben (01, 02 …) */
.tb-schritte { counter-reset: tb-schritt; row-gap: var(--wp--preset--spacing--50) !important; }
.tb-schritt {
	counter-increment: tb-schritt;
	padding-top: 20px;
	border-top: 2px solid var(--wp--preset--color--contrast);
}
.tb-schritt::before {
	content: counter(tb-schritt, decimal-leading-zero);
	display: block;
	margin-bottom: 12px;
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-size: 2rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--accent-3);
}
.tb-schritt > * { margin-block: 0 10px; }

/* Case Study (VR/AR-Seite, migration/case-studies.php): Bilder groß in einer Reihe, darunter Punkte mit Linie oben */
.tb-case-bilder .wp-block-image { margin: 0; }
.tb-case-bilder img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; }
/* Screenshots von Oberflächen nicht beschneiden: ganzes Bild auf Hellgrau */
.tb-case-bilder--screens img { aspect-ratio: 16 / 10; object-fit: contain; padding: 12px; box-sizing: border-box; background: var(--wp--preset--color--accent-5); }
/* Gemischt (Flutter/Starlight): erstes Bild Foto im Zuschnitt, danach Hochkant-Screens unbeschnitten auf Hellgrau */
.tb-case-bilder--gemischt .wp-block-image:not(:first-child) img { object-fit: contain; padding: 12px; box-sizing: border-box; background: var(--wp--preset--color--accent-5); }
.tb-case-punkte { row-gap: var(--wp--preset--spacing--50) !important; }
.tb-case-punkt { padding-top: 20px; border-top: 2px solid var(--wp--preset--color--contrast); }
.tb-case-punkt > * { margin-block: 0 10px; }
.tb-case-punkt > :first-child:not(h3, .tb-karte__titel) { margin-bottom: 14px; }

/* Ratgeber-Seite /ratgeber/ (migration/ratgeber-uebersicht.php, Entwurf Board „Ratgeber“):
   Seitenkopf wie im Blog mit Suche darunter, Themenkarten mit Icon, nummerierte Liste. Filtern: assets/js/ratgeber.js */
.tb-ratgeber-suche {
	display: flex;
	gap: 10px;
	max-width: 620px;
	margin-top: 2rem !important;
}
.tb-ratgeber-suche[hidden] { display: none; }
.tb-ratgeber-suche input {
	flex: 1 1 0%;
	min-width: 0;
	padding: 16px 22px;
	border: 1px solid rgba(24, 24, 24, 0.45);
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	font: inherit;
}
.tb-ratgeber-suche input:focus-visible { outline: 2px solid var(--wp--preset--color--accent-3); outline-offset: 2px; }
.tb-ratgeber-suche button {
	min-height: 54px;
	padding: 0 26px;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.tb-ratgeber-suche button:hover { background: var(--wp--preset--color--dunkel); color: var(--wp--preset--color--base); }

/* Themenkarten: ganze Karte klickbar, Icon oben, Anzahl in Blau */
.tb-themenkarten { display: grid; gap: 20px !important; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)) !important; }
/* Karte (der Block triboot/ratgeber-themen gibt die Karten selbst aus, ohne Block-Stil-CSS) */
.tb-themenkarten > .tb-themenkarte {
	margin: 0;
	border: 1px solid rgba(24, 24, 24, 0.2);
	border-radius: 24px;
	background: var(--wp--preset--color--base);
}
.tb-themenkarte {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 32px !important;
	transition: border-color 0.2s ease;
}
.tb-themenkarte:hover,
.tb-themenkarte.tb-aktiv { border-color: var(--wp--preset--color--contrast) !important; }
.tb-themenkarte > * { margin: 0 !important; }
.tb-themenkarte::before {
	content: "";
	width: 24px;
	height: 24px;
	background: var(--wp--preset--color--accent-3);
	-webkit-mask: var(--tb-icon) center / contain no-repeat;
	mask: var(--tb-icon) center / contain no-repeat;
}
/* Icons je Thema (Klasse tb-themenkarte--<Slug>); neue Themen bekommen das Buch-Icon */
.tb-themenkarte { --tb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5A1.5 1.5 0 0 1 5.5 4H11v16H5.5A1.5 1.5 0 0 1 4 18.5z'/%3E%3Cpath d='M20 5.5A1.5 1.5 0 0 0 18.5 4H13v16h5.5a1.5 1.5 0 0 0 1.5-1.5z'/%3E%3C/svg%3E"); }
.tb-themenkarte--app-projekt-planen { --tb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2.5' width='12' height='19' rx='2.5'/%3E%3Cpath d='M10.5 18.5h3'/%3E%3C/svg%3E"); }
.tb-themenkarte--vr-ar-einsetzen { --tb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h16a1.5 1.5 0 0 1 1.5 1.5v6A1.5 1.5 0 0 1 20 17h-4.2l-2.3-2.6a2 2 0 0 0-3 0L8.2 17H4a1.5 1.5 0 0 1-1.5-1.5v-6A1.5 1.5 0 0 1 4 8z'/%3E%3Cpath d='M7 8V6.5A1.5 1.5 0 0 1 8.5 5h7A1.5 1.5 0 0 1 17 6.5V8'/%3E%3C/svg%3E"); }
.tb-themenkarte :is(h3, .tb-karte__titel) a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.tb-themenkarte :is(h3, .tb-karte__titel) a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tb-themenkarte :is(h3, .tb-karte__titel) a:focus { outline: none; }
.tb-themenkarte:has(:is(h3, .tb-karte__titel) a:focus-visible) { outline: 2px solid var(--wp--preset--color--accent-3); outline-offset: 3px; }
.tb-themenkarte p:not(.tb-themenkarte__anzahl, .tb-karte__titel) { color: var(--wp--preset--color--accent-4); }

/* Verlinkte Karte (z. B. dunkle Leistungskarten auf „App Entwickler“): ganze Karte klickbar, Titel ohne Link-Optik */
.tb-karte-link { position: relative; transition: border-color 0.2s, background-color 0.2s; }
.tb-karte-link :is(h3, .tb-karte__titel) a { color: inherit; text-decoration: none; }
.tb-karte-link :is(h3, .tb-karte__titel) a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tb-karte-link :is(h3, .tb-karte__titel) a:focus { outline: none; }
.tb-karte-link:has(:is(h3, .tb-karte__titel) a:focus-visible) { outline: 2px solid var(--wp--preset--color--accent-1); outline-offset: 3px; }
.tb-karte-link:hover { border-color: var(--wp--preset--color--accent-1) !important; }
.tb-themenkarte__anzahl { font-size: 0.875rem; font-weight: 600; color: var(--wp--preset--color--accent-3); }

/* Liste: Nummer, Titel + Beschreibung, Thema, Pfeil; ganze Zeile klickbar */
.tb-ratgeberliste { counter-reset: tb-ratgeber; border-top: 1px solid rgba(24, 24, 24, 0.2); }
.tb-ratgeberliste .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.tb-ratgeberliste .wp-block-post-template > li { margin: 0; }
.tb-ratgeberzeile .wp-block-post-excerpt { margin-top: 4px !important; }
.tb-ratgeberzeile .wp-block-post-excerpt__excerpt { margin: 0; font-size: 0.9375rem; color: var(--wp--preset--color--accent-4); }
.tb-ratgeberzeile {
	counter-increment: tb-ratgeber;
	position: relative;
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto 24px;
	column-gap: 24px;
	align-items: center;
	margin: 0 !important;
	padding: 28px 0;
	border-bottom: 1px solid rgba(24, 24, 24, 0.2);
}
.tb-ratgeberzeile[hidden] { display: none; }
.tb-ratgeberzeile::before {
	content: counter(tb-ratgeber, decimal-leading-zero);
	grid-column: 1;
	grid-row: 1 / span 2;
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--wp--preset--color--accent-3);
}
.tb-ratgeberzeile::after {
	content: "→";
	grid-column: 4;
	grid-row: 1 / span 2;
	font-size: 1.25rem;
	transition: transform 0.2s ease;
}
.tb-ratgeberzeile:hover::after { transform: translateX(4px); }
.tb-ratgeberzeile > * { grid-column: 2; margin: 0 !important; }
.tb-ratgeberzeile :is(h3, .tb-karte__titel) { font-size: 1.375rem !important; line-height: 1.25; }
.tb-ratgeberzeile :is(h3, .tb-karte__titel) a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.tb-ratgeberzeile :is(h3, .tb-karte__titel) a::after { content: ""; position: absolute; inset: 0; }
.tb-ratgeberzeile:hover :is(h3, .tb-karte__titel) a { text-decoration: underline; text-underline-offset: 0.15em; }
.tb-ratgeberzeile .has-small-font-size { margin-top: 4px !important; font-size: 0.9375rem !important; color: var(--wp--preset--color--accent-4); }
.tb-ratgeberzeile__mehr {
	grid-column: 3 !important;
	grid-row: 1 / span 2;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	white-space: nowrap;
}
#alle-ratgeber { scroll-margin-top: 110px; }
.tb-ratgeber-leer { margin-top: var(--wp--preset--spacing--40) !important; }
.tb-ratgeber-leer[hidden] { display: none; }
@media (max-width: 781px) {
	.tb-ratgeber-suche button { padding: 0 20px; }
	.tb-ratgeberzeile { grid-template-columns: 40px minmax(0, 1fr) 20px; column-gap: 14px; padding: 22px 0; }
	.tb-ratgeberzeile::before { font-size: 1.375rem; align-self: start; }
	.tb-ratgeberzeile::after { grid-column: 3; }
	.tb-ratgeberzeile__mehr { display: none; }
}

/* --- Header ------------------------------------------------------------- */

.tb-header { border-bottom-color: rgba(24, 24, 24, 0.2); }
.tb-gescrollt .tb-header {
	border-bottom-color: rgba(24, 24, 24, 0.2);
	box-shadow: 0 8px 24px -18px rgba(24, 24, 24, 0.3);
}
.tb-nav { color: var(--wp--preset--color--accent-4); }
.tb-nav .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content,
.tb-nav .wp-block-navigation__container > :is(.current-menu-item, .current-menu-ancestor) > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--contrast);
}
.tb-nav .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container {
	padding: 0.75rem;
	border-color: rgba(24, 24, 24, 0.12);
	border-radius: 24px;
	box-shadow: 0 32px 64px -24px rgba(24, 24, 24, 0.22);
}
.tb-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	border-radius: 14px;
	color: var(--wp--preset--color--contrast);
}
.tb-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--accent-3); }
/* Normale Dropdowns (Ratgeber): linksbündig unter dem Punkt, breit genug für einzeilige Einträge */
.tb-nav .wp-block-navigation__container > .has-child:not(.tb-mega) > .wp-block-navigation__submenu-container { left: 0 !important; right: auto !important; }
.tb-nav .wp-block-navigation__container > .has-child:not(.tb-mega):hover > .wp-block-navigation__submenu-container,
.tb-nav .wp-block-navigation__container > .has-child:not(.tb-mega) > .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
	min-width: 20rem;
}

/* --- Mega-Menü „Leistungen“ (Aufbau: inc/navigation.php) ----------------
   Desktop: Panel über die ganze Breite direkt unter dem Header, Spalten mit
   Überschrift, rechts die Beratungskarte, Seite darunter abgedunkelt. */

@media (min-width: 1100px) {
	/* Bezugsrahmen fürs Panel ist der Header (.tb-header ist position: relative) */
	.tb-header > .wp-block-group,
	.tb-nav.wp-block-navigation,
	.tb-nav .wp-block-navigation__responsive-container:not(.is-menu-open),
	.tb-nav .wp-block-navigation__responsive-container:not(.is-menu-open) :is(.wp-block-navigation__responsive-close, .wp-block-navigation__responsive-dialog, .wp-block-navigation__responsive-container-content),
	.tb-nav .wp-block-navigation__container,
	.tb-nav .wp-block-navigation__container > .tb-mega { position: static; }

	.tb-nav .wp-block-navigation__container > .tb-mega > .tb-mega-panel {
		top: 100% !important;
		left: 0 !important;
		right: 0;
		box-sizing: border-box;
		padding: 36px max(var(--wp--style--root--padding-left, 50px), calc((100% - 1240px) / 2)) 40px;
		border: 0;
		border-top: 1px solid rgba(24, 24, 24, 0.12);
		border-radius: 0;
		box-shadow: 0 40px 80px -20px rgba(14, 17, 22, 0.22);
	}
	/* Brücke vom Menüpunkt bis zum Panel (Lücke = Innenabstand des Headers) */
	.tb-nav .wp-block-navigation__container > .tb-mega > .tb-mega-panel::before { top: -32px; height: 32px; }
	/* Seite unter dem offenen Panel abdunkeln (nicht klickbar, Maus darauf schließt das Menü) */
	.tb-nav .wp-block-navigation__container > .tb-mega > .tb-mega-panel::after {
		content: "";
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		height: 100vh;
		background: rgba(24, 24, 24, 0.35);
		pointer-events: none;
	}

	.tb-nav .wp-block-navigation__container > .tb-mega:hover > .tb-mega-panel,
	.tb-nav .wp-block-navigation__container > .tb-mega:focus-within > .tb-mega-panel,
	.tb-nav .wp-block-navigation__container > .tb-mega > .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .tb-mega-panel {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		gap: 32px;
		width: auto;
		min-width: 0;
	}
	.tb-nav .wp-block-navigation__container > .tb-mega > .tb-mega-panel > .tb-mega-gruppe { flex: 1 1 0; min-width: 0; }
	.tb-nav .wp-block-navigation__container > .tb-mega > .tb-mega-panel > .tb-mega-karte { flex: 0 0 300px; box-sizing: border-box; }

	/* Digitalisierung = Dachleistung: hellblaue Fläche (TRIBOOT-Blau), App & Web daneben als Bausteine */
	.tb-nav .wp-block-navigation__container > .tb-mega > .tb-mega-panel > .tb-mega-gruppe { padding-top: 20px; }
	.tb-nav .tb-mega .tb-mega-gruppe--dach {
		align-self: stretch;
		padding: 20px 12px 12px;
		border-radius: 24px;
		background: color-mix(in srgb, var(--wp--preset--color--accent-2) 9%, var(--wp--preset--color--base));
	}
	.tb-nav .tb-mega .tb-mega-gruppe--dach .tb-mega-titel { padding-left: 14px; }
	.tb-nav .tb-mega .tb-mega-gruppe--dach .tb-mega-liste .wp-block-navigation-item__content:hover,
	.tb-nav .tb-mega .tb-mega-gruppe--dach .tb-mega-liste .current-menu-item > .wp-block-navigation-item__content { background: var(--wp--preset--color--base); }
	/* VR/AR: eigener Bereich, mit Linie abgetrennt */
	.tb-nav .tb-mega .tb-mega-gruppe--eigen {
		align-self: stretch;
		padding-left: 32px;
		border-left: 1px solid rgba(24, 24, 24, 0.12);
	}
}

.tb-mega-gruppe,
.tb-mega-karte { list-style: none; }
.tb-mega-titel {
	margin: 0 0 12px;
	padding-left: 14px;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-3);
}
.tb-mega-liste {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tb-nav .tb-mega .tb-mega-liste .wp-block-navigation-item__content {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	column-gap: 14px;
	align-items: start;
	padding: 12px 14px;
	border-radius: 14px;
}
.tb-mega-icon {
	grid-row: 1 / span 2;
	display: flex;
	margin-top: 1px;
	color: var(--wp--preset--color--accent-3);
}
.tb-nav .tb-mega .tb-mega-liste .wp-block-navigation-item__label {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
}
.tb-nav .tb-mega .tb-mega-liste .wp-block-navigation-item__description {
	margin-top: 2px;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--wp--preset--color--accent-4);
}
.tb-nav .tb-mega .tb-mega-liste .wp-block-navigation-item__content:hover,
.tb-nav .tb-mega .tb-mega-liste .current-menu-item > .wp-block-navigation-item__content { background: var(--wp--preset--color--accent-5); }
.tb-nav .tb-mega .tb-mega-liste .wp-block-navigation-item__content:hover .wp-block-navigation-item__label,
.tb-nav .tb-mega .tb-mega-liste .current-menu-item .wp-block-navigation-item__label { color: var(--wp--preset--color--accent-3); }

/* Beratungskarte: hellgrau mit dunkler Schrift */
.tb-mega-karte {
	padding: 28px;
	border-radius: 24px;
	background: var(--wp--preset--color--accent-5);
	color: var(--wp--preset--color--contrast);
}
.tb-mega-abzeichen {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--contrast);
	font-size: 0.75rem;
	font-weight: 600;
}
.tb-nav .tb-mega-karte__titel {
	margin: 14px 0 10px;
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--contrast);
}
.tb-nav .tb-mega-karte__text {
	margin: 0 0 20px;
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--wp--preset--color--accent-4);
}
.tb-nav .tb-mega-karte .tb-mega-karte__button {
	display: inline-block;
	width: auto;
	padding: 12px 20px;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--contrast);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
}
.tb-nav .tb-mega-karte .tb-mega-karte__button:hover { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.tb-nav .tb-mega-karte .tb-mega-karte__button:focus-visible { outline: 2px solid var(--wp--preset--color--contrast); outline-offset: 2px; }

/* Handy-Menü: Untermenüs aufklappbar (Pfeil rechts, Kern-Button mit aria-expanded) */
.tb-nav .is-menu-open .wp-block-navigation__container > .has-child {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 44px;
	align-items: center;
}
.tb-nav .is-menu-open .wp-block-navigation__container > .has-child > .wp-block-navigation-item__content { grid-column: 1; }
.tb-nav .is-menu-open .wp-block-navigation__container > .has-child > .wp-block-navigation-submenu__toggle {
	display: flex !important;
	grid-column: 2;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border-radius: 12px;
	transform: none;
}
.tb-nav .is-menu-open .wp-block-navigation__container > .has-child > .wp-block-navigation-submenu__toggle svg {
	width: 14px;
	height: 14px;
	margin: 0;
	transition: transform 0.2s ease;
}
.tb-nav .is-menu-open .wp-block-navigation__container > .has-child.tb-auf > .wp-block-navigation-submenu__toggle svg { transform: rotate(180deg); }
.tb-nav .is-menu-open .wp-block-navigation__container > .has-child > .wp-block-navigation-submenu__toggle:hover { background: var(--wp--preset--color--accent-5); }
.tb-nav .is-menu-open .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container { grid-column: 1 / -1; }
.tb-nav .is-menu-open .wp-block-navigation__container > .has-child:not(.tb-auf) > .wp-block-navigation__submenu-container { display: none !important; }

/* Handy-Menü: Spalten als einfache Liste mit kleiner Überschrift, ohne Icons und Karte */
.tb-nav .is-menu-open .tb-mega-gruppe { width: 100%; }
.tb-nav .is-menu-open .tb-mega-titel { margin: 0.6rem 0 0.2rem; padding: 0; font-size: 0.75rem; }
.tb-nav .is-menu-open .tb-mega-liste { gap: 0; }
.tb-nav .is-menu-open .tb-mega .tb-mega-liste .wp-block-navigation-item__content { display: block; padding: 0.45rem 0 !important; border-radius: 0; background: none; }
.tb-nav .is-menu-open .tb-mega .tb-mega-liste .wp-block-navigation-item__label { font-size: 1rem; font-weight: 500; color: var(--wp--preset--color--accent-4); }
.tb-nav .is-menu-open :is(.tb-mega-icon, .tb-mega-karte) { display: none; }

/* --- Buttons ------------------------------------------------------------ */

.wp-block-button__link { transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
/* Handy: Buttons im Inhalt volle Breite untereinander (Nutzer 2026-11-26, Variante A) – ruhige linke Kante,
   gleich breite Buttons statt unterschiedlich langer Pillen; Text bleibt linksbündig */
@media (max-width: 599px) {
	.wp-block-post-content .wp-block-buttons { flex-direction: column; align-items: stretch; gap: 12px; }
	.wp-block-post-content .wp-block-buttons > .wp-block-button,
	.wp-block-post-content .wp-block-buttons > .wp-block-buttons { width: 100%; }
	.wp-block-post-content .wp-block-buttons > .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.wp-block-post-content .wp-block-button__link { display: block; width: 100%; box-sizing: border-box; text-align: center; }
}
.wp-block-button.is-style-outline > .wp-block-button__link {
	padding: calc(0.875rem - 1px) calc(1.625rem - 1px);
	border: 1px solid currentColor;
	background: transparent;
	color: var(--wp--preset--color--contrast);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}
:is(.is-style-tb-dunkel, .is-style-tb-karte-dunkel, .is-style-tb-blau) .wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--wp--preset--color--base);
	border-color: rgba(255, 255, 255, 0.4);
}
:is(.is-style-tb-dunkel, .is-style-tb-karte-dunkel) .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

/* --- Karten ------------------------------------------------------------- */

.is-style-tb-karte-hell,
.is-style-tb-karte-dunkel { transition: border-color 0.15s ease; }
.tb-karte.is-style-tb-karte-hell:hover { border-color: rgba(24, 24, 24, 0.45); }
.tb-karte.is-style-tb-karte-dunkel:hover { border-color: rgba(255, 255, 255, 0.45); }
.tb-karte:hover :is(h2, h3, h4, .tb-karte__titel) a { text-underline-offset: 0.15em; }

/* Bildkarten (Bild oben bündig: Beiträge, Ratgeber, Projekte): Bild, Meta, Titel und Text in einer Karte,
   Bild ohne eigene Rundung oben bündig, Text darunter mit Innenabstand (wie der Top-Beitrag) */
.is-style-tb-karte-hell:has(> :is(.wp-block-image, .wp-block-post-featured-image):first-child) {
	overflow: hidden;
	padding-bottom: 24px !important;
}
.is-style-tb-karte-hell:has(> :is(.wp-block-image, .wp-block-post-featured-image):first-child) > .wp-block-group {
	padding-left: 24px !important;
	padding-right: 24px !important;
}
.is-style-tb-karte-hell > :is(.wp-block-image, .wp-block-post-featured-image):first-child {
	margin-top: 0;
	margin-bottom: 0.5rem;
	overflow: hidden;
	border-radius: 0;
}
.is-style-tb-karte-hell > :is(.wp-block-image, .wp-block-post-featured-image):first-child :is(a, img) {
	border-radius: 0 !important;
}
.is-style-tb-karte-hell > :is(.wp-block-image, .wp-block-post-featured-image):first-child img {
	transition: transform 0.3s ease;
}
.tb-karte:hover > :is(.wp-block-image, .wp-block-post-featured-image):first-child img { transform: scale(1.03); }
/* Karten im Beitragsraster sind pro Reihe gleich hoch; Autor oder Button stehen unten bündig */
.wp-block-post-template.is-layout-grid > li { display: flex; flex-direction: column; }
.wp-block-post-template.is-layout-grid > li > .is-style-tb-karte-hell { flex: 1; display: flex; flex-direction: column; }
.wp-block-post-template.is-layout-grid > li > .is-style-tb-karte-hell > .wp-block-group:last-child { flex: 1; display: flex; flex-direction: column; }
.wp-block-post-template.is-layout-grid > li > .is-style-tb-karte-hell > .wp-block-group:last-child > .wp-block-post-author-name { margin-top: auto; padding-top: 0.25rem; }
.wp-block-post-featured-image img { border-radius: 24px !important; }

/* Kundenlogos: Reihe darf breiter als der Inhalt sein, damit sie einzeilig bleibt */
.tb-logos.alignwide { max-width: 1340px; }
.wp-block-post-template .wp-block-post-title {
	font-size: 1.25rem;
	line-height: 1.25;
	letter-spacing: -0.02em;
}
.wp-block-post-template .wp-block-post-title a { color: var(--wp--preset--color--contrast); }
.wp-block-post-template :is(.wp-block-post-author-name, .wp-block-post-date) {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}

/* Bilder im Inhalt mit runden Ecken (Logos, Icons und Freisteller sind transparent, da stört es nicht) */
.wp-block-post-content :is(.wp-block-image, .wp-block-media-text__media) img,
.wp-block-post-content .wp-block-video video,
.wp-block-post-content .wp-block-cover:not(.alignfull) { border-radius: 24px; }
/* Videos: die ganze Fläche abrunden, damit Vorschaubild (Klick zum Laden) und später der YouTube-Player gleich aussehen */
.wp-block-post-content .wp-block-embed.is-type-video .wp-block-embed__wrapper { border-radius: 24px; overflow: hidden; }
.wp-block-post-content .wp-block-embed__wrapper iframe { border-radius: 24px; }
/* Seitenüberschrift ausgewogen umbrechen, damit kein einzelnes Wort allein in einer Zeile steht */
.wp-block-post-content h1.wp-block-heading { text-wrap: balance; }
/* Trenner: feine Linie in Inhaltsbreite zwischen zwei weißen Abschnitten (vor/nach Grau oder Dunkel trennt der Farbwechsel),
   nur vor Abschnitten mit eigener Überschrift: Fortsetzungsblöcke eines Abschnitts werden nicht abgetrennt */
.wp-block-post-content > .wp-block-group.alignfull:not([class*="is-style-tb-"]) + .wp-block-group.alignfull:not([class*="is-style-tb-"]):has(h2) { position: relative; }
.wp-block-post-content > .wp-block-group.alignfull:not([class*="is-style-tb-"]) + .wp-block-group.alignfull:not([class*="is-style-tb-"]):has(h2)::before {
	content: "";
	position: absolute;
	top: 0;
	inset-inline: 0;
	margin-inline: auto;
	width: min(var(--wp--style--global--wide-size, 1240px), calc(100% - var(--wp--style--root--padding-left, 30px) - var(--wp--style--root--padding-right, 30px)));
	border-top: 1px solid rgba(24, 24, 24, 0.12);
}
/* Kundenlogos nie abrunden: manche füllen ihre Fläche ganz aus (z. B. BBG) */
.wp-block-post-content .tb-logos .wp-block-image img { border-radius: 0; }
/* Logo-Reihe im einspaltigen Inhalt (Ratgeber 21826): 12 Logos passen nicht in eine Zeile, daher gleichmäßig 6 × 2,
   auf dem Handy 3 × 4 statt ungleicher Umbrüche (7 + 4) */
:is(.single-post, .single-portfolio, .single-ratgeber) .wp-block-post-content .tb-logos {
	display: grid !important;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	justify-items: center;
	align-items: center;
}
:is(.single-post, .single-portfolio, .single-ratgeber) .wp-block-post-content .tb-logos > .wp-block-image { margin: 0; }
:is(.single-post, .single-portfolio, .single-ratgeber) .wp-block-post-content .tb-logos img { max-width: 100%; height: auto; }
@media (max-width: 600px) {
	:is(.single-post, .single-portfolio, .single-ratgeber) .wp-block-post-content .tb-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --- Blog: Seitennavigation, Schlagwörter ------------------------------- */

.wp-block-query-pagination { gap: 0.5rem; font-size: 0.9375rem; }
.wp-block-query-pagination-numbers { display: flex; gap: 0.5rem; }
.wp-block-query-pagination :is(.page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	height: 2.75rem;
	padding: 0 0.9rem;
	box-sizing: border-box;
	border: 1px solid rgba(24, 24, 24, 0.2);
	border-radius: 12px;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}
.wp-block-query-pagination .page-numbers.current {
	background: var(--wp--preset--color--dunkel);
	border-color: var(--wp--preset--color--dunkel);
	color: var(--wp--preset--color--base);
}
.wp-block-query-pagination .page-numbers.dots { border: 0; min-width: 0; }
.wp-block-query-pagination a:hover { border-color: var(--wp--preset--color--contrast); }

.wp-block-post-terms a {
	display: inline-block;
	margin: 0 0.25rem 0.35rem 0;
	padding: 0.35em 0.85em;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--contrast);
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
}
.wp-block-post-terms a:hover { background: var(--wp--preset--color--dunkel); color: var(--wp--preset--color--base); }

/* Beitrag: Titelbild rund, Lesespalte ruhig */
.single .wp-block-post-featured-image { margin-block: var(--wp--preset--spacing--40); }
.single .wp-block-post-content { font-size: 1.0625rem; line-height: 1.7; }
.single .wp-block-post-content :is(h2, h3) { margin-block-start: 2.2em; }
.single .wp-block-post-content h2 { font-size: clamp(1.625rem, 2.4vw, 2rem); }

/* Meta-Zeile auf Karten: Kategorie · Datum, klein und fett über dem Titel */
.tb-karte-meta,
.tb-karte-meta :is(a, time) {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}
.tb-karte-meta .wp-block-post-date { font-weight: 400; color: var(--wp--preset--color--accent-4); }
.tb-karte-meta > .wp-block-post-terms + .wp-block-post-date::before { content: "·"; margin-right: 0.5em; color: var(--wp--preset--color--accent-4); }
/* Bricht das Datum um, steht der Punkt nicht am Zeilenanfang: jedes Element beginnt mit 1,25em Vorlauf (beim Datum
   der Punkt), die Zeile ist um diesen Vorlauf nach links verschoben und links abgeschnitten */
.tb-karte-meta:not(.tb-topbeitrag *):has(> .wp-block-post-terms + .wp-block-post-date) {
	column-gap: 0 !important;
	margin-left: -1.25em !important;
	clip-path: inset(-0.5em -0.5em -0.5em 1.25em);
}
.tb-karte-meta:not(.tb-topbeitrag *) > .wp-block-post-terms { padding-left: 1.25em; }
.tb-karte-meta:not(.tb-topbeitrag *) > .wp-block-post-terms + .wp-block-post-date { white-space: nowrap; }
.tb-karte-meta:not(.tb-topbeitrag *) > .wp-block-post-terms + .wp-block-post-date::before {
	display: inline-block;
	width: 1.25em;
	margin-right: 0;
	text-align: center;
}
.tb-karte-meta .wp-block-post-terms a { padding: 0; background: none; font-size: inherit; }
.tb-als-text .tb-term { font-weight: 600; color: var(--wp--preset--color--contrast); }
.wp-block-post-excerpt__more-text { display: none; }
.tb-kategorien { margin: 0 !important; }

/* Blog: Kopf, Top-Beitrag (Muster triboot/topbeitrag), Zeile „Alle Beiträge“ mit Kategorie-Pillen */
/* Blog-Vorlagen: kein Standardabstand unter der Kopfleiste, damit der Seitenkopf so hoch steht wie auf Seiten */
main.tb-blog,
.single .wp-site-blocks > main { margin-top: 0 !important; }
.tb-seitenkopf > * { margin-block: 0; }
.tb-seitenkopf > * + * { margin-top: 1.25rem; }
/* Einheitlicher Seitenkopf (Blog, Projekte, Ratgeber, Über uns): Dachzeile klein und dunkelgrau,
   Überschrift höchstens zwei Zeilen breit, kurze graue Unterzeile, links bündig auf Inhaltsbreite */
.tb-seitenkopf > .tb-dachzeile { margin-bottom: 0; color: var(--wp--preset--color--accent-4); }
.tb-seitenkopf > .tb-dachzeile a { color: inherit; text-decoration: none; }
.tb-seitenkopf > .tb-dachzeile + * { margin-top: 1rem; }
.tb-seitenkopf > h1 { max-width: 16em; }
.tb-seitenkopf > h1 strong, .tb-seitenkopf > h1 .tb-akzent { font-weight: inherit; }
.tb-seitenkopf > p:not(.tb-dachzeile),
.tb-seitenkopf > .wp-block-term-description { max-width: 720px; color: var(--wp--preset--color--accent-4); }
.tb-blog-leiste { row-gap: 1rem !important; }
.tb-blog-leiste > h2 { margin: 0; }
.tb-blog-leiste > .wp-block-triboot-projektfilter { margin: 0; }
.tb-topbeitrag[hidden] { display: none; }
.tb-blog-leiste + .tb-beitragsraster { margin-top: var(--wp--preset--spacing--40) !important; }
.tb-topbeitrag .wp-block-post-template { margin: 0; }
.tb-topbeitrag .tb-karte {
	border-color: rgba(24, 24, 24, 0.2) !important;
	background: var(--wp--preset--color--base) !important;
	overflow: hidden;
}
/* Kein Innenabstand unten aus der Bildkarten-Regel (24 px): der Textteil hat eigenen Abstand, am Desktop
   ließ er einen Streifen unter dem Bild frei */
.tb-topbeitrag .tb-karte.is-style-tb-karte-hell { padding-bottom: 0 !important; }
.tb-topbeitrag .tb-karte > .wp-block-post-featured-image { margin: 0; border-radius: 0; }
.tb-topbeitrag .tb-karte > .wp-block-post-featured-image :is(a, img) { border-radius: 0 !important; }
.tb-topbeitrag .tb-karte.is-style-tb-karte-hell > .wp-block-group.tb-topbeitrag__text { padding: clamp(24px, 4vw, 48px) !important; }
.tb-topbeitrag__text > * { margin-block: 0; }
.tb-topbeitrag__text > * + * { margin-top: 1rem; }
.tb-topbeitrag .wp-block-post-title { font-size: clamp(1.5rem, 2.2vw, 1.875rem); line-height: 1.2; }
.tb-topbeitrag .wp-block-post-title a { color: inherit; text-decoration: none; }
.tb-topbeitrag .tb-karte-meta { align-items: center; }
.tb-topbeitrag .tb-karte-meta .wp-block-post-terms :is(a, .tb-term) {
	font-size: 0.8125rem;
	display: inline-block;
	padding: 0.35em 0.85em;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-1);
}
.tb-topbeitrag .tb-karte-meta > .wp-block-post-terms + .wp-block-post-date::before { content: none; }
.tb-topbeitrag .wp-block-post-excerpt__more-text { display: block; margin-top: 1.25rem; }
.tb-topbeitrag .wp-block-post-excerpt__more-text a {
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}
.tb-topbeitrag .wp-block-post-excerpt__more-text a::after { content: " →"; }
@media (min-width: 782px) {
	.tb-topbeitrag .tb-karte {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: center;
	}
	/* Bild füllt die linke Hälfte, die Höhe bestimmt der Text (mindestens 360 px) */
	.tb-topbeitrag .tb-karte > .wp-block-post-featured-image {
		position: relative;
		align-self: stretch;
		min-height: 360px;
		aspect-ratio: auto !important;
	}
	.tb-topbeitrag .tb-karte > .wp-block-post-featured-image a { position: absolute; inset: 0; }
	.tb-topbeitrag .tb-karte > .wp-block-post-featured-image img {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100% !important;
		aspect-ratio: auto !important;
		object-fit: cover;
	}
}

/* Beitrag: Brotkrumen, Kategorie-Pille, Autorzeile mit Foto und Datum */
/* (Brotkrumen: siehe Abschnitt „Brotkrumen“ am Ende) */
.tb-beitrag-kopf > * { margin-block: 0; }
.tb-beitrag-kopf > * + * { margin-block-start: 16px !important; }
.tb-beitrag-kopf > .wp-block-post-title + * { margin-block-start: 24px !important; }
.tb-pille :is(a, .tb-term) {
	display: inline-block;
	padding: 0.35em 0.85em;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--contrast);
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
}
.tb-pille a:hover { background: var(--wp--preset--color--dunkel); color: var(--wp--preset--color--base); }
.tb-autorzeile .wp-block-avatar img { display: block; border: 2px solid var(--wp--preset--color--accent-1); }
.tb-autorzeile__name { font-size: 0.9375rem; font-weight: 600; }
.tb-autorzeile__name a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.tb-autorzeile__datum { font-size: 0.8125rem; color: var(--wp--preset--color--accent-4); }

/* Weitere Beiträge unter dem Beitrag */
.tb-aehnlich-titel { margin-bottom: var(--wp--preset--spacing--40) !important; }
.tb-aehnlich .wp-block-post-title { font-size: 1.25rem; }
.tb-aehnlich .tb-karte-meta { margin: 0; }

/* Beitrag: Kopf schmal, Titelbild breit, darunter Inhalt (mit Inhaltsverzeichnis links) */
.single .tb-beitrag-kopf .wp-block-post-title { margin-bottom: 0.5rem; }
.single .wp-block-post-featured-image.alignwide { margin-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50); }
/* Lesespalte 720 px (stärker als die Kern-Regel für alignwide) */
.tb-beitrag.alignwide { max-width: 720px !important; margin-inline: auto !important; }
.tb-beitrag .wp-block-post-content > * { max-width: none; }
.single .wp-block-post-content h2 { scroll-margin-top: 110px; }

@media (min-width: 1000px) {
	.tb-beitrag.tb-beitrag--mit-inhalt {
		display: grid;
		grid-template-columns: 280px minmax(0, 720px);
		column-gap: clamp(40px, 5vw, 64px);
		align-items: start;
		max-width: var(--wp--style--global--wide-size, 1240px) !important;
	}
	.tb-beitrag--mit-inhalt > .tb-inhalt {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 96px);
		margin: 0;
	}
	.tb-beitrag--mit-inhalt > .tb-beitrag__text { margin: 0; }
}

/* Kasten „Inhalt“ */
.tb-inhalt { margin: 0 0 var(--wp--preset--spacing--40); }
.tb-inhalt__kasten {
	padding: 24px;
	border: 1px solid rgba(24, 24, 24, 0.2);
	border-radius: 20px;
	background: var(--wp--preset--color--base);
}
.tb-inhalt__titel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-4);
	cursor: pointer;
	list-style: none;
}
.tb-inhalt__titel::-webkit-details-marker { display: none; }
/* Pfeil rechts, dreht sich beim Aufklappen */
.tb-inhalt__titel::after {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	margin-right: 2px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.2s ease;
}
.tb-inhalt__kasten[open] > .tb-inhalt__titel::after { transform: rotate(-135deg) translateY(-2px); }
.tb-inhalt__kasten[open] > .tb-inhalt__titel { margin-bottom: 12px; }
.tb-inhalt__titel:focus-visible { outline: 2px solid var(--wp--preset--color--accent-3); outline-offset: 4px; border-radius: 4px; }
.tb-inhalt__liste {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: tb-inhalt;
}
.tb-inhalt__liste li { margin: 0; color: inherit !important; }
.tb-inhalt__liste a {
	display: block;
	padding: 6px 0;
	font-size: 0.875rem;
	line-height: 1.4;
	color: var(--wp--preset--color--accent-4);
	text-decoration: none;
	transition: color 0.15s ease;
}
.tb-inhalt__liste a:hover { color: var(--wp--preset--color--contrast); text-decoration: underline; text-underline-offset: 0.15em; }
.tb-inhalt__liste a[aria-current="true"] { color: var(--wp--preset--color--contrast); font-weight: 600; }
/* H3 als Unterpunkte (nur bei höchstens drei H2, inc/inhaltsverzeichnis.php): eingerückt mit Linie */
.tb-inhalt__unterliste {
	margin: 2px 0 6px;
	padding: 0 0 0 14px;
	list-style: none;
	border-left: 1px solid var(--wp--preset--color--accent-6);
}
.tb-inhalt__unterliste a { padding: 4px 0; font-size: 0.8125rem; }
@media (min-width: 1000px) {
	/* Lange Verzeichnisse scrollen im Kasten statt über den Bildschirmrand */
	.tb-inhalt__kasten { max-height: calc(100vh - 140px); overflow-y: auto; box-sizing: border-box; }
}
@media (prefers-reduced-motion: no-preference) {
	html:has(.tb-inhalt) { scroll-behavior: smooth; }
}

/* --- Tabellen, Zitate --------------------------------------------------- */

.wp-block-table table {
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid rgba(24, 24, 24, 0.2);
	border-radius: 16px;
	overflow: hidden;
}
.wp-block-table :is(th, td) { border: 0; border-bottom: 1px solid rgba(24, 24, 24, 0.12); padding: 0.85em 1em; }
.wp-block-table tr:last-child td { border-bottom: 0; }
.wp-block-table thead { border: 0; }
.wp-block-table th { font-weight: 600; text-align: left; }
/* Handy: jede Tabellenzeile als Karte, Spaltenkopf als kleine Beschriftung (inc/tabellen.php setzt data-label) */
@media (max-width: 640px) {
	.tb-tabelle-karten table { border: 0; border-radius: 0; overflow: visible; }
	.tb-tabelle-karten :is(table, thead, tbody, tfoot, tr, th, td) { display: block; width: auto; }
	.tb-tabelle-karten thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.tb-tabelle-karten tbody tr { border: 1px solid rgba(24, 24, 24, 0.2); border-radius: 16px; padding: 1rem 1.125rem; }
	.tb-tabelle-karten tbody tr + tr { margin-top: 0.75rem; }
	.tb-tabelle-karten :is(th, td) { border: 0 !important; padding: 0; text-align: left; }
	.tb-tabelle-karten tbody :is(th, td) + :is(th, td) { margin-top: 0.75rem; }
	.tb-tabelle-karten tbody :is(th, td):first-child { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; color: var(--wp--preset--color--contrast); }
	.tb-tabelle-karten tbody :is(th, td):not(:first-child)[data-label]::before {
		content: attr(data-label); display: block; margin-bottom: 0.2em;
		font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--wp--preset--color--accent-4);
	}
}

.wp-block-quote { border-left: 2px solid var(--wp--preset--color--accent-1); padding-left: 1.5rem; }
.wp-block-quote p {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-size: 1.375rem;
	line-height: 1.35;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--contrast);
}
.wp-block-quote cite {
	display: block;
	margin-top: 0.75rem;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.875rem;
	font-style: normal;
	letter-spacing: 0;
	color: var(--wp--preset--color--accent-4);
}

/* --- Projektfilter (Plugin) wie die Kategorie-Pillen -------------------- */

.tb-filter__reiter { padding: 0.6em 1.1em; border-color: rgba(24, 24, 24, 0.2); }
.tb-filter__reiter:hover { background: transparent; border-color: var(--wp--preset--color--contrast); }
.tb-filter__reiter[aria-pressed="true"] {
	background: var(--wp--preset--color--dunkel);
	border-color: var(--wp--preset--color--dunkel);
	color: var(--wp--preset--color--base);
}

/* --- Projektseiten: Inhaltsverzeichnis links, breitere Textspalte --------- */

/* Ohne Verzeichnis 1000 px wie bisher; mit Verzeichnis 280 px + Rest der Inhaltsbreite */
:is(.tb-beitrag--projekt, .tb-beitrag--breit).alignwide:not(.tb-beitrag--mit-inhalt) { max-width: 1000px !important; }
@media (min-width: 1000px) {
	:is(.tb-beitrag--projekt, .tb-beitrag--breit).tb-beitrag--mit-inhalt { grid-template-columns: 280px minmax(0, 1fr); }
}
.single-portfolio .tb-beitrag-kopf .wp-block-post-title { margin-bottom: 0; }
/* Projektkopf wie die Seitenköpfe: links bündig mit Inhaltsverzeichnis; ohne Verzeichnis bündig mit der 1000-px-Spalte */
.single-portfolio .tb-seitenkopf.tb-beitrag-kopf > * + * { margin-block-start: 1rem !important; }
/* Kopf von Beitrag und Projekt links bündig mit dem Inhaltsverzeichnis (wide, 1240 px).
   Ohne Verzeichnis steht der Kopf über der mittigen Textspalte: Beitrag 720 px, Projekt 1000 px. */
.tb-beitrag-kopf.alignwide > * { margin-inline: 0 !important; }
.tb-beitrag-kopf.alignwide > .wp-block-post-title { max-width: 18em; }
main:not(:has(.tb-beitrag--mit-inhalt)) .tb-beitrag-kopf.alignwide { max-width: 720px !important; }
:is(.single-portfolio, .single-ratgeber) main:not(:has(.tb-beitrag--mit-inhalt)) .tb-beitrag-kopf.alignwide { max-width: 1000px !important; }

/* --- Bilderslider (inc/bilderslider.php, assets/js/bilderslider.js) ------ */

.tb-slider { position: relative; margin-block: 0 var(--wp--preset--spacing--40); }
.tb-slider__bahn.wp-block-gallery.has-nested-images {
	position: relative;
	flex-wrap: nowrap !important;
	align-items: flex-start;
	gap: var(--tb-abstand, 16px) !important;
	margin: 0;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.tb-slider__bahn::-webkit-scrollbar { display: none; }
.tb-slider__bahn:focus-visible { outline: 2px solid var(--wp--preset--color--accent-3); outline-offset: 4px; border-radius: 24px; }
.tb-slider__bahn.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	/* Bilder pro Ansicht und Abstand aus den Slider-Einstellungen der Galerie (Standard 3 / 16 px) */
	flex: 0 0 calc((100% - (var(--tb-pro-slide, 3) - 1) * var(--tb-abstand, 16px)) / var(--tb-pro-slide, 3)) !important;
	width: auto !important;
	margin: 0 !important;
	scroll-snap-align: start;
}
.tb-slider__bahn.wp-block-gallery.has-nested-images figure.wp-block-image img {
	height: auto !important;
	border-radius: 16px;
}
@media (max-width: 781px) {
	.tb-slider__bahn.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { flex-basis: 78% !important; }
}
/* Karten-Slider (Projekte): höchstens 2 Karten nebeneinander, auf dem Handy eine Karte mit Blick auf die nächste.
   Die Bahn ist entweder eine Gruppe mit Karten oder die Liste einer Projektabfrage (Query-Loop, ul.wp-block-post-template). */
.tb-karten-slider .tb-slider__bahn {
	display: flex !important;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.tb-karten-slider .tb-slider__bahn::-webkit-scrollbar { display: none; }
.tb-karten-slider .tb-slider__bahn:focus-visible { outline: 2px solid var(--wp--preset--color--accent-3); outline-offset: 4px; border-radius: 24px; }
/* drei Karten pro Ansicht, auf Tablets zwei, auf dem Handy eine mit angeschnittener nächster */
.tb-karten-slider .tb-slider__bahn > * { flex: 0 0 calc((100% - 48px) / 3); margin: 0 !important; scroll-snap-align: start; }
@media (max-width: 1099px) {
	.tb-karten-slider .tb-slider__bahn > * { flex-basis: calc((100% - 24px) / 2); }
}
.tb-karten-slider .tb-slider__bahn > li { display: flex; }
.tb-karten-slider .tb-slider__bahn > li > .tb-karte { flex: 1; }
/* height: 100 % (allgemeine Kartenregel) verhindert hier das Strecken – Karten im Slider sonst ungleich hoch */
.tb-karten-slider .tb-slider__bahn > .tb-karte { height: auto; }
@media (max-width: 781px) {
	.tb-karten-slider .tb-slider__bahn > * { flex-basis: 85%; }
}
/* Pfeile senkrecht in der Mitte der Bilder (16:9), nicht mitten im Text: Kartenbreite aus der Containerbreite */
.tb-karten-slider { container-type: inline-size; }
/* Karten-Slider: kleiner Abstand nach Überschrift/Einleitung (.tb-slider setzt oben sonst 0) */
.tb-slider.tb-karten-slider { margin-block-start: var(--wp--preset--spacing--40); }
.tb-karten-slider .tb-slider__knopf { top: calc((100cqw - 48px) / 3 * 9 / 16 / 2); }
@media (max-width: 1099px) {
	.tb-karten-slider .tb-slider__knopf { top: calc((100cqw - 24px) / 2 * 9 / 16 / 2); }
}
@media (max-width: 781px) {
	.tb-karten-slider .tb-slider__knopf { top: calc(85cqw * 9 / 16 / 2); }
}
/* Projektkarten haben quadratische Bilder (migration/projektkarten-quadratisch.php) */
.tb-karten-slider:has(.type-portfolio) .tb-slider__knopf { top: calc((100cqw - 48px) / 3 / 2); }
@media (max-width: 1099px) {
	.tb-karten-slider:has(.type-portfolio) .tb-slider__knopf { top: calc((100cqw - 24px) / 2 / 2); }
}
@media (max-width: 781px) {
	.tb-karten-slider:has(.type-portfolio) .tb-slider__knopf { top: calc(85cqw / 2); }
}

/* Pfeile auf der Bildreihe, senkrecht mittig; auf dem Handy etwas kleiner, Fläche bleibt 44 px */
.tb-slider__knopf {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(24, 24, 24, 0.12);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--wp--preset--color--contrast);
	box-shadow: 0 6px 20px -8px rgba(24, 24, 24, 0.35);
	transform: translateY(-50%);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.tb-slider__knopf[hidden] { display: none; }
.tb-slider__knopf--zurueck { left: 12px; }
.tb-slider__knopf--weiter { right: 12px; }
@media (hover: hover) {
	.tb-slider__knopf:hover { background: var(--wp--preset--color--dunkel); color: var(--wp--preset--color--base); }
}
.tb-slider__knopf:focus:not(:focus-visible) { outline: none; }
.tb-slider__knopf:focus-visible { outline: 2px solid var(--wp--preset--color--accent-3); outline-offset: 2px; }
@media (max-width: 781px) {
	.tb-slider__knopf { width: 44px; height: 44px; }
	.tb-slider__knopf--zurueck { left: 6px; }
	.tb-slider__knopf--weiter { right: 6px; }
}

/* --- Brotkrumen (Rank Math, inc/brotkrumen.php) --------------------------
   Jeder Eintrag als eigene Pille in hellem Blau, fette Schrift, kleiner Pfeil dazwischen.
   Die aktuelle Seite (letzte Pille) wird bei Bedarf mit „…“ gekürzt. */
.rank-math-breadcrumb { display: flex; max-width: 100%; margin: 0 0 1.75rem !important; }
.rank-math-breadcrumb p {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	max-width: 100%;
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}
.rank-math-breadcrumb :is(a, .last) {
	padding: 8px 16px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--accent-3) 9%, var(--wp--preset--color--base));
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}
.rank-math-breadcrumb a { flex: none; transition: background-color 0.2s ease; }
.rank-math-breadcrumb a:hover { background: color-mix(in srgb, var(--wp--preset--color--accent-3) 18%, var(--wp--preset--color--base)); }
.rank-math-breadcrumb a:focus-visible { outline: 2px solid var(--wp--preset--color--accent-3); outline-offset: 2px; }
.rank-math-breadcrumb .separator {
	flex: none;
	width: 12px;
	height: 12px;
	font-size: 0;
	background: var(--wp--preset--color--accent-4);
	opacity: 0.6;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rank-math-breadcrumb .last {
	min-width: 0;
	max-width: 520px;
	overflow: hidden;
	text-overflow: ellipsis;
}
/* Im Seitenkopf: Abstand zur Dachzeile bzw. Überschrift darunter */
:is(.tb-seitenkopf, .tb-beitrag-kopf) > .rank-math-breadcrumb + * { margin-top: 0 !important; }

/* --- Kopfleiste: kein Rahmen nach Mausklick/Tippen ------------------------
   Menüpunkte, Pfeil-Buttons und Logo zeigen nach einem Klick keinen Fokusrahmen (die grüne Linie
   markiert den aktiven Punkt). Bei Tastaturbedienung bleibt der Rahmen (:focus-visible). */
.tb-header :is(a, button):focus:not(:focus-visible) { outline: none !important; box-shadow: none; }

/* --- Einblenden beim Scrollen (assets/js/einblenden.js) --------------------
   Nur wenn das Skript läuft (html.tb-anim) und nur für Elemente unterhalb des ersten Bildschirms.
   Sanft von unten (20 px) mit Ausblendung, Geschwister im Raster nacheinander (--tb-ein-verzug). */
.tb-anim .tb-ein {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .6s cubic-bezier(.22, .61, .36, 1), transform .6s cubic-bezier(.22, .61, .36, 1);
	transition-delay: var(--tb-ein-verzug, 0ms);
}
.tb-anim .tb-ein.tb-sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.tb-anim .tb-ein { opacity: 1; transform: none; transition: none; }
}

/* --- Medien nie breiter als ihre Spalte -----------------------------------
   Videos und Bilder aus HTML-Blöcken (Geräte-Rahmen mit Teaser-Video, AR-Link mit Bild) haben eine feste
   Eigenbreite und liefen auf dem Handy über den Rand. */
main :is(video, iframe, img) { max-width: 100%; }
main :is(.wp-block-html, .device-frame) :is(video, img) { height: auto; }
.device-frame { max-width: 100%; }

/* --- Spalten in der Lesespalte (Beitrag, Projekt, Ratgeber) ----------------
   Ab drei Spalten nebeneinander wird der Text zu schmal: dann zwei je Reihe, auf dem Handy eine. */
.tb-beitrag .wp-block-columns:has(> .wp-block-column:nth-child(3)) {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tb-beitrag .wp-block-columns:has(> .wp-block-column:nth-child(3)) > .wp-block-column { flex-basis: auto !important; }
@media (max-width: 781px) {
	.tb-beitrag .wp-block-columns:has(> .wp-block-column:nth-child(3)) { grid-template-columns: minmax(0, 1fr); }
}

/* Blogbeiträge, Projekte und Ratgeber sind einspaltig (Wunsch 2026-11-24): Spalten im Inhalt stehen immer untereinander,
   auch wenn später jemand im Editor wieder Spalten einfügt. Bildreihen sind dort Galerien = Slider. */
:is(.single-post, .single-portfolio, .single-ratgeber) .tb-beitrag .wp-block-post-content .wp-block-columns { display: flex !important; flex-direction: column; }
:is(.single-post, .single-portfolio, .single-ratgeber) .tb-beitrag .wp-block-post-content .wp-block-column { flex-basis: auto !important; width: 100%; }
/* … ebenso Raster-Gruppen (Karten nebeneinander, migration/ratgeber-raster.php); Ausnahme (Wunsch 2026-11-25):
   Service-Kacheln (Icon links, Titel, Text) stehen zweispaltig, ab 18rem Spaltenbreite (migration/service-kacheln-zweispaltig.php) */
:is(.single-post, .single-portfolio, .single-ratgeber) .tb-beitrag .wp-block-post-content .is-layout-grid:not(:has(> .tb-service-links)) { grid-template-columns: minmax(0, 1fr) !important; }
/* QR-Codes (HTML-Block mit SVG, z. B. Download-Bereich der Spiele-Apps) standen in einer schmalen Spalte –
   einspaltig nicht breiter als 200 px */
:is(.single-post, .single-portfolio, .single-ratgeber) .tb-beitrag .wp-block-post-content > svg { display: block; width: 200px; max-width: 100%; height: auto; }
/* Nur bei einem Bild pro Ansicht (eigene Einstellung „1“): Hochformat (Handy-Screenshots) nicht höher als 600 px.
   Standard sind drei Bilder nebeneinander (Projekte Wunsch 2026-11-24, Blog und Ratgeber 2026-11-26). */
:is(.single-post, .single-portfolio, .single-ratgeber) .tb-slider[style*="--tb-pro-slide:1;"] .tb-slider__bahn.wp-block-gallery.has-nested-images figure.wp-block-image img {
	width: auto !important;
	max-width: 100%;
	max-height: min(600px, 75vh);
	margin-inline: 0 auto;
}

/* Browser-Spiel Snake: Spielfeld mit Innenabstand nicht breiter als die Seite */
.game-container { box-sizing: border-box; max-width: 100%; }
/* … auch direkt im Beitragsinhalt (dort hebt eine Regel max-width für alle Kinder auf) */
.tb-beitrag .wp-block-post-content > :is(video, iframe, img) { max-width: 100%; height: auto; }

/* --- Lange deutsche Wörter in Überschriften (Handy) ------------------------
   „Verantwortungsbewusster“ o. Ä. passt in großen Überschriften nicht in 390 px: dann trennen statt überstehen.
   Nur lange Wörter (ab 12 Zeichen, je Teil mind. 4) – kurze wie „Projekte“ werden nicht getrennt. */
@media (max-width: 600px) {
	:is(h1, h2, h3, h4, .tb-karte__titel) { hyphens: auto; hyphenate-limit-chars: 12 4 4; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4; overflow-wrap: break-word; }
}
/* Die H1 im Seitenkopf steht auch am Desktop in einer schmalen Spalte neben dem Bild: „Mitarbeiterweiterbildung“
   brach dort ohne Trennstrich mitten im Wort um („…bildun / g“). Für H1 daher auch am Desktop trennen, aber nur sehr
   lange Wörter (ab 16 Zeichen), damit „Einsatzfelder“ o. Ä. weiterhin ungetrennt in die nächste Zeile rutschen. */
@media (min-width: 601px) {
	h1 { hyphens: auto; hyphenate-limit-chars: 16 6 6; -webkit-hyphenate-limit-before: 6; -webkit-hyphenate-limit-after: 6; }
}

/* FAQ in Beiträgen, Ratgebern und Projekten: so breit wie die Textspalte, bündig mit Text und Überschrift
   (die FAQ-Gruppe ist „constrained“ und würde sonst auf 720 px zentrieren – in der 896-px-Projektspalte eingerückt) */
.tb-beitrag .wp-block-post-content .tb-faq { padding-inline: 0; }
.tb-beitrag .wp-block-post-content .tb-faq > * { max-width: none; margin-inline: 0; }

/* Ratgeber-Kopf wie der Kopf der Landingpages (Muster triboot/hero-leistung): Text links, Beitragsbild rechts */
.tb-ratgeber-kopf__text > * { margin-block: 0; }
.tb-ratgeber-kopf__text > * + * { margin-block-start: 1.25rem; }
.tb-ratgeber-kopf__text > .tb-dachzeile + .wp-block-post-title { margin-block-start: 0.75rem; }
.tb-ratgeber-kopf__text > .wp-block-triboot-ratgeber-aktionen { margin-block-start: 2rem; }
.wp-block-triboot-ratgeber-aktionen > * { margin-block: 0; }
.wp-block-triboot-ratgeber-aktionen > * + * { margin-block-start: 1.25rem; }
.tb-ratgeber-kopf__text > .tb-autorzeile { margin-block-start: 1.5rem; }
.tb-ratgeber-kopf__einleitung p { margin: 0; }
.tb-ratgeber-kopf .wp-block-post-featured-image { margin: 0; }
.tb-ratgeber-kopf .wp-block-post-featured-image img { border-radius: 24px; }
.tb-ratgeber-kopf .tb-dachzeile .tb-term { color: inherit; font-weight: inherit; }

/* Geschäftsführer-Karte (Muster triboot/geschaeftsfuehrer): hellgraue Karte (bis 23.11. grün),
   Foto rund mit weißem Grund und feinem Rand.
   Das freigestellte Foto ist rechts und unten gerade abgeschnitten: Der Kreis zeigt daher einen Ausschnitt,
   der innerhalb der Personen endet (Bild vergrößert und verschoben), damit keine geraden Kanten im Kreis stehen. */
.wp-block-column > .is-style-tb-hellgrau:has(> .wp-block-image:first-child) > .wp-block-image:first-child {
	display: block;
	box-sizing: border-box;
	width: min(100%, 256px);
	aspect-ratio: 1;
	margin-inline: auto;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 50%;
	background: var(--wp--preset--color--base);
}
.wp-block-column > .is-style-tb-hellgrau:has(> .wp-block-image:first-child) > .wp-block-image:first-child img {
	display: block;
	width: var(--tb-gf-zoom, 135.4%);
	max-width: none;
	height: auto;
	margin: var(--tb-gf-oben, -3%) 0 0 var(--tb-gf-links, -19.9%);
}

/* --- Kontaktseite (migration/kontaktseite.php) -----------------------------
   Links schmale Spalte nach Vorlage: Ansprechpartner (dunkel), Termin (hellgrau), So geht es weiter;
   rechts das Formular groß in einer Karte.
   Karten wie überall: feine Linie, 24 px Radius. Auf dem Handy steht das Formular zuerst. */
.tb-kontakt { align-items: flex-start !important; }
.tb-kontakt-formular {
	padding: clamp(24px, 4vw, 48px);
	border: 1px solid rgba(24, 24, 24, 0.2);
	border-radius: 24px;
}
.tb-kontakt-formular > * { margin-block: 0; }
.tb-kontakt-formular__titel { margin-bottom: var(--wp--preset--spacing--40) !important; font-size: 1.75rem !important; }
.tb-kontakt-seite { display: flex; flex-direction: column; gap: 16px; }
.tb-kontakt-seite > * { margin: 0 !important; }
.tb-kontakt-person,
.tb-kontakt-termin,
.tb-kontakt-schritte { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 24px; }
:is(.tb-kontakt-person, .tb-kontakt-termin, .tb-kontakt-schritte) > * { margin: 0 !important; }
.tb-kontakt-karte__titel { font-size: 1.25rem !important; line-height: 1.3; }
/* 1. Ansprechpartner: dunkle Karte (wie dunkle Leistungskarten), Icons in kleinen Kästchen */
.tb-kontakt-person { gap: 16px; background: var(--wp--preset--color--dunkel); color: var(--wp--preset--color--base); }
.tb-kontakt-person__kopf {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	column-gap: 16px;
	align-items: center;
	margin-bottom: 6px !important;
}
.tb-kontakt-person__kopf > * { grid-column: 2; margin: 0 !important; }
.tb-kontakt-person__kopf > figure { grid-column: 1; grid-row: 1 / span 2; }
.tb-kontakt-person__kopf img { box-sizing: border-box; width: 64px !important; height: 64px; object-fit: cover; border: 2px solid var(--wp--preset--color--accent-1); border-radius: 50% !important; }
.tb-kontakt-person__name { align-self: end; font-family: var(--wp--preset--font-family--space-grotesk); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.tb-kontakt-person__rolle { align-self: start; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.72); }
.tb-kontakt-zeile { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: center; }
.tb-kontakt-zeile > * { margin: 0 !important; }
.tb-kontakt-zeile > .wp-block-triboot-icon {
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--wp--preset--color--accent-1) !important;
}
.tb-kontakt-zeile p { font-size: 0.9375rem; line-height: 1.45; }
.tb-kontakt-zeile a { font-weight: 600; color: inherit; text-decoration: none; overflow-wrap: break-word; }
.tb-kontakt-zeile a:hover { text-decoration: underline; }
.tb-kontakt-zeile a[href^="https"] { font-weight: 400; color: rgba(255, 255, 255, 0.85); }
/* 2. Termin: hellgrau (keine grünen Flächen), Button grün */
.tb-kontakt-termin { background: var(--wp--preset--color--accent-5); }
.tb-kontakt-termin > .wp-block-triboot-icon { color: var(--wp--preset--color--contrast); }
.tb-kontakt-termin p:not(.tb-karte__titel) { font-size: 0.9375rem; line-height: 1.55; color: var(--wp--preset--color--accent-4); }
.tb-kontakt-termin > .wp-block-buttons { margin-top: 4px !important; }
/* 3. So geht es weiter: weiße Karte mit Linie, Schritte mit Nummer im hellblauen Kreis */
.tb-kontakt-schritte { border: 1px solid rgba(24, 24, 24, 0.2); }
.tb-schrittliste { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: tb-schritt; }
.tb-schrittliste > li {
	position: relative;
	margin: 0;
	padding-left: 44px;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--wp--preset--color--accent-4);
	counter-increment: tb-schritt;
}
.tb-schrittliste > li strong { color: var(--wp--preset--color--contrast); }
.tb-schrittliste > li::before {
	content: counter(tb-schritt);
	position: absolute;
	left: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #E6F1F5;
	color: var(--wp--preset--color--accent-3);
	font-size: 0.8125rem;
	font-weight: 600;
}
@media (min-width: 782px) {
	.tb-kontakt-seite { position: sticky; top: 112px; }
}
@media (max-width: 781px) {
	.tb-kontakt > .wp-block-column:first-child { order: 2; }
}
@media (max-width: 600px) {
	.tb-kontakt-person, .tb-kontakt-termin, .tb-kontakt-schritte { padding: 22px; }
}

/* Geschäftsführer-Karte in Ratgebern (migration/gf-box-ratgeber.php): hellgrau, links Foto mit Namen, rechts Überschrift,
   Text und Button; auf dem Handy untereinander */
.tb-gf-box {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	column-gap: var(--wp--preset--spacing--50);
	row-gap: 24px;
	align-items: center;
	padding: clamp(24px, 4vw, 48px) !important;
	border-radius: 24px;
	margin-block: var(--wp--preset--spacing--50) !important;
}
.tb-gf-box > * { margin: 0 !important; max-width: none !important; }
.tb-gf-box__bild .wp-block-image { margin: 0; }
.tb-gf-box__bild img { display: block; width: 100% !important; height: auto; }
.tb-gf-box__bild p { margin: 12px 0 0; font-size: 0.875rem; line-height: 1.45; }
.tb-gf-box__text > * { margin-block: 0 !important; }
.tb-gf-box__text > * + * { margin-top: 1rem !important; }
.tb-gf-box__text :is(h2, h3) { font-size: clamp(1.375rem, 2vw, 1.625rem); }
.tb-gf-box__text .wp-block-buttons { margin-top: 1.5rem !important; }
@media (max-width: 781px) {
	.tb-gf-box { grid-template-columns: minmax(0, 1fr); }
	.tb-gf-box__bild { max-width: 220px; }
}

/* Lesepausen in Beiträgen und Ratgebern (2026-11-26):
   Merkbox = hellgraue Box, erste Zeile als blaue Kennzeile („Das Wichtigste in Kürze“, „Praxistipp“).
   Hervorhebung = blauer Strich links, erste Zeile groß (Kennzahl oder Kernsatz), darunter die Erklärung. */
.is-style-tb-merkbox,
.is-style-tb-hervorhebung { margin-block: 2.5rem !important; }
.is-style-tb-merkbox > * { margin-left: 0 !important; max-width: none; }
.is-style-tb-merkbox > p:first-child { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--accent-3); }
.is-style-tb-merkbox > :is(ul, ol) { margin-top: 0.75rem; padding-left: 1.25em; }
.is-style-tb-merkbox li + li { margin-top: 0.4rem; }
.is-style-tb-merkbox > :last-child { margin-bottom: 0; }
.is-style-tb-hervorhebung > * { margin-left: 0 !important; max-width: none; }
.is-style-tb-hervorhebung > p:first-child { font-family: var(--wp--preset--font-family--space-grotesk); font-size: clamp(2rem, 1.6rem + 1.5vw, 2.75rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: var(--wp--preset--color--contrast); }
.is-style-tb-hervorhebung > p:first-child + p { margin-top: 0.5rem !important; color: var(--wp--preset--color--accent-4); }
@media (max-width: 781px) { .is-style-tb-merkbox { padding: 20px !important; border-radius: 20px; } }

/* Dezenter Schatten für Inhaltsfotos (2026-11-26). Welche Bilder: inc/bild-schatten.php (deckend, nicht freigestellt, ab 400 px).
   Nicht in Karten, Slidern, Logoreihen, gemischten Case-Study-Reihen (Foto + Screenshots auf Grau), Kontakt-/GF-Karten und auf farbigen oder dunklen Flächen. */
.tb-schatten img { box-shadow: 0 2px 6px rgba(24, 24, 24, 0.06), 0 12px 32px rgba(24, 24, 24, 0.10); }
:is(.tb-slider, .tb-logos, .tb-case-bilder--gemischt, .tb-karte, .is-style-tb-karte-hell, .is-style-tb-karte-dunkel, .tb-gf-box, .tb-kontakt-person, .is-style-tb-blau, .is-style-tb-dunkel, .is-style-tb-hellgrau, .has-background) .tb-schatten img { box-shadow: none; }
/* Videos (YouTube-Vorschaubild/Player und eigene Videos) mit demselben Schatten, gleiche Ausnahmen */
.wp-block-post-content :is(.wp-block-embed.is-type-video .wp-block-embed__wrapper, .wp-block-video video) { box-shadow: 0 2px 6px rgba(24, 24, 24, 0.06), 0 12px 32px rgba(24, 24, 24, 0.10); }
:is(.tb-slider, .tb-logos, .tb-case-bilder--gemischt, .tb-karte, .is-style-tb-karte-hell, .is-style-tb-karte-dunkel, .tb-gf-box, .tb-kontakt-person, .is-style-tb-blau, .is-style-tb-dunkel, .is-style-tb-hellgrau, .has-background) :is(.wp-block-embed.is-type-video .wp-block-embed__wrapper, .wp-block-video video) { box-shadow: none; }
