/* ==========================================================================
   MTS Blocks – Inhalts-Styles
   Scope: .mtsb (WP-Frontend + REST/Next.js). Im Editor wird .mtsb
   automatisch durch .editor-styles-wrapper ersetzt (inc/assets.php).
   Werte übernommen aus Elementor-Kit #6 und den gemessenen Live-Styles.
   ========================================================================== */

.mtsb {
	--mtsb-pink: #E5007E;
	--mtsb-orange: #EF7D00;
	--mtsb-rose: #F2295B;
	--mtsb-text: #3C3C3C;
	--mtsb-light: #E1E1E1;

	--mtsb-grad-section: linear-gradient(130deg, var(--mtsb-pink) 25%, var(--mtsb-orange) 100%);
	--mtsb-grad-banner: linear-gradient(220deg, var(--mtsb-pink) 25%, var(--mtsb-orange) 100%);
	--mtsb-grad-panel: linear-gradient(290deg, var(--mtsb-pink) 25%, var(--mtsb-orange) 59%);
	--mtsb-grad-button: linear-gradient(220deg, var(--mtsb-pink) 0%, var(--mtsb-orange) 100%);
	--mtsb-grad-warm: linear-gradient(90deg, var(--mtsb-orange) 0%, var(--mtsb-rose) 100%);
	--mtsb-grad-text: linear-gradient(to right, var(--mtsb-orange) 45%, var(--mtsb-pink) 100%);
	--mtsb-grad-text-lr: linear-gradient(to left, var(--mtsb-orange) 15%, var(--mtsb-pink) 100%);

	--mtsb-font: Barlow, "Helvetica Neue", Arial, sans-serif;
	--mtsb-font-accent: flyswim, Barlow, sans-serif;
	--mtsb-font-button: Roboto, "Helvetica Neue", Arial, sans-serif;

	--mtsb-content: 1240px;
	--mtsb-gutter: 20px;
	--mtsb-section-space: clamp(40px, 6vw, 80px);

	font-family: var(--mtsb-font);
	font-size: 20px;
	font-weight: 400;
	line-height: 24px;
	color: var(--mtsb-text);
	-webkit-font-smoothing: antialiased;
}

/* --- Reset gegen Tailwind-Preflight (Shop) & Elementor-Kit --------------- */
.mtsb *,
.mtsb *::before,
.mtsb *::after { box-sizing: border-box; }

.mtsb :where(h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote) {
	margin-top: 0;
	margin-bottom: 0;
}
.mtsb :where(p, li) { font-size: inherit; line-height: inherit; }
.mtsb a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.mtsb a:hover { text-decoration-thickness: 2px; }
.mtsb img { max-width: 100%; height: auto; display: block; }
.mtsb strong, .mtsb b { font-weight: 700; }
.mtsb :where(ul, ol):not(.is-style-mts-check) { padding-left: 1.2em; list-style: revert; }

/* --- Vertikaler Rhythmus ------------------------------------------------- */
/* Spezifität bewusst ≥ 0,2,0: die eingebetteten WP-Layout-Styles
   (:root :where(.is-layout-…) > *) kommen im Dokument später. */
.mtsb > * + * { margin-top: 40px; }
.mtsb :is(.wp-block-group, .wp-block-column, .mtsb-icon-text__content) > * + * {
	margin-top: 20px;
}
.mtsb :is(.wp-block-group, .wp-block-column, .mtsb-icon-text__content) > * { margin-bottom: 0; }
.mtsb :is(.is-layout-flex, .is-layout-grid).wp-block-group > * + * { margin-top: 0; }

/* Inhalte auf oberster Ebene (ohne "volle Breite") auf Content-Breite zentrieren */
.mtsb > :where(:not(.alignfull)) {
	width: min(100% - 2 * var(--mtsb-gutter), var(--mtsb-content));
	margin-left: auto;
	margin-right: auto;
}
.mtsb > .alignfull { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }

/* --- Typografie ----------------------------------------------------------- */
/* :is() statt :where(), damit das Elementor-Kit (.elementor-kit-6 h2 { uppercase … })
   im Shop nicht gewinnt. */
