/* Course finder [tt_kursfinder] – own tt-* classes, colours only via --tt-color-*. */

/* Ubuntu, bundled locally (no Google Fonts), licence in ../fonts/ubuntu-LICENSE.txt. */
@font-face {
	font-family: "TT Finder Ubuntu";
	src: url("../fonts/ubuntu-latin-500-normal.woff2") format("woff2");
	font-weight: 400 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "TT Finder Ubuntu";
	src: url("../fonts/ubuntu-latin-700-normal.woff2") format("woff2");
	font-weight: 600 700;
	font-style: normal;
	font-display: swap;
}

.tt-finder {
	--tt-finder-soft: var(--tt-color-surface-muted, #f7f4f6);
	--tt-finder-bg: var(--tt-color-surface, #ffffff);
	box-sizing: border-box;
	max-width: 980px;
	margin: 24px auto;
	padding: 28px 20px 32px;
	border-radius: 16px;
	background: var(--tt-color-surface, #ffffff);
	color: var(--tt-color-text, #242124);
	box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
	font-family: "TT Finder Ubuntu", "Ubuntu", system-ui, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	overflow-wrap: break-word;
}

.tt-finder *,
.tt-finder *::before,
.tt-finder *::after {
	box-sizing: border-box;
}

/* Themes style headings and buttons: keep the finder font. */
.tt-finder h2,
.tt-finder h3,
.tt-finder p,
.tt-finder button,
.tt-finder a {
	font-family: inherit;
}

/* FX (also Jugendliche on TT): no own background, page colours show through.
 * Texts outside tiles/cards follow the page text colour; gold only as fill. */
.tt-finder.tt-brand-fx {
	--tt-color-text-muted: currentColor;
	--tt-color-border: color-mix(in srgb, currentColor 35%, transparent);
	--tt-color-brand: #f1a61e;
	--tt-color-brand-contrast: #000000;
	--tt-color-accent: #f1a61e;
	--tt-color-accent-contrast: #000000;
	--tt-finder-soft: color-mix(in srgb, currentColor 10%, transparent);
	background: transparent;
	box-shadow: none;
	color: inherit;
}

.tt-finder.tt-brand-fx .tt-back,
.tt-finder.tt-brand-fx .tt-fbox summary,
.tt-finder.tt-brand-fx .tt-desc summary,
.tt-finder.tt-brand-fx .tt-slot__all summary,
.tt-finder.tt-brand-fx .tt-hl li::before,
.tt-finder.tt-brand-fx .tt-more-read a,
.tt-finder.tt-brand-fx .tt-desc__text a,
.tt-finder.tt-brand-fx .tt-detail .tt-badge {
	color: inherit;
}

/* FX brand (marke="fx"): own page colour like the FX timetable, so it also works on white pages.
 * Black, or grey with the ttplugin setting "FX-Hintergrund: Grau" (body class tt-fx-grau). */
.tt-finder.tt-brand-fx[data-marke="fx"] {
	--tt-finder-bg: #000000;
	background: #000000;
	color: #ffffff;
}

.tt-fx-grau .tt-finder.tt-brand-fx[data-marke="fx"] {
	--tt-finder-bg: #7c7676;
	background: #7c7676;
}

/* FX tiles, choices, chips, cards, slots: black / gold (setting "FX-Hintergrund"). */
.tt-brand-fx .tt-tile,
.tt-brand-fx .tt-finder-link,
.tt-brand-fx .tt-choice,
.tt-brand-fx .tt-chip,
.tt-brand-fx .tt-card,
.tt-brand-fx .tt-slot {
	--tt-color-surface: #000000;
	--tt-color-text: #ffffff;
	--tt-color-text-muted: #bbbdc0;
	--tt-color-border: #333333;
	--tt-color-brand: #f1a61e;
	--tt-finder-soft: rgba(241, 166, 30, .14);
}

/* Grey (body class tt-fx-grau from ttplugin): gold text is not readable on grey, so white. */
.tt-fx-grau .tt-brand-fx .tt-tile,
.tt-fx-grau .tt-brand-fx .tt-finder-link,
.tt-fx-grau .tt-brand-fx .tt-choice,
.tt-fx-grau .tt-brand-fx .tt-chip,
.tt-fx-grau .tt-brand-fx .tt-card,
.tt-fx-grau .tt-brand-fx .tt-slot {
	--tt-color-surface: #7c7676;
	--tt-color-text-muted: #ffffff;
	--tt-color-border: rgba(255, 255, 255, .35);
	--tt-color-brand: #ffffff;
	--tt-finder-soft: rgba(0, 0, 0, .2);
}

.tt-finder.tt-brand-fx .tt-tile,
.tt-finder.tt-brand-fx .tt-finder-link,
.tt-finder.tt-brand-fx .tt-choice,
.tt-finder.tt-brand-fx .tt-chip:not(.is-on),
.tt-finder.tt-brand-fx .tt-card,
.tt-finder.tt-brand-fx .tt-slot {
	color: var(--tt-color-text);
}

.tt-finder__title {
	margin: 0 0 6px;
	color: inherit;
	font-size: clamp(24px, 4vw, 34px);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

.tt-finder__title:focus {
	outline: none;
}

.tt-brand-fx .tt-finder__title {
	letter-spacing: .02em;
	text-transform: uppercase;
}

.tt-finder__sub {
	margin: 0 0 22px;
	color: var(--tt-color-text-muted, #707070);
	text-align: center;
}

.tt-finder__steps {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 0 0 20px;
}

.tt-finder__dot {
	width: 34px;
	height: 5px;
	border-radius: 3px;
	background: var(--tt-color-border, #d9d1d6);
}

.tt-finder__dot.is-on {
	background: var(--tt-color-accent, #fce008);
}

.tt-finder__q {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 700;
	text-align: center;
}

/* Step 1: square tiles side by side. */
.tt-tiles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	max-width: 920px;
	margin: 0 auto;
}

.tt-tiles--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-width: 690px;
}

.tt-tiles--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 460px;
}

.tt-tiles--1 {
	grid-template-columns: minmax(0, 1fr);
	max-width: 230px;
}

.tt-finder .tt-tile {
	display: flex;
	flex-direction: column;
	min-height: 44px;
	padding: 0 0 14px;
	overflow: hidden;
	border: 2px solid var(--tt-color-border, #d9d1d6);
	border-radius: 14px;
	background: var(--tt-color-surface, #ffffff);
	color: inherit;
	text-align: center;
	text-decoration: none;
}

.tt-finder .tt-tile:hover,
.tt-finder .tt-tile:focus-visible {
	border-color: var(--tt-color-accent, #fce008);
	outline: none;
}

.tt-finder .tt-tile:focus-visible {
	box-shadow: 0 0 0 3px var(--tt-color-brand, #851159);
}

.tt-tile__img {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	margin-bottom: 10px;
	background: var(--tt-finder-soft);
	color: var(--tt-color-brand, #851159);
}

.tt-tile__img svg {
	width: 42%;
	height: auto;
}

.tt-tile__img.has-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tt-tile__name {
	display: block;
	padding: 0 4px;
	font-size: 18px;
	font-weight: 700;
}

.tt-tile__hint {
	padding: 0 6px;
	color: var(--tt-color-text-muted, #707070);
	font-size: 13px;
}

/* Link bar below the tiles (M40): events, voucher, WhatsApp. */
.tt-finder__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	max-width: 920px;
	margin: 20px auto 0;
}

.tt-finder .tt-finder-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 16px;
	border: 2px solid var(--tt-color-border, #d9d1d6);
	border-radius: 999px;
	background: var(--tt-color-surface, #ffffff);
	color: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.25;
	text-decoration: none;
}

.tt-finder .tt-finder-link:hover,
.tt-finder .tt-finder-link:focus-visible {
	border-color: var(--tt-color-accent, #fce008);
	outline: none;
}

.tt-finder .tt-finder-link:focus-visible {
	box-shadow: 0 0 0 3px var(--tt-color-brand, #851159);
}

.tt-finder-link__icon {
	display: inline-flex;
	flex: none;
	width: 22px;
	height: 22px;
	color: var(--tt-color-brand, #851159);
}

.tt-finder-link__icon svg {
	width: 100%;
	height: 100%;
	stroke-width: 4.5;
}

.tt-finder-link__arrow {
	color: var(--tt-color-brand, #851159);
	font-size: 18px;
	line-height: 1;
}

/* Dance events (M40): more links of a date (details, table booking, playlist …). */
.tt-row__links {
	display: flex;
	flex-basis: 100%;
	flex-wrap: wrap;
	gap: 0 16px;
	font-size: 14px;
}

.tt-finder .tt-row__links a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	color: var(--tt-color-brand, #851159);
	font-weight: 500;
	text-decoration: none;
}

.tt-finder .tt-row__links a:hover,
.tt-finder .tt-row__links a:focus-visible {
	text-decoration: underline;
}

/* Step 2: level choice (couples). */
.tt-choices {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	max-width: 820px;
	margin: 0 auto;
}

.tt-finder .tt-choice {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-height: 56px;
	padding: 12px 16px;
	border: 2px solid var(--tt-color-border, #d9d1d6);
	border-radius: 12px;
	background: var(--tt-color-surface, #ffffff);
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.tt-finder .tt-choice:hover,
.tt-finder .tt-choice:focus-visible {
	border-color: var(--tt-color-brand, #851159);
	outline: none;
}

.tt-choice__sub {
	color: var(--tt-color-text-muted, #707070);
	font-size: 13px;
}

.tt-finder .tt-back {
	min-height: 44px;
	margin: 0 0 4px;
	padding: 8px 0;
	border: 0;
	background: none;
	color: var(--tt-color-brand, #851159);
	font: inherit;
	cursor: pointer;
}

/* "‹ Zurück" and "Neustart" in one row. */
.tt-finder .tt-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	align-items: center;
}

.tt-finder .tt-restart {
	color: var(--tt-color-text-muted, #707070);
	text-decoration: underline;
}

/* Status texts. */
.tt-finder__note,
.tt-finder__status {
	margin: 12px 0;
	color: var(--tt-color-text-muted, #707070);
	text-align: center;
}

/* Loading: small spinner in front of the text; keeps room so the page footer does not move up. */
.tt-finder__loading {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	justify-content: center;
	min-height: 50vh;
	padding-top: 12px;
}

.tt-spinner {
	width: 20px;
	height: 20px;
	flex: none;
	border: 3px solid var(--tt-color-border, #d9d1d6);
	border-top-color: var(--tt-color-brand, #851159);
	border-radius: 50%;
	animation: tt-finder-spin .8s linear infinite;
}

@keyframes tt-finder-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tt-spinner {
		animation-duration: 2.4s;
	}
}

.tt-area {
	margin: 0 0 20px;
}

.tt-area__title {
	margin: 0 0 8px;
	padding: 0 0 4px;
	border-bottom: 2px solid var(--tt-color-accent, #fce008);
	color: inherit;
	font-size: 18px;
	font-weight: 700;
}

.tt-finder .tt-retry {
	min-height: 44px;
	padding: 8px 16px;
	border: 1px solid var(--tt-color-brand, #851159);
	border-radius: 8px;
	background: var(--tt-color-brand, #851159);
	color: var(--tt-color-brand-contrast, #ffffff);
	font: inherit;
	cursor: pointer;
}

.tt-finder-notice {
	padding: 12px 16px;
	border: 1px solid var(--tt-color-warning, #8a4300);
	color: var(--tt-color-warning, #8a4300);
}

/* Step 3: area chips, filters, cards. */
.tt-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
}

.tt-bar__label {
	width: 100%;
	color: var(--tt-color-text-muted, #707070);
	font-size: 13px;
}

.tt-finder .tt-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid var(--tt-color-border, #d9d1d6);
	border-radius: 22px;
	background: var(--tt-color-surface, #ffffff);
	color: inherit;
	font: inherit;
	font-size: 14px;
	line-height: 1.2;
	cursor: pointer;
}

.tt-finder .tt-chip:hover,
.tt-finder .tt-chip:focus-visible {
	border-color: var(--tt-color-brand, #851159);
	outline: none;
}

.tt-finder .tt-chip.is-on {
	border-color: var(--tt-color-accent, #fce008);
	background: var(--tt-color-accent, #fce008);
	color: var(--tt-color-accent-contrast, #242124);
	font-weight: 700;
}

.tt-brand-fx .tt-chip.is-on {
	color: var(--tt-color-brand-contrast, #000000);
}

.tt-chip__img {
	width: 28px;
	height: 28px;
	margin: -4px 0 -4px -8px;
	border-radius: 14px;
	object-fit: cover;
}

/* M36: chip rows, area photos and grouping switch only change the mobile view. */
.tt-bar__chips {
	display: contents;
}

.tt-bar--areas .tt-chip__img,
.tt-finder .tt-nav--bottom {
	display: none;
}

.tt-area__img {
	width: 32px;
	height: 32px;
	margin: -4px 8px -4px 0;
	border-radius: 16px;
	object-fit: cover;
	vertical-align: middle;
}

.tt-fbox {
	margin: 4px 0 16px;
	border-top: 1px solid var(--tt-color-border, #d9d1d6);
	border-bottom: 1px solid var(--tt-color-border, #d9d1d6);
}

.tt-fbox summary {
	min-height: 44px;
	padding: 12px 0;
	color: var(--tt-color-brand, #851159);
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.tt-fbox summary::-webkit-details-marker {
	display: none;
}

.tt-fbox summary::after {
	content: " ▾";
}

.tt-fbox[open] summary::after {
	content: " ▴";
}

.tt-filters {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 16px;
	padding: 0 0 8px;
}

.tt-filters .tt-bar--wide {
	grid-column: 1 / -1;
}

.tt-finder .tt-range {
	width: 100%;
	max-width: 260px;
	min-height: 44px;
	accent-color: var(--tt-color-brand, #851159);
}

.tt-range__out {
	min-width: 70px;
	font-weight: 700;
}

.tt-note {
	margin: 0 0 12px;
	padding: 10px 14px;
	border-left: 4px solid var(--tt-color-accent, #fce008);
	background: var(--tt-finder-soft);
	font-size: 14px;
}

.tt-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 12px;
}

.tt-card {
	position: relative;
	display: flex;
	min-height: 160px;
	overflow: hidden;
	/* ttplugin also has .tt-card (padding 24px): only the finder's own spacing. */
	padding: 0;
	border: 1px solid var(--tt-color-border, #d9d1d6);
	border-radius: 12px;
	background: var(--tt-color-surface, #ffffff);
}

.tt-card__img {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 42%;
	background-position: center top;
	background-size: cover;
	-webkit-mask-image: linear-gradient(to left, #000 35%, transparent 100%);
	mask-image: linear-gradient(to left, #000 35%, transparent 100%);
}

.tt-card__txt {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: 7px;
}

.tt-card.has-img .tt-card__txt > :not(.tt-btn):not(.tt-card__cta):not(.tt-card__more) {
	max-width: 72%;
}

/* Only one date: direct booking button, details as a quiet text link below. */
.tt-finder .tt-card__cta {
	margin-top: auto;
}

.tt-finder .tt-card__more {
	min-height: 32px;
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--tt-color-text-muted, #707070);
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
}

.tt-finder .tt-card__more:hover,
.tt-finder .tt-card__more:focus-visible {
	color: inherit;
}

.tt-card__name {
	margin: 0;
	color: inherit;
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
}

.tt-card__meta,
.tt-card__tr {
	margin: 0;
	color: var(--tt-color-text-muted, #707070);
	font-size: 13px;
}

.tt-card__scope {
	margin: 0;
	font-size: 14px;
}

.tt-badge {
	padding: 3px 8px;
	border-radius: 6px;
	background: var(--tt-finder-soft);
	color: var(--tt-color-brand, #851159);
	font-size: 12px;
	font-weight: 700;
}

.tt-finder .tt-btn {
	min-height: 44px;
	margin-top: auto;
	padding: 10px 14px;
	border: 1px solid var(--tt-color-brand, #851159);
	border-radius: 10px;
	background: var(--tt-color-surface, #ffffff);
	color: var(--tt-color-brand, #851159);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
	cursor: pointer;
}

.tt-finder .tt-btn:hover,
.tt-finder .tt-btn:focus-visible {
	background: var(--tt-finder-soft);
	outline: none;
}

.tt-finder .tt-btn:focus-visible,
.tt-finder .tt-chip:focus-visible {
	box-shadow: 0 0 0 3px var(--tt-color-brand, #851159);
}

/* Step 4: detail. */
.tt-detail {
	position: relative;
	min-height: 120px;
	margin: 0 0 8px;
	overflow: hidden;
	border-radius: 12px;
}

.tt-detail__img {
	position: absolute;
	top: 0;
	right: 0;
	width: var(--tt-finder-img);
	aspect-ratio: 1 / 1;
	background-position: center;
	background-size: cover;
	-webkit-mask-image: linear-gradient(to left, #000 35%, transparent 100%), linear-gradient(to top, transparent 0, #000 18%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(to left, #000 35%, transparent 100%), linear-gradient(to top, transparent 0, #000 18%);
	mask-composite: intersect;
}

/* Detail page: images are square (1080 x 1080), the box is 1:1 and the text block is at least as tall
 * as the image (size in % of the box width via container units). */
.tt-detail.has-img {
	container-type: inline-size;
}

.tt-detail.has-img .tt-detail__head {
	min-height: var(--tt-finder-img);
}

.tt-detail.has-img {
	--tt-finder-img: min(40cqw, 300px);
}

.tt-detail__head {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.tt-detail.has-img .tt-detail__head > * {
	max-width: 70%;
}

.tt-detail__name {
	margin: 0;
	color: inherit;
	font-family: inherit;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
}

.tt-detail__facts {
	margin: 0;
	font-size: 16px;
}

.tt-notes {
	margin: 0;
	padding-left: 18px;
	color: var(--tt-color-text-muted, #707070);
	font-size: 14px;
}

.tt-hl {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tt-hl li {
	position: relative;
	padding-left: 22px;
}

.tt-hl li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--tt-color-brand, #851159);
	font-weight: 700;
}

.tt-desc {
	margin: 0 0 4px;
}

/* Description in the detail head: about 6 lines, "… (mehr)" at the end opens the rest. */
.tt-desc--clamp {
	position: relative;
	max-height: calc(1.6em * 6);
	overflow: hidden;
}

.tt-desc__more {
	position: absolute;
	right: 0;
	bottom: 0;
	padding: 0 0 0 2.5em;
	border: 0;
	background: linear-gradient(to right, transparent, var(--tt-finder-bg) 2em);
	color: var(--tt-color-text-muted, #707070);
	font: inherit;
	line-height: 1.6;
	cursor: pointer;
}

.tt-desc__more:hover,
.tt-desc__more:focus-visible {
	color: inherit;
	text-decoration: underline;
}

.tt-desc > :first-child {
	margin-top: 0;
}

.tt-desc > :last-child {
	margin-bottom: 0;
}

.tt-desc summary,
.tt-slot__all summary {
	min-height: 44px;
	padding: 10px 0;
	color: var(--tt-color-brand, #851159);
	font-weight: 700;
	cursor: pointer;
}

.tt-desc__text {
	max-width: 70ch;
	line-height: 1.6;
}

.tt-month {
	margin: 16px 0 4px;
	padding-bottom: 3px;
	border-bottom: 2px solid var(--tt-color-accent, #fce008);
	color: inherit;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
}

.tt-rows {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tt-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--tt-color-border, #d9d1d6);
	font-size: 14px;
}

.tt-row__when {
	min-width: 150px;
}

.tt-row__info {
	flex: 1 1 220px;
	color: var(--tt-color-text-muted, #707070);
}

.tt-row.is-full .tt-row__when,
.tt-row.is-full .tt-row__info {
	opacity: .55;
}

.tt-row__full {
	color: var(--tt-color-text-muted, #707070);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
}

.tt-finder .tt-cta {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-top: 8px;
	/* Same look as .tt-btn ("Alle Termine"); colours as the ttplugin "Anmelden" button (tt-button--secondary). */
	padding: 10px 14px;
	border: 1px solid var(--tt-color-brand, #851159);
	border-radius: 10px;
	background: var(--tt-color-surface, #ffffff);
	color: var(--tt-color-brand, #851159);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
}

.tt-finder .tt-cta:hover {
	filter: brightness(.92);
	text-decoration: none;
}

.tt-row .tt-cta {
	margin-top: 0;
}

.tt-finder .tt-cta:focus-visible {
	outline: 3px solid var(--tt-color-brand, #851159);
	outline-offset: 2px;
}

.tt-slots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 12px;
	margin: 12px 0;
}

.tt-slot {
	position: relative;
	min-height: 178px;
	padding: 14px;
	overflow: hidden;
	border: 1px solid var(--tt-color-border, #d9d1d6);
	border-radius: 10px;
	background: var(--tt-color-surface, #ffffff);
}

/* Group cards: image strip like the list cards (.tt-card__img), at most as tall as a list card.
 * Taller boxes keep the image size; it then fades out at the bottom (fade lies outside smaller boxes). */
.tt-slot__img {
	position: absolute;
	top: 0;
	right: 0;
	width: 42%;
	height: min(100%, 240px);
	background-position: center top;
	background-size: cover;
	-webkit-mask-image: linear-gradient(to left, #000 35%, transparent 100%), linear-gradient(to bottom, #000 200px, transparent 240px);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(to left, #000 35%, transparent 100%), linear-gradient(to bottom, #000 200px, transparent 240px);
	mask-composite: intersect;
}

.tt-slot__txt {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}

.tt-slot.has-img .tt-slot__txt {
	max-width: 68%;
}

.tt-slot__time {
	color: var(--tt-color-brand, #851159);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
}

.tt-slot__sub,
.tt-slot__loc {
	font-size: 14px;
}

.tt-slot__loc,
.tt-slot__st {
	color: var(--tt-color-text-muted, #707070);
}

.tt-slot__st {
	margin-top: 6px;
	font-size: 13px;
}

.tt-slot__trainer {
	margin-top: 6px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.tt-slot__more {
	display: flex;
	flex-wrap: wrap;
	gap: 0 14px;
	margin-top: 4px;
}

.tt-slot__more a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--tt-color-brand, #851159);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.tt-slot.is-full .tt-slot__txt,
.tt-slot.is-full .tt-slot__img {
	opacity: .55;
}

.tt-slot__band {
	position: absolute;
	z-index: 2;
	top: 20px;
	right: -34px;
	padding: 3px 44px;
	transform: rotate(-12deg);
	background: var(--tt-color-text-muted, #707070);
	color: var(--tt-color-surface, #ffffff);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.tt-brand-fx .tt-slot__txt {
	text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}

.tt-brand-fx .tt-cta {
	text-shadow: none;
}

.tt-more-read {
	margin: 16px 0 0;
}

.tt-more-read a,
.tt-desc__text a {
	color: var(--tt-color-brand, #851159);
	font-weight: 700;
}

@media (max-width: 782px) {
	.tt-finder {
		margin: 0;
		padding: 20px 16px;
		border-radius: 0;
		box-shadow: none;
	}

	.tt-tiles {
		gap: 8px;
	}

	.tt-tile__name {
		font-size: 15px;
	}

	.tt-tile__hint {
		font-size: 12px;
	}

	.tt-choices {
		grid-template-columns: minmax(0, 1fr);
	}

	.tt-filters {
		grid-template-columns: minmax(0, 1fr);
	}

	/* M36d: compact on mobile (full width is set by tt-finder.js). */
	.tt-finder {
		max-width: none;
		padding: 8px 12px 16px;
	}

	.tt-finder__title {
		font-size: 20px;
	}

	.tt-finder__sub {
		margin-bottom: 10px;
		font-size: 14px;
	}

	.tt-finder__steps {
		margin-bottom: 10px;
	}

	.tt-finder__q {
		margin-bottom: 8px;
		font-size: 17px;
	}

	.tt-bar {
		gap: 6px;
		margin-bottom: 8px;
	}

	.tt-finder .tt-chip {
		min-height: 40px;
		padding: 6px 12px;
	}

	.tt-fbox summary {
		min-height: 40px;
		padding: 8px 0;
	}

	.tt-area {
		margin-bottom: 14px;
	}

	.tt-cards {
		gap: 6px;
	}

	/* M36: smaller head after step 1. */
	.tt-finder--started .tt-finder__sub,
	.tt-finder--started .tt-finder__steps {
		display: none;
	}

	.tt-finder--started .tt-finder__title {
		margin-bottom: 6px;
		font-size: 18px;
	}

	/* Chips in one row to swipe, to the screen edge. */
	.tt-bar__chips {
		display: flex;
		flex-wrap: nowrap;
		gap: 8px;
		width: calc(100% + 24px);
		margin: 0 -12px;
		padding: 0 12px 2px;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.tt-bar__chips::-webkit-scrollbar {
		display: none;
	}

	.tt-bar__chips .tt-chip {
		flex: none;
		white-space: nowrap;
	}

	.tt-bar--areas .tt-chip__img {
		display: block;
	}

	/* Area chips stay at the top while scrolling (offset for a fixed theme header via --tt-finder-sticky-top). */
	.tt-bar--areas {
		position: sticky;
		top: var(--tt-finder-sticky-top, 0px);
		z-index: 5;
		margin: 0 -12px 8px;
		padding: 6px 12px 8px;
		background: var(--tt-finder-bg);
	}

	/* List: "Zurück" / "Neustart" below the cards. */
	.tt-finder--list .tt-nav {
		display: none;
	}

	.tt-finder--list .tt-nav--bottom {
		display: flex;
		margin-top: 8px;
	}

	.tt-finder .tt-order .tt-chip {
		min-height: 40px;
		padding: 6px 12px;
		font-size: 13px;
	}

	.tt-fbox__names {
		display: none;
	}

	.tt-fbox {
		margin: 0 0 12px;
	}

	/* Cards as image grid: photo 1:1 on top, text below. */
	.tt-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}

	.tt-card {
		flex-direction: column;
		min-height: 0;
	}

	.tt-card__img {
		position: static;
		width: 100%;
		aspect-ratio: 1 / 1;
		background-position: center;
		-webkit-mask-image: none;
		mask-image: none;
	}

	.tt-card.has-img .tt-card__txt > :not(.tt-btn):not(.tt-card__cta):not(.tt-card__more) {
		max-width: none;
	}

	.tt-card__txt {
		gap: 4px;
		padding: 8px;
	}

	.tt-card__name {
		font-size: 15px;
	}

	.tt-badge {
		padding: 2px 6px;
		font-size: 11px;
	}

	.tt-card__meta,
	.tt-card__tr {
		font-size: 12px;
	}

	.tt-card__scope {
		font-size: 13px;
	}

	.tt-finder .tt-card .tt-btn,
	.tt-finder .tt-card__cta {
		justify-content: center;
		width: 100%;
		min-height: 40px;
		padding: 8px;
		font-size: 14px;
		line-height: 1.2;
		text-align: center;
		white-space: normal;
	}

	.tt-area__title {
		font-size: 16px;
	}

	.tt-slots {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 560px) {
	.tt-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.tt-tiles {
		gap: 6px;
	}

	.tt-finder__links {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		margin-top: 16px;
	}

	.tt-finder .tt-finder-link {
		border-radius: 12px;
		font-size: 14px;
	}

	.tt-finder-link__arrow {
		margin-left: auto;
	}

	.tt-finder .tt-tile {
		padding-bottom: 10px;
	}

	.tt-tile__img {
		margin-bottom: 6px;
	}

	.tt-tile__name {
		padding: 0 2px;
		font-size: 12px;
		letter-spacing: -.01em;
		hyphens: auto;
	}

	.tt-tiles--4 .tt-tile__hint {
		display: none;
	}

	.tt-tiles--3 .tt-tile__name {
		font-size: 13px;
	}

	.tt-tiles--3 .tt-tile__hint {
		font-size: 11px;
	}

	.tt-tiles--3 .tt-tile__img svg {
		width: 56%;
	}
}

@media (max-width: 420px) {
	.tt-tiles--4 .tt-tile__name {
		padding: 0;
		font-size: 11px;
		letter-spacing: -.02em;
	}
}

/* Below 375px: 2 x 2. */
@media (max-width: 374px) {
	.tt-tiles--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tt-tiles--4 .tt-tile__img {
		aspect-ratio: 16 / 9;
	}

	.tt-tiles--4 .tt-tile__name {
		font-size: 15px;
	}

	.tt-tiles--3 .tt-tile__name {
		padding: 0;
		font-size: 12px;
		letter-spacing: -.02em;
	}
}

/* M39: dances (only rendered with tanzsuche / tanzkarte / tanzfilter). */
.tt-dance {
	max-width: 820px;
	margin: 24px auto 0;
}

.tt-dance__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tt-card__tz {
	margin: 0;
	font-size: 13px;
}

.tt-detail__head .tt-card__tz {
	margin: 4px 0 0;
	font-size: 14px;
}

.tt-card__pre {
	align-self: flex-start;
	margin: 0;
	padding: 2px 8px;
	border-radius: 6px;
	background: var(--tt-finder-soft);
	font-size: 13px;
	font-weight: 700;
}

@media (max-width: 782px) {
	.tt-dance {
		margin-top: 16px;
	}

	.tt-dance__chips {
		gap: 6px;
	}

	.tt-card__tz,
	.tt-card__pre {
		font-size: 12px;
	}
}