.mtsb :is(h1, h2, h3, h4, h5, h6) {
	font-family: var(--mtsb-font);
	font-weight: 700;
	color: inherit;
	text-transform: none;
	letter-spacing: normal;
}
.mtsb h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1; }
.mtsb h2 { font-size: 36px; line-height: 1.1; }
.mtsb h3 { font-size: 24px; line-height: 1.1; }
.mtsb h4 { font-size: 20px; line-height: 1.2; }

/* Akzent-Überschrift (flyswim) */
.mtsb .is-style-mts-script {
	font-family: var(--mtsb-font-accent);
	font-weight: 400;
	font-size: clamp(32px, 4vw, 43px);
	line-height: 1;
	text-transform: uppercase;
}
/* Versalien fett (z. B. "MY-TICKET.SHOP", "DIE NEUE TICKETPLATTFORM FÜR") */
.mtsb .is-style-mts-caps {
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: -0.8px;
	line-height: 1;
}
.mtsb h1.is-style-mts-caps:not([class*="-font-size"]) { font-size: clamp(30px, 3.4vw, 44px); }
.mtsb h2.is-style-mts-caps:not([class*="-font-size"]) { font-size: 36px; }
.mtsb h3.is-style-mts-caps:not([class*="-font-size"]) { font-size: 24px; }
.mtsb h4.is-style-mts-caps:not([class*="-font-size"]) { font-size: 20px; }

/* Display ("Let's get loud!") */
.mtsb .is-style-mts-display {
	font-size: clamp(44px, 6vw, 72px);
	font-weight: 700;
	line-height: 1;
	padding-bottom: .08em;
}

/* Verlaufstext: automatisch für Akzent/Versalien/Display auf hellem Grund */
.mtsb :is(.is-style-mts-script, .is-style-mts-caps, .is-style-mts-display):not(.has-text-color) {
	background-image: var(--mtsb-grad-text-lr);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--mtsb-pink);
	width: fit-content;
	max-width: 100%;
}
.mtsb .is-style-mts-display:not(.has-text-color) { background-image: var(--mtsb-grad-text); }
.mtsb :is(.is-style-mts-script, .is-style-mts-caps, .is-style-mts-display):not(.has-text-align-center):not(.has-text-align-right) {
	margin-left: 0;
	margin-right: auto;
}
.mtsb :is(.is-style-mts-script, .is-style-mts-caps, .is-style-mts-display).has-text-align-right {
	margin-left: auto;
	margin-right: 0;
}
/* Auf oberster Ebene: an der Content-Kante ausrichten (fit-content-Breite) */
.mtsb > :is(.is-style-mts-script, .is-style-mts-caps, .is-style-mts-display):not(.has-text-align-center):not(.has-text-align-right) {
	margin-left: max(var(--mtsb-gutter), (100% - var(--mtsb-content)) / 2);
}
.mtsb .has-text-align-center:is(.is-style-mts-script, .is-style-mts-caps, .is-style-mts-display) { margin-inline: auto; }

/* Auf dunklem Grund (Verlaufsflächen): alles weiß, kein Verlaufstext */
.mtsb :is(.is-style-mts-section-gradient, .is-style-mts-section-waves, .is-style-mts-section-banner, .is-style-mts-panel, .mtsb-teaser__body) {
	color: #fff;
}
.mtsb :is(.is-style-mts-section-gradient, .is-style-mts-section-waves, .is-style-mts-section-banner, .is-style-mts-panel, .mtsb-teaser__body) :is(.is-style-mts-script, .is-style-mts-caps, .is-style-mts-display) {
	background: none;
	-webkit-text-fill-color: currentColor;
	color: #fff;
}

/* Lead-Absatz in Verlaufsflächen etwas kräftiger */
.mtsb :is(.is-style-mts-section-gradient, .is-style-mts-section-waves, .is-style-mts-section-banner) p { font-weight: 500; }

/* --- Sektionen (core/group Stile) ----------------------------------------- */
.mtsb :is(.is-style-mts-section-gradient, .is-style-mts-section-waves, .is-style-mts-section-banner, .is-style-mts-section-light) {
	position: relative;
	isolation: isolate;
	padding: var(--mtsb-section-space) var(--mtsb-gutter);
	margin-top: var(--mtsb-section-space);
	margin-bottom: var(--mtsb-section-space);
}
.mtsb > :is(.is-style-mts-section-gradient, .is-style-mts-section-waves, .is-style-mts-section-banner, .is-style-mts-section-light):first-child { margin-top: 0; }
.mtsb > :is(.is-style-mts-section-gradient, .is-style-mts-section-waves, .is-style-mts-section-banner, .is-style-mts-section-light) + * { margin-top: 0; }

/* Inhalt einer Sektion auf Content-Breite zentrieren – über das Padding,
   damit linksbündige Elemente (z. B. Verlaufs-Überschriften) links bleiben. */
.mtsb :is(.is-style-mts-section-gradient, .is-style-mts-section-waves, .is-style-mts-section-banner, .is-style-mts-section-light) {
	padding-left: max(var(--mtsb-gutter), (100% - var(--mtsb-content)) / 2);
	padding-right: max(var(--mtsb-gutter), (100% - var(--mtsb-content)) / 2);
}
.mtsb :is(.is-style-mts-section-gradient, .is-style-mts-section-waves, .is-style-mts-section-banner, .is-style-mts-section-light) > * {
	max-width: none;
	/* !important nötig: WP-Layout "constrained" setzt margin-inline:auto !important */
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.mtsb :is(.is-style-mts-section-gradient, .is-style-mts-section-waves, .is-style-mts-section-banner, .is-style-mts-section-light) > .has-text-align-center {
	margin-left: auto !important;
	margin-right: auto !important;
}

.mtsb .is-style-mts-section-gradient { background: var(--mtsb-grad-section); }
.mtsb .is-style-mts-section-banner  { background: var(--mtsb-grad-banner); padding-top: 40px; padding-bottom: 40px; }
.mtsb .is-style-mts-section-light   { background: var(--mtsb-light); }
.mtsb .is-style-mts-section-waves   { background: var(--mtsb-grad-section); overflow: hidden; }
.mtsb .is-style-mts-section-waves::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url(../img/waves-a.svg) no-repeat 62vw 0 / auto min(100%, 480px);
	pointer-events: none;
}
@media (max-width: 959px) {
	.mtsb .is-style-mts-section-waves::before { background-position: 30% 0; opacity: .25; }
}

/* --- Boxen ---------------------------------------------------------------- */
.mtsb .is-style-mts-frame {
	border: 10px solid transparent;
	background: linear-gradient(#fff, #fff) padding-box, var(--mtsb-grad-panel) border-box;
	padding: 30px;
	color: var(--mtsb-text);
}
.mtsb .is-style-mts-panel {
	background: var(--mtsb-grad-panel);
	padding: 40px;
}
@media (max-width: 640px) {
	.mtsb .is-style-mts-frame { padding: 20px 16px; }
	.mtsb .is-style-mts-panel { padding: 30px 26px; }
}
/* Überschriften-Paare (Akzent + Versalien) stehen überall eng zusammen */
.mtsb .is-style-mts-script + .is-style-mts-caps,
.mtsb .is-style-mts-caps + .is-style-mts-script,
.mtsb .is-style-mts-caps + .is-style-mts-caps {
	margin-top: 10px;
}

/* --- Spalten -------------------------------------------------------------- */
.mtsb .wp-block-columns { gap: 20px; margin-bottom: 0; }
.mtsb .wp-block-columns.is-style-mts-gap-large { gap: 40px; }
@media (max-width: 781px) {
	.mtsb .wp-block-columns { flex-wrap: wrap !important; }
	.mtsb .wp-block-columns > .wp-block-column { flex-basis: 100% !important; }
}

/* --- Häkchen-Liste (core/list .is-style-mts-check) ------------------------ */
.mtsb ul.is-style-mts-check {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 16px;
}
.mtsb ul.is-style-mts-check > li {
	position: relative;
	padding-left: 30px;
	margin: 0;
}
.mtsb ul.is-style-mts-check > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 20px;
	height: 20px;
	background: var(--mtsb-grad-text-lr);
	-webkit-mask: url(../img/check-circle.svg) center / contain no-repeat;
	mask: url(../img/check-circle.svg) center / contain no-repeat;
}
.mtsb :is(.is-style-mts-section-gradient, .is-style-mts-section-waves, .is-style-mts-section-banner, .is-style-mts-panel) ul.is-style-mts-check > li::before {
	background: #fff;
}

/* --- Buttons (core/button) ------------------------------------------------ */
.mtsb .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 20px; }
.mtsb .wp-block-button__link,
.mtsb .wp-element-button {
	display: inline-block;
	font-family: var(--mtsb-font-button);
	font-size: 16px;
	font-weight: 500;
	line-height: 16px;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	background: var(--mtsb-grad-button);
	border: 0;
	border-radius: 9999px;
	padding: 15px 30px;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, .5);
	transition: transform .15s ease, box-shadow .15s ease;
}
.mtsb .wp-block-button__link:hover,
.mtsb .wp-element-button:hover {
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 2px 14px 0 rgba(0, 0, 0, .55);
}
.mtsb .is-style-outline > .wp-block-button__link {
	background: transparent;
	box-shadow: inset 0 0 0 2px currentColor;
	color: inherit;
}

/* --- Bilder / Trenner ---------------------------------------------------- */
.mtsb .wp-block-image { margin-bottom: 0; }
.mtsb .wp-block-image.alignfull img,
.mtsb .wp-block-image.alignwide img { width: 100%; }
.mtsb .wp-block-separator {
	border: 0;
	height: 2px;
	background: var(--mtsb-grad-text-lr);
	opacity: 1;
	width: 100%;
}

/* --- Event-Teaser (mts/event-teaser) ------------------------------------ */
.mtsb .mtsb-teaser {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 300px;
	max-width: 1080px;
	margin-left: auto;
	margin-right: auto;
}
.mtsb .mtsb-teaser + .mtsb-teaser { margin-top: 40px; }
.mtsb .mtsb-teaser.is-image-right .mtsb-teaser__media { order: 2; }
.mtsb .mtsb-teaser__media {
	position: relative;
	overflow: hidden;
	background: linear-gradient(90deg, var(--mtsb-rose) 0%, var(--mtsb-orange) 100%);
	min-height: 220px;
}
.mtsb .mtsb-teaser__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.mtsb .mtsb-teaser.is-fit-contain .mtsb-teaser__img { object-fit: contain; }
.mtsb .mtsb-teaser__body {
	background: var(--mtsb-grad-warm);
	padding: 40px 25px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
}
.mtsb .mtsb-teaser__title { font-size: 24px; line-height: 1; font-weight: 700; color: #fff; }
.mtsb .mtsb-teaser__date,
.mtsb .mtsb-teaser__subtitle { font-size: 16px; line-height: 24px; font-weight: 500; }
.mtsb .mtsb-teaser__body .wp-block-buttons { margin-top: 24px; }
@media (max-width: 767px) {
	.mtsb .mtsb-teaser { grid-template-columns: 1fr; }
	.mtsb .mtsb-teaser.is-image-right .mtsb-teaser__media { order: 0; }
	.mtsb .mtsb-teaser__media { aspect-ratio: 16 / 10; }
}

/* --- Kundenstimmen (mts/testimonials) ------------------------------------ */
.mtsb .mtsb-testimonials { --mtsb-per-view: 3; position: relative; }
.mtsb .mtsb-testimonials__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--mtsb-per-view) - 1) * 20px) / var(--mtsb-per-view));
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: var(--mtsb-pink) transparent;
	padding-bottom: 16px;
	overscroll-behavior-x: contain;
}
.mtsb .mtsb-testimonials__track > * { margin-top: 0 !important; }
@media (max-width: 959px) { .mtsb .mtsb-testimonials__track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 640px) { .mtsb .mtsb-testimonials__track { grid-auto-columns: 85%; } }
.mtsb .mtsb-testimonial {
	scroll-snap-align: start;
	margin: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	text-align: center;
	padding: 10px 10px 0;
}
.mtsb .mtsb-testimonial__quote {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 20px;
	line-height: 24px;
	font-weight: 500;
	font-style: normal;
	color: #000;
}
.mtsb .mtsb-testimonial__cite { font-style: normal; margin: 0; text-align: center; display: flex; flex-direction: column; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--mtsb-text); }
.mtsb .mtsb-testimonial__name { font-weight: 700; }

/* --- Bewertung (mts/rating) ---------------------------------------------- */
.mtsb .mtsb-rating {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 14px;
	line-height: 24px;
	font-weight: 500;
}
.mtsb .mtsb-rating.is-align-center { justify-content: center; }
.mtsb .mtsb-rating.is-align-right { justify-content: flex-end; }
.mtsb .mtsb-rating__badge { width: 60px; height: auto; }
.mtsb .mtsb-rating__stars {
	--mtsb-rating: 5;
	font-size: 20px;
	letter-spacing: 1px;
	line-height: 1;
	background: linear-gradient(90deg, var(--mtsb-orange) calc(var(--mtsb-rating) / 5 * 100%), #ccc calc(var(--mtsb-rating) / 5 * 100%));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--mtsb-orange);
}

/* --- Icon + Text (mts/icon-text) ----------------------------------------- */
.mtsb .mtsb-icon-text {
	display: grid;
	grid-template-columns: 50px 1fr;
	gap: 16px;
	align-items: start;
	font-weight: 300;
}
.mtsb .mtsb-icon-text strong { font-weight: 700; }
.mtsb .mtsb-icon {
	display: block;
	width: 50px;
	height: 50px;
	background: var(--mtsb-pink);
	-webkit-mask: var(--mtsb-icon) center / contain no-repeat;
	mask: var(--mtsb-icon) center / contain no-repeat;
}
.mtsb .mtsb-icon.is-color-orange { background: var(--mtsb-orange); }
.mtsb .mtsb-icon.is-color-gradient { background: var(--mtsb-grad-text-lr); }
.mtsb .mtsb-icon.is-color-white { background: #fff; }

/* --- Farb-/Verlaufs-Presets (Fallback, falls Preset-Klassen fehlen) ------- */
.mtsb .has-mts-section-gradient-background { background: var(--mtsb-grad-section); }
.mtsb .has-mts-banner-gradient-background { background: var(--mtsb-grad-banner); }
.mtsb .has-mts-panel-gradient-background { background: var(--mtsb-grad-panel); }
.mtsb .has-mts-warm-gradient-background { background: var(--mtsb-grad-warm); }

/* --- Bewertung als Zitat (Landingpage-Kopf) ------------------------------ */
.mtsb .mtsb-rating.is-quote { gap: 8px; font-size: 16px; }
.mtsb .mtsb-rating.is-quote .mtsb-rating__stars { font-size: 16px; }
.mtsb .mtsb-rating.is-quote .mtsb-rating__label { font-style: italic; font-weight: 700; color: #000; }

/* --- Box: Verlaufsrahmen + Wellen / Hintergrund Wellen hell -------------- */
.mtsb .is-style-mts-frame-waves {
	border: 10px solid transparent;
	background:
		url(../img/waves-light.svg) 50% 50% / min(45%, 420px) auto no-repeat padding-box,
		linear-gradient(#fff, #fff) padding-box,
		var(--mtsb-grad-panel) border-box;
	padding: 30px;
	color: var(--mtsb-text);
}
.mtsb .is-style-mts-waves-light {
	background: url(../img/waves-light.svg) 70% 30% / min(50%, 520px) auto no-repeat;
}
@media (max-width: 640px) {
	.mtsb .is-style-mts-frame-waves { padding: 20px 16px; }
}

/* --- Box: Beleg ---------------------------------------------------------- */
.mtsb .is-style-mts-receipt {
	background: #fff;
	color: #000;
	padding: 30px;
	box-shadow: 0 0 10px rgba(0, 0, 0, .5);
	transform: rotate(-4deg);
	max-width: 540px;
	margin-left: auto;
	margin-right: auto;
}
.mtsb .is-style-mts-receipt :is(.is-style-mts-script, .is-style-mts-caps, .is-style-mts-display) {
	background: none;
	-webkit-text-fill-color: currentColor;
	color: #000;
}
.mtsb .is-style-mts-receipt .wp-block-separator { background: #000; height: 1px; }
.mtsb .is-style-mts-receipt p { font-size: 16px; line-height: 22px; font-weight: 400; }
@media (max-width: 640px) { .mtsb .is-style-mts-receipt { transform: rotate(-2deg); padding: 24px 18px; } }

/* --- Bild-Kachel (mts/image-tile) ---------------------------------------- */
.mtsb .mtsb-tile {
	position: relative;
	overflow: hidden;
	display: flex;
	padding: 35px;
	background: #222;
	min-height: 200px;
}
.mtsb .mtsb-tile__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.mtsb .mtsb-tile__text {
	position: relative;
	margin: 0;
	color: #fff;
	-webkit-text-fill-color: #fff;
	font-family: var(--mtsb-font);
	font-size: clamp(24px, 2.6vw, 36px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.8px;
	text-transform: uppercase;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
	max-width: 90%;
}
.mtsb .mtsb-tile.is-pos-bottom-left  { align-items: flex-end;   justify-content: flex-start; }
.mtsb .mtsb-tile.is-pos-bottom-right { align-items: flex-end;   justify-content: flex-end; text-align: right; }
.mtsb .mtsb-tile.is-pos-top-left     { align-items: flex-start; justify-content: flex-start; }
.mtsb .mtsb-tile.is-pos-top-right    { align-items: flex-start; justify-content: flex-end; text-align: right; }
.mtsb .mtsb-tile.is-pos-center       { align-items: center;     justify-content: center; text-align: center; }

/* --- Preisliste (mts/price-list) ----------------------------------------- */
.mtsb .mtsb-price-list { display: grid; gap: 14px; }
.mtsb .mtsb-price-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	font-size: 20px;
	line-height: 30px;
}
.mtsb .mtsb-price-item__value { text-align: right; white-space: nowrap; flex-shrink: 0; }
.mtsb .mtsb-price-item.is-emphasis { font-weight: 700; }
/* auf Verlaufsflächen: Referenz-Liste (Versalien links) */
.mtsb :is(.is-style-mts-section-gradient, .is-style-mts-section-waves, .is-style-mts-section-banner, .is-style-mts-panel) .mtsb-price-list { gap: 20px; }
.mtsb :is(.is-style-mts-section-gradient, .is-style-mts-section-waves, .is-style-mts-section-banner, .is-style-mts-panel) .mtsb-price-item__label {
	font-weight: 700;
	text-transform: uppercase;
}
.mtsb :is(.is-style-mts-section-gradient, .is-style-mts-section-waves, .is-style-mts-section-banner, .is-style-mts-panel) .mtsb-price-item__value { text-transform: uppercase; font-weight: 500; }
/* im Beleg */
.mtsb .is-style-mts-receipt .mtsb-price-list { gap: 4px; }
.mtsb .is-style-mts-receipt .mtsb-price-item { font-size: 18px; color: #000; }
@media (max-width: 640px) {
	.mtsb .mtsb-price-item { font-size: 17px; line-height: 24px; }
	.mtsb .mtsb-price-item__value { white-space: normal; }
}

/* --- Funktionstabelle (mts/feature-table) -------------------------------- */
.mtsb .mtsb-ftable { --mtsb-cols: 2; font-size: 16px; line-height: 24px; color: #000; }
.mtsb :is(.mtsb-ftable__head, .mtsb-ftable__row) {
	display: grid;
	grid-template-columns: 1fr repeat(var(--mtsb-cols), 100px);
	align-items: center;
}
.mtsb .mtsb-ftable__head { padding: 0 20px 30px; min-height: 110px; align-items: end; }
.mtsb .mtsb-ftable__colhead { display: flex; justify-content: center; }
.mtsb .mtsb-ftable__colhead > span {
	display: inline-block;
	transform: rotate(-45deg);
	transform-origin: center;
	white-space: normal;
	width: 80px;
	text-align: center;
	font-weight: 500;
	line-height: 1.2;
}
.mtsb .mtsb-ftable__row {
	padding: 32px 20px;
	border-bottom: 3px dotted var(--mtsb-light);
	margin: 0 !important;
}
.mtsb .mtsb-ftable__label { font-weight: 500; padding-right: 16px; }
.mtsb .mtsb-ftable__cell { display: flex; justify-content: center; }
.mtsb .mtsb-ftable__icon {
	display: block;
	width: 16px;
	height: 16px;
	background: var(--mtsb-grad-text-lr);
	-webkit-mask: url(../img/check-circle.svg) center / contain no-repeat;
	mask: url(../img/check-circle.svg) center / contain no-repeat;
}
.mtsb .mtsb-ftable__cell.is-no .mtsb-ftable__icon {
	background: var(--mtsb-text);
	-webkit-mask-image: url(../img/cross-circle.svg);
	mask-image: url(../img/cross-circle.svg);
}
.mtsb .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
@media (max-width: 640px) {
	.mtsb :is(.mtsb-ftable__head, .mtsb-ftable__row) { grid-template-columns: 1fr repeat(var(--mtsb-cols), 56px); }
	.mtsb .mtsb-ftable__row { padding: 20px 8px; }
	.mtsb .mtsb-ftable__head { padding: 0 8px 20px; }
	.mtsb .mtsb-ftable__colhead > span { width: 64px; font-size: 13px; }
}

/* --- Fließtext / Rechtstexte (core/group .is-style-mts-prose) ------------ */
.mtsb .is-style-mts-prose { font-size: 16px; line-height: 24px; font-weight: 400; }
.mtsb .is-style-mts-prose > * + * { margin-top: 0; }
.mtsb .is-style-mts-prose > :is(h2, h3, h4) { margin-top: 16px; }
.mtsb .is-style-mts-prose > :is(ul, ol) { margin-top: 8px; margin-bottom: 8px; }
.mtsb .is-style-mts-prose :is(h2, h3, h4) {
	font-size: 24px;
	line-height: 1.2;
	font-weight: 700;
	text-transform: uppercase;
	background-image: var(--mtsb-grad-text-lr);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	width: fit-content;
	max-width: 100%;
}
.mtsb .is-style-mts-prose :is(h3, h4) { font-size: 18px; }
.mtsb .is-style-mts-prose a { color: var(--mtsb-pink); }

/* --- Download-Liste (core/list .is-style-mts-download) ------------------- */
.mtsb ul.is-style-mts-download { list-style: none; padding: 0; display: grid; gap: 12px; }
.mtsb ul.is-style-mts-download > li { position: relative; padding-left: 32px; }
.mtsb ul.is-style-mts-download > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 24px;
	height: 24px;
	background: var(--mtsb-pink);
	-webkit-mask: url(../img/icon-download.svg) center / contain no-repeat;
	mask: url(../img/icon-download.svg) center / contain no-repeat;
}
.mtsb ul.is-style-mts-download a { color: var(--mtsb-pink); font-weight: 600; }

/* Beleg innerhalb von Verlaufsflächen: keine Versalien/Weiß-Regeln */
.mtsb .is-style-mts-receipt .mtsb-price-item__label,
.mtsb .is-style-mts-receipt .mtsb-price-item__value { text-transform: none; font-weight: 400; color: #000; }
.mtsb .is-style-mts-receipt .mtsb-price-item.is-emphasis :is(.mtsb-price-item__label, .mtsb-price-item__value) { font-weight: 700; }

/* --- Tabellen in HTML-Blöcken (z. B. Cookie-Tabelle) --------------------- */
.mtsb .mtsb-table { overflow-x: auto; font-size: 14px; line-height: 20px; }
.mtsb .mtsb-table table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; }
.mtsb .mtsb-table :is(th, td) { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--mtsb-light); }
.mtsb .mtsb-table th[scope="col"] { font-weight: 700; background: #f6f6f6; }
.mtsb .mtsb-table h2 { font-size: 24px; line-height: 1.2; font-weight: 700; text-transform: uppercase; margin: 16px 0 8px; }
.mtsb .mtsb-table h4 { font-size: 16px; font-weight: 700; margin: 8px 0 0; color: var(--mtsb-pink); }

/* ==========================================================================
   Tutorials (aus TYPO3 übernommen – nur das Layout, Werte gemessen)
   ========================================================================== */

/* --- Überschrift „Verlauf“ (core/heading .is-style-mts-gradient) --------- */
.mtsb .is-style-mts-gradient:not(.has-text-color) {
	background-image: var(--mtsb-grad-text);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--mtsb-orange);
	width: fit-content;
	max-width: 100%;
}
.mtsb :is(.is-style-mts-section-gradient, .is-style-mts-section-waves, .is-style-mts-section-banner, .is-style-mts-panel) .is-style-mts-gradient {
	background: none;
	-webkit-text-fill-color: currentColor;
	color: #fff;
}

/* --- Trenner „Punktlinie“ (core/separator .is-style-mts-dotted) ---------- */
.mtsb .wp-block-separator.is-style-mts-dotted {
	height: 0;
	background: none;
	border: 0;
	border-bottom: 4px dotted var(--mtsb-orange);
}

/* --- Video (core/video) --------------------------------------------------- */
.mtsb .wp-block-video { margin: 0; }
.mtsb .wp-block-video video { display: block; width: 100%; height: auto; background: #000; }
.mtsb .wp-block-video figcaption,
.mtsb .wp-block-image figcaption { margin: 6px 0 0; font-size: 16px; line-height: 24px; font-style: normal; text-align: left; }

/* --- Unterseiten-Liste (mts/subpages) ------------------------------------- */
.mtsb ul.mtsb-subpages { list-style: none; padding: 0; margin: 0; font-size: 16px; line-height: 24px; }
.mtsb ul.mtsb-subpages a { color: inherit; text-decoration: none; }
.mtsb ul.mtsb-subpages a:hover { color: var(--mtsb-pink); text-decoration: underline; }
.mtsb ul.mtsb-subpages .is-draft a { font-style: italic; opacity: .6; }
.mtsb .mtsb-subpages.is-empty { font-size: 14px; font-style: italic; opacity: .6; }

/* --- Gruppe „Tutorial“ (core/group .is-style-mts-tutorial) ---------------- */
/* Typografie und Rhythmus der Tutorial-Seiten: 2 Spalten (Text | Medien),
   Abschnitte enden mit einer Punktlinie. */
.mtsb .is-style-mts-tutorial { font-size: 18px; line-height: 27px; }
.mtsb .is-style-mts-tutorial > * + * { margin-top: 32px; }
.mtsb .is-style-mts-tutorial .wp-block-columns { gap: 30px; }

.mtsb .is-style-mts-tutorial h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.2; }
.mtsb .is-style-mts-tutorial :is(h2, h3, h4) { font-size: 24px; line-height: 1.2; }
.mtsb .is-style-mts-tutorial h2:not([class*="is-style-"]) { text-transform: uppercase; line-height: 1.5; }
.mtsb .is-style-mts-tutorial h4:not([class*="is-style-"]) { font-size: 20px; }
.mtsb .is-style-mts-tutorial h2.is-style-mts-caps { font-size: 24px; font-weight: 700; letter-spacing: normal; line-height: 1.2; }
.mtsb .is-style-mts-tutorial :is(h1, h2, h3) a { text-decoration: none; }

/* Abstände in den Spalten */
.mtsb .is-style-mts-tutorial .wp-block-column > * + * { margin-top: 16px; }
.mtsb .is-style-mts-tutorial .wp-block-column > :is(h1, h2, h3, h4) + p { margin-top: 4px; }
.mtsb .is-style-mts-tutorial .wp-block-column > * + :is(h2, h3, h4) { margin-top: 24px; }
.mtsb .is-style-mts-tutorial .wp-block-column > * + :is(ul, ol),
.mtsb .is-style-mts-tutorial .wp-block-column > :is(ul, ol) + * { margin-top: 30px; }
.mtsb .is-style-mts-tutorial .wp-block-column > .wp-block-separator { margin-top: 24px; }
.mtsb .is-style-mts-tutorial .wp-block-column > :is(.wp-block-image, .wp-block-video) + :is(.wp-block-image, .wp-block-video) { margin-top: 30px; }
.mtsb .is-style-mts-tutorial .wp-block-column > .wp-block-image + :is(h2, h3) { margin-top: 24px; }

/* Listen: Häkchen wie im Bestand (Abstand 10px), Unterlisten schlicht */
.mtsb .is-style-mts-tutorial ul.is-style-mts-check { gap: 10px; }
.mtsb .is-style-mts-tutorial ul.is-style-mts-check > li::before { top: 3px; }
.mtsb .is-style-mts-tutorial ul.has-normal-font-size > li::before { top: 2px; }
.mtsb .is-style-mts-tutorial li > :is(ul, ol) { margin-top: 8px; }

/* Links im Fließtext */
.mtsb .is-style-mts-tutorial :is(p, li) a { color: var(--mtsb-pink); font-weight: 700; text-decoration: none; }
.mtsb .is-style-mts-tutorial :is(p, li) a:hover { text-decoration: underline; }
.mtsb .is-style-mts-tutorial ul.mtsb-subpages a { color: inherit; font-weight: 400; }
.mtsb .is-style-mts-tutorial ul.mtsb-subpages a:hover { color: var(--mtsb-pink); }

/* Screenshots max. 600px wie im Bestand */
.mtsb .is-style-mts-tutorial .wp-block-image img { width: 100%; max-width: 600px; }
/* Versalien-Überschriften verlaufen in den Tutorials Orange → Pink (wie „Verlauf“) */
.mtsb .is-style-mts-tutorial .is-style-mts-caps:not(.has-text-color) { background-image: var(--mtsb-grad-text); }
